SKILL

finishing-a-development-branch

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

Target: Target not categorized. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Finishing a Development Branch
  • Overview
  • Step 1: Verify Tests
  • Step 2: Detect Environment
  • Step 3: Determine Base Branch
  • Step 4: Present Options
  • Step 5: Execute Choice
  • Option 1: Merge Locally

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." 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: If tests pass: continue to Step 2. This determines which menu to show and how cleanup works: | State | Menu | Cleanup | |-------|------|---------| | GITDIR == GITCOMMON (normal repo) | Standard 3 options | No worktree to clean up | | GITDIR != GITCOMMON, named branch | Standard 3 options | Provenance-based (see Step 6) | | GITDIR != GITCOMMON, detached HEAD | Reduced 2 options (no merge) | Externally managed — leave in place | The base branch is whatever this work forked from — usually named in the plan, the conversation, or the branch's upstream. If it is not already known, ask: "This branch split from - is that correct?" Confirm before merging: merging into the wrong base is expensive to undo. Normal repo and named-branch worktree — present exactly these 3 options: Detached HEAD — present exactly these 2 options: Present the men

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
obra/superpowers
Source file
skills/finishing-a-development-branch/SKILL.md
Fixed revision
22f0b463e7a5e579904dd6211a520321035526f7
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: obra/superpowers · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T17:01:01.749Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.