agentleFS
niksavisniksavis/basicly/.agents/skills/no-comments/SKILL.md

no-comments

Skill0 starsChanged 57 days agoMITView on GitHub

Edits code in a repo that bans prose comments: where a fact goes, which directives stay. Use when editing code or when the no-comments gate refuses.

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use make-bot-ui, 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.
  • 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 8 projects that use this

  • shishivSkill

    setup-pstack

    Configure pstack delegation against the active Pi host. Use for /skill:setup-pstack, "configure pstack models", or checking delegation readiness.

    Also in 14 projects that use this

  • TheOnlyFusionCubeSkill

    principle-attack-the-premise

    Inventory who actually owns or exhibits the imbalance, then challenge the shared premise before writing another patch. Use when two or more fixes that share one premise have failed the same gate.

    Also in 10 projects that use this

  • TheOnlyFusionCubeSkill

    principle-test-behavior-not-implementation

    Call the system the way its consumer does and assert meaningful observable output; avoid mocks or assertions that only mirror internal calls. Use when when writing or evaluating tests.

    Also in 10 projects that use this

  • shishivSkill

    principle-never-block-on-the-human

    Apply when tempted to ask 'should I do X?' on reversible work. Proceed, present the result, let the human course-correct after the fact; reserve confirmation for irreversible actions.

    Also in 19 projects that use this

  • finograficSkill

    figure-it-out

    Design an auditable playbook when no narrower one fits: a large migration, an ambitious multi-part change, or work a human reviews after stepping away. Scales rigor to the task, runs a hypothesis loop, and logs decisions via show-me-your-work. Use for /figure-it-out, 'figure it out', a large migration, or when no narrower playbook applies.

    Also in 20 projects that use this

  • +6 more from shishiv

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 25 edited versions we read keep these.

  • 0

    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. Very specific:

    Run languages for the current list.

    line 61

“Common” is measured: kept by at least 6 in 10 of the 25 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
<!-- Generated by `basicly skills-build` from skill.yaml. Do not edit; edit the source. -->

No comments in code

A code file carries no prose: no comment and no docstring. The code is the only source of truth, so a change cannot leave a stale claim beside it. The no-comments hook refuses a commit that adds prose.

Rules

  • Put the fact where something checks it. A comment is a claim that nothing checks.
  • Fix the code when it needs prose to say what it does. Rename it, split it, or give the condition a name.
  • Do not write code that is harder to read. A short name, a function with nine branches or a bare magic number has no comment to excuse it.
  • Keep each directive, with its code and a reason after it. A tool reads the directive, and the reason is part of it.

Where a fact goes

The factWhere it goes
A measurement: a count, a time, a ratethe commit message, and the issue or record of the change
What a function raises, changes or returnsa test that asserts it, and the type signature
What a bare str can holda type, an enum or a validator
Why this branch and not the othera name for the condition, or a test named after the case
Which incident a guard exists forthe issue id in the commit message, and the test that reproduces it
What the module is forits README, or the design document
A fact you cannot placeit was not necessary. Drop it.

Directives that stay

The gate never reports a directive, and fix never removes one:

noqa · nosec · type: ignore · pragma: no cover · fmt: off / fmt: on / fmt: skip · a shebang · eslint-disable · prettier-ignore · @ts-expect-error · @ts-nocheck · stylelint-disable · go:build · CHECKSTYLE: · NOSONAR · SPDX-License-Identifier · a /*! licence banner · an HTML conditional comment.

Commands

python3 .basicly/core/kit/comments/cli.py check <path>      # report; exit 1 when it finds prose
python3 .basicly/core/kit/comments/cli.py fix <path>        # remove the prose
python3 .basicly/core/kit/comments/cli.py languages         # each file extension it covers
  • check never writes.
  • fix writes only a change it can prove. A second strip must change nothing, and every string literal must stay. A Python file must parse to the same syntax tree.
  • fix reports a file that it cannot read with certainty and leaves the file unchanged.

Scope

YAML, TOML, JSON and Markdown keep their comments, because no code beside them is the source of truth. The kit skips vendored directories such as vendor and node_modules. Run languages for the current list.

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.