comments-and-documentation

comments-and-documentation is a skill for Claude Code from LandonSchropp/agent-toolkit. It costs 55 tokens per session (770 once invoked), scanned A, original, MIT.

A code-documentation skill for deciding how comments and documentation should be written, organised, reviewed, or removed.

In plain words
What is it for?
Writing or editing code comments and documentation blocks, and reviewing them in a code change before presenting it.
Why use it?
It helps prevent source code from being filled with unnecessary comments and keeps longer explanations in the right documentation location.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ls-code plugin — 5 skills shipped together

Good fit Writing or editing code comments and documentation blocks, and reviewing them in a code change before presenting it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/landonschropp/agent-toolkit/comments-and-documentation
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 LandonSchropp/agent-toolkit --skill comments-and-documentation
Clone the repo
git clone --depth 1 https://github.com/LandonSchropp/agent-toolkit

Made for: Claude Code.

Or install ls-code, the plugin that ships this one along with the rest of its 5 skills.

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 comments-and-documentation

README.md
[![agentmods](https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/comments-and-documentation/github.svg)](https://agentmods.dev/skills/landonschropp/agent-toolkit/comments-and-documentation)
Your own site
<a href="https://agentmods.dev/skills/landonschropp/agent-toolkit/comments-and-documentation"><img src="https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/comments-and-documentation/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 comments-and-documentation

Your own site · 80×15
<a href="https://agentmods.dev/skills/landonschropp/agent-toolkit/comments-and-documentation"><img src="https://agentmods.dev/badge/skills/landonschropp/agent-toolkit/comments-and-documentation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 770 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.
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.00055 $0.00770
Opus 5.5 $0.00022 $0.00308
Sonnet 5.5 $0.00011 $0.00154
Haiku 4.5 $0.00006 $0.00077

Measured 11d ago against content hash 4d5860fe3cd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

comments-and-documentation 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 11d 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/ls-code/skills/comments-and-documentation/SKILL.md · 53 lines

How it starts

The opening of the file, as written. The whole thing — 53 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Comments And Documentation

Source carries the minimum that conveys the contract. Past that, every line is a liability: it goes stale, and once a reader catches one line lying they stop trusting the rest.

Two forms, two jobs:

  • Comments label. A comment names what the code is, in one line, where the code can't name itself.
  • Documentation states the contract. What a caller passes, what comes back, what can go wrong. A script's usage and help text is documentation too.

Read the reference for whichever form the diff touches. Read both when it touches both.

Make both forms follow the communication principles of the ls-agent:instructions skill, especially its rule to describe what's there, not what isn't. Every sentence that breaks it gets cut or rewritten.

The Procedure

List every comment and every documentation block the diff touches, with its line count, including the ones the diff already carried and not only the ones you wrote. Toolchain directives are the one exemption, and references/comments.md says which. Give each remaining entry exactly one disposition:

  • label, kept: A one-line comment naming what the code is.
  • contract, kept: Documentation already at the contract and no larger.
  • trimmed: Documentation cut down to the contract.
  • noted in commit message: Rationale folded into the introducing commit, gone from the source.
  • moved to <path>: Durable rationale, now in a reference file and gone from the source.
  • deleted: It restated the code, or wasn't worth keeping anywhere.

There is no seventh disposition. "Kept, because it explains something the code can't" is not one of these, and writing that sentence means the check did not run. An entry you never listed is an entry you never checked.

Rationale Has Three Homes

Neither form argues. Rationale is why this approach, what broke last time, what not to do instead.

Default to the commit message: it already answers "why", and most rationale is one-off, belonging to the change that prompted it. Fold it in, delete the comment.

Read the full file on GitHub · 53 lines

Files

What ships with it

2 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. 11d ago Changed 4d5860fe3cd2
  2. 26d ago Changed · +2 lines ef351607b449
  3. 2mo ago Changed · +5 lines · +4 tokens per session 506ea8f04fbd
  4. 2mo ago Changed · +1 lines · +5 tokens per session 7eff6cf08857
  5. 3mo ago First seen · 45 lines · 46 tokens per session scan A 2523ea5e40cb

Subscribe to this mod's changes

comments-and-documentation is a skill published in the GitHub repository LandonSchropp/agent-toolkit (3 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 770 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.

Related

comments-and-documentation compared with skills from other repositories

comments-and-documentation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
comments-and-documentationLandonSchropp/agent-toolkitSkill3todayMITA55Claude Code
cf-clicloudflare/skillsSkill3.5k5d agoApache-2.0A78Claude Code
workers-best-practicescloudflare/skillsSkill3.5k5d agoApache-2.0A25Claude Code
story-origin-checkelvisun/newsjackSkill1.7k5d agoMITA40Claude Code
relevance-coarse-filterelvisun/newsjackSkill1.7k5d agoMITA57Claude Code
skill-changelogluongnv89/asmSkill976yesterdayMITA53Claude Code
character-profileGongLingRui/screen-creative-skillsSkill5111mo agoMITA46Claude Code