tidybytetools

Undo Plan — Git skill for Claude Code

Git community

Work out the safest way back from a messy git state and show exact commands, running none of the risky ones.

How to install Undo Plan

Installs to ~/.claude/skills/tidybytetools-claude-code-commands-undo-plan/SKILL.md

Terminal
mkdir -p ~/.claude/skills/tidybytetools-claude-code-commands-undo-plan && curl -fsSL https://raw.githubusercontent.com/tidybytetools/claude-code-commands/HEAD/commands/undo-plan.md -o ~/.claude/skills/tidybytetools-claude-code-commands-undo-plan/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Undo Plan does


description: "Work out the safest way back from a messy git state and show exact commands, running none of the risky ones" argument-hint: "[what went wrong]" allowed-tools: "Read Grep Glob Bash(git status *) Bash(git diff *) Bash(git log *) Bash(git show *) Bash(git blame *) Bash(git stash list) Bash(git reflog -n *)"

Context (read-only snapshot taken when you run this)

  • Status: !git status --short --branch || true
  • Reflog: !git reflog -n 10 || true
  • Stashes: !`git stash list

Alternatives in Git

  • Get Commit Details — git show --name-status [COMMIT_ID] git diff [COMMIT_ID]^ [COMMIT_ID] 1.3k ★
  • Drive Acquisition — Work GitHub issues that drive acquisition — verify relevance, close stale ones, fan out at most two engineer a 324 ★
  • Eval Merge — /eval-merge — Three-Way Version Merge 216 ★

Full documentation available on GitHub

View Source Repository