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 refactor-safelygit 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/refactor-safely)<a href="https://agentmods.dev/skills/arasz/ai-raccoon/refactor-safely"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/refactor-safely/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/refactor-safely"><img src="https://agentmods.dev/badge/skills/arasz/ai-raccoon/refactor-safely.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.00148 | $0.01034 |
| Opus 5.5 | $0.00059 | $0.00414 |
| Sonnet 5.5 | $0.00030 | $0.00207 |
| Haiku 4.5 | $0.00015 | $0.00103 |
Grade A, and why
refactor-safely 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 — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Refactor safely
Always preview before applying. The discipline: enumerate every affected location before changing one, confirm no critical path runs through the target unexamined, then verify with tests after — never trust that a rename or removal was complete just because it compiled.
The workflow derives from the skill templates the code-review-graph project auto-installs
(MIT, © 2026 Tirth Kanani), rewritten here to be tool-agnostic: every step carries a baseline
that needs no graph server.
Steps
-
Enumerate every affected location before changing one. Accelerated: a code-graph refactor tool in rename-preview mode (e.g.
refactor_toolwithmode="rename"; discover the real tool name from the server's own listing) returns the full edit list before anything is applied. Baseline: the IDE's rename-refactoring (atomic, reference-aware) where available; otherwisegrep -rnevery reference and read each hit to rule out false positives (shadowed names, string literals, comments). -
Check blast radius and whether a critical path runs through the target. Accelerated: impact-radius / affected-flows calls (e.g.
get_impact_radius-shaped,get_affected_flows-shaped). Baseline: grep callers and walk outward toward entry points, same as the tracing step indebug-issue. Flag any hit in auth, payment, data-write, or public API surface. -
For a removal, confirm zero reachable callers before deleting — not zero grep hits. Accelerated: a dead-code detection mode (e.g.
refactor_toolwithmode="dead_code"). Baseline: grep the whole tree including test files and dynamic-dispatch registration (DI container, route table, reflection lookup, config-driven plugin list) — a zero-hit grep is not proof if the language or framework allows dynamic dispatch. -
Apply using the safest available mechanism, always using the edit list from step 1 rather than re-deriving it. Accelerated: apply the previewed refactor by its id (e.g.
apply_refactor_toolwith therefactor_idfrom step 1). Baseline: the IDE's apply-refactor action, or scripted find-replace only after step 1's list is complete and has been read in full.
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 · 81 lines · 148 tokens per session scan A ad3edc54df48
refactor-safely is a skill published in the GitHub repository Arasz/ai-raccoon (7 stars, last pushed today), licensed MIT. It adds 148 tokens to every session and 1,034 once invoked, about $0.0006 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.
refactor-safely compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| refactor-safelyArasz/ai-raccoon | Skill | 7 | today | MIT | A | 148 | Claude Code, Codex |
| pr-bodyalibaba/anolisa | Skill | 688 | 13d ago | Apache-2.0 | A | 68 | Claude Code, Codex |
| gitcode-apiXiaoLuoLYG/GOD | Skill | 1.3k | 11d ago | Apache-2.0 | A | 79 | Claude Code, Codex |
| pre-prplastic-labs/honcho | Skill | 8.4k | yesterday | AGPL-3.0 | A | 65 | Claude Code, Codex |
| prismer-githubPrismer-AI/PrismerCloud | Skill | 1.4k | 1mo ago | MIT | A | 22 | Claude Code, Codex |
| yesloopcarsteneu/yesmem | Skill | 48 | 3d ago | Apache-2.0 | A | 48 | Claude Code |
| babysit-prckorhonen/claude-skills | Skill | 36 | 4d ago | MIT | A | 48 | Claude Code, Codex |