Checkout Branch — Git skill for Claude Code
Switch to an existing branch by checking out its worktree, or creating one if needed.
How to install Checkout Branch
Installs to ~/.claude/commands/kortix-ai-kortix-ace-checkout-branch.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/kortix-ai/kortix-ace/HEAD/.claude/commands/checkout-branch.md -o ~/.claude/commands/kortix-ai-kortix-ace-checkout-branch.md Restart Claude Code, or start a new session, for it to be picked up.
What Checkout Branch does
Switch to an existing branch by checking out its worktree, or creating one if needed.
**Arguments:** $ARGUMENTS should be the branch name (full or partial match)
**Examples:**
/checkout-branch feature/john/add-caching→ switch to branch (create worktree if needed)/checkout-branch add-caching→ partial match, resolve to full branch name/checkout-branch fix→ if multiple matches, list them and ask to be specific
**Steps:**
- Parse branch name from arguments
- Fetch latest from r
Alternatives in Git
- Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
- Local Review — You are tasked with setting up a local review environment for a colleague's branch 10k ★
- 40+ Claude Code Tips — Tips for getting the most out of Claude Code, including a custom status line script, cutting the system prompt 5.8k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
n8n Checkout
Switch tracking context to a workflow branch
Hybrid Worktree
Start a new task in an isolated Git worktree with Hybrid Ralph PRD mode. Creates worktree, branch, loads exist
Prc
Ensure an open PR exists for the current branch (create it if needed, idempotent if one already exists), print
Agents Close Gitworktree
You are closing out a git worktree after completing (or abandoning) work. This command updates the tracking re
Worktree Done
Close Out a Git Worktree Safely
Hub Fanout
Fan out N GitHub issues into N worktree-bound tasks + a parallel Agent dispatch directive.
Related Agents
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes
Research Locator
Discovers relevant documents in rpi/ directory (We use this for all sorts of metadata storage!). This is reall
Codebase Research Locator
Discovers relevant documents in research/ directory (We use this for all sorts of metadata storage!). This is