agentleFS
rishabhsisodiyarishabhsisodiya/stop-guessing/skills/audit/SKILL.md

audit

Skill0 starsChanged 2 months agoMITView on GitHub

Run /audit to write the AGENTS.md context files every other skill reads: the real stack, the commands that actually work, the folder layout, the conventions the code actually follows. Run it first on an existing codebase, or after the stack is scaffolded on a new one. Records only what it can see evidence for, and never overwrites anything a human wrote.

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use delight, teach-impeccable 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.
  • HK-hubSkill

    delight

    Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful. Use when the user asks to add polish, personality, animations, micro-interactions, delight, or make an interface feel fun or memorable.

    Also in 32 projects that use this

  • HK-hubSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 20 projects that use this

  • zwy123zwySkill

    normalize

    将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。

    Also in 19 projects that use this

  • ww-w-aiSkill

    qa-phase

    Run QA tests at various levels (L1-L5) for features under PDCA management. Integrates with MCP tools to execute structured test plans.

    Also in 3 projects that use this

  • SkillPilotCHSkill

    level-up

    Eine Automatisierung pro Woche finden, scopen, shippen. Output landet als proposed-Eintrag in cadence.md mit konkreten Implementations-Schritten.

    Also in 13 projects that use this

  • +7 more from HK-hub

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 11 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If you cannot point at the evidence, it is not a fact.

    line 30
  2. Distinctive:

    Never writes an aspiration: If the repo has three tests and no CI, AGENTS.md says that, not "we practise TDD".

    line 36
  3. Very specific:

    Never guesses a command: Run it, or mark it unverified and say so.

    line 39
  4. Distinctive:

    If a CLAUDE.md already exists with real content, leave it alone and add the pointer line at the top only if it is not already there.

    line 74
  5. Distinctive:

    Read the one you need, not all of them.

    line 94
  6. Distinctive:

    Never from memory, always from the repo:

    line 111
  7. Distinctive:

    Conventions: read several real files in each layer.

    line 120
  8. Very specific:

    Read command-discovery.md and follow it.

    line 130
  9. Distinctive:

    Read it again immediately before writing.

    line 157
  10. Distinctive:

    Add missing sections. Update only lines this skill owns (a version, a command, a path).

    line 158
  11. Distinctive:

    Leave every line of human prose untouched.

    line 159
  12. Distinctive:

    When something you own has changed, replace that line, and list the change in the report rather than silently.

    line 160
  13. Distinctive:

    When the repo contradicts something a human wrote, do not edit it.

    line 162

“Common” is measured: kept by at least 6 in 10 of the 168 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

What this skill does

Writes down what is true about this project, so every other skill stops guessing.

/develop reads AGENTS.md to know the test command. /architect reads it to know the patterns in use. /verify reads it to know how to start the app. Without it, each of them re-derives your project from scratch every session, and gets it slightly wrong each time.

The output is AGENTS.md at the repo root, plus nested ones where a subdirectory genuinely differs, plus a thin CLAUDE.md that points at it so Claude Code picks it up too.

Facts, not standards

This is the line that keeps AGENTS.md useful:

  • A standard is how code should be written, is true of every project, and already ships in develop/build-standards.md. Do not copy any of it here.
  • A fact is what is true of this repo, and can only be discovered by reading it.

AGENTS.md holds facts. "No query inside a loop" is a standard and does not belong here. "Tests are pnpm test:unit, and services live in src/modules/<name>/" is a fact and does.

If you cannot point at the evidence, it is not a fact.

What this skill refuses to do

  1. Never records a convention without evidence. Two or more real examples, or it does not go in. One occurrence is a sighting, not a convention.
  2. Never writes an aspiration. If the repo has three tests and no CI, AGENTS.md says that, not "we practise TDD". A context file that describes a better project than the one on disk makes every skill downstream wrong.
  3. Never guesses a command. Run it, or mark it unverified and say so.
  4. Never overwrites human written content. It adds what is missing and updates only the lines it owns. Curated prose is left exactly as found.
  5. Never writes code, specs, or scope rows.
  6. Never runs anything the boundary blocks. Build and test commands are fine; migrations, seeds and database writes are handed over. See _shared/boundaries.md.
  7. Never invents structure that is not there. A messy repo gets described as it is. Recommendations go in the report, not into the file as if they were already true.

Modes, inferred

  • brownfield: existing code, no AGENTS.md or an out of date one. The main case. Read modes/brownfield.md.
  • greenfield: the stack was just decided and scaffolded. Read modes/greenfield.md.
  • area: an argument names a directory (/audit src/auth). Write or update a nested AGENTS.md for that directory only, covering what differs from the root. Do not restate anything the root already says. Everything else in this file still applies.
  • gapfill: AGENTS.md exists and is broadly right. Fill only what is missing or stale, touch nothing else. This is what a re-run does.

Nested files

One AGENTS.md per place that genuinely differs: a workspace in a monorepo, a service with its own commands, a frontend beside a backend. A nested file covers only the differences and never repeats the root. If a directory has nothing different to say, it gets no file.

The CLAUDE.md pointer

AGENTS.md is the real file, and is tool agnostic so any agent can read it. Claude Code reads CLAUDE.md, so write a thin pointer beside the root file:

See [AGENTS.md](./AGENTS.md) for this project's stack, commands, structure and conventions.

If a CLAUDE.md already exists with real content, leave it alone and add the pointer line at the top only if it is not already there. Never move someone's instructions into AGENTS.md without asking.

Handing the stack onward

/audit is usually the first thing that knows what a brownfield project is built with. When the audit is done:

  • The stack goes in the Stack table of AGENTS.md, which lives in the project. That is the one place a skill records what this repo is built with.
  • Never write to _shared/stack-defaults.md. That file sits inside the skills directory, which may be installed once for the whole machine. Writing this project's facts into it would overwrite another project's, and the next /guard would write rules for the wrong tool. It is a preference, read only to every skill.
  • Recommend /guard in the report, since the stack is now known and its rules can be specific to it. On a brownfield repo with real data, recommend it before /develop.

Reference files

Read the one you need, not all of them.

  • command-discovery.md: how to find a project's commands whatever it is built with, which are safe to run, and which to ask about first. Read it in Step 3.
  • agents-template.md: the shape of the file being written. Read it in Step 5.
  • modes/brownfield.md, modes/greenfield.md: read exactly one, in Step 1.

Execution

Step 1: Classify and read the mode file

Existing source files and no useful AGENTS.md → brownfield. A fresh scaffold from a stack spec → greenfield. An argument naming a directory → area. A good AGENTS.md that is missing pieces → gapfill. Read exactly one mode file, or handle area and gapfill inline.

Step 2: Gather evidence

Never from memory, always from the repo:

  • Stack: manifests and lockfiles (package.json, requirements.txt, pyproject.toml, Gemfile, go.mod, composer.json, pom.xml, *.csproj), plus the lockfile's name, which tells you the package manager. Record real versions, not ranges.
  • Commands: the scripts section, the Makefile, the CI workflow. CI is the most reliable source, because those commands demonstrably run.
  • Structure: the directory tree to two or three levels, skipping dependencies and build output. What lives where, in one line each.
  • Conventions: read several real files in each layer. Naming, file organisation, error handling, validation approach, test style, import style. Two examples minimum.
  • Entry points: how the app starts, what ports, what it needs to run.
  • Configuration: which environment variables are required. Names only, never values.
  • Gotchas: the things that cost a newcomer an afternoon. A build step that must run first, a service that must be up, a generated file that must not be edited, a test that needs a database.

Step 3: Verify the commands

Read command-discovery.md and follow it. In short:

  • Record roles, not a fixed list. Which of restore, run, build, static checks, lint, test, test one file and migrations does this project actually have? A Go project has no typecheck role and a Django project has no build step. A role the project does not have is recorded as none, which is a fact, not a blank.
  • Run what is safe: static checks, lint, tests, anything read only.
  • Ask before restoring dependencies. That is not a read: it writes a dependency directory, needs the network, can take minutes, and with the wrong command can rewrite a lockfile, which is a change to the repo nobody asked for. If the engineer would rather not, record it unverified with the reason and carry on.
  • Never run migrations, seeds or resets. Record the command, hand it over.

This is the most valuable part of the file, because a wrong test command makes every later skill wrong in a way nobody notices for a while. Which is also why a command that was never run is never marked verified.

Step 4: Ask only what the repo cannot tell you

At most one panel, up to four questions, and only for things genuinely not discoverable: which of two competing patterns is the intended one going forward, whether a directory is deprecated, whether an odd looking thing is deliberate. Never ask what you can read.

Step 5: Write

Per agents-template.md. Adding to an existing file:

  • Read it again immediately before writing.
  • Add missing sections. Update only lines this skill owns (a version, a command, a path).
  • Leave every line of human prose untouched.
  • When something you own has changed, replace that line, and list the change in the report rather than silently.
  • When the repo contradicts something a human wrote, do not edit it. Flag it in the report and let them decide.

Step 6: Report

## /audit · <repo or area>

**AGENTS.md <written | updated> · <N> commands verified, <M> unverified.**
Stack: <one line>
Commands: <the ones that matter, marked where unverified>
Nested: <any nested AGENTS.md written>                          (omit if none)
Conflicts: <where the repo contradicts existing written guidance>  (omit if none)
Noticed: <real problems worth fixing, as suggestions only>          (omit if none)
Next: <`/guard` when the stack is now known, else `/scope` or `/architect`>

The Noticed line is for genuine problems found while reading: a dead directory, two competing patterns, a test suite that does not run. Suggestions only. This skill does not fix them and does not write them into AGENTS.md as if they were resolved.

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.