SkillsReviewed · obra

Finishing a Development Branch

Finishing a Development Branch is a skill for developers using a coding assistant to complete Git work, with safeguards that depend on the assistant following its instructions. It directs fresh test runs, asks the developer to choose how to integrate the work, and specifies when branches and worktrees can be cleaned up.

Researched 13 Nov 2026

In short.

Finishing a Development Branch is an instruction skill for developers completing Git work with a coding assistant, and its reliability depends on correct test commands, repository context and assistant behavior. It requires a full test run before offering integration choices and another after a local merge. Pull request workspaces remain available for feedback, while deletion requires specific conditions or explicit confirmation. The selected file supplies a detailed procedure, but installation compatibility and practical effectiveness are unknown. Nothing was executed or tested.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete skills/finishing-a-development-branch/SKILL.md at revision 22f0b463e7a5e579904dd6211a520321035526f7 and the accompanying repository LICENSE. Linked pages, other folders and the wider Superpowers installation are excluded. No commands were executed, and no assistant loading, Git operations, test runs, pull request creation or cleanup behavior was tested.

The overview

Identity

The resource is the finishing-a-development-branch instruction skill in obra/superpowers. Its stated entry point is completed implementation with passing tests, when the developer needs to decide how to integrate the work. The published directory is [https://github.com/obra/superpowers/tree/main/skills/finishing-a-development-branch].

It covers ordinary Git checkouts and linked worktrees. A worktree is a separate checkout sharing a repository's Git history; a detached HEAD is a checkout that is not currently attached to a named branch.

Assessment

Its main value is a concrete completion procedure with explicit stopping points. The assistant must obtain a fresh passing test result, establish the intended base branch, and wait for the developer's integration choice. A local merge requires a further passing test run before cleanup.

This fits developers who want consistent handling of otherwise easy-to-miss finishing steps. The evidence establishes the written procedure, but provides no success rates, compatibility results or demonstrated improvement in development outcomes.

Users

The intended users are developers working with a coding assistant in a Git repository, particularly when feature branches and multiple worktrees are involved. Experienced developers can inspect its exact integration and cleanup rules before adopting them.

Beginners will need help identifying the project's complete test command, the branch their work should merge into, and the relevant pull request tooling. The skill assumes those development concepts and does not teach Git fundamentals.

Capabilities

For a normal repository or named-branch worktree, the skill specifies three choices: merge locally, push and create a pull request, or keep the branch as it is. For a detached-HEAD worktree, it offers pushing to a new remote branch and creating a pull request, or keeping the workspace.

It preserves worktrees for pull request feedback and for the keep option. Cleanup follows a successful local merge or an explicitly requested discard. If worktree removal refuses because files remain uncommitted, the assistant must show those files and ask how to handle them. Discarding work requires the developer to type the exact confirmation word discard.

Using it

Requirements

The procedure assumes a coding assistant that can follow skill instructions, run shell commands, inspect Git state and interact with the developer. It also needs a Git repository and a known command for the project's full test suite.

Local integration uses git pull, while publishing uses git push and repository-forge tooling or a pull request creation URL. These paths require the relevant remote access and authentication. Supported assistant products, Git versions, operating systems and credential setup are not specified.

Mechanism

The instructions first require the full test suite to pass. They then compare resolved GIT_DIR and GIT_COMMON paths to distinguish an ordinary checkout from a linked worktree, and record WORKTREE_PATH before changing directories. Branch state determines which integration menu applies; the file does not provide a separate command for detecting detached HEAD.

For local integration, the assistant moves to the main checkout, checks out the base branch, pulls, merges the feature branch and reruns the tests. A failed merged-result test run stops completion and preserves the branch and worktree for investigation. Eligible worktree cleanup precedes deletion of the merged feature branch.

Setup

The selected file contains the skill instructions but no installation command or assistant-specific loading guide. Loading it requires the chosen assistant's documented skill mechanism; compatibility is unknown from this material.

Before use, identify the actual full-suite test command, intended base branch and pull request tooling. The shell examples contain placeholders for project commands and branch names, so they require interpretation rather than direct execution as a complete script.

Example

In an illustrative named-branch worktree scenario, the developer chooses to push and create a pull request after the full suite passes. The prescribed behavior is to push the feature branch with upstream tracking, create the request against the established base using the forge's tooling, follow repository conventions and return the request URL.

The worktree remains available for addressing review feedback. If the initial test suite fails, the assistant should report the failures and stop before offering integration choices. This scenario has not been executed.

Assessment & evidence

Limitations

The safeguards are written instructions, with no independent enforcement supplied in the selected file. A passing suite establishes only what the chosen tests cover, and the assistant must correctly identify the full suite, base branch and workspace state.

The cleanup rule assumes worktrees under .worktrees/ or worktrees/ were created by Superpowers. Folder naming alone does not establish actual ownership, so that assumption deserves independent confirmation before removal.

Detailed recovery procedures for merge conflicts, failed pulls or failed pull request creation are absent. Rejected pushes require investigation, and force pushing requires an explicit developer request. A post-merge test failure stops progress without specifying an automatic rollback. Runtime behavior and platform compatibility have not been assessed.

Reasoning

The procedure ties test evidence to the tree being integrated: an earlier passing run is insufficient, and the merged tree needs its own run. This addresses the possibility that integration changes the combined result.

Requiring an explicit integration choice preserves developer control. Keeping pull request worktrees supports later feedback, while stopping on refused removal protects uncommitted material. Exact discard confirmation adds a further decision point before destructive cleanup. These are plausible procedural benefits; their effectiveness has not been measured.

Alternatives

Alternatives inferred from the task include following the same steps as a manual Git checklist or writing a project-specific assistant instruction file with fixed test commands and integration rules.

No competing skill or product is documented in the selected evidence. Comparative cost, compatibility and reliability are therefore unknown.

Evidence

The evidence contains the complete selected instruction file and the repository's MIT license at commit 22f0b463e7a5e579904dd6211a520321035526f7. The skill establishes intended behavior; the license establishes reuse terms. Neither supplies execution logs, benchmarks or compatibility results.

The exact skill source is [https://raw.githubusercontent.com/obra/superpowers/22f0b463e7a5e579904dd6211a520321035526f7/skills/finishing-a-development-branch/SKILL.md]. Its accompanying license is [https://raw.githubusercontent.com/obra/superpowers/22f0b463e7a5e579904dd6211a520321035526f7/LICENSE].

Access & freshness

Costs

No purchase price, subscription requirement, model choice, token usage or execution-cost estimate is stated. Operating cost is unknown.

The MIT license permits commercial use and redistribution, but does not establish the cost of the surrounding assistant or development environment. Potential assistant, test infrastructure and hosting charges depend on the setup and are not quantified.

Rights

The accompanying repository license is MIT, with copyright attributed to Jesse Vincent in 2025. It permits use, copying, modification, distribution, sublicensing and sale, subject to retaining the copyright and permission notices in copies or substantial portions.

The license disclaims warranties and liability. Redistributed copies of the selected skill should retain the required notices from [https://raw.githubusercontent.com/obra/superpowers/22f0b463e7a5e579904dd6211a520321035526f7/LICENSE].

Freshness

The supplied snapshot was captured on 13 November 2026 at 15:02:34.383 UTC and identifies commit 22f0b463e7a5e579904dd6211a520321035526f7. The conclusions apply to that revision; the published main-branch directory can change.

The material does not establish the skill's last modification date or whether a newer revision exists. The license's 2025 copyright year does not establish when the skill was last updated.

Actions

Before adopting the skill, establish the full test command, correct base branch, Git layout and available pull request tooling. Confirm worktree ownership independently of its directory name.

Use a disposable repository to evaluate failed-test stopping behavior, testing after a local merge, worktree retention for pull requests and handling of refused cleanup. These behaviors have not been tested here. Retain the MIT notices when sharing copies or adaptations.

Evidence for this report

LICENSEnotice · checked 2026-11-13