Borrowing it
Nothing to install: this file belongs to physics91/openrouter-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/physics91/openrouter-mcp/main/.agents/skills/git-worktree/SKILL.mdgit clone --depth 1 https://github.com/physics91/openrouter-mcpWrote 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/physics91/openrouter-mcp/git-worktree)<a href="https://agentmods.dev/skills/physics91/openrouter-mcp/git-worktree"><img src="https://agentmods.dev/badge/skills/physics91/openrouter-mcp/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/physics91/openrouter-mcp/git-worktree"><img src="https://agentmods.dev/badge/skills/physics91/openrouter-mcp/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.00103 | $0.00703 |
| Opus 5.5 | $0.00041 | $0.00281 |
| Sonnet 5.5 | $0.00021 | $0.00141 |
| Haiku 4.5 | $0.00010 | $0.00070 |
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 2mo 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 — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Git Worktree
Overview
Use this skill to operate multiple branches from one repository safely. Default to safe workflows first, then use force/override options only for recovery.
Additional Task Policy
If new tasks are added while current changes are still active, default to creating a new linked worktree instead of switching the current working directory. Use branch switching in the same directory only when the user explicitly requests single-worktree mode.
Workflow Decision
- Need a new parallel branch workspace: use
git worktree addwith-b. - Need to work on an existing branch in another directory: use
git worktree add <path> <branch>. - Need temporary checkout not tied to a branch (review/test): use detached mode.
- Need to clean up or recover broken metadata: use
remove,prune,repair,lockrunbook.
For exact commands, read command-patterns.md.
Safety Rules
- Treat
one active branch = one active worktreeas the default rule. - Do not use
--ignore-other-worktreesunless there is a clear recovery need. - Do not delete worktree directories manually if
git worktree removeis possible. - When the worktree path is on removable/network storage, lock it.
- For scripts, never assume
.gitlayout; resolve paths viagit rev-parse.
Standard Runbook
- Create: add worktree with explicit branch/start-point.
- Verify: check
git worktree list --porcelainand branch linkage. - Work: commit/push from the linked directory.
- Close: remove linked worktree with
git worktree remove. - Maintenance: prune stale metadata and review prune policy.
Recovery Runbook
- Branch already checked out elsewhere:
- Find owner worktree.
- Prefer switching to that directory or creating a new branch.
- Use override flags only if policy allows it.
- Worktree path moved/deleted manually:
- Run
git worktree repairandgit worktree prune.
- Run
- Locked/prunable confusion:
- Inspect lock status and reason, then unlock intentionally.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago First seen · 59 lines · 103 tokens per session scan A 59446af9bf6d
git-worktree is a skill published in the GitHub repository physics91/openrouter-mcp (10 stars, last pushed 1mo ago), licensed MIT. It adds 103 tokens to every session and 703 once invoked, about $0.0004 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-31.
git-worktree compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| git-worktreephysics91/openrouter-mcp | Skill | 10 | 1mo ago | MIT | A | 103 | Codex |
| merge-batchdiegosouzapw/OmniRoute | Skill | 83k | 5d ago | MIT | A | 46 | Claude Code |
| prowler-commitprowler-cloud/prowler | Skill | 15k | yesterday | Apache-2.0 | A | 44 | Claude Code, Codex |
| gh-auth-isolationgithub/gh-aw | Skill | 5.6k | yesterday | MIT | A | 20 | Claude Code, Codex |
| github-skillzeenie-ai/OpenCompany | Skill | 1.1k | yesterday | MIT | A | 51 | Claude Code |
| comet-githubrpamis/comet | Skill | 3.3k | yesterday | MIT | A | 72 | Claude Code, Codex |
| release-helperSahir619/fable-method | Skill | 2.3k | 1mo ago | MIT | A | 43 | Claude Code |