git-worktrees

git-worktrees is a skill for Claude Code from bostonaholic/rpikit. It costs 37 tokens per session (1,935 once invoked), scanned A, original, MIT.

A Git worktree guide for creating separate folders connected to one Git repository, so different branches can be worked on at the same time.

In plain words
What is it for?
Use it when starting isolated feature work, testing changes separately, reviewing pull requests, or running long tasks alongside other work.
Why use it?
It keeps parallel or experimental changes isolated from the current workspace and avoids repeated stashing or branch switching.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the rpikit plugin — 16 skills, 7 agents shipped together

Good fit Use it when starting isolated feature work, testing changes separately, reviewing pull requests, or running long tasks alongside other work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bostonaholic/rpikit/git-worktrees
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bostonaholic/rpikit --skill git-worktrees
Clone the repo
git clone --depth 1 https://github.com/bostonaholic/rpikit

Made for: Claude Code.

Or install rpikit, the plugin that ships this one along with the rest of its 16 skills, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-worktrees

README.md
[![agentmods](https://agentmods.dev/badge/skills/bostonaholic/rpikit/git-worktrees/github.svg)](https://agentmods.dev/skills/bostonaholic/rpikit/git-worktrees)
Your own site
<a href="https://agentmods.dev/skills/bostonaholic/rpikit/git-worktrees"><img src="https://agentmods.dev/badge/skills/bostonaholic/rpikit/git-worktrees/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-worktrees

Your own site · 80×15
<a href="https://agentmods.dev/skills/bostonaholic/rpikit/git-worktrees"><img src="https://agentmods.dev/badge/skills/bostonaholic/rpikit/git-worktrees.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,935 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01935
Opus 5.5 $0.00015 $0.00774
Sonnet 5.5 $0.00007 $0.00387
Haiku 4.5 $0.00004 $0.00194

Measured 3mo ago against content hash 9b4ce300d475, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-worktrees scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/git-worktrees/SKILL.md · 362 lines

How it starts

The opening of the file, as written. The whole thing — 362 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git Worktrees

Create isolated workspaces for parallel development without disrupting current work.

Purpose

Git worktrees allow multiple branches to be checked out simultaneously in separate directories. This enables parallel work without stashing, context switching, or polluting the main workspace. This skill provides structured worktree creation with safety verification.

Integration

Called by

  • implementing-plans - Offers worktree isolation before implementation
  • User directly via /rpikit:git-worktrees

Pairs with

  • finishing-work - Handles worktree cleanup after implementation
  • writing-plans - Plans may specify worktree isolation for high-stakes changes

When to Use

Use worktrees when:

  • Starting feature work that shouldn't affect main workspace
  • Working on multiple features in parallel
  • Testing changes in isolation
  • Running long processes while continuing other work
  • Reviewing PRs without disrupting current work

Skip worktrees when:

  • Quick single-file fixes
  • Changes that don't need isolation
  • The main workspace is already clean

Directory Selection Priority

When creating worktrees, check these locations in order:

1. Check for Existing Worktree Directory

Look for:
- .worktrees/ (hidden, preferred)
- worktrees/ (visible)

If both exist, prefer .worktrees/

2. Check Project Configuration

Look in CLAUDE.md or project documentation for:
- Stated worktree location preference
- Project-specific conventions

3. Ask the User

If no preference found:

"Where should worktrees be created?"
- .worktrees/ (project-local, recommended, must be in .gitignore)
- worktrees/ (project-local, visible, must be in .gitignore)
- External location (e.g., ~/worktrees/project-name/)

Safety Verification

Critical for project-local worktrees:

Before creating a worktree in .worktrees/ or worktrees/, verify the specific directory you're using is ignored:

# For .worktrees/ (check returns 0 if ignored)
git check-ignore -q .worktrees

# For worktrees/ (check returns 0 if ignored)
git check-ignore -q worktrees

Read the full file on GitHub · 362 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 362 lines · 37 tokens per session scan A 9b4ce300d475

Subscribe to this mod's changes

git-worktrees is a skill published in the GitHub repository bostonaholic/rpikit (19 stars, last pushed 26d ago), licensed MIT. It adds 37 tokens to every session and 1,935 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

git-worktrees compared with skills from other repositories

git-worktrees next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-worktreesbostonaholic/rpikitSkill1926d agoMITA37Claude Code
implementArindam200/awesome-ai-appsSkill17kyesterdayMITA197Claude Code
resolve-handoffomnigent-ai/omnigentSkill12ktodayApache-2.0A23Claude Code, Codex
resolve-publishomnigent-ai/omnigentSkill12ktodayApache-2.0A21Claude Code, Codex
configure-workspaceshumanlayer/humanlayerSkill13kyesterdayApache-2.0A29Claude Code
otto-pr-review-loopomnigent-ai/omnigentSkill12ktodayApache-2.0A17Claude Code, Codex
resolve-drive-promnigent-ai/omnigentSkill12ktodayApache-2.0A21Claude Code, Codex