Branch completion
Skill jagreehal/jagreehal-claude-skills/skills/branch-completion
Guides completion of development work by verifying tests, presenting merge/PR/keep/discard options, and executing cleanup. Use this skill when implementation is complete and tests pass, when wrapping up a feature branch, or when deciding how to land or discard work. Do not use when/for mid-implementation commits, opening a PR before verification-before-completion, or starting work (use git-worktrees).From its SKILL.md
npx -y skills add jagreehal/jagreehal-claude-skills --skill branch-completionAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.9 KB, as published. Nobody here has run it
Branch Completion
Critical rules
- No completion options while tests fail. Tests are the gate.
- Present exactly four options: merge locally, open PR, keep as-is, discard.
- Never delete work without exact typed confirmation (
discard). - Never force-push without an explicit request.
- Option 1: re-test after merge. Option 3: keep the worktree.
- Before executing a choice, read references/options.md.
Workflow
- Run the project test suite. On failure: show failures, stop — do not present options.
- Present the four structured options (see options reference).
- Execute the chosen option per the reference (merge / PR / keep / discard).
- Cleanup: remove worktree for options 1 and 4; keep for 2 and 3. Option 2 keeps worktree for PR iteration.
Resources
- references/options.md — option commands, cleanup table, presentation template. Read before executing a choice.
Validation
Before options:
- Suite run and passing
After choice:
- Option 1: merged result re-tested; branch and worktree removed
- Option 2: pushed, PR created, URL reported, worktree kept
- Option 3: branch and worktree preserved, location reported
- Option 4: exact
discardconfirmation before deletion; worktree removed
Constraints
- Not for mid-implementation or unverified work.
- Related:
verification-before-completion,git-worktrees,implementation-planning.