10cg/aria-plugin/branch-finisher
Claude Code and agent skill by 10cg/aria-plugin
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
分支开发完成后的收尾工作执行器,负责测试验证、worktree 清理。 使用场景:分支开发完成后的收尾工作
Install
npx vskill@latest install 10cg/aria-plugin/branch-finisherSKILL.md
The same SKILL.md was published earlier as 10cg/aria-plugin/branch-finisher.
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 状态同步 |
执行流程
测试前置验证
验证项目
| 验证项 | 说明 | 阻塞级别 | |
|---|---|---|---|
| 单元测试 | 所有单元测试通过 | 阻塞 | |
| 集成测试 | 集成测试通过 (如有) | 阻塞 | |
| 类型检查 | TypeScript/mypy 等类型检查 | 阻塞 | |
| Lint 检查 | ESLint/Pylint 等代码检查 | 警告 | |
| 构建验证 | 跟随 phase_b_developer.framework_build_check (见下; 10CG/Aria#231) | 三态 (config 决定) | |
| 覆盖率检查 | 测试覆盖率达标 (可选) | 警告 | |
| Skill AB 验证 | SKILL.md 逻辑变更需要 AB 测试结果 (详见) | 可配置 (warn/block) |
构建验证三态 — 本项不设无条件阻塞; 行为由 config-loader 的 phase_b_developer.framework_build_check 决定 (Aria #95 开关; 构建归属 CI 的项目本机不跑构建):
phase_b_developer.framework_build_check | 行为 | |
|---|---|---|
enabled: false (默认) | 跳过 — 非阻塞; 输出 build: skipped (framework_build_check disabled) 并注明构建归属 (CI / 未配置) | |
enabled: true, mode: advisory | 执行 command; 失败 → 警告 (可继续) | |
enabled: true, mode: blocking | 执行 command; 失败 → 阻塞 |
验证流程
验证输出
4 选项完成流程
选项定义
交互示例
Worktree 清理决策
清理时机
| 选项 | 清理 Worktree? | 原因 | |
|---|---|---|---|
| [1] 提交并创建 PR | ✅ 是 (默认) | 开发完成,不再需要 | |
| [2] 继续修改 | ❌ 否 | 还需要继续开发 | |
| [3] 放弃变更 | ✅ 是 | 变更已撤销 | |
| [4] 暂停保存 | ❌ 否 | 稍后可能恢复 |
清理流程
清理选项
输入参数
| 参数 | 必需 | 说明 | 示例 | |
|---|---|---|---|---|
branch_name | ✅ | 分支名 | feature/backend/TASK-001-user-auth | |
session_id | ❌ | subagent-driver 会话 ID | sess-20260121-001 | |
worktree_path | ❌ | worktree 路径 (如适用) | .git/worktrees/TASK-001 | |
skip_tests | ❌ | 跳过测试验证 (不推荐) | false | |
auto_cleanup | ❌ | 自动清理 worktree | false |
输出
与其他 Skills 集成
与 subagent-driver 集成
与 branch-manager 集成
与 tdd-enforcer 集成
Red Flags
使用 branch-finisher 的危险信号
| 场景 | 为什么危险 | 正确做法 | |
|---|---|---|---|
| 跳过测试验证 | 可能提交有 bug 的代码 | 始终运行测试 | |
| 测试失败仍提交 | 破坏主分支稳定性 | 修复测试后再提交 | |
| 不清理 worktree | 磁盘空间浪费 | 完成后清理 | |
| 放弃大量变更 | 工作丢失 | 确认前仔细检查 |
职责边界
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/branch-finisher/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/10cg/aria-plugin/branch-finisher)