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 ★
- Maestro Merge — Merge session worktree branch back to main 530 ★
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
Create Branch
Create and checkout a new git branch with smart validation and GitHub issue integration
PR Merged
Post-merge cleanup — checkout main, pull latest, delete the feature branch, and close the linked work item.
Agents Close Gitworktree
You are closing out a git worktree after completing (or abandoning) work. This command updates the tracking re
Related Agents
Lane Manager
Starts, resumes, parks and finishes lanes (branch + worktree + registry file) in the control plane. Use when t
Duel Fix Builder
Use when one established cause of a defect has a failing repro test and needs the smallest fix that makes that
Branch Janitor
Post-merge cleanup agent — after the human confirms a PR/branch merge, removes stale agent worktrees, deletes