/git:git-worktreesfrom git
Creates and removes git worktrees, branching from origin/default and cleaning up after PR merge. Handles sandbox path denials and unmerged branch errors.
Ships in git. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use whichever worktree tool the user prefers. If none is stated and wt (worktrunk) is on PATH, lean toward it: it has non-interactive flags and lifecycle hooks the others lack.
Branch from origin/<default>, not local main. When local main is ahead of origin, the first push drags unpushed commits into the PR.
git worktree add -b <branch> <path> origin/<default>wt switch --create <branch> --base origin/<default> --yes --no-cd --format=json, then cd to .path. A trailing "has no upstream information" error after creation is harmless; check git worktree list before retrying.EnterWorktree: it already branches from origin/<default>, so check git log origin/main..main for local-only commits first. Its guard rejects &&, $(...) and multi-line commands.Once a worktree's PR merges, remove it in the same session without asking, and report it as done. Cleanup is not a step to hand back to the user.
git fetch first. After a squash-merge, stale refs make removal tools think the branch is unmerged.cd out of the worktree before removing it.-f or -D.By tool:
git worktree remove <path>, then git branch -d <branch> if the branch isn't needed.wt remove <branch> -y. It keeps an unmerged branch on its own.EnterWorktree: ExitWorktree with the remove action.Under the command sandbox, Operation not permitted in a worktree is usually the path denylist (.claude/agents/*, .claude/commands/*, .mcp.json, .git/hooks/*, rc files), not the worktree location. If creating one fails that way partway through, the branch may already exist; retry without creating it (wt switch <branch>, or git worktree add <path> <branch>) unsandboxed.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub technicalpickles/pickled-claude-plugins --plugin git9 skills in this plugin
/checkoutUse when checking out a PR, branch, or ref for local work - sets up worktree with context/commitUse when committing changes to git - provides best practices for staging, commit messages, signing, and handling hook failures/inboxUse when checking what PRs are waiting for your review, or when starting your day to see what needs attention/pull-feedbackUse when the user has authored a GitHub pull request and wants to work through review feedback on it. Triggers on phrases like "pull down the review on #N", "address the feedback", "what did @reviewer say on my PR", "let's work through the comments", or any request to triage, respond to, or systematically handle review threads on the user's own PR. Do NOT use for reviewing someone else's PR, authoring PR content or replies, or checking which PRs are waiting on the user for review./pull-requestInvoke this skill BEFORE running any gh pr create, gh pr edit, or gh pr comment command, or any task that will produce or modify a GitHub pull request. This is the skill for authoring outbound PR communication: creating, drafting, opening, filing, or starting a PR; updating a PR body or description; posting a comment or reply to review feedback. Trigger on short and casual phrasings, not only the literal word "create". Example triggers: "create a PR", "draft a PR", "open a PR", "file a PR", "push and PR it", "push up a draft PR", "PR this branch", "PR it", "time to PR this", "let's start a PR", "commit these and push a PR", "update the PR body", "rewrite the PR description", "comment on the PR", "reply to the review comments", "reply to copilot". Do NOT use for reviewing someone else's PR, merging, checking CI/build status, listing review requests, checking out PRs locally, or cleaning up merged branches. Those are separate skills./pushUse when running git push or diagnosing why a push failed. Especially when output mixes SSH transport with hook output (lefthook, husky, pre-commit), errors include "Permission denied (publickey)" or "rejected/non-fast-forward", a pre-push hook fails, or about to debug SSH with `-v`.Other plugins' skills for the same job