finishing-a-development-branch

finishing-a-development-branch is a skill for Claude Code from strigov/superpowers-strigov-ver. It costs 44 tokens per session (6,952 once invoked), scanned A, original, MIT.

A guide for finishing work on a development branch, which is a separate line of code changes. It checks tests and the Git workspace before helping choose how to merge, open a pull request, or clean up.

In plain words
What is it for?
Use it after implementation and passing tests, when deciding whether to merge the branch, create a pull request, or remove temporary workspaces.
Why use it?
It prevents incomplete or failing work from being integrated accidentally. It also adapts the cleanup choices to whether the work is already isolated.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the superpowers-strigov-ver plugin — 16 skills, 1 command shipped together

Good fit Use it after implementation and passing tests, when deciding whether to merge the branch, create a pull request, or remove temporary workspaces.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/strigov/superpowers-strigov-ver/finishing-a-development-branch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add strigov/superpowers-strigov-ver --skill finishing-a-development-branch
Clone the repo
git clone --depth 1 https://github.com/strigov/superpowers-strigov-ver

Made for: Claude Code.

Or install superpowers-strigov-ver, the plugin that ships this one along with the rest of its 16 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for finishing-a-development-branch

README.md
[![agentmods](https://agentmods.dev/badge/skills/strigov/superpowers-strigov-ver/finishing-a-development-branch/github.svg)](https://agentmods.dev/skills/strigov/superpowers-strigov-ver/finishing-a-development-branch)
Your own site
<a href="https://agentmods.dev/skills/strigov/superpowers-strigov-ver/finishing-a-development-branch"><img src="https://agentmods.dev/badge/skills/strigov/superpowers-strigov-ver/finishing-a-development-branch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for finishing-a-development-branch

Your own site · 80×15
<a href="https://agentmods.dev/skills/strigov/superpowers-strigov-ver/finishing-a-development-branch"><img src="https://agentmods.dev/badge/skills/strigov/superpowers-strigov-ver/finishing-a-development-branch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,952 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.06952
Opus 5 $0.00022 $0.03476
Sonnet 5 $0.00009 $0.01390
Haiku 4.5 $0.00004 $0.00695

Measured 11d ago against content hash 6c99b7b5cfd5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

finishing-a-development-branch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/finishing-a-development-branch/SKILL.md · 553 lines

How it starts

The opening of the file, as written. The whole thing — 553 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Finishing a Development Branch

Overview

Guide completion of development work by presenting clear options and handling chosen workflow.

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."

The Process

Step 1: Verify Tests

Before presenting options, verify tests pass:

# Run project's test suite
npm test / cargo test / pytest / go test ./...

If tests fail:

Tests failing (<N> failures). Must fix before completing:

[Show failures]

Cannot proceed with merge/PR until tests pass.

Stop. Don't proceed to Step 2.

If tests pass: Continue to Step 2.

Step 2: Detect Environment

Determine workspace state before presenting options:

GIT_DIR=$(cd "$(git rev-parse --git-dir)" 2>/dev/null && pwd -P)
GIT_COMMON=$(cd "$(git rev-parse --git-common-dir)" 2>/dev/null && pwd -P)
FEATURE_BRANCH=$(git branch --show-current)         # FEATURE_BRANCH is "" in detached HEAD

This determines which menu to show and how cleanup works:

State Menu Cleanup
GIT_DIR == GIT_COMMON, named branch Standard 4 options No worktree to clean up
GIT_DIR == GIT_COMMON, detached HEAD Reduced 3 options (no merge) Normal repo detached-HEAD flow: push as new branch, keep, or discard; no branch delete unless a branch is created
GIT_DIR != GIT_COMMON, named branch Standard 4 options Provenance-based (see Step 6)
GIT_DIR != GIT_COMMON, detached HEAD, provenance-owned Reduced 3 options (no merge) Inline git worktree remove --force (Option 4a provenance subcase)
GIT_DIR != GIT_COMMON, detached HEAD, harness-owned Reduced 3 options (no merge) Native exit tool only; if unavailable/fails, report failure + manual command (Option 4a harness subcase)

If FEATURE_BRANCH is empty, the workspace is detached HEAD even in a normal repo. Route to the detached-HEAD 3-option menu before any standard 4-option branch workflow; the 4-option workflow assumes a named branch exists for merge/delete.

Read the full file on GitHub · 553 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 553 lines · 44 tokens per session scan A 6c99b7b5cfd5

Subscribe to this mod's changes

finishing-a-development-branch is a skill published in the GitHub repository strigov/superpowers-strigov-ver (4 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 6,952 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.