Safe Git Revert

VerifiedSafe

Safe git revert. Roll back phase or plan commits using the phase manifest with dependency checks.

Sby Skills Guide Bot
DevelopmentIntermediate
308/6/2026
Claude Code
#git#revert#undo#workflow#safety

Recommended for

Our review

Safely reverts GSD phase or plan commits using a phase manifest, with dependency checks and a confirmation gate.

Strengths

  • Uses the phase manifest to identify related commits, falling back to git log when needed.
  • Checks dependencies before reverting to avoid breaking changes.
  • Confirmation gate prevents accidental destructive operations.

Limitations

  • Requires a GSD phase manifest to work fully; without it, fallback may be less precise.
  • Only reverts commits belonging to GSD phases/plans, not arbitrary changes.
When to use it

When you need to roll back a completed GSD phase or plan cleanly and safely.

When not to use it

For simple one-off reverts outside the GSD workflow, or when you need to preserve commit history.

Security analysis

Safe
Quality score75/100

The skill uses standard git revert commands with a confirmation gate (AskUserQuestion) and dependency checks. It does not instruct any destructive, exfiltrating, or obfuscated actions. The use of Bash is limited to safe, well-defined git operations.

No concerns found

Examples

Revert last GSD commit
Run gsd-undo --last 5 to show my recent GSD commits and help me pick one to revert.
Roll back phase 2
Revert phase 2 with gsd-undo --phase 2.
Undo a plan
Undo plan 3-4 using gsd-undo --plan 3-4.

name: gsd-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

<objective> Safe git revert — roll back GSD phase or plan commits using the phase manifest, with dependency checks and a confirmation gate before execution.

Three modes:

  • --last N: Show recent GSD 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 </objective>

<execution_context> @~/.copilot/gsd-core/workflows/undo.md @~/.copilot/gsd-core/references/ui-brand.md @~/.copilot/gsd-core/references/gate-prompts.md </execution_context>

<context> $ARGUMENTS </context> <process> Execute end-to-end. </process>
Related skills