finishing-a-development-branch
CommunityInstallation
Terminal
git clone --depth 1 https://github.com/obra/superpowers.git /tmp/finishing-a-development-branch-src cp -r /tmp/finishing-a-development-branch-src/skills/finishing-a-development-branch ~/.claude/skills/finishing-a-development-branch
Or .claude/skills/finishing-a-development-branch to scope it to one repo.
Summary
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work
Finishing a Development Branch Overview Core principle: Verify tests → Detect environment → Present options → Execute choice → Clean up. Announce at start: "I'm using the finishing-a-development-branch skill to complete this work." Step 1: Verify Tests Run the project's full test suite (npm test / cargo test / pytest / go test ./...). If tests fail, report the failures and stop — the menu comes after a green suite: Tests failing (<N failures). Must fix before completing: [Show failures] If tests pass: continue to Step 2. Step 2: Detect Environment bash GITDIR=$(cd "$(git rev-parse --git-dir)" 2/dev/null && pwd -P) GITCOMMON=$(cd "$(git rev-parse --git-common-dir)" 2/dev/null && pwd -P) Capture now, while still inside the workspace — Step 5 changes directory before cleanup (Step 6) needs this value WORKTREEPATH=$(git rev-parse --show-toplevel) This determines which menu to show and how cl…