mailbox
AGENTS.md2 starsChanged 58 days agoMITView on GitHub
Do not weaken quality gates to make a change pass. Explain inline suppressions. Use configuration exceptions only where a rule cannot apply, scoped to the affected path and rule. Document only what readers need beyond code, configuration, skills, and existing docs; link instead of repeating. Keep change history, implementation summaries, and test-run logs in PRs. Read only documentation relevant to the current task. This is a canonical file from the standards repository. Project-specific rules belong in AGENTS.local.md. @AGENTS.local.md
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,736 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 repository13 other files it gives its agents.
- ci-pipelinesSkill
- databaseSkill
- declarative-infraSkill
- frontend-designSkill
- issuesSkill
- nextjsSkill
- prsSkill
- review-fixSkill
- reviewSkill
- screenshots-in-prsSkill
- secrets-and-configSkill
- standards-syncSkill
- ux-uiSkill
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
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
- Distinctive: line 5
Do not weaken quality gates to make a change pass.
- Distinctive: line 9
Do not build backwards compatibility by default.
- Distinctive: line 10
Ask before choosing product intent or another costly, durable direction.
- Very specific: line 14
Use Bun only, at the exact version declared by the root packageManager.
- Distinctive: line 33
Use Effect extensively where it makes code more robust.
- Distinctive: line 40
Write plainly and directly.
- Distinctive: line 41
Use sentence case for reader-facing text — UI copy, labels, command-style actions, Markdown headings — preserving proper nouns, acronyms, …
- Distinctive: line 42
Do not hard-wrap Markdown prose.
- Distinctive: line 46
Document only what readers need beyond code, configuration, skills, and existing docs.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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.
Files
AGENTS.md
Quality gates
Do not weaken quality gates to make a change pass. Explain inline suppressions. Use configuration exceptions only where a rule cannot apply, scoped to the affected path and rule.
Change policy
- Do not build backwards compatibility by default. Migrate every call site and delete the old shape in the same change. Do not add deprecated aliases, versioned copies, or compatibility-only optional parameters.
- Ask before choosing product intent or another costly, durable direction. Assume no background knowledge or familiarity with the code; explain what is at stake, where each option leads, and recommend one before presenting technical evidence.
Package management
- Use Bun only, at the exact version declared by the root
packageManager. - Workspaces using Bun runtime or
bun:testtypes must declare@types/bun.
Architecture
- App code lives in
apps/*. Business logic belongs insrc/features/<domain>and app-wide infrastructure insrc/shared. Keep single-app code in the app unless it has an intentional shared contract. - Shared code lives in
packages/*and defaults tosrc/<capability>.ts(x)plus colocated tests, with deeper folders only when the capability needs them. - Package names use the project alias
@<actual-project-name>/<package-name>. Canonical packages use@davidvornholtand change in the standards repository. - Entrypoints route, parse initial inputs, wire Effect layers, and bridge to runtime or UI.
- Dependency flow is
entrypoint -> features -> shared -> packages. Features do not import sibling features, and cross-package imports use package aliases rather than relative paths. - A cohesive boundary file may exceed the 400-line lint limit through a scoped
biome.jsoncoverride and an entry indocs/quality/no-excessive-lines-per-file-exceptions.md.
Workspace scripts
- Operational scripts belong to the owning workspace's
package.json. Keep root scripts minimal: the quality gates plus narrowly useful filtered Turbo convenience aliases. - Canonical repo-spanning workflows and convenience recipes live in the root
justfile; project-specific recipes live inlocal.just.
Effect standards
- Use Effect extensively where it makes code more robust. Keep simple synchronous logic and UI components plain, integrating Effect at boundaries.
- Service contracts expose typed errors and requirements. Represent expected failures with
Schema.TaggedError, a stable_tag, and an actionablemessageinstead of throwing. - In an Effect v4 workspace, follow the agent guide that ships with the package at
node_modules/effect/AGENTS.mdfor idioms this section does not cover. - Workspace-wide exceptions require an architectural reason in
AGENTS.local.md; keep each workspace consistent.
Writing style
- Write plainly and directly. Avoid mannered prose, decorative metaphors, and stock phrases. Prefer literal wording and sentences that are easy to follow.
- Use sentence case for reader-facing text — UI copy, labels, command-style actions, Markdown headings — preserving proper nouns, acronyms, filenames, package names, and domain terms.
- Do not hard-wrap Markdown prose; keep each paragraph or list item on one logical line.
Documentation
Document only what readers need beyond code, configuration, skills, and existing docs; link instead of repeating. Keep change history, implementation summaries, and test-run logs in PRs. Read only documentation relevant to the current task.
Project-specific rules
This is a canonical file from the standards repository. Project-specific rules belong in AGENTS.local.md.
@AGENTS.local.md
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
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.

