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 Arasz/ai-raccoon --skill ai-badger-worktree-pitfallsgit clone --depth 1 https://github.com/Arasz/ai-raccoonWrote 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/arasz/ai-raccoon/ai-badger-worktree-pitfalls)<a href="https://agentmods.dev/skills/arasz/ai-raccoon/ai-badger-worktree-pitfalls"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/ai-badger-worktree-pitfalls/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/arasz/ai-raccoon/ai-badger-worktree-pitfalls"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/ai-badger-worktree-pitfalls.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.00022 | $0.00295 |
| Opus 5.5 | $0.00009 | $0.00118 |
| Sonnet 5.5 | $0.00004 | $0.00059 |
| Haiku 4.5 | $0.00002 | $0.00030 |
Grade A, and why
ai-badger-worktree-pitfalls 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.
What it actually says
ai-badger worktree pitfalls
scaffold-freshness-guard undoes hand-edits
The scaffold-freshness-guard pre-commit hook compares the working tree against a fresh scaffold. When a prior PR deleted files your branch re-adds, the guard sees them as drift, runs scaffold, and deletes new files + reverts patches
to regenerated files.
Fix: commit with --no-verify, then re-scaffold separately.
git add <files> && git commit --no-verify -m "feat: ..." && git push --no-verify ...
amend after re-scaffold picks wrong parent
Never git commit --amend after a re-scaffold. The amended commit can merge your feature into the wrong parent with the wrong message.
orchestrator's work belongs in the worktree
The task skill creates a worktree — use it for ALL work. Working directly on main (branch-switching in-place) has no isolation from scaffold reverts.
What ships with it
1 file 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 First seen · 34 lines · 22 tokens per session scan A 6333e7939418
ai-badger-worktree-pitfalls is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 295 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-12-05.
ai-badger-worktree-pitfalls compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ai-badger-worktree-pitfallsArasz/ai-raccoon | Skill | 7 | today | MIT | A | 22 | Claude Code, Codex |
| cartographer-kb-conflict-resolveBeppeTemp/cartographer | Skill | 74 | yesterday | Apache-2.0 | A | 24 | Claude Code, Codex |
| shipariaxhan/kernel-claude | Skill | 16 | yesterday | MIT | A | 46 | Claude Code |
| githubGen-Verse/PAST-Bench | Skill | 40 | 4mo ago | Apache-2.0 | A | 44 | Claude Code, Codex |
| github-proxyvolcengine/OpenViking | Skill | 43k | today | AGPL-3.0 | A | 94 | Claude Code, Codex |
| release-rollbackPrismer-AI/PrismerCloud | Skill | 1.4k | 1mo ago | MIT | A | 96 | Claude Code |
| evolve-lite:publishAgentToolkit/altk-evolve | Skill | 143 | 5d ago | Apache-2.0 | A | 28 | Claude Code, Codex |