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.
npx skills add tmchow/tmc-marketplace --skill git-worktreegit clone --depth 1 https://github.com/tmchow/tmc-marketplaceWrote 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/tmchow/tmc-marketplace/git-worktree)<a href="https://agentmods.dev/skills/tmchow/tmc-marketplace/git-worktree"><img src="https://agentmods.dev/badge/skills/tmchow/tmc-marketplace/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/tmchow/tmc-marketplace/git-worktree"><img src="https://agentmods.dev/badge/skills/tmchow/tmc-marketplace/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.00036 | $0.00435 |
| Opus 5.5 | $0.00014 | $0.00174 |
| Sonnet 5.5 | $0.00007 | $0.00087 |
| Haiku 4.5 | $0.00004 | $0.00044 |
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 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.
What it actually says
Git Worktree (Workspace Isolation)
Ensures agent has an isolated workspace to avoid conflicts with human work.
When Called
- At the start of
iterative:implementingskill - At the start of feature work requiring isolation from the current branch
- When workspace isolation is needed
- Not directly invocable by users
Workflow
- Sync with remote. Pull latest from default branch.
- Detect current state. Check if in worktree (
git rev-parse --git-dircontains/worktrees/), get current branch (git branch --show-current), get default branch (git remote show origin | grep "HEAD branch"). - Choose workspace based on current state:
- Already in worktree: confirm it's for this feature, then proceed
- On default branch: ask the user — A) Create worktree (recommended), B) Create branch, C) Continue on main (requires explicit consent)
- On feature branch: ask the user — A) Continue on this branch, B) Create new worktree
- Execute choice. If worktree:
git worktree add ../[repo]-[branch] -b [branch]. If new branch:git checkout -b [branch-name]. If continue: proceed. - Verify. Report: "Ready on branch [name] in [directory]"
Worktree Creation
When creating a worktree:
- Generate branch name from feature/task context
- Create worktree:
git worktree add ../[repo]-[branch] -b [branch] - Copy necessary files (.env, etc.) if they exist
- Verify worktree is functional
Output
Returns to calling skill:
- Branch name
- Directory path (if worktree created)
- Isolation status confirmed
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.
- 3mo ago First seen · 43 lines · 36 tokens per session scan A f38a7502ad89
git-worktree is a skill published in the GitHub repository tmchow/tmc-marketplace (22 stars, last pushed 8mo ago), licensed MIT. It adds 36 tokens to every session and 435 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.
git-worktree compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| git-worktreetmchow/tmc-marketplace | Skill | 22 | 8mo ago | MIT | A | 36 | Claude Code |
| merge-batchdiegosouzapw/OmniRoute | Skill | 91k | yesterday | MIT | A | 46 | Claude Code |
| prowler-commitprowler-cloud/prowler | Skill | 15k | 3d ago | Apache-2.0 | A | 44 | Claude Code, Codex |
| gh-auth-isolationgithub/gh-aw | Skill | 5.7k | today | MIT | A | 20 | Claude Code, Codex |
| comet-githubrpamis/comet | Skill | 3.3k | yesterday | MIT | A | 72 | Claude Code, Codex |
| github-skillzeenie-ai/OpenCompany | Skill | 1.1k | 4d ago | MIT | A | 51 | Claude Code |
| codex-autoresearchleo-lilinxiao/codex-autoresearch | Skill | 3.3k | 11d ago | MIT | A | 39 | Codex |