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 juxt/claude-plugins --skill code-commentsgit clone --depth 1 https://github.com/juxt/claude-pluginsWrote 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/juxt/claude-plugins/code-comments)<a href="https://agentmods.dev/skills/juxt/claude-plugins/code-comments"><img src="https://agentmods.dev/badge/skills/juxt/claude-plugins/code-comments/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/juxt/claude-plugins/code-comments"><img src="https://agentmods.dev/badge/skills/juxt/claude-plugins/code-comments.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.00081 | $0.02633 |
| Opus 5.5 | $0.00032 | $0.01053 |
| Sonnet 5.5 | $0.00016 | $0.00527 |
| Haiku 4.5 | $0.00008 | $0.00263 |
Grade A, and why
code-comments 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 5d 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 — 186 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Chalk Code Comments — What Earns a Comment
Interpret MUST, MUST NOT, SHOULD, SHOULD NOT, MAY, etc. per RFC 2119.
You SHOULD NOT write any code comments
The code is the artefact; a comment is a second copy of part of it that nothing verifies. No compiler checks it, no test fails when it drifts, and a reader who trusts a stale comment ends up worse off than one who had nothing. Everything below this section is the narrow set of cases where that cost is worth paying.
-
Where a comment is tempting, change the code instead. Kernighan and Plauger's rule from The Elements of Programming Style is still the first move: don't comment bad code — rewrite it.
-
The reader already assumes you chose this deliberately and with care. They apply Chesterton's fence before they touch it, so you MUST NOT spend a comment defending the code against a reader who was never sceptical. Explaining a constraint the reader can't see is a different act from justifying yourself, and only the first has an audience.
-
A comment that does survive is a Chalk artefact. It MUST be written in the chalk voice —
chalk:voicecarries the register, the audience and the rule that two propositions in a relation take a mindmap rather than prose.
Interface comments are the standing exception
Interface and implementation comments split as Ousterhout splits them in A Philosophy of Software Design, ch. 13. On a public surface an interface comment exists by default and is judged on completeness rather than on necessity; the default above, and everything below unless it says otherwise, is about implementation comments.
- A non-public surface takes the implementation rules whatever its markup. A comment on a private function still has to earn its place.
Three moves that dissolve a comment
Each removes the need for the comment rather than shortening it, and you MUST exhaust them before writing one.
- Rename the thing.
Before describing a variable, a parameter or a function, try a name that makes the description unnecessary.
A comment saying what
nholds is a naming decision deferred;retryBudgetMsneeds no comment at all.
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.
- 5d ago Changed · -9 tokens per session c8426b057ec7
- 15d ago Changed · -11 lines 2ceffa0d211e
- 2mo ago Changed · -30 lines 2f40f38497ab
- 2mo ago Changed · +36 lines 5e88c9d38601
- 2mo ago Changed · +68 lines · +14 tokens per session 9bc170fbf588
- 2mo ago Changed · +10 lines df24b4e8356e
- 3mo ago First seen · 113 lines · 76 tokens per session scan A 45b0d8bc942d
code-comments is a skill published in the GitHub repository juxt/claude-plugins (11 stars, last pushed yesterday), licensed MIT. It adds 81 tokens to every session and 2,633 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.
code-comments compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-commentsjuxt/claude-plugins | Skill | 11 | yesterday | MIT | A | 81 | Claude Code |
| autoreviewopenclaw/clawhub | Skill | 9.6k | today | MIT | A | 17 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 6.2k | yesterday | MIT | A | 18 | Claude Code |
| agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skills | Skill | 2.2k | 10d ago | MIT | A | 115 | Claude Code, Codex |
| asplos-writing-stylebrycewang-stanford/Awesome-Journal-Skills | Skill | 1.5k | 4d ago | MIT | A | 65 | Claude Code |
| revdiff-planumputun/revdiff | Skill | 974 | today | MIT | A | 84 | Claude Code |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | yesterday | MIT | A | 51 | Claude Code, Codex |