feat(Agents): structure agents docs with progressive disclosure (#26946)

This commit is contained in:
Francesco Borzì
2026-08-04 09:25:52 +02:00
committed by GitHub
parent c55191a1be
commit 3d5dccf0ca
10 changed files with 127 additions and 84 deletions
+20
View File
@@ -0,0 +1,20 @@
# .agents/docs
Task-scoped agent guidance, routed from AGENTS.md's "Mandatory reading per task". Keep every doc
compact and agent-agnostic.
## Taxonomy
- Root — task-type docs (`build.md`, `cpp-guidelines.md`, `sql-guidelines.md`, …), kebab-case.
`<lang>-<topic>.md` is reserved for language-scoped specializations (e.g. `cpp-scripts.md`).
- `systems/` — cross-language subsystem docs, plain kebab-case subsystem names
(e.g. `battleground.md`).
## Placing new guidance
- The most specific applicable doc wins.
- Generic language lesson → the language doc (e.g. generic C++ → `cpp-guidelines.md`).
- Subsystem-specific lesson → `systems/<subsystem>.md`; create it if missing.
- Extend an existing doc before creating a new one.
- A new doc REQUIRES adding its routing bullet to AGENTS.md's "Mandatory reading per task" in the
same change.