appropriate-comments-code

appropriate-comments-code is a skill for Claude Code from patrickdappollonio/claude-plugins. It costs 100 tokens per session (9,153 once invoked), scanned A, original, MIT.

A language-independent guide for writing code comments and docstrings that explain only useful facts about the code as it currently works.

In plain words
What is it for?
It helps write, edit, or review comments and docstrings in any programming language, especially when describing non-obvious constraints or decisions.
Why use it?
It prevents comments from restating code, recording the development history, or adding more reading than the information is worth.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the appropriate-comments-code plugin — 1 skill shipped together

Good fit It helps write, edit, or review comments and docstrings in any programming language, especially when describing non-obvious constraints or decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/patrickdappollonio/claude-plugins/appropriate-comments-code
Install

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.

Any agent
npx skills add patrickdappollonio/claude-plugins --skill appropriate-comments-code
Clone the repo
git clone --depth 1 https://github.com/patrickdappollonio/claude-plugins

Made for: Claude Code.

Or install appropriate-comments-code, the plugin that ships this one along with the rest of its 1 skill.

Wrote 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.

agentmods badge for appropriate-comments-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/patrickdappollonio/claude-plugins/appropriate-comments-code/github.svg)](https://agentmods.dev/skills/patrickdappollonio/claude-plugins/appropriate-comments-code)
Your own site
<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.

agentmods 80×15 button for appropriate-comments-code

Your own site · 80×15
<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>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,153 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash f832f2ce88a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/appropriate-comments-code/skills/appropriate-comments-code/SKILL.md · 331 lines

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:

  1. Restating the line below it.
  2. Narrating how the code got here.
  3. Explaining at length something true and useful — that is documentation, and documentation does not live above a function.
  4. 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.

Read the full file on GitHub · 331 lines

Files

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.

Changes

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.

  1. 1mo ago Changed · -286 lines f832f2ce88a4
  2. 1mo ago Changed · +4 lines c6fc37ecad90
  3. 1mo ago Changed · -271 lines · +11 tokens per session a8870c1335df
  4. 1mo ago Changed · +115 lines 5b636eed2bd9
  5. 1mo ago Changed · +111 lines 5cd10e5c6393
  6. 1mo ago Changed · -147 tokens per session 603d576ac02e
  7. 2mo ago Changed · +47 lines · +20 tokens per session 6d87e8732553
  8. 2mo ago Changed · +82 lines · +42 tokens per session 81847086cd0b
  9. 2mo ago First seen · 529 lines · 174 tokens per session scan A 0d147ee195cc

Subscribe to this mod's changes

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.

Related

appropriate-comments-code compared with skills from other repositories

appropriate-comments-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
appropriate-comments-codepatrickdappollonio/claude-pluginsSkill9yesterdayMITA100Claude Code
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code