From git
Sets up isolated git worktree for PRs, branches, or refs with fetched details, context summary, files changed, and review status for local review.
How this skill is triggered — by the user, by Claude, or both
Slash command
/git:checkoutThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Check out a PR, branch, or ref into an isolated worktree with relevant context.
Check out a PR, branch, or ref into an isolated worktree with relevant context.
Announce: "Using git:checkout to set up a worktree for {target}..."
git:inbox when user picks a PRAccept:
https://github.com/{owner}/{repo}/pull/{number}{repo}#{number} or #{number} (infer repo from cwd){number} (infer owner/repo from git remote)feature/auth, main, etc.# Get owner/repo from current directory if needed
gh repo view --json owner,name -q '"\(.owner.login)/\(.name)"'
gh pr view {number} --json title,body,author,state,baseRefName,headRefName,url,reviews,reviewRequests
REQUIRED: Use superpowers:using-git-worktrees skill for directory selection.
# Fetch the PR branch
git fetch origin {headRefName}
# Create worktree
git worktree add .worktrees/pr-{number}-{short-desc} origin/{headRefName}
Naming: pr-{number}-{2-3-word-description} (e.g., pr-1234-add-oauth)
## PR #{number} Ready for Review
**Title:** {title}
**Author:** @{author}
**Branch:** {headRefName} → {baseRefName}
**URL:** {full_url}
### Summary
{1-3 sentence summary from PR body}
### Files Changed ({count})
{Grouped by directory}
### Review Status
{Existing reviews, requested reviewers}
---
**Worktree ready at:** `{full_path}`
# For existing branch
git worktree add .worktrees/{branch-slug} {branch}
# For new branch
git worktree add .worktrees/{branch-slug} -b {branch}
**Worktree ready at:** `{full_path}`
**Branch:** {branch}
| Input | Action |
|---|---|
| PR URL/number | Fetch PR, create worktree, show PR context |
| Branch name | Create worktree for branch |
| Ref/SHA | Create worktree at that ref |
| Mistake | Fix |
|---|---|
| Creating worktree before fetching PR branch | Always git fetch first |
| Generic worktree name | Include PR number AND short description |
| Missing PR context | Always summarize PR and show review status |
superpowers:using-git-worktrees - Handles directory selection and verificationgit:inbox - Discover PRs needing reviewcode-review - Guide the actual review processnpx claudepluginhub technicalpickles/pickled-claude-plugins --plugin gitManages Git branch strategy, worktrees, commits, PR preparation, merge/rebase decisions, conflict resolution, tagging, and release notes. Validates state before making changes.
Manages Git worktrees for parallel development: create from main with .env copying, list status, switch, cleanup interactively via bash script.
Creates isolated git worktrees for branch work, auto-installs dependencies, verifies baselines, and handles branch finishing with clean isolation.