agentleFS
dominik1001dominik1001/imap-mcp/.agents/skills/review-agents-md/SKILL.md

review-agents-md

Skill15 starsChanged 7 days agoMITView on GitHub

Reviews an AGENTS.md or CLAUDE.md file against best practices and reports concrete fixes. Use when the user asks to review, audit, lint, or improve an AGENTS.md / CLAUDE.md / context file, or says "review my agents file".

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the target file (default: AGENTS.md, then CLAUDE.md at repo root).

    line 10
  2. Distinctive:

    Mechanical scan first: Before judging content, grep the file for two cheap, high-yield signals — they catch what a read-through glosses …

    line 11
  3. Distinctive:

    Do not auto-edit the file unless the user asks.

    line 18

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
SKILL.md

The meta-principle: a context file earns its tokens. Every line must tell the agent something it can't infer from the code, the formatter, or the linter. If a line could be deleted without the agent getting worse, delete it.

Workflow

  1. Read the target file (default: AGENTS.md, then CLAUDE.md at repo root). If both exist, review both.
  2. Mechanical scan first. Before judging content, grep the file for two cheap, high-yield signals — they catch what a read-through glosses over:
    • Tombstone markers: is gone, no longer, obsolete, deprecated, used to, formerly, previously, was hardcoded, and old version numbers (0.1x, v1, etc.). Each hit is a tombstone candidate (these markers have false positives — confirm against the Tombstones rubric, don't auto-flag).
    • Internal duplication: pull distinctive nouns/commands (a just <verb>, a filename, a flag) and check whether the same fact appears in two sections.
  3. Evaluate against each rubric below. For every issue, quote the offending lines and propose a concrete rewrite — not just a critique.
  4. Report findings grouped by severity: Cut (delete), Rewrite (fix in place), Add (missing required content).
  5. End with a one-line verdict: total lines now vs. proposed, and whether the tech stack is mentioned.

Do not auto-edit the file unless the user asks. Surface the diff first.

Rubric

Length & signal density

Good: Short and load-bearing. Every line is non-obvious and would change agent behavior if removed. Bad: Long preambles, restated obvious facts ("we use TypeScript"), or generic engineering advice. Flag any file over ~200 lines as suspect and identify the lowest-signal sections to cut.

No internal duplication

Good: Each fact stated once, in its best-placed section. Bad: The same fact in two places (e.g. "every operation is a just <verb>" in both the intro and a later "Justfile" section). Duplication doubles the rot surface — the copies drift apart over time. Flag repeats; keep the single best-placed instance.

Non-obvious content only

Good: Conventions, architecture choices, tooling quirks ("we use bun, not node"; "migrations run via make db-migrate, not the ORM CLI"). Bad: Anything derivable from package.json, Cargo.toml, file extensions, or a five-second skim of the repo. Cut it.

Tech stack is mentioned

Good: The language/runtime/framework choices the agent would otherwise guess wrong are mentioned somewhere in the file (e.g., "Bun 1.x runtime, not Node"; "Postgres 16 + Drizzle, not Prisma"). A dedicated ## Tech Stack section is fine but not required — a one-liner near the top works too. Bad: No mention at all of the non-obvious stack choices, so the agent has to infer them from manifests. If missing, propose a short addition drafted from the repo's manifests.

Project stage & change policy

Good: States the project's stage and the change freedom it grants — e.g. "Prototype: no backwards compatibility. Break APIs, delete dead code, no migration shims." or "Production, safety-critical: every change needs a test and a migration path; never break a public endpoint." This single line reshapes how the agent weighs every change. Mixed zones (core/ production, experiments/ break-freely) belong in a decision table, not one line. Bad: Silent on stage, forcing the agent to guess — so it adds defensive shims to a throwaway prototype, or breaks a public API in production software. If missing, ask the user which stage applies and propose a one-line statement; never guess prototype-vs-production from the code alone (a polished-looking repo can still be a prototype, and guessing wrong is costly in both directions).

Auto-generated content

Good: Hand-written, curated. Bad: Looks /init-generated — boilerplate headings, file-tree dumps, restatement of package.json scripts. Auto-generated context files measurably reduce success rates. Recommend deletion and replacement with a hand-written file.

Outdated docs

Good: Current. References match the code. Bad: Mentions removed files, renamed commands, deprecated workflows. The agent reads these anyway and gets misled. Flag specific stale references and recommend deletion from the repo, not just from the context file.

Tombstones: don't document what's gone

Good: States what the current code/version does. A removed thing appears ONLY when an agent's training data would actively lead it to the dead path (an old CLI/API command it would type), phrased as a redirect. Bad: Accurate history that isn't guidance — "the 0.15 fallback-admin flow is gone", "the mode used to be hardcoded to testing", "the old ["user"] shape is obsolete". These pass the Outdated-docs check (they're true) but they're history, not guidance. Test: would an agent today plausibly try the old thing, AND is there no positive "do" already redirecting it? Only then keep it — as a bare-command guard. If a "do" is present, cut the tombstone.

Don't redocument the formatter / linter

Good: Silent on style — prettier, eslint, rustfmt, ruff enforce it. Bad: "Use 2-space indent", "prefer single quotes", "no unused imports". Cut. If a rule isn't enforced by tooling, recommend adding the rule to the tooling instead of to the context file.

Procedural workflows live elsewhere

Good: Recurring multi-step tasks (release, migration, deploy) live in slash commands or skills. AGENTS.md points to them by name. Bad: Numbered step-by-step procedures embedded in AGENTS.md itself. Recommend extracting each procedure into .claude/commands/<name>.md or a skill, and replacing the section with a one-line pointer.

Decision tables for genuine choices

Good: When 2–3 valid approaches exist, a small table with columns like Situation / Use / Why. Bad: Prose that lists options without telling the agent which to pick when. Convert to a table.

Pair every "don't" with a "do"

Good: "Don't add new endpoints to legacy/api.ts — add them to routes/v2/ and register in routes/index.ts." Bad: "Don't touch the legacy module." A bare prohibition makes the agent over-explore looking for the allowed path. Flag every unpaired "don't" / "never" / "avoid" and propose the missing "do".

Progressive disclosure

Good: The always-loaded root file is small. Path- or task-specific guidance lives in nested AGENTS.md files (e.g., services/billing/AGENTS.md), slash commands, or skills, surfaced only when relevant. Bad: One mega-file with sections that only apply to one subdirectory or one rare task. Identify those sections and recommend moving them to a nested file or a skill.

Output format

Structure the review as:

## Cut (N lines)
- L12–18: <quote>. Reason: <which rubric>. Replacement: <none / shorter line>.
- L42: "the 0.15 `fallback-admin` flow is gone". Reason: tombstone — no live path, redirect already present. Replacement: none.

## Rewrite
- L34: <quote>. Issue: bare "don't". Proposed: <do-form>.

## Add
- Tech stack not mentioned. Proposed addition (one-liner or section):
  <draft>

## Verdict
Before: 187 lines. After proposed edits: ~60 lines. Tech stack mentioned: no → added.

Be specific. Quote line numbers. Propose replacement text, not just labels.

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.