Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

finishing-a-development-branch

Community

Installation

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…

Questions

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

Claude Code: ~/.claude/skills/finishing-a-development-branch. Codex: ~/.agents/skills/finishing-a-development-branch. Antigravity: ~/.gemini/config/skills/finishing-a-development-branch. Use .claude/skills or .agents/skills inside a repo to scope it to one project.

More from obra/superpowers

Name
  1. brainstorming
  2. diagnosing-superpowers
  3. dispatching-parallel-agents
  4. executing-plans
  5. receiving-code-review
  6. requesting-code-review
  7. subagent-driven-development
  8. systematic-debugging
Buy me a coffee