finish-branch
Use when implementation is done and tests pass, and you need merge, PR, or cleanup options.
- License 许可
- MIT
- 最近更新
- 2026-09-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- finish-branch
- description
- Use when implementation is done and tests pass, and you need merge, PR, or cleanup options.
03 SKILL.md 正文
Finish a development branch
- Verify — run the project test/build command (
verify-before-done). Stop if red. - Detect — git repo? GitHub remote?
ghauth? Current branch vsmain/master. - Offer options (do not push or open a PR unless the user asked):
- Merge locally to main
- Push and open a PR (
gh pr create) - Leave the branch; print the exact commands
- Execute the chosen option. Never force-push main. Never skip hooks unless asked.
- Cleanup only if the user wants the local branch deleted after merge.
If this is a prompt-enrich work session, keep the recap short.
04 同仓库更多 Skills
verify-before-done
Use before claiming work is complete, fixed, or passing, and before commit or PR. Run the proof command in this turn.
token-playbook
Token budget for Claude Code. Use when shrinking CLAUDE.md, choosing skills vs rules vs MCP, compressing tool output, or cutting always-on context.
test-writer
Write failing tests from a technical spec and public contracts only. Use in /dev-loop test-writer stage. Do not read implementation sources or write production code.
tdd
Use when implementing a feature or bugfix, before writing production code. Test first, watch it fail, then implement. Vertical slices at public seams.
systematic-debugging
Use when hitting a bug, test failure, or unexpected behavior, before proposing a fix. Find root cause first.
story-spec
Turn a Jira story into a technical spec via grill. Use in the spec stage of /dev-loop. Do not implement.