agentleFS
yasuflatland-lfyasuflatland-lf/liferay-dummy-factory/docs/AGENTS.md

liferay-dummy-factory

AGENTS.md48 starsChanged 53 days agoMITView on GitHub

Scope: docs/. The rules in this file apply to every Markdown file in the repository (root files, AGENTS.md files, skills), not only to docs/. Also obey the root AGENTS.md. The documentation map is README.md. Before finishing any change to code or docs, run node scripts/check-docs.mjs (CI runs it too).

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    One fact, one file: Before writing a rule, contract or gotcha, search for it (grep -rn '<term>' --include='*.md' .).

    line 7
  2. Distinctive:

    Links and paths must resolve: Use relative Markdown links.

    line 16

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

Scope: docs/. The rules in this file apply to every Markdown file in the repository (root files, AGENTS.md files, skills), not only to docs/. Also obey the root AGENTS.md.

The documentation map is README.md. Before finishing any change to code or docs, run node scripts/check-docs.mjs (CI runs it too).

  • One fact, one file. Before writing a rule, contract or gotcha, search for it (grep -rn '<term>' --include='*.md' .). If it exists, edit it there and link to it. Duplicates are review blockers.
  • Put it where its reader looks (Diátaxis):
    • docs/guides/ — task-oriented how-tos (install, develop, test, release, troubleshoot).
    • docs/reference/ — facts and contracts to look up (APIs, configuration, test ids, dependencies).
    • docs/architecture/ — explanations of how and why the system is built this way.
    • docs/adr/ — decision records; immutable once accepted (only Status and links change). New ADR: copy docs/adr/template.md, next free number, add it to docs/adr/README.md.
    • AGENTS.md files — short, imperative rules for agents, scoped to their directory; they link to docs for explanations instead of repeating them. How they are organized: reference/agent-instructions.md.
    • .agents/skills/ — step-by-step procedures an agent runs on request.
  • No versions in prose. Name the file that pins a version instead of the version (the checker rejects copies of pinned tool versions).
  • Links and paths must resolve. Use relative Markdown links; quote real repository paths in backticks. The checker verifies both, plus anchors.
  • Update docs in the same change as the code they describe — including the README feature list, the compatibility table and the reference tables (operations, parity, test ids).
  • Write plainly: English, short sentences, tables for lookups, code blocks for commands. Assert facts you have verified in the code; do not describe aspirations as behaviour.

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.