This skill should be used when the user asks to "create an AGENTS.md", "write AGENTS.md", "set up AGENTS.md", "what is AGENTS.md", "configure AI agent instructions", "migrate AGENT.md", "update AGENTS.md", or mentions AGENTS.md format. Provides guidance for creating and maintaining AGENTS.md files - a standardized format for AI coding agent context.
From agentic-docnpx claudepluginhub christophe1997/agent-extentions --plugin agentic-docThis skill uses the workspace's default tool permissions.
examples/basic-agents-md.mdexamples/migration-example.mdreferences/agent-compatibility.mdreferences/lifecycle.mdreferences/validation.mdAGENTS.md is a standardized markdown file that serves as a "README for AI coding agents" - providing dedicated, predictable context to help AI coding agents work effectively on a project.
Unlike README.md (designed for humans), AGENTS.md contains:
Key principle: Give agents a clear, predictable place for instructions while keeping READMEs concise for human contributors.
AGENTS.md is standard Markdown with no required fields:
# AGENTS.md
## Setup commands
- Install deps: `pnpm install`
- Start dev server: `pnpm dev`
- Run tests: `pnpm test`
## Code style
- TypeScript strict mode
- Single quotes, no semicolons
- Use functional patterns where possible
Default: Create one compact, lean AGENTS.md file. This satisfies most projects.
References folder (optional): Only create docs/agents/ when:
Commands use AskUserQuestion to ask about references folder when appropriate.
Key Principle: Keep AGENTS.md lean by referencing detailed documentation instead of duplicating content inline.
Keep in AGENTS.md (inline):
Move to references (only if needed, default: docs/agents/):
Example reference format:
## Testing instructions
- Unit tests: `pnpm test`
- E2E tests: `pnpm test:e2e`
See docs/agents/testing.md for detailed guidelines.
Cross-skill references: Use skill names instead of duplicating content from other domains:
## PR instructions
- Use Conventional Commits (see agd:conventional-commits skill)
Use relative paths when referencing files within the same repository. This makes references portable and works from any subdirectory.
Syntax: Use paths relative to the file's location (e.g., ./relative/path/to/file.md)
Examples:
# In packages/api/AGENTS.md
## Architecture
See ../shared/architecture.md for shared patterns.
## Testing
See ../../docs/agents/testing.md for test guidelines.
Best practices:
./ for files in the same directory../ to go up one directory level../../ to go up two directory levelsCross-subproject references:
# In packages/web/AGENTS.md
## API Integration
See ../api/AGENTS.md for API conventions and patterns.
## Shared Components
See ../../packages/shared/components/ for shared UI components.
When to use:
Implementation checklist:
agd:conventional-commits skillSee examples/basic-agents-md.md for a complete example.
| Command | Purpose | When to Use |
|---|---|---|
/agd:init-agents-md | Create new from scratch | New project, no existing docs |
/agd:migrate-agents-md | Convert from other format | Have AGENT.md, .cursorrules, etc. |
/agd:update-agents-md | Update existing AGENTS.md | File exists but outdated |
No AGENTS.md exists? → Use init-agents-md
AGENT.md or other format exists? → Use migrate-agents-md
AGENTS.md exists but outdated? → Use update-agents-md
Commands use AskUserQuestion to ask about creating the references folder:
Ask when:
Default path: docs/agents/
See references/lifecycle.md for detailed processes.
AGENTS.md works across AI coding agents: OpenAI Codex, Cursor, Claude Code, Aider, Google Jules, Factory.
Symlinks: Create symbolic links for agent-specific files to maintain one source of truth:
ln -s AGENTS.md CLAUDE.mdln -s AGENTS.md .cursorrulesln -s AGENTS.md .windsurfrulesSee references/agent-compatibility.md for tool-specific configs and monorepo patterns.
Use /agd:migrate-agents-md [source-file] to auto-detect and convert AGENT.md, .cursorrules, etc.
mv AGENT.md AGENTS.md
ln -s AGENTS.md AGENT.md # backward compatibility
See examples/migration-example.md for a complete before/after example.
After creating, migrating, or updating AGENTS.md, verify:
See references/validation.md for comprehensive validation checklist.
| Rule | Behavior |
|---|---|
| No required fields | Use any structure that fits the project |
| Test execution | If tests listed, execute them before completing tasks |
| Living document | Update AGENTS.md as project evolves |
| Symlink prompt | Ask user about symlinks after creating AGENTS.md |
| References prompt | Use AskUserQuestion to ask about references folder when project is complex |