Create and maintain AGENTS.md documentation for simple projects and complex monorepos with deterministic discovery, scoped instruction files, and low-token navigation patterns; use when generating AGENTS.md, updating agent docs, or standardizing AI-facing project guidance.
Does it follow best practices?
Evaluation — 92%
↑ 1.05xAgent success when using this tile
Validation for skill structure
Common problems when creating AGENTS.md files and their solutions.
Problem: Complex repository with unclear package boundaries or mixed patterns Symptoms:
Solution:
Fallback: Create minimal root file pointing to package-specific documentation
Problem: Project has 10+ local skills, overwhelming to list all Symptoms:
Solution:
Example:
## Local Skills
- Frontend: See `.agents/skills/frontend/index.md`
- Backend: See `.agents/skills/backend/index.md`
- DevOps: Use `deployment` skill for CI/CD tasksProblem: Repository contains Python, Node.js, Go, etc. with different patterns Symptoms:
Solution:
Structure:
AGENTS.md (routing only)
services/api-go/AGENTS.md (Go-specific)
services/web-node/AGENTS.md (Node.js-specific)Problem: Project already has README files, wiki pages, or other docs Symptoms:
Solution:
Pattern:
## Architecture
See [Architecture Decision Records](docs/adr/) for design decisions
## API Documentation
Authoritative API docs: [OpenAPI spec](api/openapi.yaml)Problem: AGENTS.md becomes outdated quickly due to rapid development Symptoms:
Solution:
Stable patterns:
# Good - pattern-based
- Components: `src/components/**/*.tsx`
- Tests: Colocated `*.test.tsx`
# Bad - specific examples that break
- Button: `src/components/Button/Button.tsx`
- Modal: `src/components/Modal/Modal.tsx`Problem: Team members want different approaches documented Symptoms:
Solution:
Approach:
## Current Patterns
- New components: Follow `src/components/Button/` structure
- Legacy components: See `src/legacy/` - avoid this pattern
- State management: Redux Toolkit (see `src/store/`)