Skip to content
Development
Command

/undo

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

From plugin
gsd-core
8k71 skills34 agents71 commands7 hooks
Install
> /plugin marketplace add open-gsd/gsd-core
> /plugin install gsd-core@gsd-core

How it fires

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

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/undo

Context preview

What this command does when you run it.

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

Command definition

undo.md
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
requires: [phase]

<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> @~/.claude/gsd-core/workflows/undo.md @~/.claude/gsd-core/references/ui-brand.md @~/.claude/gsd-core/references/gate-prompts.md </execution_context>

<context> $ARGUMENTS </context>

<process> Execute end-to-end. </process>

Ships withgsd-core

Git. Ship. Done. A light-weight meta-prompting, context engineering, and spec-driven development system for Claude Code, OpenCode, Antigravity CLI, Kimi CLI, Kilo, Codex, Copilot, Cursor, Windsurf, and more.

Get the whole plugin