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-cppgit 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-cpp)<a href="https://agentmods.dev/skills/cassettetapecrackle/claude-starters/clean-code-cpp"><img src="https://agentmods.dev/badge/skills/cassettetapecrackle/claude-starters/clean-code-cpp/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-cpp"><img src="https://agentmods.dev/badge/skills/cassettetapecrackle/claude-starters/clean-code-cpp.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.00042 | $0.00650 |
| Opus 5.5 | $0.00017 | $0.00260 |
| Sonnet 5.5 | $0.00008 | $0.00130 |
| Haiku 4.5 | $0.00004 | $0.00065 |
Grade A, and why
clean-code-cpp 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 1mo 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 — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Clean-code C++ (depth)
Apply on top of the project's base rules (C++20/17, CMake+CPM, clang-tidy, sanitizers, Catch2).
Error handling
- Pick one policy per module and state it: exceptions, or
std::expected/error codes. - Exceptions are fine on the general/message path. Never let exceptions cross a real-time/audio callback.
- Exception messages carry full context (offending value + expected shape).
Ownership & lifetime
- Prefer
std::unique_ptr+ raw non-owning pointers/references. Reach forstd::shared_ptronly when ownership is genuinely shared — it is not a default. - Make ownership legible: one owner, clear handoff. Rule of zero; let RAII types manage resources.
const / noexcept / constexpr
const-correct by default;constexprwhat can be evaluated at compile time.- Mark leaf functions
noexceptwhen they truly can't throw (moves, swaps, small getters) — it enables optimizations and documents intent.
Views & interfaces
std::span/std::string_viewfor non-owning views; take them by value in parameters.- Concrete before abstract: don't introduce templates, interfaces, or virtual layers until a second concrete case demands them.
Loops & algorithms
- A loop with a non-trivial body becomes a named function or a standard algorithm (
std::ranges::find_if,std::lower_bound,std::accumulate). Hand-written binary searches and case-folding loops are where the bugs hide. - Visiting many results: take a callback (
for_each_permutation(s, fn)) or return a range, instead of filling a hugestd::vectorthe caller may only stream through.
Types that carry proof
- Invariants as thin wrapper types:
NormalizedVec3is built only throughnormalize()and converts implicitly back toVec3. Callees stop re-checking, and overloads can skip work the invariant already did. - Call-order rules as parameters: a function that needs the mutex held takes the lock (
void flush(const std::scoped_lock<std::mutex>&)), a receipt the caller cannot fake. It also catches the unnamed-lock bug, wherestd::scoped_lock{m};unlocks on the same line. - Strong types (
Meters,Seconds) where two baredoubleparameters invite a swap; weigh the boilerplate first.
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.
- 1mo ago Changed · +10 lines b601db3a50ae
- 3mo ago First seen · 31 lines · 42 tokens per session scan A 312ef1dd3b03
clean-code-cpp is a skill published in the GitHub repository CassetteTapeCrackle/claude-starters (1 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 650 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.
clean-code-cpp compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| clean-code-cppCassetteTapeCrackle/claude-starters | Skill | 1 | 1mo ago | MIT | A | 42 | Claude Code |
| cpp-coding-standardsaffaan-m/ECC | Skill | 315k | 2d ago | MIT | A | 48 | Claude Code, Kiro |
| ia-c-systemsiliaal/whetstone | Skill | 37 | yesterday | MIT | A | 84 | Claude Code |
| stack-prHigorAlves/orc | Skill | 7 | 5d ago | MIT | A | 52 | Claude Code, Codex |
| review-contractHigorAlves/orc | Skill | 7 | 5d ago | MIT | A | 27 | Claude Code |
| turborepoHigorAlves/orc | Skill | 7 | 5d ago | MIT | A | 40 | Claude Code |
| caveman-reviewHigorAlves/orc | Skill | 7 | 5d ago | MIT | A | 22 | Claude Code |