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 iliaal/whetstone --skill ia-git-worktreegit clone --depth 1 https://github.com/iliaal/whetstoneWrote 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/iliaal/whetstone/ia-git-worktree)<a href="https://agentmods.dev/skills/iliaal/whetstone/ia-git-worktree"><img src="https://agentmods.dev/badge/skills/iliaal/whetstone/ia-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/iliaal/whetstone/ia-git-worktree"><img src="https://agentmods.dev/badge/skills/iliaal/whetstone/ia-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.00042 | $0.02149 |
| Opus 5.5 | $0.00017 | $0.00860 |
| Sonnet 5.5 | $0.00008 | $0.00430 |
| Haiku 4.5 | $0.00004 | $0.00215 |
Grade A, and why
ia-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 yesterday.
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 — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Git worktree manager
GATE: If the task runs inside an existing worktree (a worktree path is given and no create/remove/switch is requested), none of the creation flow applies: work in place and skip this skill. To check: git rev-parse --show-toplevel appears as a linked entry in git worktree list.
Working rules
- Preserve other sessions' branches, files, and staged work (see Ownership).
- Verify dependencies resolve first-party code from the intended worktree.
- Keep merge, push, and cleanup within user authorization; report the exact exercised checkout and resulting commit.
Create worktrees with this procedure
Create every worktree with the steps below, not an ad hoc git worktree add. Record each tree this session creates; only those trees are this session's to clean up.
-
Choose the path. Use
.worktrees/<name>under the main checkout. Confirm it is ignored:git check-ignore -q -- .worktrees/<name>. If it is not, append.worktrees/to$(git rev-parse --git-path info/exclude)(never the tracked.gitignore) and re-check. If a project rule still keeps it visible, stop and report the conflict. See hooks-and-excludes.md. -
Resolve the base to a commit without touching the caller's checkout. Fetch into a private ref, pin its SHA, then remove the ref:
fetch_ref="refs/whetstone/fetch/$(date +%s)-$$" if GIT_TERMINAL_PROMPT=0 git fetch --no-tags --refmap= origin "<base>:$fetch_ref"; then base_sha=$(git rev-parse --verify "$fetch_ref^{commit}") else base_sha=$(git rev-parse --verify "<base>^{commit}") fi git update-ref -d "$fetch_ref"Never check out
<base>in the caller's working tree, and do not rely onorigin/<base>orFETCH_HEAD, which other checkouts can move. To carry unpushed local commits on<base>into the branch, branch from the local ref deliberately and say so. -
Create the tree:
git worktree add -b <branch> .worktrees/<name> "$base_sha", then verifygit -C .worktrees/<name> rev-parse HEADequals$base_sha. For an untrusted base (PR heads, fork or origin-only branches, third-party code), rungit -c core.hooksPath=/dev/null worktree add ...so checkout hooks do not run. -
Environment files (trusted bases only). Copy
.env,.env.local,.env.test, and similar files from the main checkout only when the base is the default branch or a local branch that already contains the fetched commit. Never overwrite or follow an existing file or symlink in the new tree (cp -n, after checking withtest -L). Never copy them into an untrusted tree. -
Dependencies. For trusted bases, install what the project declares:
package.json→npm install,composer.json→composer install,pyproject.toml→pip install -e .,go.mod→go mod download. For untrusted bases, skip installs where possible; if one is necessary, disable lifecycle scripts and plugins (npm ci --ignore-scripts,composer install --no-scripts --no-plugins), and do not runpip install -e ., which runs the build backend. Keep credentials out of commands run in that tree.
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.
- yesterday Changed · -11 lines b2487043a6fe
- 1mo ago Changed 77b2c21faf27
- 1mo ago Changed · +2 lines d29bff181abf
- 1mo ago Changed · +1 lines 5846ed556934
- 2mo ago Changed · -1 lines fd2307cab5b4
- 2mo ago Changed 2bdedd9c91c3
- 2mo ago Changed 37a2040337f6
- 2mo ago Changed · -35 lines 9d11243e4761
- 2mo ago First seen · 138 lines · 42 tokens per session scan A e43fc08c5675
ia-git-worktree is a skill published in the GitHub repository iliaal/whetstone (37 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 2,149 once invoked, about $0.0002 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-09-07.
ia-git-worktree compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ia-git-worktreeiliaal/whetstone | Skill | 37 | today | MIT | A | 42 | Claude Code |
| pr-sweepharnessprotocol/harness-kit | Skill | 13 | yesterday | Apache-2.0 | A | 115 | Claude Code |
| open-prharnessprotocol/harness-kit | Skill | 13 | yesterday | Apache-2.0 | A | 111 | Claude Code |
| avi-pr-flowavi1234/claude-team-plugins | Skill | 5 | 9mo ago | MIT | A | 15 | Claude Code |
| release-pr-reviewcyanheads/obsidian-mcp-server | Skill | 721 | 19d ago | Apache-2.0 | A | 136 | Claude Code |
| pr-threads-addressposit-dev/skills | Skill | 576 | 17d ago | MIT | A | 48 | Claude Code |
| OCR Review-to-Approval Loopspencermarx/open-code-review | Skill | 395 | 19d ago | Apache-2.0 | A | 213 | Claude Code |