mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Experimenting with the notion of a "bundled skill" — agent skills shipped directly in the `next` package under `next/dist/skills/<name>/`. The first bundled skill is `next-compile`, which calls the dev server's `get_compilation_issues` MCP tool to check compilation errors. Bundling (rather than shipping as a standalone plugin) fits here because the skill is coupled to Next.js implementation details — the `/_next/mcp` endpoint and the tool schema — so shipping it in lockstep with the `next` version that exposes them keeps them in sync.
748 B
748 B
name, description
| name | description |
|---|---|
| next-compile | Check Next.js compilation errors via a running dev server. Turbopack only. MANDATORY after every code edit before reporting work complete. Replaces `next build`. |
Check Next.js compilation errors
MANDATORY: after any Edit/Write, run step 2 before telling the user the change is done. Never run next build. Turbopack only — the script bails on webpack.
-
Find the port of a running
next dev— check listening processes. If you can't find it, ask the user. -
Run:
node ./scripts/check.mjs <port> -
Fix actionable errors. Ignore noise or pre-existing unrelated failures.
-
Only report the edit complete once step 2 returns clean (or only pre-existing failures).