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 btseee/clean-code-skills --skill clean-codegit clone --depth 1 https://github.com/btseee/clean-code-skillsWrote 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/btseee/clean-code-skills/clean-code)<a href="https://agentmods.dev/skills/btseee/clean-code-skills/clean-code"><img src="https://agentmods.dev/badge/skills/btseee/clean-code-skills/clean-code/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/btseee/clean-code-skills/clean-code"><img src="https://agentmods.dev/badge/skills/btseee/clean-code-skills/clean-code.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.00078 | $0.01994 |
| Opus 5.5 | $0.00031 | $0.00798 |
| Sonnet 5.5 | $0.00016 | $0.00399 |
| Haiku 4.5 | $0.00008 | $0.00199 |
Grade A, and why
clean-code 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 21d 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 — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Clean Code And Clean Architecture
Before The First Edit: Load Context
You forget everything between sessions. scripts/ and references/ resolve from this file's
folder. Read in order; trivial edits (typo, comment) skip this gate and the review checklist.
- Stack.
.clean/context.json; missing: runscripts/detect_stack.py, or read manifests and file extensions. - Packs. Open each pack in
packsor under "Read next" with the file-read tool (naming a pack is not reading it), except framework packs whosepack_scopesexclude your area. By hand:clean-packsindex inreferences/framework-map.md; none: answer its adaptation questions. - Layers.
.clean/architecture.md; see Layer Rules. - Decisions.
.clean/decisions.md,.clean/ledger.md. Recorded decisions are settled; resume, never restart, campaigns in progress. - Structure. Your area's
.clean/structure.mdrows (grep path) orscripts/map_structure.py --path <area>; by hand, list the folder, open the two or three most similar files. - Project instructions.
AGENTS.md,CLAUDE.md,CONTRIBUTING.md,ARCHITECTURE.md,README.md.
On conflict, first wins: project instructions, recorded decisions, declared layers, local
conventions, framework pack, language pack, this skill. Only init, audit, new-project create
.clean/; plain sessions read it, offer to persist at the end.
Operating Loop
- Frame: behavior change, assumptions, smallest scope, success check. Ask only if ambiguity changes the implementation.
- Read nearby code, naming, tests, error style, framework idiom; search for existing implementations first.
- Place: owning unit; which side of which boundary.
- Edit surgically: every changed line traces to the request; targeted edits, never whole-file regeneration; remove what your change orphaned.
- Verify: narrowest meaningful check, then what the risk level owes (
review-checklist.md); bug: reproducer test first; refactor: tests before and after. Never claim success without running something. - Review the diff with
references/review-checklist.md, self-check included.
What ships with it
60 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.
- assets/hooks/claude-settings.json 3.9 KB
- assets/hooks/pre-commit 3.4 KB
- assets/templates/architecture.md 3.5 KB
- assets/templates/decisions.md 997 B
- assets/templates/ledger.md 2.8 KB
- references/architecture-map.md 2.9 KB
- references/architecture.md 25 KB
- references/audit-report.md 8.5 KB
- references/canon.md 10 KB
- references/chapter-map.md 18 KB
- references/comments.md 5.3 KB
- references/compress.md 4.3 KB
- references/concurrency.md 5.9 KB
- references/examples.md 4.9 KB
- references/framework-map.md 8.1 KB
- references/frameworks/angular.md 4.9 KB
- references/frameworks/aspnet-core.md 5.8 KB
- references/frameworks/django.md 5.0 KB
- references/frameworks/drupal.md 6.2 KB
- references/frameworks/express.md 4.3 KB
- references/frameworks/fastapi.md 4.4 KB
- references/frameworks/flask.md 4.4 KB
- references/frameworks/flutter.md 4.6 KB
- references/frameworks/gin-beego.md 4.3 KB
- references/frameworks/jetpack-compose.md 4.3 KB
- references/frameworks/ktor.md 3.9 KB
- references/frameworks/laravel.md 6.0 KB
- references/frameworks/nestjs.md 5.9 KB
- references/frameworks/nextjs.md 5.4 KB
- references/frameworks/pytorch.md 5.5 KB
- references/frameworks/rails.md 6.1 KB
- references/frameworks/react.md 4.3 KB
- references/frameworks/spring.md 5.6 KB
- references/frameworks/strapi.md 4.8 KB
- references/frameworks/svelte.md 4.5 KB
- references/frameworks/swiftui-uikit.md 5.1 KB
- references/frameworks/symfony.md 5.8 KB
- references/frameworks/tailwind.md 4.7 KB
- references/frameworks/tensorflow.md 4.9 KB
- references/frameworks/unity.md 7.1 KB
- references/frameworks/vue-nuxt.md 4.6 KB
- references/frameworks/wordpress.md 5.2 KB
- references/host-matrix.md 8.0 KB
- references/init.md 4.0 KB
- references/languages/c.md 5.1 KB
- references/languages/cpp.md 5.8 KB
- references/languages/csharp.md 7.0 KB
- references/languages/css.md 5.9 KB
- references/languages/dart.md 5.8 KB
- references/languages/go.md 6.0 KB
- references/languages/java.md 7.2 KB
- references/languages/javascript.md 5.1 KB
- references/languages/kotlin.md 6.3 KB
- references/languages/objective-c.md 5.8 KB
- references/languages/php.md 6.3 KB
- references/languages/powershell.md 5.6 KB
- references/languages/python.md 5.9 KB
- references/languages/r.md 4.9 KB
- references/languages/ruby.md 5.9 KB
- references/languages/rust.md 5.8 KB
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.
- 21d ago Changed · -221 lines · -34 tokens per session a37a39538077
- 1mo ago Changed f244e119bdc6
- 1mo ago First seen · 373 lines · 112 tokens per session scan A 30eb3500ddef
clean-code is a skill published in the GitHub repository btseee/clean-code-skills (14 stars, last pushed 22d ago), licensed MIT. It adds 78 tokens to every session and 1,994 once invoked, about $0.0003 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.
Other skills, from other repositories
re0-merge
Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…
sip
After you create or change an artifact or skill, taste-test it with our own skills instead of trusting your in-session judgment — recursive self-improvement, made automatic. Use right after writing or editing anything, before calling it done, committing, or handing it off.
prism
Split one artifact — a claim, plan, or file — across 2 to 5 independent lenses, one per genuinely distinct failure mode (correctness, security, readability, cost, adversarial-user), and return their convergence: where they agree, where they disagree, and the single next question that resolves the disagreement. Use…
hate
Attack a plan, design, or argument like you want it to fail before you commit real effort — return the single load-bearing objection and the cheapest experiment that would prove it matters, not a checklist. User-invoked on purpose: a hate-it reflex always in the agent's reach would bias it toward demolition. Weighs…
architecture-compass
Architectural thinking partner for an existing repository — scans the codebase, conducts a structured interview, agrees on current architectural state and recommended direction, and produces a shareable insights document. Scoped to one repository, module, or folder. Does not execute transformation — it orients. Use…
review-refiner
Facilitate a structured conversation to customize how the review molecule works -- atom loading rules, severity classification, report format, scope rules, insight capture, and health logging. Produces a formal review-standards.md document that the review molecule will use as its process configuration. Use when the…