agentleFS
iblaiiblai/lms/AGENTS.md

lms

AGENTS.md14 starsChanged 8 months agoMITView on GitHub

After editing any .ts, .tsx, .js, .jsx, .css, or .json file, run prettier on the changed files before committing: The pre-commit hook does this automatically, but running it upfront avoids formatting noise in diffs. The project uses prettier-plugin-tailwindcss, so Tailwind class order is enforced too. See .claude/skills/prettier-format.md for full details. Comments are a cost. Most well-named code needs none. Do not narrate the code — prefer clear names over prose that restates what the code already says. Add a comment…

  • Commits and pushes
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After editing any .ts, .tsx, .js, .jsx, .css, or .json file, run prettier on the changed files before committing:

    line 5
  2. Distinctive:

    Add a comment ONLY to capture what the code cannot:

    line 20
  3. Distinctive:

    When in doubt, leave it out.

    line 33
  4. Very specific:

    Never use --no-verify when committing or pushing.

    line 37
  5. Distinctive:

    Only exception: the user explicitly instructs it in the current message.

    line 39
  6. Very specific:

    After any change to user-facing behavior, evaluate whether e2e/coverage.json and e2e/COVERAGE.md need updating.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “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
AGENTS.md

LMS — Claude Code Rules

Formatting

After editing any .ts, .tsx, .js, .jsx, .css, or .json file, run prettier on the changed files before committing:

pnpm prettier --write <changed-files>
git add -u

The pre-commit hook does this automatically, but running it upfront avoids formatting noise in diffs. The project uses prettier-plugin-tailwindcss, so Tailwind class order is enforced too.

See .claude/skills/prettier-format.md for full details.

Code comments — only when necessary

Comments are a cost. Most well-named code needs none. Do not narrate the code — prefer clear names over prose that restates what the code already says.

Add a comment ONLY to capture what the code cannot:

  • A non-obvious why: a rationale, trade-off, or business rule that isn't visible from the code.
  • A gotcha or workaround: why something is done an unusual way (ideally with a ticket/link).
  • A warning: a non-obvious consequence or ordering requirement.

Do NOT add:

  • Comments that describe the next line (// set the tenant, // loop over items, // fetch the data).
  • Restatements of signatures, types, or obvious control flow.
  • Section-banner or decorative comments.
  • Scaffolding/attribution/changelog notes (// added by …, resolved TODOs, "this now does X").

When in doubt, leave it out. If deleting a comment loses nothing a competent reader wouldn't get from the code itself, delete it. This applies to code you write and code you edit — don't leave behind noise.

Git push — --no-verify is NEVER allowed

Never use --no-verify when committing or pushing. The pre-push hook runs build, lint, typecheck, unit tests, coverage checks, and e2e coverage validation. These are required. If a hook fails, fix the root cause.

Only exception: the user explicitly instructs it in the current message.

See .claude/skills/safe-push.md for the full push protocol and how to handle each failure type.

E2E coverage

After any change to user-facing behavior, evaluate whether e2e/coverage.json and e2e/COVERAGE.md need updating. Coverage must never regress.

See .claude/skills/e2e-coverage.md for the full decision process.

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.