agent
AGENTS.md513 starsChanged 15 months agoApache-2.0View on GitHub
This file tells coding agents how to edit the docs/ site in this repository. 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. VitePress renders through Vue. If docs need literal <span v-pre>{{ }}</span> syntax: Before finishing a docs change: Use the matching zh/ pages whenever you change user-facing content.
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 repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
29 rules. About 0 are common, 23 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
6
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/en/ and docs/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 links.
- Very specific: line 24
Run pnpm docs:build after docs edits.
- Distinctive: line 38
Keep them short and directional.
- Distinctive: line 41
Do not paste a full tutorial into the homepage.
- Distinctive: line 47
Keep conceptual depth light and push deep explanation elsewhere.
- Distinctive: line 51
Use them for path selection, task guidance, and concept framing.
- Distinctive: line 57
Document syntax, option semantics, examples, and related commands.
- Distinctive: line 58
Prefer exactness over narrative.
- Distinctive: line 59
Keep examples realistic and copy-pasteable.
- Distinctive: line 63
Use these for architecture, behavior, interfaces, and constraints.
- Distinctive: line 70
If you tighten or reroute a top-level page in English, make the parallel change in Chinese in the same patch.
- Distinctive: line 75
Keep headings clear and shallow.
- Distinctive: line 76
Prefer direct prose over decorative formatting.
- Distinctive: line 78
Add success criteria for setup flows.
- Distinctive: line 79
Add “when to use this page” framing when a page could otherwise overlap with another section.
- Distinctive: line 87
Use Mermaid when a diagram is the clearest explanation.
- Very specific: line 93
Use <span v-pre> for short inline examples.
- Very specific: line 94
Use ::: v-pre for code blocks that contain template expressions.
- Very specific: line 95
If inline dot-notation such as <span v-pre>{{project.path}}</span> still causes SSR issues, isolate that section with <ClientOnly>.
- Distinctive: line 99
Before finishing a docs change:
- Distinctive: line 102
Keep the current path unless explicitly asked to migrate it.
- Distinctive: line 103
Update both locales for touched public pages.
- Distinctive: line 104
Check internal links and cross-links.
- Distinctive: line 105
Verify examples still match the current product story.
- Very specific: line 119
Use the matching zh/ pages whenever you change user-facing content.
≈ “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.
Files
AGENTS.md
This file tells coding agents how to edit the docs/ site in this repository.
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/en/**anddocs/zh/**file layout unless explicitly asked to restructure it. - Preserve SEO-sensitive URLs.
- Update both locales for any user-facing page you materially change.
- Use absolute internal links.
- Run
pnpm docs:buildafter docs edits.
Docs-Specific Commands
pnpm docs:dev
pnpm docs:build
pnpm docs:previewContent-Type Rules
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
.vitepress/config/en.tsand.vitepress/config/zh.ts. - Assets belong in
docs/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.
- 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
.vitepress/config/index.ts.vitepress/config/en.ts.vitepress/config/zh.tsdocs/README.mddocs/en/index.mddocs/en/guide/quick-start.mddocs/en/guide/getting-started.mddocs/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.

