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
Use this template when documenting API or backend service packages.
MANDATORY: Before using this template, analyze the current project to identify:
grep -r "express\|fastify\|koa\|nest\|hapi\|django\|flask\|gin\|fiber" package.json pyproject.toml go.mod | head -3find . -name "*route*" -o -name "*endpoint*" -o -name "*handler*" | grep -v node_modules | head -5find . -name "*middleware*" -o -name "*auth*" | grep -v node_modules | head -5grep -r "zod\|joi\|yup\|ajv\|pydantic" package.json pyproject.toml | head -3find . -name "*error*" -o -name "*exception*" | grep -E "\.(js|ts|py|go)$" | head -5## API Patterns
- Framework: [DETECTED_FRAMEWORK] ([Express/Fastify/Django/etc])
- Routes: `[DETECTED_ROUTES_PATH]/**/*` OR "Route organization not found"
- Auth: `[DETECTED_AUTH_PATH]` OR "Auth middleware not detected"
- Validation: [DETECTED_VALIDATION_LIB] schemas in `[SCHEMA_PATH]/**`
- Errors: `[ERROR_CLASS_NAME]` from `[ERROR_FILE_PATH]`
- Example route: `[ACTUAL_ROUTE_EXAMPLE_PATH]`Node.js/Express: Look for app.js, server.js, route files
Node.js/Fastify: Look for Fastify plugins, route definitions
Node.js/NestJS: Look for controllers, decorators, modules
Python/Django: Look for urls.py, views, serializers
Python/Flask: Look for route decorators, blueprints
Go: Look for handler functions, router setup
PHP: Look for route definitions, controllers
Before documenting, analyze how routes are actually organized:
Find actual middleware in use:
next()Find what's actually implemented:
Look for existing patterns in the codebase: