agentsclimarketplace

Checkout

Skill technicalpickles/pickled-claude-plugins/plugins/git/skills/checkout

Personal collection of Claude Code skills for development workflows

Install
npx -y skills add technicalpickles/pickled-claude-plugins --skill checkout

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 10 stars10 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when checking out a PR, branch, or ref for local work - sets up worktree with context

SKILL.md

2.7 KB, as published. Nobody here has run it

Git Checkout

Overview

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}..."

When to Use

  • User wants to review a PR locally
  • User wants to work on a specific branch in isolation
  • User provides PR URL/number or branch name
  • Following git:inbox when user picks a PR

Input Formats

Accept:

  • Full PR URL: https://github.com/{owner}/{repo}/pull/{number}
  • Short PR: {repo}#{number} or #{number} (infer repo from cwd)
  • PR number only: {number} (infer owner/repo from git remote)
  • Branch name: feature/auth, main, etc.
  • Ref: commit SHA, tag

Workflow

For PRs

1. Parse PR Reference

# Get owner/repo from current directory if needed
gh repo view --json owner,name -q '"\(.owner.login)/\(.name)"'

2. Fetch PR Details

gh pr view {number} --json title,body,author,state,baseRefName,headRefName,url,reviews,reviewRequests

3. Set Up Worktree

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)

4. Present Context

## 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 Branches

1. Create Worktree

# For existing branch
git worktree add .worktrees/{branch-slug} {branch}

# For new branch
git worktree add .worktrees/{branch-slug} -b {branch}

2. Report Ready

**Worktree ready at:** `{full_path}`
**Branch:** {branch}

Quick Reference

InputAction
PR URL/numberFetch PR, create worktree, show PR context
Branch nameCreate worktree for branch
Ref/SHACreate worktree at that ref

Common Mistakes

MistakeFix
Creating worktree before fetching PR branchAlways git fetch first
Generic worktree nameInclude PR number AND short description
Missing PR contextAlways summarize PR and show review status

Related

  • superpowers:using-git-worktrees - Handles directory selection and verification
  • git:inbox - Discover PRs needing review
  • code-review - Guide the actual review process

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.