next-partial-prefetching-adoption

next-partial-prefetching-adoption is a skill for Claude Code from vercel/next.js. It costs 103 tokens per session (5,946 once invoked), scanned A, original, MIT.

A workflow for enabling Partial Prefetching in Next.js, which loads shared page parts ahead of navigation instead of fetching every destination in full.

In plain words
What is it for?
Use it to enable the setting, mark routes for partial prefetching, review link behavior, and test navigation in a production-like build.
Why use it?
It helps developers review the changes revealed by the feature and confirm that existing prefetched behavior is preserved.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions AGENTS.md.

Part of the nextjs plugin — 6 skills shipped together

Good fit Use it to enable the setting, mark routes for partial prefetching, review link behavior, and test navigation in a production-like build.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vercel/next.js/next-partial-prefetching-adoption
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 · 143,028 stars · on GitHub · nextjs.org

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.

Any agent
npx skills add vercel/next.js --skill next-partial-prefetching-adoption
Clone the repo
git clone --depth 1 https://github.com/vercel/next.js

Made for: Claude Code.

Or install nextjs, the plugin that ships this one along with the rest of its 6 skills.

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-partial-prefetching-adoption

README.md
[![agentmods](https://agentmods.dev/badge/skills/vercel/next.js/next-partial-prefetching-adoption/github.svg)](https://agentmods.dev/skills/vercel/next.js/next-partial-prefetching-adoption)
Your own site
<a href="https://agentmods.dev/skills/vercel/next.js/next-partial-prefetching-adoption"><img src="https://agentmods.dev/badge/skills/vercel/next.js/next-partial-prefetching-adoption/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for next-partial-prefetching-adoption

Your own site · 80×15
<a href="https://agentmods.dev/skills/vercel/next.js/next-partial-prefetching-adoption"><img src="https://agentmods.dev/badge/skills/vercel/next.js/next-partial-prefetching-adoption.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,946 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 6 Oct 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
  • Socket pass 6 Oct 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 31
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 39
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 127
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.1 $0.00103 $0.05946
Opus 5.5 $0.00041 $0.02378
Sonnet 5.5 $0.00021 $0.01189
Haiku 4.5 $0.00010 $0.00595

Measured 9d ago against content hash 258989169e68, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

next-partial-prefetching-adoption 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 9d 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.

skills/next-partial-prefetching-adoption/SKILL.md · 185 lines

How it starts

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

next-partial-prefetching-adoption

Enable Partial Prefetching and walk the app until every link reuses a shared App Shell. This skill sequences the work; per-insight recipes live in the dev overlay fix cards and their docs pages. The Adopting Partial Prefetching guide is the canonical reference for the concepts this skill applies.

The development insights and the preservation tests are two different paths. Insights surface only in next dev, in the dev overlay's Insights tab. Test-backed preservation runs against a production-like build with instant() and does not need a development server. After the flag is enabled, the separate URL-data insight sweep still uses next dev.

preservation gate

When using test-backed preservation, the first implementation milestone is a passing flag-off instant() suite. Set up the production test rig, write the selected assertions, run them with partialPrefetching disabled, and record the command and exit status. Test-only configuration required by the rig, including experimental.exposeTestingApiInProductionBuild, is allowed, but until that baseline passes, do not enable partialPrefetching or edit the destination, cache boundaries, or Link props. Installing missing test dependencies is part of reaching the baseline, not a reason to adopt first. Use the manual path only when rig-template.md identifies a concrete blocker the repository cannot resolve, and record the blocker and deferred test coverage.

Talk to the user in terms of what they'll see — PRs, features, and how the app behaves after — never the insight slugs or step labels. Before you start, tell them briefly what Partial Prefetching changes: links to a route prefetch one shared App Shell, and prefetch={true} can also resolve cached URL-specific content. The audit determines which UI from the legacy full prefetch to preserve.

Read the full file on GitHub · 185 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago Changed 258989169e68
  2. 23d ago Changed a37933780bc5
  3. 1mo ago Changed 88876911616c
  4. 1mo ago First seen · 185 lines · 103 tokens per session scan A 21ec863374c8

Subscribe to this mod's changes

next-partial-prefetching-adoption is a skill published in the GitHub repository vercel/next.js (143,028 stars, last pushed today), licensed MIT. It adds 103 tokens to every session and 5,946 once invoked, about $0.0004 per session on Opus 5.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.