Skip to content
Development
Skill

/cad-undo

Safely undo a phase - roll back its commits from the SUMMARY manifest, revert (or --no-commit to re-do), and reset the phase status

From plugin
cadence
534 skills30 agents3 hooks
Install
$ npx -y skills add crenshawdev/cadence --skill cad-undo --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/cad-undo

Context preview

The summary Claude sees to decide when to auto-load this skill.

Safely undo a phase - roll back its commits from the SUMMARY manifest, revert (or --no-commit to re-do), and reset the phase status

SKILL.md

cad-undo.SKILL.md
name: cad-undo
description: "Safely undo a phase - roll back its commits from the SUMMARY manifest, revert (or --no-commit to re-do), and reset the phase status"
argument-hint: "<phase N> [--no-commit]"
allowed-tools:
  - Read
  - Edit
  - Bash
  - Grep
  - Glob
  - AskUserQuestion

<objective> Undo a phase's work by reverting its commits, using the phase SUMMARY.md as the manifest of exactly which hashes to touch (cad-execute records commits-per-task with hashes there). Safe by construction: never runs on a dirty tree, never guesses. No heuristic dependency-check - instead cad-undo states plainly whether later phases exist and lets the user decide. </objective>

<execution_context> @${CLAUDE_PLUGIN_ROOT}/cadence-core/workflows/undo.md @${CLAUDE_PLUGIN_ROOT}/cadence-core/references/git-guard.md </execution_context>

<process> Run the undo workflow end-to-end. Refuse on a dirty tree. Show the exact hashes and get confirmation before reverting. Reset the phase's status as part of the rollback (this is the one legitimate exception to cad-verify owning status). </process>

Ships withcadence

Appearance is cheap. Verification is the work. Cadence is for developers using Claude Code on software they will still own after the session ends. Claude can write a convincing plan, produce working code, and tell you the job is finished.

Get the whole plugin

Other skills on cadence.