agentleFS
Codagent-AICodagent-AI/agent-skills/docs/AGENTS.md

agent-skills

AGENTS.md31 starsChanged 6 months agoMITView on GitHub

Format and structure for docs that sync to codagent.dev.

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

15 rules. About 0 are common, 9 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use one public topic per Markdown file.

    line 14
  2. Very specific:

    Use lowercase kebab-case filenames, such as quickstart.md or cli-reference.md.

    line 15
  3. Distinctive:

    Keep repo-facing indexes and the product introduction in README.md.

    line 16
  4. Very specific:

    Put images under docs/images/ and reference them with relative paths like images/workflow.png.

    line 17
  5. Distinctive:

    Keep CLAUDE.md as a symlink to AGENTS.md.

    line 18
  6. Very specific:

    Start the page body with exactly one # heading that matches the page title.

    line 37
  7. Very specific:

    Use ## headings for the table of contents.

    line 38
  8. Very specific:

    Use relative links to other docs, such as Quickstart.

    line 39
  9. Very specific:

    Use fenced code blocks with a language tag, such as bash, yaml, json, or text.

    line 40
  10. Distinctive:

    Prefer tables for compact reference material and ordered lists for procedures.

    line 41
  11. Distinctive:

    Do not use raw HTML; the docs site Markdown renderer disables embedded HTML.

    line 42
  12. Distinctive:

    Write for users of the released tool first, then for contributors.

    line 46
  13. Distinctive:

    Keep current behavior sourced from code first, then current OpenSpec specs, then docs.

    line 47
  14. Distinctive:

    Avoid documenting historical or archived behavior as current behavior.

    line 48
  15. Distinctive:

    When adding a page that should be easy to find, give it frontmatter with the right group and order instead of relying on filename order.

    line 50

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

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

Documentation Authoring Guide

These instructions apply to Markdown files in this docs/ directory. The docs sync workflow copies these files into the codagent.dev docs site, where the site generator renders them into the product documentation.

File Structure

  • Use one public topic per Markdown file.
  • Use lowercase kebab-case filenames, such as quickstart.md or cli-reference.md.
  • Keep repo-facing indexes and the product introduction in README.md; the docs site skips README.md.
  • Put images under docs/images/ and reference them with relative paths like images/workflow.png.
  • Keep CLAUDE.md as a symlink to AGENTS.md; edit AGENTS.md directly.

Page Metadata

Public docs should start with simple YAML frontmatter:

---
title: Page Title
group: Getting Started
order: 1
description: One sentence summary for previews and metadata.
---

Supported groups are Getting Started, Guides, Usage, Configuration, Reference, Operations, Evaluation, and Development. Pages inside a group are sorted by order; use larger numbers for less prominent pages.

Markdown Style

  • Start the page body with exactly one # heading that matches the page title.
  • Use ## headings for the table of contents; lower headings are fine inside a section.
  • Use relative links to other docs, such as [Quickstart](quickstart.md).
  • Use fenced code blocks with a language tag, such as bash, yaml, json, or text.
  • Prefer tables for compact reference material and ordered lists for procedures.
  • Do not use raw HTML; the docs site Markdown renderer disables embedded HTML.

Content Expectations

  • Write for users of the released tool first, then for contributors.
  • Keep current behavior sourced from code first, then current OpenSpec specs, then docs.
  • Avoid documenting historical or archived behavior as current behavior.
  • Mention platform or install prerequisites before commands that depend on them.
  • When adding a page that should be easy to find, give it frontmatter with the right group and order instead of relying on filename order.

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.