docs
AGENTS.md207 starsChanged 3 months agoMITView on GitHub
This repository builds docs.deno.com, a Lume static site. This file lays out the ground rules for agents and contributors making changes. For the full developer guide (local setup, search, API reference generation) see README.md. Content lives in a few top-level folders: Most pages are markdown processed as MDX, so JSX syntax works inside .md files. Left navigation for each section is configured in the data.ts file in that section's directory (for example runtime/data.ts). CLI commands each get a reference page…
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Run these locally and make sure they pass:
- Very specific: line 51
Every content page carries a last_modified: YYYY-MM-DD field in its frontmatter.
- Distinctive: line 66
Don't repeat flag documentation in a guide: link to the reference instead.
- Very specific: line 71
When documenting behavior added or changed in a specific Deno version, say so where it's documented: an info admonition titled with the …
- Very specific: line 78
Run deno fmt before committing.
- Distinctive: line 83
Prefer plain sentences and colons over em-dash joins.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 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
Working on the Deno docs
This repository builds docs.deno.com, a Lume static site. This file lays out the ground rules for agents and contributors making changes. For the full developer guide (local setup, search, API reference generation) see README.md.
Project layout
Content lives in a few top-level folders:
runtime/- Deno CLI and runtime docsdeploy/- Deno Deploy docssubhosting/- Deno Subhosting docsexamples/- the Examples sectionai/,sandbox/- additional product sections
Most pages are markdown processed as MDX, so JSX syntax works inside .md
files. Left navigation for each section is configured in the _data.ts file in
that section's directory (for example runtime/_data.ts).
CLI commands each get a reference page under runtime/reference/cli/. The
generated API reference served at /api comes from deno doc over the Deno
source, not from files here.
Before you open a pull request
Run these locally and make sure they pass:
deno fmt # format markdown, TypeScript, and JSON
deno lint # lint the codebase
deno task test # frontmatter, sidebar, and API link testsThe build must also succeed without broken links or invalid MDX:
deno task build:lightOpen small fixes as pull requests against main directly. For larger changes,
file a GitHub issue first to get feedback on the shape before writing the docs.
Content rules
These are enforced in review and, where noted, in CI.
Keep last_modified fresh
Every content page carries a last_modified: YYYY-MM-DD field in its
frontmatter. Whenever you change a page, bump that date to the day of the change
in the same pull request. CI enforces this: frontmatter_test checks that every
page has a valid last_modified, and the Freshness workflow fails when a page
is edited without bumping it. Check your branch with:
deno task check:freshnessGuides teach, reference enumerates
A topic's depth lives in exactly one place. Guide pages (like /runtime/test/)
teach the opinionated path with minimal flags and link out for detail. Reference
pages (under /runtime/reference/) enumerate every flag, field, and option.
Don't repeat flag documentation in a guide: link to the reference instead. A
guide may include at most one summary table when it links to the full reference.
Mark version-specific behavior
When documenting behavior added or changed in a specific Deno version, say so
where it's documented: an info admonition titled with the version
(:::info Deno 2.8) for a callout, or an inline "(Deno 2.8+)" for a brief
mention. Don't version-mark behavior older than the previous major release.
Formatting and prose style
- Run
deno fmtbefore committing. Generated content and hand-written prose both need to pass formatting; wrap long lines so they survive the format step. - CLI command page titles must be exactly the command name (for example
deno run); put descriptions in thedescriptionfrontmatter field. - Frontmatter titles must not contain backticks.
- Prefer plain sentences and colons over em-dash joins.
Examples
Examples in examples/scripts/ are single TypeScript files, no more than 50
lines, self-contained, and runnable with only Deno builtins and the standard
library. Each starts with a JSDoc comment carrying @title, @difficulty,
@tags, @run, and @group pragmas. Introduce at most one or two concepts per
example and keep the code easy to read. See the Examples section of
README.md for the full pragma reference.
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 28,693 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 repository2 other files it gives its agents.
- static/agents.mdAGENTS.md
- static/llms.txtllms.txt
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.

