gsd-undo

Revert GSD commits by last N, phase, or plan with dependency checks.

264|11|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/rkz91/coco --skill gsd-undo-rkz91
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsd-undo
Source: https://github.com/rkz91/coco/tree/main/systems/gsd/skills/gsd-undo
Command: npx skills add https://github.com/rkz91/coco --skill gsd-undo-rkz91

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reverts GSD commits safely by undoing the last N commits, a full phase, or a specific plan, while enforcing dependency checks to prevent accidental work loss.

Core Features & Use Cases

  • Safe revert modes (last N, phase-wide, or plan-level) with an explicit confirmation gate before execution.
  • Guardrails: uses the phase manifest and git history to determine reversible scope and to avoid destructive changes.
  • Use case: when a phase goes off track or a plan introduces regressions, revert to a known good state and reapply changes.

Quick Start

Invoke gsd-undo to revert the last N commits, a phase's entire history, or a specific plan with dependency checks.

Frequently Asked Questions about gsd-undo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely revert git commits for a specific project phase without losing dependencies?

To safely revert git commits, you can undo an entire phase or specific plan using dependency checks. This enforces a confirmation gate and uses the phase manifest with git history to prevent accidental work loss during the rollback.

What is the best way to undo the last N git commits in an automated workflow?

The best way to undo the last N git commits in an automated workflow is using a dedicated revert mode. It targets the specific number of recent commits, checks dependencies, and applies a required confirmation gate before executing the rollback safely.

Can I roll back an entire plan's git history if it introduces regressions?

Yes, you can roll back an entire plan's git history if it introduces regressions. A plan-level revert mode uses the phase manifest and dependency checks to reverse all commits associated with that specific plan safely.

When should I use a dependency check before reverting git history?

You should use a dependency check before reverting git history when a phase goes off track or a plan introduces regressions. It determines the reversible scope and prevents destructive changes by verifying dependencies before executing the rollback.

Does reverting a full git phase require a manual confirmation gate?

Yes, reverting a full git phase requires a manual confirmation gate before execution. This guardrail ensures you explicitly approve the rollback of the phase's entire history, preventing accidental data loss when undoing the tracked changes.