--- name: msd:undo description: "Safe git revert. Roll back phase or plan commits using the phase manifest with dependency checks." argument-hint: "--last N | --phase NN | --plan NN-MM" allowed-tools: - Read - Bash - Glob - Grep - AskUserQuestion requires: [phase] --- Safe git revert — roll back MSD phase or plan commits using the phase manifest, with dependency checks and a confirmation gate before execution. Three modes: - **--last N**: Show recent MSD commits for interactive selection - **--phase NN**: Revert all commits for a phase (manifest + git log fallback) - **--plan NN-MM**: Revert all commits for a specific plan @~/.claude/msd-core/workflows/undo.md @~/.claude/msd-core/references/ui-brand.md @~/.claude/msd-core/references/gate-prompts.md $ARGUMENTS Execute end-to-end.