insight-error-page

insight-error-page is a skill for Claude Code, Codex from vercel/next.js. It costs 83 tokens per session (4,994 once invoked), scanned A, original, MIT.

A guide for writing or checking an error page for the Next.js development overlay, the panel developers see when the framework reports a problem during development.

In plain words
What is it for?
Use it to create or audit an errors/*.mdx page, including its title, fix cards, copy-prompt button, snippets, and terminology.
Why use it?
It keeps the page's wording, fix cards, code examples, and links aligned with the actual error guidance shown by Next.js.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/vercel/next.js/insight-error-page
Any agent
npx skills add vercel/next.js --skill insight-error-page
Clone the repo
git clone --depth 1 https://github.com/vercel/next.js

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for insight-error-page

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel/next.js/insight-error-page.svg)](https://agentmods.dev/skills/vercel/next.js/insight-error-page)
Your own site
<a href="https://agentmods.dev/skills/vercel/next.js/insight-error-page"><img src="https://agentmods.dev/badge/skills/vercel/next.js/insight-error-page.svg" alt="Measured on agentmods" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00083 $0.04994
Opus 5 $0.00042 $0.02497
Sonnet 5 $0.00017 $0.00999
Haiku 4.5 $0.00008 $0.00499

Measured 4d ago against content hash 106619cf59b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

insight-error-page scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/insight-error-page/SKILL.md · 251 lines

How it starts

The opening of the file, as written. The whole thing — 251 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Insight Error Page — Write & Audit

Write or audit an errors/<slug>.mdx insight-kind page that ships from this repo to nextjs.org and mirrors the fix-card set in the Next.js dev overlay.

Terminology: the frontmatter uses kind: insight but the body text calls these "errors" — never "insights". Write "this error", "error pages", "dismiss the error".

When to use this skill

  • Write mode: "create the error page for next-prerender-random", "write the sync IO docs"
  • Audit mode: "audit the blocking-prerender-dynamic page", "check the error pages match the framework"
  • Any task involving errors/*.mdx insight pages (frontmatter has kind: insight)

Source of truth chain

Every decision traces back to one of these. When in doubt, read the source — don't guess.

What Source file How to read it
Card titles, IDs, groups, snippets, link URLs packages/next/src/next-devtools/dev-overlay/components/instant/instant-guidance-data.ts Each FixCard[] array is one error family
Error headline (literal text user sees) packages/next/src/server/app-render/sync-io-messages.ts, blocking-route-messages.ts, etc. createSyncIOError, createDynamicBodyError, etc. — the template string is the headline
Existing page (content to preserve) errors/<slug>.mdx in this repo Read the full file; relocate useful content that doesn't fit fix cards into Gotchas or Other options
Canonical API docs (terminology) docs/01-app/ in this repo Cross-check every API name, directive name, and concept against the published docs
Template structure This skill file (below) The canonical shape of the page
Vercel writing style The vercel-technical-writing skill in vercel/front (not present here) Apply end-to-end; see "Voice and style" below for the rules condensed

Read the full file on GitHub · 251 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 251 lines · 83 tokens per session scan A 106619cf59b1

Subscribe to this mod's changes

insight-error-page is a skill published in the GitHub repository vercel/next.js (142,020 stars, last pushed 4d ago), licensed MIT. It adds 83 tokens to every session and 4,994 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.