inject-nextjs-docs
Installation
SKILL.md
Inject Nextjs Docs
Cross-Platform AI Agent Skill This skill works with any AI agent platform that supports the skills.sh standard.
Next.js Agents-MD Codemod
Run the @next/codemod agents-md codemod to inject compressed Next.js framework documentation into the current project. This gives AI coding agents passive access to framework knowledge without requiring tool calls or skills.
Context: Vercel's agent evals showed this approach achieves 100% pass rate vs 53% baseline by compressing ~40KB of docs into ~8KB using a pipe-delimited index.
Anti-Hallucination Guidelines
CRITICAL:
- Verify this is a Next.js project before running anything - check for
nextinpackage.jsondependencies - Do NOT assume npx is available - verify Node.js tooling exists
- Do NOT claim success until verifying the target file exists and contains actual content after the codemod runs
- Read actual output from the codemod - report what it says, not what is expected