PlatformPlatform
AGENTS.md440 starsChanged 7 months agoMITView on GitHub
Use the developer CLI skills (build, test, format, lint, e2e, aspire-restart, team-interrupt) for all code workflows. They invoke dotnet run --project developer-cli -- <command> directly. Never run dotnet, npm, or npx directly - the pre-tool-use Bash hook blocks them. Run build first, then format, lint, test in parallel with --no-build. Slow: Aspire restart, backend format, backend lint, end-to-end tests. Fast: frontend format/lint, backend test. Aspire: The aspire-restart skill manages the AppHost - always use it; never aspire run, aspire restart,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository22 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- aspire-restartSkill
- aspire-stopSkill
- buildSkill
- commitSkill
- create-prdSkill
- create-pull-requestSkill
- db-querySkill
- e2eSkill
- enhanced-message-contextSkill
- fix-e2e-testsSkill
- formatSkill
- lingui-best-practicesSkill
- lintSkill
- pull-platformplatform-changesSkill
- rebrandSkill
- rebuild-branchSkill
- swc-plugin-compatibilitySkill
- team-interruptSkill
- testSkill
- ultra-reviewSkill
- upgrade-packagesSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Read before you write: Before adding code in a file, read the file's exports, the immediate caller, and obvious shared utilities.
- Distinctive: line 9
Checkpoint significant steps: After each step in a multi-step task, summarize what was done, what's verified, and what's left.
- Very specific: line 15
Use the developer CLI skills (build, test, format, lint, e2e, aspire-restart, team-interrupt) for all code workflows.
- Very specific: line 17
Run build first, then format, lint, test in parallel with --no-build.
- Distinctive: line 23
Never commit, amend, or revert without explicit user instruction each time.
- Very specific: line 33
When working with [features] or [tasks], read .claude/reference/product-management/[PRODUCT_MANAGEMENT_TOOL].md to learn how to look them …
- Distinctive: line 37
Never write to or edit any auto memory files (MEMORY.md or any file in a memory directory).
- Distinctive: line 41
Always verify paths, names, and API routes against the actual codebase.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Behavioral Guidelines
- Think before coding. State assumptions explicitly. If uncertain, ask rather than guess. When multiple interpretations exist, present them - don't pick silently.
- Goal-driven execution. Define success criteria before iterating. Loop until verified. Strong success criteria let you loop independently; "make it work" requires constant clarification.
- Read before you write. Before adding code in a file, read the file's exports, the immediate caller, and obvious shared utilities. "Looks orthogonal to me" is the most dangerous phrase in this codebase.
- Checkpoint significant steps. After each step in a multi-step task, summarize what was done, what's verified, and what's left. Don't continue from a state you can't describe back.
- Fail loud. Surface uncertainty, don't hide it. "Completed" is wrong if anything was skipped silently. "Tests pass" is wrong if any were skipped. "Feature works" is wrong if the edge case wasn't verified.
Build, Test, and Format
Use the developer CLI skills (build, test, format, lint, e2e, aspire-restart, team-interrupt) for all code workflows. They invoke dotnet run --project developer-cli -- <command> directly. Never run dotnet, npm, or npx directly - the pre-tool-use Bash hook blocks them.
Run build first, then format, lint, test in parallel with --no-build.
Slow: Aspire restart, backend format, backend lint, end-to-end tests. Fast: frontend format/lint, backend test.
Aspire: The aspire-restart skill manages the AppHost - always use it; never aspire run, aspire restart, or the developer CLI's run command. Port = .workspace/port.txt base + 4. Never trust Aspire MCP for the port — a common critical failure that silently runs SQL on another worktree's database. If you need other Aspire MCP data, call mcp__aspire__select_apphost with the cwd path first. In the agentic workflow, only the Guardian agent restarts Aspire. All other agents must notify the Guardian if they need it restarted.
Never commit, amend, or revert without explicit user instruction each time. Commit messages: one descriptive line in imperative form, no description body.
Product Management Tool
Whenever you see [PRODUCT_MANAGEMENT_TOOL], replace it with the configured value.
PRODUCT_MANAGEMENT_TOOL="Linear"When working with [features] or [tasks], read .claude/reference/product-management/[PRODUCT_MANAGEMENT_TOOL].md to learn how to look them up, how to update status, and how generic statuses like [Active], [Review], [Completed] map to the tool. Read the [feature] for full context and the [task] for specific requirements.
Auto Memory
Never write to or edit any auto memory files (MEMORY.md or any file in a memory directory). These files are managed by the user only.
Source of Truth
Always verify paths, names, and API routes against the actual codebase. Never rely on memory, cached context, or prior session knowledge for these. Always look them up. Only read files within the git repository unless explicitly asked to look elsewhere.
Project Structure
This is a mono repository with multiple self-contained systems (SCS), each being a small monolith. All SCSs follow the same structure.
- application: Contains application code, one folder per SCS, plus shared-kernel and shared-webapp.
- cloud-infrastructure: Bash and Azure Bicep scripts (IaC).
- developer-cli: A .NET CLI tool for automating common developer tasks.
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.

