Next.js 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`.
install
source · Clone the upstream repo
git clone https://github.com/vercel/next.js
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/vercel/next.js "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/next-compile" ~/.claude/skills/vercel-next-js-next-compile && rm -rf "$T"
manifest:
skills/next-compile/SKILL.mdsource content
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
— check listening processes. If you can't find it, ask the user.next dev -
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).