agentleFS
AvinavaAvinava/document-design-system/AGENTS.md

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.

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
  1. Very specific:

    Do not reduce the writing examples to one generic longform layout.

    line 10
  2. Distinctive:

    When changing a writing-document type:

    line 20
  3. Very specific:

    Keep its pattern and default-theme fields aligned with scripts/build_examples.py.

    line 22
  4. Distinctive:

    Update both Markdown and HTML examples.

    line 24
  5. Distinctive:

    Use the evidence states and leave missing terms unresolved.

    line 39
  6. Distinctive:

    Do not add source-provenance, copied product naming, or private reference links to repository documents, examples, screenshots, commit …

    line 44

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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:

  1. Keep its pattern and default-theme fields aligned with scripts/build_examples.py.
  2. Update both Markdown and HTML examples.
  3. Rebuild with python3 scripts/build_examples.py.
  4. Regenerate relevant screenshots with python3 scripts/shoot_examples.py.
  5. Run python3 -m unittest discover -s tests -v, python3 scripts/validate_repository.py ., and python3 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.