Skip to content
Kitbay
Skill

finishing-a-development-branch

MITUpdated on Nov 3, 2026315,883GitHub stars

A skill from the Superpowers collection for the end of a piece of work, once the code is finished.

What the skill teaches

A skill from the Superpowers collection for the end of a piece of work, once the code is finished. The agent runs the full test suite and stops if anything fails, works out whether it is in a normal checkout, a linked git worktree or a detached HEAD, confirms the base branch, and then offers the user a short menu: merge locally, push and open a pull request, or keep the branch. Discarding work is never offered and needs the user to type an exact confirmation word. After a local merge it re-runs the tests before deleting the branch, and it only removes worktrees it created itself, asking about any uncommitted files instead of forcing.

Capabilities

  • Run the test suite before integrating a branch
  • Merge locally, open a pull request or keep the branch
  • Detect git worktrees and detached HEAD states
  • Clean up worktrees the skill created