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 patrickdappollonio/claude-plugins --skill appropriate-comments-codegit clone --depth 1 https://github.com/patrickdappollonio/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/patrickdappollonio/claude-plugins/appropriate-comments-code)<a href="https://agentmods.dev/skills/patrickdappollonio/claude-plugins/appropriate-comments-code"><img src="https://agentmods.dev/badge/skills/patrickdappollonio/claude-plugins/appropriate-comments-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/patrickdappollonio/claude-plugins/appropriate-comments-code"><img src="https://agentmods.dev/badge/skills/patrickdappollonio/claude-plugins/appropriate-comments-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00100 | $0.09153 |
| Opus 5.5 | $0.00040 | $0.03661 |
| Sonnet 5.5 | $0.00020 | $0.01831 |
| Haiku 4.5 | $0.00010 | $0.00915 |
Grade A, and why
appropriate-comments-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 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 — 331 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Appropriate Comments in Code
The Rule
A comment earns its place by carrying information the code does not, about the code as it is now, in as few lines as that takes.
Four ways to fail it, and they are equally fatal:
- Restating the line below it.
- Narrating how the code got here.
- Explaining at length something true and useful — that is documentation, and documentation does not live above a function.
- Instructing a future editor — "never", "always", "keep in step" — with nothing that fails when they ignore it. That is a promise, and a promise is enforced by a test, not by a comment.
The third and fourth are the ones people miss. A comment can be entirely accurate, entirely present-tense, free of every ticket number and iteration label, and still be wrong for the spot it occupies.
Read the companion files first
On first use in a session, before any other step, read every companion file in this skill's directory. The summaries in this file are reminders of text you have already read, never a substitute.
length-and-doc-comments.md— the full text of tenets 1, 2, 3, 4 and 6 and the sibling rule, with the worked examples: an eight-line "list of rules" and its two-line rewrite; a bulleted "decision table" that fails the row test and the body-match test next to one that passes; an editor-addressed "never do X" block turned into an assertion in the existing test plus one line; a comment that names its own body; the per-language table of what a long comment looks like in that language's own code; the doc-comment syntaxes and section conventions. Re-read it before keeping any comment over two lines, writing a doc comment on a public item, or writing the test behind an editor-addressed comment.ratio-and-ledger.md— the counting procedure for the ratio check and the format and fields of the long-comment ledger. Re-read it before finishing any change.reviewing-comments.md— the procedures for verifying what a comment claims, fixing code before commenting it, reviewing comments in a diff, and auditing in bulk. Re-read it before any review or sweep.
What ships with it
3 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.
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 · -286 lines f832f2ce88a4
- 1mo ago Changed · +4 lines c6fc37ecad90
- 1mo ago Changed · -271 lines · +11 tokens per session a8870c1335df
- 1mo ago Changed · +115 lines 5b636eed2bd9
- 1mo ago Changed · +111 lines 5cd10e5c6393
- 1mo ago Changed · -147 tokens per session 603d576ac02e
- 2mo ago Changed · +47 lines · +20 tokens per session 6d87e8732553
- 2mo ago Changed · +82 lines · +42 tokens per session 81847086cd0b
- 2mo ago First seen · 529 lines · 174 tokens per session scan A 0d147ee195cc
appropriate-comments-code is a skill published in the GitHub repository patrickdappollonio/claude-plugins (9 stars, last pushed yesterday), licensed MIT. It adds 100 tokens to every session and 9,153 once invoked, about $0.0004 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.
appropriate-comments-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| appropriate-comments-codepatrickdappollonio/claude-plugins | Skill | 9 | yesterday | MIT | A | 100 | Claude Code |
| imagegenopenai/codex | Skill | 133k | yesterday | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 99k | yesterday | Apache-2.0 | A | 19 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | 4d ago | MIT | A | 200 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 313k | 3d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | yesterday | MIT | A | 95 | Claude Code |
| next-partial-prefetching-adoptionvercel/next.js | Skill | 143k | yesterday | MIT | A | 103 | Claude Code |