CloseBranch banner
keithdv keithdv

CloseBranch

Git community

Description

--- name: closeBranch description: Close out a branch after its PR is merged/closed - switches to the PR's base branch (main, or the todo's arc branch), pulls latest, deletes local and remote branch argument-hint: "" allowed-tools: ["Bash"] --- Clean up after a merged or closed PR by switching to the branch the PR targeted and deleting the branch. Under the iterative-todo branch model a plan or punchlist branch PRs into the todo's **arc branch** (`{id}-arc` — e.g. `lcr-rewrite`), and the arc P

Installation

Installs to ~/.claude/skills/keithdv-claudeskills-closebranch/SKILL.md

Terminal
mkdir -p ~/.claude/skills/keithdv-claudeskills-closebranch && curl -fsSL https://raw.githubusercontent.com/keithdv/ClaudeSkills/HEAD/commands/closeBranch.md -o ~/.claude/skills/keithdv-claudeskills-closebranch/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository