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:

  1. Verify this is a Next.js project before running anything - check for next in package.json dependencies
  2. Do NOT assume npx is available - verify Node.js tooling exists
  3. Do NOT claim success until verifying the target file exists and contains actual content after the codemod runs
  4. Read actual output from the codemod - report what it says, not what is expected
Installs
6
GitHub Stars
4
First Seen
Mar 26, 2026
inject-nextjs-docs — mgiovani/cc-arsenal