/claude-planning-with-ai:plan-rollback <NNN-slug> <story-NN>from claude-planning-with-ai
Revert a story from DONE back to TODO, removing its atomized task folder if present. Use when an execution left the code in bad state and the story must be re-run.
Ships in claude-planning-with-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Revert a DONE story to TODO so it can be re-executed. Removes the atomized task folder if one exists.
$ARGUMENTS — format: NNN-slug story-NN
NNN-slug — planning id (e.g. 001-jwt-auth-api)story-NN — story to roll back (e.g. story-03)Parse $ARGUMENTS into planning ID and story ID.
Verify .planning/scripts/planning-mutate.mjs exists. If missing, stop:
This workspace needs the latest planning scripts. Re-run
/plan-init --forcefrom the project root or copy the current planning template scripts into.planning/scripts/.
Dry-run the rollback:
node .planning/scripts/planning-mutate.mjs rollback <planning-id> <story-id> --dry-run
If it fails, report the error verbatim and stop.
Verify every touched path is inside .planning/active/<planning-id>/ and limited to story file, 01-expansion.md, optional README.md, RETROSPECTIVE-RAW.md, and the atomized task folder. Stop on any unrelated path.
Confirm the destructive action:
"This will reset story <story-id> to TODO and delete its task folder if atomized. The generated code/files are NOT reverted — you must undo those changes manually. Continue? (yes/no)"
Apply the rollback:
node .planning/scripts/planning-mutate.mjs rollback <planning-id> <story-id>
If available, pass the reason with --reason "<reason>".
Report the script summary and remind the user that generated code/files were not reverted.
The script owns active preflight, DONE check, task-folder deletion, story/task reset, task-link stripping, 01-expansion.md reset, optional README update, and /plan-rollback retrospective entry.
Does NOT revert code changes made during the story's execution. You must undo those separately (e.g.,
git checkoutorgit revert).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub adumun/claude-planning-with-ai --plugin claude-planning-with-ai53 skills in this plugin
/doc-generateGenerate documentation from planning artifacts at task, story, or planning level using the deterministic doc-generate script./doc-storyGenerate documentation for a completed story using the deterministic doc-generate script./doc-taskGenerate documentation for a completed atomic task using the deterministic doc-generate script./epic-enrichAdd missing backlog stories to an existing epic or story container while delegating container inspection, ID assignment, story drafting, and index updates to the shared planning-story script./plan-agent-executeExecute all pending stories in a planning — atomizes and executes independent stories in parallel using subagents, respecting dependency order./plan-agent-planExecute the planning phase autonomously — creates a new planning (if needed) and advances it from INITIAL to EXPANSION without intermediate confirmations.Other plugins' skills for the same job