agentleFS
RileyCorneliusRileyCornelius/Code-Skills/no-comments/SKILL.md

no-comments

Skill0 starsChanged 7 months agoMITView on GitHub

Use when writing or reviewing code comments or lint suppressions.

97 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use poteto-help, setup-pstack and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • shiwenbin1617Skill

    poteto-help

    Guides users through pstack setup, /poteto-mode, and picking the skill, playbook, or principle for a task. Type /poteto-help with a question.

    Also in 14 projects that use this

  • bnemaSkill

    setup-pstack

    Configure which Pi models pstack uses per role. Detects available provider/model specs and writes pstack's user configuration. Use for /setup-pstack, "configure pstack models", or changing pstack model choices.

    Also in 24 projects that use this

  • shiwenbin1617Skill

    principle-explain-the-number

    Apply before you measure, and before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think.

    Also in 28 projects that use this

  • eryzerzSkill

    make-bot-ui

    Use when building a custom UI (page, dashboard, buttons) that should wake a Grok Bot over a webhook, when the user must provide a webhook sender key, or when exposing that UI on Tailscale.

    Also in 16 projects that use this

  • drafaelSkill

    in-your-own-words

    Restate the user's goals and the problem they are trying to solve to check understanding. Manual invocation only; use when the user explicitly invokes in-your-own-words or requests this understanding check. Do not solve the task or rewrite the assistant's last answer.

    Also in 21 projects that use this

  • GoBeromsuSkill

    benchmark-checklist

    Vets performance measurements for the limiter, tuning, physical limits, errors, repeatability, relevance, and proof that timed work happened. It applies to 'check this benchmark', 'report this speedup', measured regressions, and choosing a library or configuration from numbers. It reports spread and gaps before drawing a conclusion. Not for general testing policy or choosing test oracles - use principle-testing.

    Also in 30 projects that use this

  • +4 more from shiwenbin1617

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 94 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write no comment by default.

    line 8
  2. Distinctive:

    When you can't tell whether a comment earns its place, delete it.

    line 19
  3. Distinctive:

    When you change code, update or delete the comments next to it in the same edit.

    line 34
  4. Distinctive:

    If the claim is false or unclear, delete the comment.

    line 47
  5. Distinctive:

    If the claim is true, offer the cheapest check that enforces it: a type, a runtime assertion, a test, or a lint rule.

    line 48
  6. Very specific:

    Look up the rule behind each eslint-disable, @ts-ignore, @ts-expect-error, # noqa, or #[allow(...)].

    line 52
  7. Distinctive:

    Check every comment and suppression in the files or diff you were given.

    line 60

“Common” is measured: kept by at least 6 in 10 of the 94 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

No comments

Write no comment by default. A comment earns its place only when a fresh reader needs it at that line and can't get it from the code. A fresh reader opens the file cold and never saw the diff or the chat.

What earns a comment

  • A non-obvious invariant, such as "timeout must stay below interval, ALB rule".
  • A cross-file sync duty, such as "keep in sync with the router's target groups".
  • Behavior forced by something you can't change: an external dependency, platform, vendor, or protocol.
  • A one-line summary on a public function or endpoint. Private and trivial helpers get none.
  • A TODO for work outside the current scope. It needs no issue ID.
  • A legal or license header.

When you can't tell whether a comment earns its place, delete it.

Delete comments that restate the code

Narration such as "loop over users", names, types, signatures, Args: and Returns: blocks, step numbers, end-of-block markers, and banner dividers all restate the code. So does a decision the code already shows, such as "1 vCPU is deliberate". Delete these even when they link to a doc.

Delete comments only the session can read

  • Change narration: "fixed X", "updated to Y", "as requested". Change context goes in the commit message.
  • Notes to the chat user: "replace with your API key".
  • Placeholders for elided code: "... rest unchanged".
  • Tutorial asides and hedges: "in a real app you would", "for production, consider". Do the work, or write a TODO.

Keep comments from going stale

  • When you change code, update or delete the comments next to it in the same edit.
  • Describe the function, not its current callers. A list of callers goes stale when someone adds one.
  • Make the comment complete with its link removed. Link only a maintained doc at a stable path, or put a ticket, RFC, or permalink after the substance. Specs, spec sections such as "spec §7", and design docs go stale.
  • Move a system-level story about why the code is built this way to a maintained doc, whole. Keep only the local details inline.

Fix the code instead of explaining it

A comment that explains a surprise in your own code means the code should change. Rename, extract, add a type, or restructure until the behavior is obvious, then delete the comment. For a workaround, fix the root cause instead of adding a guard that hides the symptom. When the root cause is outside the scope, make the smallest fix in scope and report the rest as open work.

Enforce constraints in code

IMPORTANT, NOTE, do not remove, and talk to X before changing are claims. Trace the symbol the comment names and check the claim against the code.

  • If the claim is false or unclear, delete the comment.
  • If the claim is true, offer the cheapest check that enforces it: a type, a runtime assertion, a test, or a lint rule. After the user approves, add the check and delete the comment. Without approval, delete the comment and report the constraint as unenforced.

Suppress only style rules

Look up the rule behind each eslint-disable, @ts-ignore, @ts-expect-error, # noqa, or #[allow(...)]. Suppress a style-only or pedantic rule. For a rule that catches real bugs or protects safety, fix the code instead.

Word each kept comment in one line

A real why can still be three times too long. State the one fact the reader needs at that line, in plain text with no emojis, in the fewest words. Cut the mechanism the code shows, where a value is used downstream, the consequence of the consequence, and the justification of the justification. A five-line block almost never survives whole, and sometimes the right length is zero.

When reviewing

Check every comment and suppression in the files or diff you were given. The review is done when each one is kept, trimmed, deleted, or replaced by a code fix. Then report:

  • the number of comments deleted
  • code fixes made in place of comments
  • constraints enforced with a check
  • constraints left unenforced
  • open work outside the scope

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.