Generate AGENTS.md with Nuxt documentation for AI coding agents (Cursor, Copilot, Claude, etc.).
Gives your AI assistant instant access to accurate Nuxt API references, reducing hallucinations and improving code quality.
# Run directly with bunx
bunx nuxt-agent-md
# Or install globally
bun add -g nuxt-agent-md
nuxt-agent-md
package.json@nuxt/docs documentation (~1.5 MB)AGENTS.md with the indexThe index format is pipe-delimited for minimal token usage:
CATEGORY|path/to/file.md|keyword1,keyword2,keyword3
-d, --docs-dir <path> Directory to store docs (default: .nuxt-docs)
-o, --output <path> Output AGENTS.md path (default: AGENTS.md)
-v, --nuxt-version <ver> Nuxt docs version (auto-detected from package.json)
--minify Generate minified index (default: true)
--no-minify Generate full index instead of minified
--dry-run Show what would be done without making changes
-h, --help Show this help message
# Auto-detect Nuxt version from package.json
nuxt-agent-md
# Use specific Nuxt version
nuxt-agent-md -v 4.0.0
# Generate full (non-minified) index
nuxt-agent-md --no-minify
# Custom output paths
nuxt-agent-md -d .docs -o CLAUDE.md
The tool generates:
.nuxt-docs/ - Directory containing markdown documentation (auto-added to .gitignore)AGENTS.md - File with minified index pointing to the docsAI coding agents work better when they have access to accurate documentation rather than relying on training data that may be outdated. By providing a compact index in AGENTS.md, the agent can quickly find and read the relevant documentation files for any Nuxt API.
Inspired by Vercel’s research showing that documentation indexes in AGENTS.md significantly improve agent accuracy.
MIT
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.