Skip to content
Agentmart
Submit a tool

code-comments

Decide whether a source comment belongs, what it may contain, and where displaced information goes instead.

Skill by iamthenop

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/iamthenop-code-comments

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Decide whether a source comment belongs, what it may contain, and where displaced information goes instead. Use when writing or reviewing code comments, when tempted to record history, tickets, or approvals in source, or when cleaning comments during a code change.

Use cases: writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/code-comments

What's inside

Skill name
code-comments
Description
Decide whether a source comment belongs, what it may contain, and where displaced information goes instead. Use when writing or reviewing code comments, when tempted to record history, tickets, or approvals in source, or when cleaning comments during a code change.
License
MIT
Metadata
skill-type: standard · skill-dependency: prose-discipline
Instructions
81 lines in SKILL.md · view on GitHub

Files (3)

  • SKILL.md
  • identifier-naming.md · references/
  • information-location.md · references/

SKILL.md (first lines)

# Code comments

Code should explain itself through clear names, small units, direct control
flow, and simple data structures. Prefer self-describing code over comments.

## When a comment earns its place

Do not add comments that merely restate:

* names;
* assignments;
* conditions;
* loops;
* obvious control flow;
* plainly visible declarations (including SQL definitions).

A comment is useful only when it adds information the code cannot express
clearly, such as:

* a non-obvious invariant;
* a transaction, locking, concurrency, or ordering rule;
* a subtle failure condition;
* an external data format or technical standard;
* an intentional limitation that affects correct use.

## Comments are descriptive, not authoritative

Comments describe only the code that currently exists. They must not contain:

* workorder, issue, pull-request, branch, commit, or ticket references;
* approval or authorization history;
* acceptance criteria, test plans, or test results;
* implementation history or descriptions of replaced code;
* rejected alternatives or review discussion;
* speculative behaviour or future requirements;
* policy or architecture not directly implemented by the code.

## One home per kind of information

Each kind of information has one authoritative home. See
[`references/information-location.md`](references/information-location.md)
for the canonical table.

## Discipline

* Do not require comments as a completion quota.
* If code requires extensive explanation, simplify the code. Simple code with
  few comments is better than complicated code surrounded by commentary.
* When changing code, update or remove comments within scope that no longer
  describe it accurately. Do not expand scope solely to clean unrelated
  comments.
* Temporary code must be authorized by the commissioning instruction. A source
  comment is permitted to describe the temporary behaviour and its concrete
  removal condition, but must not carry the authorization itself.
* Inline comments are two sentences maximum. Docstrings and block comments
  are three sentences maximum. A comment that requires more is a signal
  the code needs simplifying or the information belongs elsewhere.
* Prose density and vocabulary sprawl are checked by the prose checker
  declared in the repository's build bindings. Run it locally before
  commits reach review. Retained findings are reported according to
  `builder-report`.

## Identifier naming

Identifiers name one responsibility. They do not narrate setup, causality,
control flow, comparisons, or multiple outcomes. See
[`references/identifier-naming.md`](references/identifier-naming.md) for
naming rules by identifier kind, examples, length guidance, and mechanical
enforcement.

## References

* [`references/information-location.md`](references/information-location.md) —
  canonical table of information homes
* [`references/identifier-naming.md`](references/identifier-naming.md) —
  naming rules by identifier kind, examples, length guidance, linter mandate

## Final rule

A comment states what the code cannot. Everything else has another home.

From iamthenop/infurnet-skills, MIT.

More from iamthenop/infurnet-skills

Signals

Stars
0
Forks
0
Open issues
5
Last commit (this folder)
Sep 3, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from iamthenop

Cite this page

code-comments skill. Agent Mart. https://agentmart.dev/skills/iamthenop-code-comments (last updated 2026-10-24)