next-rspack

next-rspack is a skill for Claude Code, Codex from vercel/next.js. It costs 113 tokens per session (1,953 once invoked), scanned A, original, MIT.

A maintenance guide for the Rspack components used by Next.js. Rspack is a build tool that bundles source code and its dependencies for an application.

In plain words
What is it for?
It is for upgrading Rspack dependencies, changing Rspack-specific behavior, fixing compilation problems, and maintaining the related Rust and package configuration.
Why use it?
It keeps the JavaScript package, Rust components, and Rust toolchain compatible when versions change or compilation fails. It also limits these changes to the rspack directory.

Skill for Claude CodeCodex

About the project

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.

vercel/next.js · 142,095 stars · on GitHub

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/next-rspack
Any agent
npx skills add vercel/next.js --skill next-rspack
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 next-rspack

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel/next.js/next-rspack.svg)](https://agentmods.dev/skills/vercel/next.js/next-rspack)
Your own site
<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>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,953 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.00113 $0.01953
Opus 5 $0.00056 $0.00977
Sonnet 5 $0.00023 $0.00391
Haiku 4.5 $0.00011 $0.00195

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

Security

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.

.agents/skills/next-rspack/SKILL.md · 268 lines

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/core npm 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. The rust-toolchain.toml in 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

Read the full file on GitHub · 268 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 · 268 lines · 113 tokens per session scan A e01f1134f290

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories

typescript

Write strongly-typed TypeScript code in Recharts.

recharts/recharts · 12 tokens

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.

phase-rs/phase · 49 tokens

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.

PramodDutta/qaskills · 37 tokens

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…

OpenSecretCloud/Maple · 93 tokens

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.

bobmatnyc/claude-mpm-skills · 52 tokens

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…

tincopper/neeko · 114 tokens