ワンクリックで
editing-jobs
// Edit and delete existing agent-cron job files through natural language conversation.
// Edit and delete existing agent-cron job files through natural language conversation.
Start, stop, restart, and check the status of the agent-cron daemon. Use when you need to manage the daemon lifecycle, check if the daemon is running, restart after config changes, or troubleshoot daemon startup issues.
Create and configure agent-cron job files from natural language descriptions.
Install, configure, and verify the agent-cron daemon.
Monitor job execution, view history, check logs, diagnose failures, and review aggregate statistics for agent-cron scheduled jobs. Use when asked about job status, execution results, or failures.
Execute a universal CLOD agent definition and orchestrate referenced skills.
| name | editing-jobs |
| description | Edit and delete existing agent-cron job files through natural language conversation. |
| last_validated | "2026-03-21T00:00:00.000Z" |
This skill guides agents through editing and deleting existing agent-cron job files via natural language conversation. It covers the full workflow: locating the job, reading its current state, understanding the requested change, validating inputs, showing a diff for confirmation, writing the change, and verifying the daemon picked it up.
Verify that agent-cron is installed and the project is initialized before proceeding.
Check for the agcron binary:
which agcron
If agcron is not found, direct the user to the installing-agcron skill to install it first. Do not continue until the binary is available.
Check for the jobs directory:
ls .cron/jobs/
If .cron/jobs/ does not exist, run agcron init to scaffold the project:
agcron init
Confirm both checks pass before continuing.
Follow these steps in order. Do not skip steps. Do not write the file without explicit user confirmation.
List available jobs so the user can identify which one to edit:
agcron jobs list
Or if the daemon is not running:
ls .cron/jobs/
Ask the user which job they want to edit. If the user names a job by description rather than filename, match it from the list and confirm: "Did you mean .cron/jobs/{id}.md?"
If only one job exists, confirm with the user before assuming it is the target.
Read and display the full job file content:
cat .cron/jobs/{id}.md
Display the complete content to the user so they can see the current state. Note any deprecated field names (agent_cli, fallback_agent_cli) for normalization during the edit.
Parse the user's request and map natural language to specific field changes.
agent, suggest also updating model to match the new adapter's supported models.Before proposing any changes, validate every modified field:
creating-jobs/references/cron-cheatsheet.md for syntax rules.claude, codex, gemini, opencode, copilot. Refer to creating-jobs/references/adapter-model-reference.md for details.agent, ensure the model is compatible.[a-z0-9-]+. If the ID changes, the file must be renamed to match.true or false.If validation fails, explain why and suggest a valid alternative. Do NOT propose invalid changes.
See references/field-reference.md for the complete field table with validation rules and editing notes.
Display proposed changes using arrow notation. For frontmatter field changes:
Changes to .cron/jobs/{id}.md:
schedule: "0 2 * * *" --> "30 3 * * *"
All other fields unchanged.
For multi-field changes, show all changes together:
Changes to .cron/jobs/{id}.md:
agent: claude --> gemini
model: claude-sonnet-4-20250514 --> gemini-2.5-pro
For deprecated field normalization, include a note:
Changes to .cron/jobs/{id}.md:
agent_cli: claude --> agent: gemini (field renamed: agent_cli is deprecated, use agent)
For adding a previously absent field:
Changes to .cron/jobs/{id}.md:
timezone: (absent) --> "America/New_York"
For removing a field:
Changes to .cron/jobs/{id}.md:
timeout: 600 --> (removed)
For tags changes, show the complete before and after of the tags block:
Changes to .cron/jobs/{id}.md:
tags:
BEFORE:
- security
- experimental
AFTER:
- security
- critical
For prompt body changes, show the complete before and after of the body section (not arrow notation).
See references/editing-patterns.md for detailed before/after examples of every editing scenario.
Ask the user to confirm the proposed changes:
Write this change? (yes/no)
Accept confirmations like "yes", "looks good", "do it", "confirm", or "write it".
If the user says no or requests modifications, go back to Step 3 to re-evaluate the change.
Never write without explicit confirmation. This is the show-before-write checkpoint. Do not skip it.
After confirmation, apply the edit. Read the file as text, modify only the changed lines, and write the complete file back:
cat > .cron/jobs/{id}.md << 'JOBEOF'
{complete modified file content}
JOBEOF
Critical rules for writing:
schedule: "0 2 * * *", the unchanged fields must keep their original formatting.--- lines. The first opens the frontmatter, the second closes it. Everything after the second --- is the markdown body.agent_cli to agent, fallback_agent_cli to fallback_agent) as part of the write.See references/editing-patterns.md for complete before/after examples.
Wait for the file watcher to detect changes, then confirm the daemon shows updated values:
sleep 3
agcron jobs list
Confirm the daemon shows the updated field values. If values look stale, wait another 3 seconds and retry once:
sleep 3
agcron jobs list
If the daemon still shows stale values after the retry, note it to the user and suggest checking daemon status with agcron status.
List jobs and confirm which job the user wants to delete:
agcron jobs list
If the user names a job by description, match it from the list and confirm the filename.
Read and display the full file content so the user knows exactly what will be deleted:
cat .cron/jobs/{id}.md
After displaying the content, warn the user:
This will permanently delete the job. This action cannot be undone.
Ask for explicit confirmation:
Delete
.cron/jobs/{id}.md? (yes/no)
Only proceed if the user explicitly confirms. Accept "yes", "confirm", "delete it", or "do it".
Only after confirmation, delete the job file:
rm .cron/jobs/{id}.md
Wait for the daemon to detect the removal, then confirm the job no longer appears:
sleep 3
agcron jobs list
Confirm the deleted job no longer appears in the listing.
For batch deletion requests (e.g., "delete all test jobs"), list matching jobs and confirm EACH one individually. Do not batch-delete without per-file confirmation.
agcron jobs list.references/field-reference.md -- Complete field table with validation rules, editing notes, deprecated field mapping, and before/after examples.references/editing-patterns.md -- Before/after editing examples for every scenario (single field, multi-field, tags, body, deprecated fields, absent fields) and diff display format.creating-jobs/references/cron-cheatsheet.md -- Cron expression syntax, field ranges, special characters, common patterns, and scheduling best practices.creating-jobs/references/adapter-model-reference.md -- Built-in adapter details, task-type recommendations, model names, and field name deprecation notes.