Use when checking out a PR, branch, or ref for local work - sets up worktree with context
Creates isolated git worktrees for PRs or branches, fetching details and presenting context for local review.
npx claudepluginhub technicalpickles/pickled-claude-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
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 processYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.