document-design-system
AGENTS.md2 starsChanged 3 months agoMITView on GitHub
This repository treats document design as two independent axes: - Document pattern controls reading structure and is declared with data-pattern. - Theme controls visual voice through semantic tokens and is declared with data-theme. Do not reduce the writing examples to one generic longform layout. Select one of the eleven patterns in core/document-patterns.md, then use the modules that support that reader movement. Keep prose readable at 62–72 characters while allowing maps, tables, comparisons, timelines, and registers to use the wider shell.
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 repository6 other files it gives its agents.
- analytical-document-designSkill
- brand-theme-designSkill
- chart-designSkill
- diagram-designSkill
- presentation-designSkill
- writing-documentsSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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 10
Do not reduce the writing examples to one generic longform layout.
- Distinctive: line 20
When changing a writing-document type:
- Very specific: line 22
Keep its pattern and default-theme fields aligned with scripts/build_examples.py.
- Distinctive: line 24
Update both Markdown and HTML examples.
- Distinctive: line 39
Use the evidence states and leave missing terms unresolved.
- Distinctive: line 44
Do not add source-provenance, copied product naming, or private reference links to repository documents, examples, screenshots, commit …
≈ “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
Repository guidance
This repository treats document design as two independent axes:
- Document pattern controls reading structure and is declared with
data-pattern. - Theme controls visual voice through semantic tokens and is declared with
data-theme.
Do not reduce the writing examples to one generic longform layout. Select one
of the eleven patterns in core/document-patterns.md, then use the modules that
support that reader movement. Keep prose readable at 62–72 characters while
allowing maps, tables, comparisons, timelines, and registers to use the wider
shell.
Markdown in examples/<slug>.md is the canonical repository-friendly form.
Designed HTML is generated from templates/types/<slug>.html; both must use
the same title and factual anchors from examples/WORLD.md.
When changing a writing-document type:
- Keep its
patternanddefault-themefields aligned withscripts/build_examples.py. - Update both Markdown and HTML examples.
- Rebuild with
python3 scripts/build_examples.py. - Regenerate relevant screenshots with
python3 scripts/shoot_examples.py. - Run
python3 -m unittest discover -s tests -v,python3 scripts/validate_repository.py ., andpython3 scripts/build_site.py --check.
Canonical consultancy aliases such as HLD, LLD, TDD, PRD, API spec, PRR, and
RAID route through skills/writing-documents/references/type-index.md; do not
create duplicate types or commands for a familiar filename. The mulesoft
command is a compatibility profile of canonical service-docs, not another
type.
For statements of work, estimates, and other delivery-commercial documents, never invent parties, rates, payment terms, legal clauses, approvals, or dates. Use the evidence states and leave missing terms unresolved.
GitHub Pages is source-built. Do not hand-edit site/; the workflow rebuilds
examples before assembling the deployable site.
Do not add source-provenance, copied product naming, or private reference links to repository documents, examples, screenshots, commit messages, or release notes. Express the design principle in this repository's own vocabulary.
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.

