branch-finisher

branch-finisher is a skill for Claude Code from 10CG/Aria. It costs 37 tokens per session (3,716 once invoked), scanned A, original, MIT.

A branch-completion tool that checks tests and finishes cleanup after development work. A worktree is a separate working folder connected to a Git branch.

In plain words
What is it for?
It is for verifying tests, choosing a completion action, cleaning up worktrees, and synchronising completion status.
Why use it?
It helps prevent unfinished branches from being submitted and removes worktrees that are no longer needed. It is intended for the end of development, not for creating a branch or opening a pull request.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Good fit It is for verifying tests, choosing a completion action, cleaning up worktrees, and synchronising completion status.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/10cg/aria/branch-finisher
View source ↗ 10CG/Aria
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 10CG/Aria --skill branch-finisher
Clone the repo
git clone --depth 1 https://github.com/10CG/Aria

Made for: Claude Code.

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 branch-finisher

README.md
[![agentmods](https://agentmods.dev/badge/skills/10cg/aria/branch-finisher/github.svg)](https://agentmods.dev/skills/10cg/aria/branch-finisher)
Your own site
<a href="https://agentmods.dev/skills/10cg/aria/branch-finisher"><img src="https://agentmods.dev/badge/skills/10cg/aria/branch-finisher/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 branch-finisher

Your own site · 80×15
<a href="https://agentmods.dev/skills/10cg/aria/branch-finisher"><img src="https://agentmods.dev/badge/skills/10cg/aria/branch-finisher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,716 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.00037 $0.03716
Opus 5.5 $0.00015 $0.01486
Sonnet 5.5 $0.00007 $0.00743
Haiku 4.5 $0.00004 $0.00372

Measured 1mo ago against content hash 07f836c55b32, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

branch-finisher 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 1mo 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.

aria-plugin-benchmarks/ab-results/2026-10-22-branch-risk-build-gate/skill-snapshot/skills/branch-finisher/SKILL.md · 459 lines

How it starts

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

Branch Finisher (分支完成器)

版本: 1.0.0 | 十步循环: B.2 → C.1 更新: 2026-01-21 - 初始版本

快速开始

我应该使用这个 skill 吗?

场景 使用 branch-finisher?
完成分支开发,准备提交 ✅ 是
需要运行测试验证 ✅ 是
需要清理 worktree ✅ 是
刚开始开发 ❌ 否,使用 branch-manager
代码审查中 ❌ 否,使用 subagent-driver

不应该使用的场景

  • 分支刚创建 → 使用 branch-manager
  • 任务执行中 → 使用 subagent-driver
  • 需要创建 PR → 使用 branch-manager (C.2)

配置 (config-loader)

执行前读取 .aria/config.json,缺失则使用默认值。参见 config-loader。

字段 默认值 说明
benchmarks.require_before_merge true 合并前是否要求 AB 基准测试

核心功能

功能 说明
测试前置验证 确保所有测试通过后才能继续
4 选项完成流程 提供标准化的完成选项
Worktree 清理 智能决策是否清理 worktree
状态同步 与 subagent-driver 状态同步

执行流程

┌─────────────────────────────────────────────────────────────┐
│                  Branch Finisher 执行流程                    │
├─────────────────────────────────────────────────────────────┤
│                                                             │
│  1. 接收完成信号                                             │
│     ├─ 来自 subagent-driver (所有任务完成)                   │
│     └─ 来自用户手动触发                                      │
│                                                             │
│  2. 测试前置验证                                             │
│     ├─ 运行测试套件                                          │
│     ├─ 检查测试覆盖率                                        │
│     └─ 验证构建成功                                          │
│                                                             │
│  2.5 Skill 变更 AB 验证 (v1.7.0 新增)                        │
│     ├─ 检测分支 diff 中是否包含 SKILL.md 变更                 │
│     ├─ Zone 分类: 逻辑变更 vs 文档变更                        │
│     ├─ 检查 ab-results/ 中是否有新鲜 AB 结果                  │
│     └─ 缺失时: warn/block (由 config 控制)                    │
│     详见 references/ab-benchmark-gate.md                      │
│                                                             │
│  3. 变更摘要                                                 │
│     ├─ 收集所有变更文件                                      │
│     ├─ 统计代码行数变化                                      │
│     └─ 列出完成的任务                                        │
│                                                             │
│  4. 4 选项完成流程                                           │
│     ├─ [1] 提交并创建 PR                                    │
│     ├─ [2] 继续修改                                         │
│     ├─ [3] 放弃变更                                         │
│     └─ [4] 暂停保存                                         │
│                                                             │
│  5. Worktree 清理决策                                        │
│     ├─ 选项 1: 清理 worktree                                │
│     ├─ 选项 2: 保留 worktree                                │
│     └─ 选项 3: 稍后决定                                     │
│                                                             │
│  6. 执行选择的操作                                           │
│     └─ 调用相应的后续 skill                                  │
│                                                             │
└─────────────────────────────────────────────────────────────┘

Read the full file on GitHub · 459 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 459 lines · 37 tokens per session scan A 07f836c55b32

Subscribe to this mod's changes

branch-finisher is a skill published in the GitHub repository 10CG/Aria (2 stars, last pushed 18d ago), licensed MIT. It adds 37 tokens to every session and 3,716 once invoked, about $0.0001 per session on Opus 5.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-10-23.

Related

branch-finisher compared with skills from other repositories

branch-finisher next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
branch-finisher10CG/AriaSkill218d agoMITA37Claude Code
workflow-branch-synclugassawan/swe-workbenchSkill3yesterdayMITA55Claude Code
workflow-cleanup-mergedlugassawan/swe-workbenchSkill3yesterdayMITA47Claude Code
workflow-pr-reviewlugassawan/swe-workbenchSkill3yesterdayMITA106Claude Code
workflow-address-feedbacklugassawan/swe-workbenchSkill3yesterdayMITA85Claude Code
workflow-commit-and-prlugassawan/swe-workbenchSkill3yesterdayMITA68Claude Code
workflow-developmentlugassawan/swe-workbenchSkill3yesterdayMITA181Claude Code