next-dev-loop

next-dev-loop is a skill for Claude Code, Codex from sanity-io/next-sanity. It costs 68 tokens per session (2,007 once invoked), scanned A, a copy of next-dev-loop, MIT.

A verification workflow for Next.js applications, a JavaScript framework, while a development server is running. It checks the app through Next.js's own runtime information and a real browser.

In plain words
What is it for?
Checking routes, server-rendered behavior, browser output, console errors, network activity, and other runtime effects after code changes.
Why use it?
A successful build or type check does not prove that pages, browser behavior, or runtime errors work correctly.

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/sanity-io/next-sanity/next-dev-loop
Any agent
npx skills add sanity-io/next-sanity --skill next-dev-loop
Clone the repo
git clone --depth 1 https://github.com/sanity-io/next-sanity

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 next-dev-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/sanity-io/next-sanity/next-dev-loop.svg)](https://agentmods.dev/skills/sanity-io/next-sanity/next-dev-loop)
Your own site
<a href="https://agentmods.dev/skills/sanity-io/next-sanity/next-dev-loop"><img src="https://agentmods.dev/badge/skills/sanity-io/next-sanity/next-dev-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,007 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin 94% copy Near-identical to another mod 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.00068 $0.02007
Opus 5 $0.00034 $0.01004
Sonnet 5 $0.00014 $0.00401
Haiku 4.5 $0.00007 $0.00201

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

Security

Grade A, and why

next-dev-loop scanned grade A with 1 finding 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 5d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

again. Don't fall back to `curl`; it bypasses the browser you're
Origin

This is a copy

94% identical to next-dev-loop — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/next-dev-loop/SKILL.md · 189 lines

How it starts

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

next-dev-loop

The edit/verify rhythm during next dev — make a change, then confirm it actually works at runtime, not only that the types or the build are happy.

You verify through two views of the same running app:

  • /_next/mcp — an HTTP endpoint Next.js exposes about itself. Knows framework-specific things: routes, segments, RSC, server actions, server logs, and errors as Next.js saw them. Call tools/list for the current surface.
  • agent-browser — a CLI that drives a real Chrome. Knows framework-agnostic browser things: DOM, console, network, React fiber, vitals. Before driving it, run agent-browser skills get core once for the version-matched usage guide — don't guess subcommands from memory.

The two views cross-check each other.

requires

  • Next.js 16.3+ with Turbopack/_next/mcp plus the proactive compile check via get_compilation_issues.
  • agent-browser >= 0.31.1 — React introspection, worktree-scoped session id, idempotent --restore, and launch flag reconciliation.

These are hard floors, not soft preferences. If anything is missing, tell the user how to upgrade and stop. Don't fall back to grepping source or to a weaker probe — this skill assumes both views are live at the versions above.

preflight

Once per session, confirm both views are live.

  1. Open agent-browser at the target URL, restoring saved login state when present. First derive one stable session id for this checkout and use it for every agent-browser command:

    SESSION="$(agent-browser session id --scope worktree --prefix next-dev-loop)"
    export AGENT_BROWSER_SESSION="$SESSION"
    export AGENT_BROWSER_RESTORE="$SESSION"
    

Read the full file on GitHub · 189 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. 5d ago First seen · 189 lines · 68 tokens per session scan A 07c8721871d5

Subscribe to this mod's changes

next-dev-loop is a skill published in the GitHub repository sanity-io/next-sanity (948 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 2,007 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 94% identical to next-dev-loop, differing in 5 lines, and is treated as a copy.

Related

Other skills, from other repositories

new-block

Scaffold a new page builder block for Turbo Start Sanity end-to-end — Sanity schema, GROQ projection, styled React component, Markdown serializer, tests, and all registrations. Use when asked to add, create, or scaffold a new page builder block, section, or content module (e.g. "add a testimonials block", "create a…

robotostudio/turbo-start-sanity · 83 tokens

next-cache-components

Next.js 16 Cache Components - PPR, use cache directive, cacheLife, cacheTag, updateTag.

robotostudio/turbo-start-sanity · 26 tokens

sanity-live-cache-components

Integrates Sanity Live with Next.js Cache Components in next-sanity v13+ apps. Sets up sanityFetch, , Visual Editing, Presentation Tool, draft mode handling, and the three-layer (Page/Dynamic/Cached) component pattern with explicit perspective/stega prop-drilling. Use when configuring or migrating a Next.js app to…

robotostudio/turbo-start-sanity · 110 tokens

next-upgrade

Upgrade Next.js to the latest version following official migration guides and codemods.

robotostudio/turbo-start-sanity · 19 tokens

create-example

Create a new Liveblocks example app for the gallery under examples/. Use when asked to build a new example, demo, or showcase app, or when restructuring an existing example. Covers scaffolding, gallery conventions (exampleId, examplePreview, database.ts, HelpButton), providers configuration, AI patterns, styling…

liveblocks/liveblocks · 77 tokens

write-docs

Write and review Liveblocks documentation, API reference, guides, and quickstarts. Use when editing files under docs/, documenting a new Liveblocks feature, updating API reference pages, adding docs routes, or reviewing documentation for clarity, discoverability, and consistency.

liveblocks/liveblocks · 55 tokens