finishing-a-development-branch

finishing-a-development-branch is a skill for Claude Code, Codex from yinqd3/workbuddy-skills. It costs 67 tokens per session (564 once invoked), scanned A, original, MIT.

A workflow for closing a development branch after all work and tests are complete. A branch is a separate line of changes in a version-control system such as Git.

In plain words
What is it for?
Running the test suite, finding the base branch, then merging locally, opening a pull request, preserving the branch, or deleting it after confirmation.
Why use it?
It prevents unfinished or failing work from being merged, and makes the final handling choice explicit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Running the test suite, finding the base branch, then merging locally, opening a pull request, preserving the branch, or deleting it after confirmation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yinqd3/workbuddy-skills/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 yinqd3/workbuddy-skills --skill finishing-a-development-branch
Clone the repo
git clone --depth 1 https://github.com/yinqd3/workbuddy-skills

Made for: Claude Code, Codex.

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/yinqd3/workbuddy-skills/finishing-a-development-branch/github.svg)](https://agentmods.dev/skills/yinqd3/workbuddy-skills/finishing-a-development-branch)
Your own site
<a href="https://agentmods.dev/skills/yinqd3/workbuddy-skills/finishing-a-development-branch"><img src="https://agentmods.dev/badge/skills/yinqd3/workbuddy-skills/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/yinqd3/workbuddy-skills/finishing-a-development-branch"><img src="https://agentmods.dev/badge/skills/yinqd3/workbuddy-skills/finishing-a-development-branch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 564 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.00067 $0.00564
Opus 5 $0.00034 $0.00282
Sonnet 5 $0.00013 $0.00113
Haiku 4.5 $0.00007 $0.00056

Measured 12d ago against content hash b7eb4b8bb4d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 12d 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.

superpowers/finishing-a-development-branch/SKILL.md · 93 lines

What it actually says

完成开发分支

步骤 1:验证测试

运行项目测试套件。测试失败 → 停止,不能继续。

# Python
pytest -q

# Node/TS
pnpm test

如果失败,必须先用 systematic-debugging 修复。

步骤 2:确定基准分支

git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null
git branch --show-current

步骤 3:呈现四个选项

实现完成。你想怎么做?

1. 合并回 <基准分支>(本地)
2. 推送并创建 Pull Request
3. 保留分支现状(我稍后处理)
4. 丢弃这些工作

选哪个?

步骤 4:执行选择

选项 1:本地合并

git checkout <基准分支>
git pull
git merge <特性分支>
# 运行测试
git branch -d <特性分支>

选项 2:推送 + PR

git push -u origin <特性分支>
gh pr create --title "<标题>" --body "## 概要
- <要点1>
- <要点2>

## 测试计划
- [ ] <验证步骤>"

选项 3:保留现状

报告:"保留分支 <名称>。稍后可以继续。"

选项 4:丢弃

先确认:

这将永久删除:
- 分支 <名称>
- 自 <基准分支> 以来的所有提交

输入"discard"确认。

等待精确输入 "discard" 后再执行:

git checkout <基准分支>
git branch -D <特性分支>

常见错误

  • 提供选项前不验证测试 → 总是先验证
  • 合并不拉取最新基准 → 总是先 git pull
  • PR 未合并就删分支 → 等待合并确认
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. 12d ago First seen · 93 lines · 67 tokens per session scan A b7eb4b8bb4d4

Subscribe to this mod's changes

finishing-a-development-branch is a skill published in the GitHub repository yinqd3/workbuddy-skills (6 stars, last pushed 3mo ago), licensed MIT. It adds 67 tokens to every session and 564 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

finishing-a-development-branch

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup.

JustMichael-80/MasterVault · 44 tokens

release-and-publish

Ship a release end-to-end across every registry the project targets (npm, MCP Registry, GitHub Releases for .mcpb bundles, GHCR). Runs the final verification gate, fast-forwards main when the release rode a release PR, creates the annotated tag on the commit main now points at, pushes commits and tags, then publishes…

cyanheads/obsidian-mcp-server · 155 tokens

git-wrapup

Land working-tree changes as logical commits — the work grouped by concern, topped by a release commit (version bump, changelog, regenerated artifacts). Verify, commit. Stops at "committed locally on main" — or, when the project releases through a release PR, at "release branch pushed, PR open". No tag, no push to…

cyanheads/obsidian-mcp-server · 104 tokens

release-pr-review

Review pass on an open release PR (release/ → main) — the step between git-wrapup and release-and-publish when a project releases in gated release PR mode. Reads the PR's commit range through the code-simplifier lens plus a correctness review, verifies whatever an automated reviewer left on the PR, lands fixes as…

cyanheads/obsidian-mcp-server · 139 tokens

utility-pm-release-conductor

Walk the guided 6-gate release runbook (G0 readiness, G1 adversarial review, G2 version bump and CHANGELOG, G2.5 commit and re-verify, G3 tag and push, G4 post-tag hygiene) via the pm-release-conductor sub-agent. Refuses gate bypasses and tags only the re-verified SHA. Use when cutting a pm-skills release.

product-on-purpose/pm-skills · 90 tokens

utility-pm-changelog-curator

Draft CHANGELOG entries from git log via the pm-changelog-curator sub-agent, applying the repo hygiene rules (describe what changed, public paths only, no attribution trailers). Returns a layered draft with a status summary for maintainer review; refuses a dirty working tree unless --committed-only is passed. Use when…

product-on-purpose/pm-skills · 80 tokens