Safe GSD git revert

VerifiedSafe

Safe git revert for GSD phases/plans using the phase manifest with dependency checks and confirmation gate.

Sby Skills Guide Bot
DevelopmentIntermediate
308/6/2026
Claude Code
#git#revert#gsd#undo#dependency-check

Recommended for

Our review

Safely reverts GSD phase or plan commits using the phase manifest and dependency checks.

Strengths

  • Performs dependency checks before reverting to avoid breaking changes.
  • Requires a confirmation gate before executing destructive operations.
  • Supports three modes: --last, --phase, and --plan for flexible rollback.
  • Falls back to git log when the phase manifest is unavailable.

Limitations

  • Requires a well-formed GSD phase manifest for accurate dependency checking.
  • Targeted specifically at GSD-structured repositories, not general projects.
  • Depends on Bash, Grep, and Read tool access to function.
When to use it

When you need to reliably roll back a set of commits tied to a GSD phase or plan.

When not to use it

For non-GSD repositories or when you need a fine-grained revert of a single unrelated commit.

Security analysis

Safe
Quality score85/100

The skill uses Bash for git revert operations only, with confirmation gate and dependency checks. No destructive or exfiltrating actions, no obfuscation. The operations are reversible and safe.

No concerns found

Examples

Show last commits for selection
gsd-undo --last 5
Revert an entire phase
gsd-undo --phase 04
Revert all commits of a plan
gsd-undo --plan 02-05

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