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).
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,040 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 repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- configs/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- integration-test/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- configs/CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- .github/CLAUDE.mdCLAUDE.md
- integration-test/CLAUDE.mdCLAUDE.md
- contract-reviewSkill
- liferay-debugSkill
- parallel-orchestrationSkill
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
- Very specific: line 7
One fact, one file: Before writing a rule, contract or gotcha, search for it (grep -rn '<term>' --include='*.md' .).
- Distinctive: line 16
Links and paths must resolve: Use relative Markdown links.
≈ “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.
Files
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: copydocs/adr/template.md, next free number, add it todocs/adr/README.md.AGENTS.mdfiles — 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.
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.

