Agents Md
Generate AGENTS.md project documentation with feedback instructions, architecture, and conventions. Use when starting a new project or updating project docs.
Generate AGENTS.md documentation for this project:
-
Check
$ARGUMENTSfor overwrite intent (look for--overwrite,overwrite,force,regenerate, etc.). -
If
AGENTS.mdalready exists and overwrite was NOT requested:- Report: "AGENTS.md already exists. Use --overwrite to replace."
- Stop.
-
Analyze the project by reading:
package.json(dependencies, scripts, name, description)tsconfig.json,jest.config.*,vitest.config.*,.eslintrc*,tailwind.config.*etc.- Directory structure (
src/,lib/,test/,components/,.github/workflows/) README.mdfor project description- Existing
.agents/directory files if any .github/workflows/*.ymlfor CI/CD infoDockerfile,docker-compose.ymlif present
-
Generate
AGENTS.mdwith this structure:
<!-- BEGIN GENERATED: AGENTS-MD -->
# AGENTS.md
Learnings and patterns for future agents working on this project.
## Feedback Instructions
TEST COMMANDS: [<discovered test commands>]
BUILD COMMANDS: [<discovered build commands>]
LINT COMMANDS: [<discovered lint commands>]
FORMAT COMMANDS: [<discovered format commands>]
## Project Overview
PRIMARY LANGUAGES: [<languages>]
<brief description>
## Build System
BUILD SYSTEMS: [<build tools>]
<details>
## Testing Framework
TESTING FRAMEWORKS: [<test runners>]
<details>
## Architecture
ARCHITECTURE PATTERN: <pattern description>
<details>
## Deployment
DEPLOYMENT STRATEGY: <strategy>
<details>
---
_This AGENTS.md was generated using agent-based project discovery._
<!-- END GENERATED: AGENTS-MD -->
-
Discover feedback commands from:
package.jsonscripts (test, build, lint, format, check, typecheck)- CI/CD workflow files (commands in
run:steps) - Config files (jest, vitest, eslint, prettier configs indicate available tools)
-
Create
.agents/directory if it doesn't exist, and generate detail files:.agents/languages.md- Language stack details.agents/build.md- Build system details.agents/testing.md- Testing framework details.agents/architecture.md- Architecture patterns.agents/deployment.md- Deployment strategy
-
If
AGENTS.mdexists and overwrite was requested:- Preserve any content OUTSIDE the
<!-- BEGIN GENERATED -->/<!-- END GENERATED -->markers - Only replace content between the markers
- Preserve any content OUTSIDE the
-
Write
AGENTS.mdto project root.