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 scripts-tooling-refactorgit 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/scripts-tooling-refactor)<a href="https://agentmods.dev/skills/arasz/ai-raccoon/scripts-tooling-refactor"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/scripts-tooling-refactor/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/scripts-tooling-refactor"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/scripts-tooling-refactor.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.00075 | $0.03296 |
| Opus 5.5 | $0.00030 | $0.01318 |
| Sonnet 5.5 | $0.00015 | $0.00659 |
| Haiku 4.5 | $0.00007 | $0.00330 |
Grade A, and why
scripts-tooling-refactor scanned grade A with 1 finding 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
`subprocess.run(..., check=True)` with `except CalledProcessError: return How it starts
The opening of the file, as written. The whole thing — 243 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Scripts-tooling refactor
Refactoring a repo's scripts/ directory into a maintained layout: per-repo
tooling language only, logic in src/, tests in tests/ (TDD), dead scripts
pruned on evidence. The user's convention across repos (the project 2026-08,
the reference repo earlier): all non-python scripts converted to python (the reference repo's stated
tooling language is Bun TypeScript — always check the repo's own convention,
never assume), old/not-used scripts removed, src + tests layout,
TDD: tests written first.
Pairs with den-refresh (framework refresh hygiene) and the task
skill (worktree + orchestration). Run inside the task worktree.
Step 1 — Inventory with tracking, not find
find scripts -type f shows gitignored generated files too. Use
git ls-files scripts/ — the tracked set is the refactor surface. Note
gitignored outputs (e.g. baseline-results.json) separately: they're
generated, never commit them, don't move them.
Step 2 — Usage evidence decides dead vs live (the core technique)
For every file, trace references across the repo. Use a ripgrep-backed search (grep -rln over the whole repo can time out on ignored dirs).
Classify each reference:
- LIVE — CI run lines (
.github/workflows/*.ymlrun:steps), current test code reading a path, READMEs with run instructions, user gate rituals (e.g. a fresh-install gate), csproj comments. - HISTORICAL —
docs/plans/*(implemented plans),docs/work/*findings, design proposals. A script referenced only there is a removal candidate — but first verify the live gate moved elsewhere (e.g. C# integration tests replaced a python runner + manual HTML scoring form). - A script mentioned only in its own docstring or a sibling script's header comment is not used — but a three-way sync contract between sibling scripts (e.g. verify-tool-package ↔ download-embedding-model ↔ fresh-install-test) means renaming one breaks the others' comments: update them all.
- Data files with hardcoded paths in tests must NOT move. C# tests
hardcode
scripts/chunk-hash-map.json,scripts/baseline-queries.json— keep such files atscripts/root. A file read by 5+ integration tests is load-bearing even if no doc mentions it. - Removal candidates need a written one-line evidence trail each, and the "live gate is elsewhere" check.
What ships with it
5 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 First seen · 243 lines · 75 tokens per session scan A 5b7343ed22ff
scripts-tooling-refactor is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 75 tokens to every session and 3,296 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-05.
scripts-tooling-refactor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| scripts-tooling-refactorArasz/ai-raccoon | Skill | 7 | today | MIT | A | 75 | Claude Code, Codex |
| http-client-migrationGen-Verse/PAST-Bench | Skill | 40 | 4mo ago | Apache-2.0 | A | 14 | Claude Code, Codex |
| migrate-to-shoehornbuild-with-dhiraj/ai-workflow-framework-portability-kit | Skill | 5 | 5d ago | MIT | A | 47 | Claude Code, Codex |
| Cursor rules for Jest development with unit testingAmariahAK/atlarix-skills | Skill | 0 | 2mo ago | Apache-2.0 | A | 8 | Claude Code, Codex |
| .NET PatternsAmariahAK/atlarix-skills | Skill | 0 | 2mo ago | Apache-2.0 | A | 2 | Claude Code, Codex |
| Elixir PatternsAmariahAK/atlarix-skills | Skill | 0 | 2mo ago | Apache-2.0 | A | 3 | Claude Code, Codex |
| rust-testingaffaan-m/ECC | Skill | 317k | 4d ago | MIT | A | 31 | Claude Code, Kiro |