# 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`. Use when this capability is needed.

- Skill: `tomevault-io/next-compile` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/next-compile`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/next-compile/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/next-compile

---


# 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.

1. Find the port of a running `next dev` — check listening processes. If you can't find it, ask the user.

2. Run:

   ```bash
   node ./scripts/check.mjs <port>
   ```

3. Fix actionable errors. Ignore noise or pre-existing unrelated failures.

4. Only report the edit complete once step 2 returns clean (or only pre-existing failures).

---
> Source: [314systems/next.js](https://github.com/314systems/next.js) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-15 -->

