# Crontab Edit

> >-

- **Type:** Skill
- **Install:** `agentstack add skill-cmflynn-crontab-edit-crontab-edit`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [cmflynn](https://agentstack.voostack.com/s/cmflynn)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [cmflynn](https://github.com/cmflynn)
- **Source:** https://github.com/cmflynn/crontab-edit/tree/main/skills/crontab-edit

## Install

```sh
agentstack add skill-cmflynn-crontab-edit-crontab-edit
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Safe crontab editing

`crontab` overwrites the *entire* table at once. The `crontab ` form can
also silently no-op (exit 0, nothing written) under some sandboxed/restricted
shells. Works the same on Linux and macOS. Two rules prevent lost jobs.

## 1. Back up first

```bash
crontab -l > /tmp/crontab.backup.txt 2>/dev/null || echo "(no existing crontab)"
```

An empty/nonzero result just means the table is empty — that's fine.

## 2. Install via stdin, then verify by reading back

Pipe the content in on **stdin** — portable and reliable everywhere. Avoid
`crontab `, and do not trust the exit code; only the read-back proves it
worked.

```bash
crontab - < /path/to/new_crontab.txt        # install (NOT: crontab file)
crontab -l | wc -l                           # verify: line count matches source
crontab -l                                   # verify: jobs are what you expect
```

If the read-back is empty or the count is wrong, the install failed — retry the
stdin form.

To edit in place without clobbering the rest, round-trip it: `crontab -l` to a
file, edit that file, then reinstall via stdin.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [cmflynn](https://github.com/cmflynn)
- **Source:** [cmflynn/crontab-edit](https://github.com/cmflynn/crontab-edit)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-cmflynn-crontab-edit-crontab-edit
- Seller: https://agentstack.voostack.com/s/cmflynn
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
