agent-ready-repo / docs-site
AGENTS.md24 starsChanged 2 months agoApache-2.0View on GitHub
Applies to docs-site/. Inherits the root AGENTS.md. Scope-specific deltas only. docs-site/ is the technical documentation site. tools/build-site.py generates much of src/content/docs/ from guides/** and packs/**; edit sources, not generated content. Package manifests own dependency versions. Build order is load-bearing: web/ cleans repository build/, so build it before this site writes build/docs/. - Anchor a reader or navigation decision on the prime journey, not a content brief: this surface owns its stages 4-5, web/ owns 1-3, and changing a stage re-gates…
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,691 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 repository74 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- guides/AGENTS.mdAGENTS.md
- packages/AGENTS.mdAGENTS.md
- packs/AGENTS.mdAGENTS.md
- profiles/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- tools/AGENTS.mdAGENTS.md
- web/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- docs-site/CLAUDE.mdCLAUDE.md
- guides/CLAUDE.mdCLAUDE.md
- packages/CLAUDE.mdCLAUDE.md
- packs/CLAUDE.mdCLAUDE.md
- profiles/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- tools/CLAUDE.mdCLAUDE.md
- web/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- adapt-to-projectSkill
- assimilate-primitiveSkill
- assimilate-repoSkill
- author-briefSkill
- author-delivery-briefSkill
- author-product-docsSkill
- bug-fixSkill
- capture-workSkill
- close-workSkill
- compile-okfSkill
- contract-acquisitionSkill
- explain-diffSkill
- init-projectSkill
- intake-intentSkill
- new-adrSkill
- new-rfcSkill
- new-specSkill
- operational-safetySkill
- project-knowledgeSkill
- propose-catalogue-packSkill
- receive-briefSkill
- rfc-statusSkill
- security-checklists-referenceSkill
- security-checklistsSkill
- work-intakeSkill
- work-loopSkill
- workspace-statusSkill
- adapt-to-projectSkill
- assimilate-primitiveSkill
- assimilate-repoSkill
- author-briefSkill
- author-delivery-briefSkill
- author-product-docsSkill
- bug-fixSkill
- capture-workSkill
- close-workSkill
- compile-okfSkill
- contract-acquisitionSkill
- explain-diffSkill
- init-projectSkill
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
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
- Very specific: line 31
Run python3 tools/lint-npm-allow-scripts.py.
- Distinctive: line 56
After a Starlight upgrade, re-verify integration contracts against the vendored components.
- Very specific: line 79
Use make site-link-check for rendered-link verification.
≈ “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 — docs-site/
Applies to docs-site/. Inherits the root AGENTS.md. Scope-specific deltas only.
Site boundary
docs-site/ is the technical documentation site. tools/build-site.py generates
much of src/content/docs/ from guides/** and packs/**; edit sources, not
generated content. Package manifests own dependency versions.
Build
Build order is load-bearing: web/ cleans repository build/, so build it before
this site writes build/docs/.
python3 tools/build-site.py
npm run build --prefix web
npm run build --prefix docs-siteAction-changing traps
- Anchor a reader or navigation decision on the prime journey,
not a content brief: this surface owns its stages 4-5,
web/owns 1-3, and changing a stage re-gates throughapprove-journey. - Generate content before starting the docs development server.
- The repository, not Starlight, checks rendered internal links after both builds.
- Styling changes must preserve no horizontal scroll at 375 px, usable focus in both themes, and reduced-motion behavior.
- Run
python3 tools/lint-npm-allow-scripts.py; when it fires, add a reviewedallowScriptsentry or repin the dependency so it dedupes to a reviewed version. astro.config.tsimports@astrojs/markdown-remarkdirectly to build the site's Markdown processor withunified({...})asmarkdown.processor. Astro and Starlight carry it as an optional peer, so npm neither installs it nor warns on drift: the build once worked only because npm hoisted@astrojs/mdx's transitive copy to the root, and exited 1 once npm nested that copy instead. Thepackage.jsondeclaration is what makes root placement a requirement rather than a hoisting accident. Keep the pin exact and equal across the manifest and the lockfile's two copies, and satisfying the peer astro and Starlight each declare;tools/test_browser_gate_subset.pyrefuses the lot fromgate-main. Astro declared that peer exactly until 7.2.9 and as a caret from 7.2.10 — expect the shape to change, not just the number.- The remark plugin that turns ```mermaid fences into placeholders is registered
through that processor, and it has silently no-opped before. Nothing caught
it, because no published page carried a fence.
getting-started/three-loopsnow does, andweb/src/test/rendered-output.test.tsasserts the emitted.mermaid-diagram[data-mermaid]— so keep at least one fence in the published corpus, or the plugin becomes unverifiable again. - Under an agent,
astro devforks a detached server and returns at once, recorded in.astro/— so the server § Build tells you to start is not the process you launched. Two carve-outs stay foreground:--ignore-lockon any platform (astro 7.3.3) and Windows (7.3.4). Agent detection still forces JSON everywhere, so either one gets the JSON and a server that never returns. A live orphan blocks the next start on any port, and deleting the record frees nothing; stop it:npm exec --prefix docs-site -- astro dev stop --root docs-site.--rootis load-bearing — astro resolves the project from the working directory, not--prefix; omit--rootand the command falsely reports nothing running. - After a Starlight upgrade, re-verify integration contracts against the vendored
components. 0.42 swapped
<starlight-menu-button>and itsaria-expandedfor the native popover API, silently breakingPageFrame.astro's CSS reveal and every selector keyed to the old markup. That pane ispopover="manual", notauto, because an auto popover light-dismisses on the Product summary, whichsite-shared-chromeforbids; manual costs UA Escape, restored in that component. - Starlight's
print:hiddendoes not suppress an element whose own component<style>setsdisplay, and it fails silently: both compile unlayered at(0,1,0)— Astro's:where()adds no specificity — and the print sheet links first, so the component wins. Suppress in that component's own<style>. Native Starlight components are unaffected; theirs sit in@layer starlight.core, which the unlayered utility outranks. Never fix this by layering adocs-siterule:src/styles/starlight.cssis deliberately unlayered, and layering an override drops its:focus-visibleoutline-offset3px→2px, which no gate catches —web/src/test/e2e/quality-assertions.tsnever readsoutlineOffset. Full reasoning: the comment inFooter.astro. docs-sitecarries exactly one@media printrule, inFooter.astro, hiding the footer's nav groups (spec/docs-site-print-chrome-suppression). The frozensite-browser-quality-gate/notes/print-audit.mdsays "no print CSS from this programme" and is still correct — that is a different, earlier programme.
Deeper pointers
Use make site-link-check for rendered-link verification. Current site architecture
belongs in docs/architecture/; style and component implementation stays with code.
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.

