Migrate existing agent documentation to the standardized AGENTS.md format. Use when the user wants to convert, migrate, or port from AGENT.md, .cursorrules, .windsurfrules, CLAUDE.md, or contributing.md. Also triggers on 'convert .cursorrules to AGENTS.md', 'migrate agent docs', 'switch to AGENTS.md format'.
From agentic-docnpx claudepluginhub christophe1997/agent-extentions --plugin agentic-docThis skill is limited to using the following tools:
Migrate existing agent documentation files to the standardized AGENTS.md format. Default to creating a compact single file; ask about references folder only for complex projects.
Load the agents-md skill for format guidance:
Use Skill tool with skill="agd:agents-md"
Provides: sections, structure, symlink patterns, best practices
Detect and migrate from common agent documentation files:
| Source File | Detection | Migration Strategy |
|---|---|---|
AGENT.md | Single-file predecessor | Convert to AGENTS.md, ensure all sections covered |
.cursorrules | Cursor IDE rules | Extract rules, convert to AGENTS.md sections |
.windsurfrules | Windsurf IDE rules | Extract rules, convert to AGENTS.md sections |
CLAUDE.md | Claude Code instructions | Merge with AGENTS.md or convert |
contributing.md | Developer guidelines | Extract relevant sections for AGENTS.md |
Detect source files:
ls -la | grep -E '(AGENT\.md|\.cursorrules|\.windsurfrules|CLAUDE\.md)'
If no source specified, auto-detect:
Read and analyze source file:
Transform to compact AGENTS.md format:
./docs/agents/testing.md)../api/AGENTS.md)Create the new AGENTS.md:
Ask about references folder using AskUserQuestion (only if source was verbose or user wants detailed docs):
questions: [
{
"question": "Would you like me to create a references folder for the detailed content from the original file?",
"header": "References",
"options": [
{
"label": "No, single file is enough",
"description": "Keep AGENTS.md as a simple, compact file. Recommended for most projects."
},
{
"label": "Yes, create docs/agents/",
"description": "Create references folder and move detailed content there."
},
{
"label": "Yes, use custom path",
"description": "Specify a custom path for the references folder."
}
]
}
]
Only ask if:
Create reference files (if user chose yes):
Validate the migrated file:
Handle original file:
Call AskUserQuestion:
{
"questions": [{
"question": "What should I do with the original source file?",
"header": "Original file",
"options": [
{"label": "Create symlink", "description": "Run ln -sf AGENTS.md <original-file> so it points to the new AGENTS.md."},
{"label": "Keep as-is", "description": "Leave the original file unchanged alongside AGENTS.md."},
{"label": "Delete original", "description": "Remove the original file after migration is complete."}
]
}]
}
ln -sf AGENTS.md <original-file>rm <original-file>Ask about additional symlinks:
Call AskUserQuestion:
{
"questions": [{
"question": "Would you like me to create symlinks for other AI agents?",
"header": "Symlinks",
"options": [
{"label": "No symlinks", "description": "Keep AGENTS.md as the only file."},
{"label": "Create CLAUDE.md", "description": "Symlink CLAUDE.md → AGENTS.md for Claude Code compatibility."},
{"label": "Create all symlinks", "description": "Create CLAUDE.md, .cursorrules, and .windsurfrules all pointing to AGENTS.md."}
]
}]
}
ln -sf AGENTS.md CLAUDE.mdln -sf AGENTS.md CLAUDE.md && ln -sf AGENTS.md .cursorrules && ln -sf AGENTS.md .windsurfrulesTransform common patterns:
| Source Pattern | AGENTS.md Section |
|---|---|
| "Run tests with..." | Testing instructions |
| "Code style: ..." | Code style |
| "Before committing..." | PR instructions |
| "Environment setup..." | Setup commands |
| "Security notes..." | Security |
# Before (verbose .cursorrules, 80 lines)
## Code Style
- Use TypeScript strict mode
- Single quotes for strings
- No semicolons
- Max line length: 100 characters
- Functional components with hooks
- Colocate tests next to components
- Use meaningful variable names
- Avoid any type
- Prefer const over let
- Document complex functions with JSDoc
[... 50 more lines of detailed conventions ...]
# After (compact AGENTS.md, 60 lines)
## Code style
- TypeScript strict mode
- Single quotes, no semicolons
- Functional components with hooks
## PR instructions
- Use Conventional Commits (see agd:conventional-commits skill)
- Run `pnpm lint && pnpm test` before pushing
After migration, verify: