Wrap Branch — Git skill for Claude Code
/wrap-branch — Finish a development branch.
How to install Wrap Branch
Installs to ~/.claude/commands/nygenome-lancet2-wrap-branch.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/nygenome/Lancet2/HEAD/.claude/commands/wrap-branch.md -o ~/.claude/commands/nygenome-lancet2-wrap-branch.md Restart Claude Code, or start a new session, for it to be picked up.
What Wrap Branch does
/wrap-branch — Finish a development branch
Drive the cleanup workflow at the end of feature work. Runs a pre-check, then asks the user how to finalize the branch — merge locally, open a PR, keep the branch for later, or discard. Handles worktree cleanup based on the choice.
Why this command exists
The end-of-branch workflow has four reasonable paths and each has its own steps (merge command, push + PR, cleanup vs no-cleanup of worktrees). Doing it manually means recalling the right git i
Alternatives in Git
- Skill Development Guide — Community Examples 81.1k ★
- Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
- Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Claude Phantom
Autonomous crash recovery for your terminal: wrap a command; on crash, headless Claude Code diagnoses, tests,
Wrap Up
Full session closeout in one pass - reflect, then notes, then the git sync ritual, ending with the work pushed
Finish PR
Post-merge cleanup -- verify merge state, sync dev, delete branch, close issue
Superpowers Redirect
Use when user types /brainstorming, /writing-plans, /subagent-dev, /tdd-loop, /systematic-debugging, /using-wo
J Create PR
Automate PR workflow — stage, commit, branch, push, and open a GitHub PR. Use when ready to submit changes for
3.4 Workspace Finish
Avslutt workspace — commit-sjekk, merge til feature, rydd opp worktree og branch.
Related Agents
Session Wrap
Wrap up a development session by ensuring all documentation is current. Updates the development journal, check
Git Workflow Specialist
Use this agent for git workflow management, branch strategies, commit hygiene, and git worktree operations. Th
Waves Executor
Executes one written waves plan to a green branch in its own worktree, via superpowers:subagent-driven-develop