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 CassetteTapeCrackle/claude-starters --skill clean-code-coregit clone --depth 1 https://github.com/CassetteTapeCrackle/claude-startersWrote 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/cassettetapecrackle/claude-starters/clean-code-core)<a href="https://agentmods.dev/skills/cassettetapecrackle/claude-starters/clean-code-core"><img src="https://agentmods.dev/badge/skills/cassettetapecrackle/claude-starters/clean-code-core/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/cassettetapecrackle/claude-starters/clean-code-core"><img src="https://agentmods.dev/badge/skills/cassettetapecrackle/claude-starters/clean-code-core.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.00070 | $0.00791 |
| Opus 5.5 | $0.00028 | $0.00316 |
| Sonnet 5.5 | $0.00014 | $0.00158 |
| Haiku 4.5 | $0.00007 | $0.00079 |
Grade A, and why
clean-code-core 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 4d 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 — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Clean code, core (any language)
The per-language clean-code-* skills add idioms on top. Scope decides how much to build; this decides its shape.
Names
- Say what it is, in the domain's words:
unpaid_invoices, notdata2orlist. - Greppable and distinctive: a reader (or agent) finds every use with one search. Avoid
handle,process,manager,utilas whole names. - Booleans read as questions:
is_ready,has_lock. Functions are verbs, values are nouns. - Length tracks scope:
iin a 3-line loop, a full name at module level. - Maps read
<values>_by_<key>:assets_by_name,users_by_id.
Functions
- One job. If the honest name needs "and", split it.
- One level of abstraction per body. Section comments inside a function ("find the asset", "check its type") are the tell: each section becomes a call.
- Early returns for guards and errors; keep the happy path flat and last.
- Honest signatures: everything a function reads or changes arrives through its parameters. Mutating an argument is fine when the signature says so (
sort(items)). - Push I/O, clocks, randomness and globals to the top of the call tree and pass them down (the RNG,
now, the file handle). The core stays testable and reproducible; one hidden global makes every caller depend on it too. - Ask for the least you need: the field, not the whole object; a view or iterable, not one specific container.
- A boolean flag parameter that switches behavior is two functions. Many arguments of one type, or bare
true/falseat call sites: pass a named options struct. - Framework callbacks (
main,update,processBlock, request handlers) stay thin: unpack the framework's arguments, then call your own testable functions. - Write top-down: call the function you wish existed, finish the current thought, then write it.
- Extract a block that deserves its own name or its own test, even if it runs once.
Types
- A property checked in many places (normalized, non-empty, validated) becomes a type that can only be built valid. Check once at construction; callees trust the type.
- Data kept consistent by hand across several functions (lowercase the key, then binary-search, in every method) becomes its own type with its own operations.
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.
- 4d ago First seen · 48 lines · 70 tokens per session scan A 4828eec2c27a
clean-code-core is a skill published in the GitHub repository CassetteTapeCrackle/claude-starters (1 stars, last pushed 4d ago), licensed MIT. It adds 70 tokens to every session and 791 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-11-03.
clean-code-core compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| clean-code-coreCassetteTapeCrackle/claude-starters | Skill | 1 | 4d ago | MIT | A | 70 | Claude Code |
| stack-prHigorAlves/orc | Skill | 7 | yesterday | MIT | A | 52 | Claude Code, Codex |
| review-contractHigorAlves/orc | Skill | 7 | yesterday | MIT | A | 27 | Claude Code |
| caveman-reviewHigorAlves/orc | Skill | 7 | yesterday | MIT | A | 22 | Claude Code |
| improve-codebase-architectureHigorAlves/orc | Skill | 7 | yesterday | MIT | A | 17 | Claude Code |
| inline-reviewHigorAlves/orc | Skill | 7 | yesterday | MIT | A | 43 | Claude Code, Codex |
| caveman-prHigorAlves/orc | Skill | 7 | yesterday | MIT | A | 14 | Claude Code |