agent
AGENTS.md538 starsChanged 15 months agoApache-2.0View on GitHub
This file tells coding agents how to edit public documentation, architectural decisions, and repository development notes under docs/. Improve the docs without breaking the existing public path structure. Use the current site model: Do not turn one page into multiple content types at once.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 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 repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 1mcp-cliSkill
- 1mcp-preparation-setupSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
42 rules. About 0 are common, 31 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈31
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use the current site model:
- Distinctive: line 16
Do not turn one page into multiple content types at once.
- Very specific: line 20
Keep the current docs/site/en/ and docs/site/zh/ file layout unless explicitly asked to restructure it.
- Distinctive: line 22
Update both locales for any user-facing page you materially change.
- Distinctive: line 23
Use absolute internal site links for public pages.
- Very specific: line 24
Run pnpm docs:build after docs edits.
- Very specific: line 36
Put maintained contributor workflows, diagnostic procedures, and implementation constraints in docs/development/.
- Very specific: line 38
Keep these development documents outside docs/site/en/ and docs/site/zh/ and out of public site navigation.
- Distinctive: line 39
Keep user-facing setup instructions, prerequisites, supported behavior, and limitations in the localized site.
- Distinctive: line 40
Use relative file links between repository notes and full documentation-site URLs for links from notes to public pages.
- Distinctive: line 41
When moving development content, update all incoming links and navigation.
- Distinctive: line 48
Document the current workflow.
- Distinctive: line 50
Keep dated results, pass counts, rollout narratives, screenshots, and task checklists with their PR, issue, or CI run.
- Distinctive: line 51
Update the existing explanation when behavior changes.
- Distinctive: line 53
Update affected procedures and links with behavior changes.
- Distinctive: line 58
Default to a short title and one paragraph of 1–3 sentences covering context, decision, and rationale.
- Very specific: line 60
Put implementation and verification notes in docs/development/.
- Very specific: line 61
Keep ADRs in English and use sequential NNNN-short-slug.md names.
- Very specific: line 65
Use the canonical terms in GLOSSARY.md when present.
- Distinctive: line 69
Keep them short and directional.
- Distinctive: line 72
Do not paste a full tutorial into the homepage.
- Distinctive: line 78
Keep conceptual depth light and push deep explanation elsewhere.
- Distinctive: line 82
Use them for path selection, task guidance, and concept framing.
- Distinctive: line 88
Document syntax, option semantics, examples, and related commands.
- Distinctive: line 89
Prefer exactness over narrative.
- Distinctive: line 90
Keep examples realistic and copy-pasteable.
- Distinctive: line 94
Use these for architecture, behavior, interfaces, and constraints.
- Distinctive: line 101
If you tighten or reroute a top-level page in English, make the parallel change in Chinese in the same patch.
- Distinctive: line 106
Keep headings clear and shallow.
- Distinctive: line 107
Prefer direct prose over decorative formatting.
- Distinctive: line 109
Add success criteria for setup flows.
- Distinctive: line 110
Add “when to use this page” framing when a page could otherwise overlap with another section.
- Distinctive: line 118
Use Mermaid when a diagram is the clearest explanation.
- Very specific: line 124
Use <span v-pre> for short inline examples.
- Very specific: line 125
Use ::: v-pre for code blocks that contain template expressions.
- Very specific: line 126
If inline dot-notation such as <span v-pre>{{project.path}}</span> still causes SSR issues, isolate that section with <ClientOnly>.
- Distinctive: line 130
Before finishing a docs change:
- Distinctive: line 133
Keep the current path unless explicitly asked to migrate it.
- Distinctive: line 134
Update both locales for touched public pages.
- Distinctive: line 135
Check internal links and cross-links.
- Distinctive: line 136
Verify examples still match the current product story.
- Very specific: line 150
Use the matching zh/ pages whenever you change user-facing content.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
This file tells coding agents how to edit public documentation, architectural decisions, and repository development notes under docs/.
Mission
Improve the docs without breaking the existing public path structure.
Use the current site model:
index.mdpages are entrypoints.guide/teaches or helps complete tasks.commands/documents CLI behavior precisely.reference/is for exact lookup and architecture.
Do not turn one page into multiple content types at once.
Non-Negotiables
- Keep the current
docs/site/en/**anddocs/site/zh/**file layout unless explicitly asked to restructure it. - Preserve SEO-sensitive URLs.
- Update both locales for any user-facing page you materially change. Repository development notes are English-only.
- Use absolute internal site links for public pages; use repository file links as described below for development notes.
- Run
pnpm docs:buildafter docs edits.
Docs-Specific Commands
pnpm docs:dev
pnpm docs:build
pnpm docs:previewDevelopment Documentation Placement
- Put maintained contributor workflows, diagnostic procedures, and implementation constraints in
docs/development/. Put run-specific results, acceptance evidence, and delivery history in the relevant PR, issue, or CI artifacts. - VitePress builds only
docs/site/; repository notes stay outside that directory. Public pages belong in its locale directories. - Keep these development documents outside
docs/site/en/anddocs/site/zh/and out of public site navigation. Maintain development documents in English only; both site locales link to the same English repository file. - Keep user-facing setup instructions, prerequisites, supported behavior, and limitations in the localized site. The existing public development guide may link to repository notes rather than embedding their evidence or harness details.
- Use relative file links between repository notes and full documentation-site URLs for links from notes to public pages. Public pages linking to repository notes must use GitHub file URLs, not VitePress routes.
- When moving development content, update all incoming links and navigation. Retain a short routing page only for an existing public URL that must remain accessible.
Content-Type Rules
Contributor handbook (docs/development/)
- Each page must answer a recurring contributor question: how to change, test, or diagnose a subsystem, or which constraints make a change safe. A completed task alone does not justify a new page.
- Document the current workflow. Include purpose, prerequisites, commands, expected observations, and failure interpretation where relevant; reference pages need only the structure their subject requires.
- Preserve knowledge that is difficult to recover from code: hidden prerequisites, cross-component relationships, and non-obvious constraints. Link to owning scripts, tests, and configuration instead of copying assertion inventories or settings tables.
- Keep dated results, pass counts, rollout narratives, screenshots, and task checklists with their PR, issue, or CI run. Distinguish a procedure's expected outcome from an observed result; a historical pass is not current support evidence.
- Update the existing explanation when behavior changes. Remove obsolete instructions and migration narration; preserve durable decision rationale in ADRs. Version pins belong here only when required to run the documented workflow.
- Link each page from the development index or a relevant contributor guide. Prefer extending an existing page over adding a second page for the same task.
- Update affected procedures and links with behavior changes. Merge or remove pages that no longer answer a useful question, repairing incoming links. Before finishing, ask: what can a contributor do or understand better because this page exists?
Architectural decision records (docs/adr/)
- Apply the
domain-modelingskill when recording or revising architectural decisions. Create an ADR only when the decision is costly to reverse, surprising without context, and the result of a real trade-off. All three criteria must hold. - Default to a short title and one paragraph of 1–3 sentences covering context, decision, and rationale. Add status, considered alternatives, or consequences only when they help a future reader understand the decision.
- Record durable architectural boundaries, constraints, and reasons. ADRs must not contain development details: code snippets, file-by-file changes, implementation plans, task checklists, reproduction commands, test matrices, or acceptance evidence.
- Put implementation and verification notes in
docs/development/. Put issue requirements and delivery plans in the issue tracker following the issue-tracker instructions. Link to those details when needed instead of embedding them in the ADR. - Keep ADRs in English and use sequential
NNNN-short-slug.mdnames; choose the next number after the highest existing ADR. When a decision changes, make its status and any superseding ADR explicit.
Domain terminology
- Use the canonical terms in
GLOSSARY.mdwhen present. Capture resolved definitions there using thedomain-modelingskill; keep the glossary limited to domain meanings, without implementation details, specifications, or decision history.
Home and landing pages
- Keep them short and directional.
- Explain what 1MCP is.
- Route readers to the correct next page.
- Do not paste a full tutorial into the homepage.
Quick start
- Optimize for the fastest successful outcome.
- Include prerequisites, exact steps, expected output, and next steps.
- Keep conceptual depth light and push deep explanation elsewhere.
Getting started and other guides
- Use them for path selection, task guidance, and concept framing.
- Split “what path should I take?” from “what exact flags does this command support?”
- Link to command and reference pages rather than duplicating them.
Command docs
- Document syntax, option semantics, examples, and related commands.
- Prefer exactness over narrative.
- Keep examples realistic and copy-pasteable.
Reference docs
- Use these for architecture, behavior, interfaces, and constraints.
- Avoid tutorial-style repetition.
Bilingual Editing Rules
- English and Chinese pages should match in intent and structure.
- Translation can be idiomatic, but the workflow and conclusions should stay aligned.
- If you tighten or reroute a top-level page in English, make the parallel change in Chinese in the same patch.
Writing Standards
- One page, one primary reader question.
- Keep headings clear and shallow.
- Prefer direct prose over decorative formatting.
- Keep commands runnable.
- Add success criteria for setup flows.
- Add “when to use this page” framing when a page could otherwise overlap with another section.
VitePress and Markdown Notes
- Frontmatter is required for public pages.
- English content is served from root paths; Chinese content is served from
/zh/. - Locale navigation lives in
site/.vitepress/config/en.tsandsite/.vitepress/config/zh.ts. - Assets belong in
docs/site/public/images/. - Use Mermaid when a diagram is the clearest explanation.
Literal Template Syntax
VitePress renders through Vue. If docs need literal <span v-pre>{{ }}</span> syntax:
- Use
<span v-pre>for short inline examples. - Use
::: v-prefor code blocks that contain template expressions. - If inline dot-notation such as
<span v-pre>{{project.path}}</span>still causes SSR issues, isolate that section with<ClientOnly>.
Editing Checklist
Before finishing a docs change:
- Confirm the page type and keep its content within the corresponding rules above.
- Keep the current path unless explicitly asked to migrate it.
- Update both locales for touched public pages.
- Check internal links and cross-links.
- Verify examples still match the current product story.
- Run
pnpm docs:build.
Useful Files
site/.vitepress/config/index.tssite/.vitepress/config/en.tssite/.vitepress/config/zh.tsdocs/README.mddocs/site/en/index.mddocs/site/en/guide/quick-start.mddocs/site/en/guide/getting-started.mddocs/site/en/commands/index.md
Use the matching zh/ pages whenever you change user-facing content.
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.

