context-engineering / examples
AGENTS.md195 starsChanged 8 days agoApache-2.0View on GitHub
Guidance for coding agents working on the Acme storefront, a Node.js web application. Run every command from the repository root.
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,266 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 repository9 other files it gives its agents.
- eval-builderSkill
- governance-checkSkill
- instruction-auditorSkill
- memory-designerSkill
- prompt-reviewerSkill
- retrieval-advisorSkill
- skill-reviewerSkill
- token-budget-auditorSkill
- tool-reviewerSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
18 rules. About 0 are common, 8 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Run the development server: npm run dev (serves on http://localhost:3000)
- Very specific: line 9
Run the unit tests: npm test
- Very specific: line 10
Run the end-to-end tests: start the development server with npm run dev in another terminal, then run npm run test:e2e
- Distinctive: line 22
Use single quotes for strings in JavaScript and TypeScript.
- Distinctive: line 23
Write clean, high-quality code.
- Distinctive: line 24
Prefer named exports over default exports.
- Distinctive: line 28
Use 2-space indentation in every source file.
- Distinctive: line 29
Keep lines under 100 characters.
- Distinctive: line 34
Do not commit directly to main.
- Very specific: line 35
Add or update unit tests for every change in src/.
- Distinctive: line 39
Make sure you are on the main branch.
- Very specific: line 42
Run npm test and stop if any test fails.
- Very specific: line 43
Start the development server with npm run dev, run npm run test:e2e, and stop if any test fails.
- Distinctive: line 46
Add today's date to the new section.
- Very specific: line 47
Update the version field in package.json.
- Very specific: line 48
Run npm install to update package-lock.json.
- Very specific: line 49
Commit with the message chore: release vX.Y.Z.
- Very specific: line 50
Create a tag named vX.Y.Z.
≈ “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
AGENTS.md
Guidance for coding agents working on the Acme storefront, a Node.js web application. Run every command from the repository root.
Build commands
- Install dependencies:
npm ci - Run the development server:
npm run dev(serves on http://localhost:3000) - Run the unit tests:
npm test - Run the end-to-end tests: start the development server with
npm run devin another terminal, then runnpm run test:e2e
Project layout
src/server/: Express routes and middlewaresrc/client/: React componentssrc/shared/: types and helpers used by both sidestests/unit/andtests/e2e/: test suites, mirroring thesrc/structure
Code style
- Indent with tabs.
- Use single quotes for strings in JavaScript and TypeScript.
- Write clean, high-quality code.
- Prefer named exports over default exports.
Formatting
- Use 2-space indentation in every source file.
- Keep lines under 100 characters.
Working rules
- Never make mistakes.
- Do not commit directly to
main. Open a pull request. - Add or update unit tests for every change in
src/.
Releasing a new version
- Make sure you are on the
mainbranch. - Pull the latest changes with
git pull. - Run
npm ci. - Run
npm testand stop if any test fails. - Start the development server with
npm run dev, runnpm run test:e2e, and stop if any test fails. - Open
CHANGELOG.md. - Move the entries under "Unreleased" to a new section named after the version.
- Add today's date to the new section.
- Update the
versionfield inpackage.json. - Run
npm installto updatepackage-lock.json. - Commit with the message
chore: release vX.Y.Z. - Create a tag named
vX.Y.Z. - Push the commit and the tag.
- Open the releases page on GitHub and create a release from the tag.
- Paste the new changelog section into the release notes.
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.

