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 scolladon/craft --skill refactoringgit clone --depth 1 https://github.com/scolladon/craftWrote 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/scolladon/craft/refactoring)<a href="https://agentmods.dev/skills/scolladon/craft/refactoring"><img src="https://agentmods.dev/badge/skills/scolladon/craft/refactoring/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/scolladon/craft/refactoring"><img src="https://agentmods.dev/badge/skills/scolladon/craft/refactoring.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.00038 | $0.00527 |
| Opus 5.5 | $0.00015 | $0.00211 |
| Sonnet 5.5 | $0.00008 | $0.00105 |
| Haiku 4.5 | $0.00004 | $0.00053 |
Grade A, and why
refactoring 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 10d ago.
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 — 37 lines — stays where its author put it; the contents beside it link to each section on GitHub.
craft:refactoring
Preamble (always runs — non-overridable)
- Manifest read (lint if standalone); gates as in implementation's preamble.
Procedure (default body — a manifest override: replaces everything below)
- Judgment — session-owned, in-thread: quick candidate scan seeded by the feature's diff, radiating only as far as the feature's concerns reach: duplication now warranting centralization, responsibilities in the wrong layer, the Nth consumer of a pattern that should become shared. Bounded by YAGNI/KISS — no speculative abstraction.
- Nothing clears the bar → first-class no-op. Record
NO-OP(refactoring): nothing cleared the bar — <justification>in the run record, the 1–3 line justification stating what was considered and why nothing changed; the run record is carried into the PR body (documentation phase), so the no-op is stated, not hidden. This is a recorded outcome symmetric with the decisions phase'sNO-OP(decisions):line — same token, kept idiom — not an implicit skip. Spawning an agent merely to conclude no-op is forbidden waste. A silent skip is not allowed. - Candidates survive → scope each into a precise spec (what moves where, which symbols/files, expected mechanical test changes, blast radius), then spawn craft:refactor-executor with the specs, gates, and context files. Integrate-don't-defer: in-scope gains land NOW in this change; only a genuinely feature-sized refactor (own design + rulings) is deferred under the run skill invariant Impacts: fold or defer at discovery. A refactor the executor reports and does not execute (contracts/refinement.md, the "reported in the final message" rule) is an impact.
- Re-review, scoped to the refactor diff only, via craft:review's procedure
(same dimensions, per-dimension convergence ≤3). Findings implying FURTHER
refactoring are deferred, not another loop.
gates.phasegreen to close. - Order rationale: this runs BEFORE validation so validation scores the final shape.
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.
- 10d ago Changed 5aa753aa44b6
- 1mo ago Changed · +2 lines e5495b0015f2
- 3mo ago First seen · 35 lines · 38 tokens per session scan A 37ca005f8e05
refactoring is a skill published in the GitHub repository scolladon/craft (2 stars, last pushed 10d ago), licensed MIT. It adds 38 tokens to every session and 527 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-08-31.
refactoring compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| refactoringscolladon/craft | Skill | 2 | 10d ago | MIT | A | 38 | Claude Code |
| orc-debugHigorAlves/orc | Skill | 7 | 3d ago | MIT | A | 56 | Codex |
| linked-intent-devjszmajda/lid | Skill | 122 | 3d ago | MIT | A | 110 | Claude Code |
| skeptical-triageavelikiy/great_cto | Skill | 117 | 14d ago | MIT | A | 49 | Claude Code |
| anti-patternsavelikiy/great_cto | Skill | 117 | 14d ago | MIT | A | 59 | Claude Code |
| audit-state-machinesdoodledood/manifest-dev | Skill | 80 | today | MIT | A | 105 | Claude Code |
| observability-baselineavelikiy/great_cto | Skill | 117 | 14d ago | MIT | A | 100 | Claude Code |