scripts-tooling-refactor

scripts-tooling-refactor is a skill for Claude Code, Codex from Arasz/ai-raccoon. It costs 75 tokens per session (3,296 once invoked), scanned A, original, MIT.

A workflow for refactoring a repository's scripts folder: inventory tracked files, identify live and unused scripts from their references, move logic into source code with tests, and preserve callers.

In plain words
What is it for?
Use it to convert scripts to the repository's chosen language, organise code under source and test directories, write tests first when required, and remove files only when usage evidence supports it.
Why use it?
Script folders often contain obsolete files and untested logic. The workflow reduces that clutter while avoiding the accidental removal or breaking of scripts still in use.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to convert scripts to the repository's chosen language, organise code under source and test directories, write tests first when required, and remove files only when usage evidence supports it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arasz/ai-raccoon/scripts-tooling-refactor
Install

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.

Any agent
npx skills add Arasz/ai-raccoon --skill scripts-tooling-refactor
Clone the repo
git clone --depth 1 https://github.com/Arasz/ai-raccoon

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for scripts-tooling-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/arasz/ai-raccoon/scripts-tooling-refactor/github.svg)](https://agentmods.dev/skills/arasz/ai-raccoon/scripts-tooling-refactor)
Your own site
<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.

agentmods 80×15 button for scripts-tooling-refactor

Your own site · 80×15
<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>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured yesterday against content hash 5b7343ed22ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
.ai-badger/skills/scripts-tooling-refactor/SKILL.md · 243 lines

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/*.yml run: 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 at scripts/ 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.

Read the full file on GitHub · 243 lines

Files

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.

Changes

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.

  1. yesterday First seen · 243 lines · 75 tokens per session scan A 5b7343ed22ff

Subscribe to this mod's changes

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.

Related

scripts-tooling-refactor compared with skills from other repositories

scripts-tooling-refactor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scripts-tooling-refactorArasz/ai-raccoonSkill7todayMITA75Claude Code, Codex
http-client-migrationGen-Verse/PAST-BenchSkill404mo agoApache-2.0A14Claude Code, Codex
migrate-to-shoehornbuild-with-dhiraj/ai-workflow-framework-portability-kitSkill55d agoMITA47Claude Code, Codex
Cursor rules for Jest development with unit testingAmariahAK/atlarix-skillsSkill02mo agoApache-2.0A8Claude Code, Codex
.NET PatternsAmariahAK/atlarix-skillsSkill02mo agoApache-2.0A2Claude Code, Codex
Elixir PatternsAmariahAK/atlarix-skillsSkill02mo agoApache-2.0A3Claude Code, Codex
rust-testingaffaan-m/ECCSkill317k4d agoMITA31Claude Code, Kiro