Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/siva01c/claude-pluginsnpx agentmods add skills/siva01c/claude-plugins/git-worktreeWrote 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.
[](https://agentmods.dev/skills/siva01c/claude-plugins/git-worktree)<a href="https://agentmods.dev/skills/siva01c/claude-plugins/git-worktree"><img src="https://agentmods.dev/badge/skills/siva01c/claude-plugins/git-worktree/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.
<a href="https://agentmods.dev/skills/siva01c/claude-plugins/git-worktree"><img src="https://agentmods.dev/badge/skills/siva01c/claude-plugins/git-worktree.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00132 | $0.01297 |
| Opus 5.5 | $0.00053 | $0.00519 |
| Sonnet 5.5 | $0.00026 | $0.00259 |
| Haiku 4.5 | $0.00013 | $0.00130 |
Grade A, and why
git-worktree 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Git Worktree Skill
Git worktrees let you check out multiple branches of the same repository into
separate directories simultaneously. Each directory is a fully independent
working tree — its own HEAD, index, and files — but all share the same .git
history and objects, so they stay lightweight.
Use this skill to give each agent or parallel task its own isolated workspace.
When to reach for worktrees
- Two or more agents might edit the same files simultaneously
- A task should not disturb the current branch's working state
- You need a throwaway sandbox that can be discarded cleanly if things go wrong
- The user asks to work on multiple features or fixes in parallel
- You want to run tests on one branch while editing another
Core commands
Create a worktree
# New branch from current HEAD
git worktree add ../my-task -b my-task-branch
# From a specific commit or existing branch
git worktree add ../hotfix -b hotfix origin/main
# Detached HEAD (no branch)
git worktree add --detach ../scratch HEAD
# Empty worktree on an unborn branch (blank slate)
git worktree add --orphan ../experiment -b experiment
The new directory is ready to use immediately. cd into it and work normally.
List all worktrees
git worktree list
# /path/to/main abc1234 [main]
# /path/to/my-task def5678 [my-task-branch]
Remove a worktree when done
# Clean remove (fails if the worktree has uncommitted changes)
git worktree remove ../my-task
# Force remove (discard dirty worktree)
git worktree remove --force ../my-task
# If you deleted the directory manually, clean up the metadata
git worktree prune
Move a worktree
git worktree move ../my-task ../new-location
Lock / unlock (for portable drives or network shares)
git worktree lock ../my-task --reason "on external drive"
git worktree unlock ../my-task
Repair after a manual move
# Run inside the moved worktree
git worktree repair
# Or from main, pointing at each moved worktree
git worktree repair ../new-location-1 ../new-location-2
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.
- 1mo ago First seen · 177 lines · 132 tokens per session scan A 2d2cc75e0ee6
git-worktree is a skill published in the GitHub repository siva01c/claude-plugins (16 stars, last pushed 22d ago), licensed MIT. It adds 132 tokens to every session and 1,297 once invoked, about $0.0005 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.
Other skills, from other repositories
openspec-archive-change
Archive a completed OpenSpec change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete. Also use when the user says "openspec archive" or "opsx archive".
bump-version
Automate version bumping following semantic versioning and changelog management. Use when the user wants to bump a version, create a release, update the changelog, or tag a new version in a project using semver conventions and Keep a Changelog format.
commit
Create a git commit with clear, conventional commit messages. You MUST read this when the user wants to commit staged changes, write a commit message, or finalize code changes with proper conventional commit format since it describes how to follow the user's specific requirements.
app-release
Automates the release process for Skill Lake app, including version bumping, building, packaging, and publishing to GitHub and Homebrew.
changelog-generator
Convierte un git log, lista de commits o notas de lanzamiento en un changelog pulido orientado al usuario. Usa cuando estés escribiendo notas de versión, generando una entrada en CHANGELOG.md o documentando qué cambió en una versión. Produce una sección de changelog estructurada con encabezado de versión, cambios…
pr-description-writer
Redacta una descripción de pull request clara y estructurada a partir de un diff de git, resumen de rama o lista de commits. Úsalo cuando te pidan escribir una descripción de PR, redactar una solicitud de cambios o documentar cambios de código. Produce una descripción con resumen, motivación, cambios realizados, pasos…