Delete Runbook
You are removing a registered runbook from .claude/runbooks.json.
Instructions
-
Parse arguments:
/runbook-delete <runbook-name>- If no name provided, read
.claude/runbooks.jsonand ask which runbook to delete
- If no name provided, read
-
Read
.claude/runbooks.jsonand find the named runbook- If not found, list available runbooks
-
Confirm with the user before deleting:
Delete runbook "auto-commit"? Trigger: task_complete Mode: auto Actions: 1. git add -A 2. git commit -m "{{task_description}}" 3. git push -
Remove the runbook from the JSON object
-
Write the updated file back to
.claude/runbooks.json -
Confirm deletion:
Runbook "auto-commit" deleted.
Notes
- Always confirm before deleting — this cannot be undone
- If deleting the last runbook, keep the file with
{ "runbooks": {} }rather than removing it
