Next.js is a React framework for building applications that run across the browser and Node.js, including server-rendered applications. It is used by developers building web applications with React components.
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.
npx agentmods add skills/vercel/next.js/next-rspacknpx skills add vercel/next.js --skill next-rspackgit clone --depth 1 https://github.com/vercel/next.jsWrote 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.
[](https://agentmods.dev/skills/vercel/next.js/next-rspack)<a href="https://agentmods.dev/skills/vercel/next.js/next-rspack"><img src="https://agentmods.dev/badge/skills/vercel/next.js/next-rspack.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00113 | $0.01953 |
| Opus 5 | $0.00056 | $0.00977 |
| Sonnet 5 | $0.00023 | $0.00391 |
| Haiku 4.5 | $0.00011 | $0.00195 |
Grade A, and why
next-rspack 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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 268 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Next.js with Rspack
When to Use
Use this skill when you need to:
- Upgrade
@rspack/corenpm package version - Upgrade rspack crate dependency versions
- Upgrade Rust version in
rspack/rust-toolchain.toml(rspack directory only) - Fix Rspack-related compilation issues
- Develop Rspack-specific features in Next.js
⚠️ Scope Limitation: This skill only applies to code and configuration under the
rspack/directory. Therust-toolchain.tomlin the repository root is for Turbopack and is outside the scope of this skill.
Architecture Overview
Package Structure
rspack/ # Independent workspace (separate rust toolchain and npm releases)
├── Cargo.toml # Rust workspace configuration
├── rust-toolchain.toml # Rust version configuration
├── package.json # @next/rspack-core package definition
├── lib/
│ ├── index.js # Exports @rspack/core + custom plugins
│ └── index.d.ts # Type definitions
└── crates/
└── binding/
├── Cargo.toml # Rust crate dependencies (rspack_* crates)
└── package.json # @next/rspack-binding package definition
packages/
└── next-rspack/
└── package.json # References @next/rspack-core
Dependency Graph
packages/next-rspack
└── @next/rspack-core (rspack/package.json)
├── @rspack/core (npm dependency)
└── @next/rspack-binding (rspack/crates/binding)
└── rspack_* crates (Cargo.toml dependencies)
Version Mapping Rules
| @rspack/core npm version | rspack crate version | Notes |
|---|---|---|
2.0.0-rc.0 |
0.100.0-rc.0 |
npm major.minor maps to crate 0.(major*50+minor) |
1.3.x |
0.53.x |
e.g., 1.3 → 0.53 |
1.2.x |
0.52.x |
e.g., 1.2 → 0.52 |
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.
- 5d ago First seen · 268 lines · 113 tokens per session scan A e01f1134f290
next-rspack is a skill published in the GitHub repository vercel/next.js (142,095 stars, last pushed today), licensed MIT. It adds 113 tokens to every session and 1,953 once invoked, about $0.0006 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.
Other skills, from other repositories
typescript
Write strongly-typed TypeScript code in Recharts.
retrain-ai-weights
Use when retraining AI evaluation weights from 17Lands replay data, adding new training datasets, updating learned weight values in phase-ai Rust code, or running CMA-ES optimization for AI profiles and evaluation parameters.
Agent Browser Automation
Fast Rust-based headless browser automation CLI with Node.js fallback for AI agents, featuring navigation, clicking, typing, snapshots, and structured commands optimized for agent workflows.
develop-maple
Develop and debug ordinary non-Agent-Mode Maple features and fixes across its React/Vite frontend and Tauri/Rust application. Use for local setup, choosing the Maple-versus-OpenSecret boundary, implementing UI, state, API-client, native command, desktop, or mobile changes, running focused tests, and preparing a…
react-core
General React fundamentals - components and JSX, props and state, the core hooks (useState/useEffect/useRef/useMemo/useCallback/useContext), composition, conditional and list rendering, and controlled inputs. The canonical "depends on React" reference.
tauri2-react-rust
Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built frontend in browser…