agentleFS
anandartinanandartin/celestial-skills/skills/technical-documentation-engineering/AGENTS.md

celestial-skills / technical-documentation-engineering

AGENTS.md1 starsChanged 18 days agoApache-2.0View on GitHub

Keep a working README, short decision records and docs that change in the same pull request as the code, so people and agents can trust what they read. Generated from the Celestial engineering practice “Technical documentation”.

The file

We split this AGENTS.md into the rules it gives an agent

3 rules. About 1 is common, 2 are distinctive, and 0 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep a working README, short decision records and docs that change in the same pull request as the code, so people and agents can trust …

    line 3
  2. Common:

    Never put real credentials, internal hostnames or personal data in docs or examples.

    line 24
  3. Distinctive:

    Delete docs that are wrong rather than leaving them with a warning.

    line 25

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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

AGENTS.md — Technical documentation

Keep a working README, short decision records and docs that change in the same pull request as the code, so people and agents can trust what they read.

How to do it

  1. Write a README that runs — Cover what the project is in two sentences, prerequisites with versions, install, run, test and deploy commands, and where to get help. Follow it on a clean machine or container to prove it works.
  2. Record decisions as ADRs — For each significant technical choice, add a numbered decision record with context, the decision, alternatives considered and consequences. Never edit an accepted record; supersede it with a new one.
  3. Document the architecture briefly — Keep one page with a simple diagram of the main components, data flow and external dependencies. Link to code entry points rather than describing them in prose.
  4. Explain why in code, not what — Use comments for intent, constraints and non-obvious trade-offs. Document public functions and APIs with their inputs, outputs and errors.
  5. Update docs with the change — When a pull request changes setup, configuration, an API or behaviour, update the related docs in that same pull request.
  6. Write for the task — Organise guides around what the reader is trying to do. Use numbered steps, copyable commands and expected output.
  7. Check docs automatically — Lint Markdown, check links in CI, and run code samples or commands where practical so broken docs fail the build.

Checklist (before a pull request)

  • README install, run and test steps work on a clean environment
  • Significant decisions in this change have an ADR
  • Docs affected by the change are updated in the same pull request
  • Public APIs list inputs, outputs and errors
  • All links in docs resolve
  • Changelog has an entry for user-visible changes

Rules

  • Store docs in the repository next to the code they describe. (Docs reviewed with the code stay accurate; docs in a separate tool drift.)
  • Never put real credentials, internal hostnames or personal data in docs or examples; use placeholders and environment variable names. (Docs are copied, shared and indexed widely.)
  • Delete docs that are wrong rather than leaving them with a warning. (Wrong docs cost more time than missing docs.)
  • Give every diagram a text description and use real headings in order. (Readers using assistive technology need the same information.)

Checks

GateToolThresholdWhen
Docs checksMarkdown linter + link checker in CI0 lint errors; 0 broken linksEvery pull request touching docs

Generated from the Celestial engineering practice “Technical documentation”.

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.