Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

next-partial-prefetching-adoption

Skill by vercel

Guides a Next.js app through adopting Partial Prefetching, from the partialPrefetching flag to preserving prefetched UI with instant() tests. Written for developers on Next.js 16.3 or later with Cache Components enabled.

  • Score 94
  • 144k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install next-partial-prefetching-adoption

Built from the published package, never by AI.

git clone --depth 1 https://github.com/vercel/next.js /tmp/next.js && mkdir -p ~/.claude/skills && cp -r /tmp/next.js/skills/next-partial-prefetching-adoption ~/.claude/skills/next-partial-prefetching-adoption

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install next-partial-prefetching-adoption in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill sequences the work of turning on Partial Prefetching in a Next.js app. It covers enabling the partialPrefetching flag, opting routes in with the route-level prefetch export, and auditing Link prefetch={true} navigations. It also covers resolving the instant-link-prefetch-partial and instant-shell-url-data insights. Links to a route prefetch one shared App Shell, while prefetch={true} can also resolve cached URL-specific content. The skill follows a preservation gate: a flag-off instant() test suite must pass before the flag is enabled.

It is for developers who run Next.js 16.3 or later with Cache Components enabled and a browser they can drive. Insights appear only under next dev, while preservation tests run against a production-like build. The skill points to the Adopting Partial Prefetching guide and to offline docs bundled with Next.js.

Written from the project's SKILL.md and checked against it.

What it can do

  • Enable Partial PrefetchingTurns on the partialPrefetching flag after a flag-off baseline passes.
  • Opt routes inSets export const prefetch = 'partial' on routes that adopt Partial Prefetching.
  • Audit Link prefetch behaviorFinds navigations whose effective production value is prefetch={true}.
  • Preserve prefetched UIUses instant() tests in a production-mode Playwright suite to check preserved UI.
  • Resolve prefetch insightsWorks through the instant-link-prefetch-partial and instant-shell-url-data insights in the dev overlay.
  • Plan rolloutLets the user choose between one branch and a route-by-route series of PRs.

What you need

  • Cache Components enabled (cacheComponents: true) with a passing build
  • Next.js 16.3 or later
  • A browser driver such as Playwright or agent-browser
  • A runnable app that starts in the chosen environment
  • The next-dev-loop skill for development insight passes

Try asking

  • Audit my Link prefetch={true} usages and propose what UI to preserve.
  • Turn on partialPrefetching in my Next.js app after the instant() baseline passes.
  • Resolve the instant-shell-url-data insights shown in my dev overlay.

Good to know

  • Insights appear only in next dev, not in production builds.
  • Automatic prefetching runs only in production.
  • Partial Prefetching requires Cache Components and Next.js 16.3 or later.
  • Apps pinned to webpack lose some framework cross-checks.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/next-partial-prefetching-adoption/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md27 KB
  • rig-template.md8 KB

Alternatives to next-partial-prefetching-adoption

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

next-partial-prefetching-adoption: common questions

Does this skill need the dev server to run?

The dev server is needed only for the insight path and the post-flag URL-data sweep. Test-backed preservation runs against a production-like build.

Which Next.js version does it require?

It requires Next.js 16.3 or later, where partialPrefetching, the prefetch route segment config, and the prefetch insights are available.

What does Partial Prefetching change for links?

Links to a route prefetch one shared App Shell. A route keyed by params or searchParams can prefetch more only when a link uses prefetch={true}.

How do I install next-partial-prefetching-adoption?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is next-partial-prefetching-adoption free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is next-partial-prefetching-adoption safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to next-partial-prefetching-adoption?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

next-partial-prefetching-adoption Install

Add to stack

Loading.