Vercel Optimize Audit
vercel-labs/agent-skills
Runs a metrics-first audit of a deployed Vercel project, gating investigations on real signals to produce ranked, citation-backed cost and performance recommendations.
Optimize what selected Next.js client navigations include before the click under Partial Prefetching.
$ npx skills add vercel/next.js --skill next-partial-prefetching-optimizer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install vercel/next.js next-partial-prefetching-optimizer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/vercel/next.js.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/next-partial-prefetching-optimizer .claude/skills/next-partial-prefetching-optimizer && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "next-partial-prefetching-optimizer" agent skill from https://github.com/vercel/next.js/tree/canary/skills/next-partial-prefetching-optimizer into .claude/skills/next-partial-prefetching-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "next-partial-prefetching-optimizer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/vercel/next.js/tree/canary/skills/next-partial-prefetching-optimizerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add vercel/next.js --skill next-partial-prefetching-optimizer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install vercel/next.js next-partial-prefetching-optimizer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vercel/next.js.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/next-partial-prefetching-optimizer .agents/skills/next-partial-prefetching-optimizer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "next-partial-prefetching-optimizer" agent skill from https://github.com/vercel/next.js/tree/canary/skills/next-partial-prefetching-optimizer into .agents/skills/next-partial-prefetching-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "next-partial-prefetching-optimizer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add vercel/next.js --skill next-partial-prefetching-optimizer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install vercel/next.js next-partial-prefetching-optimizer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vercel/next.js.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/next-partial-prefetching-optimizer .cursor/skills/next-partial-prefetching-optimizer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "next-partial-prefetching-optimizer" agent skill from https://github.com/vercel/next.js/tree/canary/skills/next-partial-prefetching-optimizer into .cursor/skills/next-partial-prefetching-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "next-partial-prefetching-optimizer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/vercel/next.js.git --path skills/next-partial-prefetching-optimizer--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add vercel/next.js --skill next-partial-prefetching-optimizer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install vercel/next.js next-partial-prefetching-optimizer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vercel/next.js.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/next-partial-prefetching-optimizer .gemini/skills/next-partial-prefetching-optimizer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "next-partial-prefetching-optimizer" agent skill from https://github.com/vercel/next.js/tree/canary/skills/next-partial-prefetching-optimizer into .gemini/skills/next-partial-prefetching-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "next-partial-prefetching-optimizer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install vercel/next.js next-partial-prefetching-optimizerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add vercel/next.js --skill next-partial-prefetching-optimizer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/vercel/next.js.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/next-partial-prefetching-optimizer .github/skills/next-partial-prefetching-optimizer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "next-partial-prefetching-optimizer" agent skill from https://github.com/vercel/next.js/tree/canary/skills/next-partial-prefetching-optimizer into .github/skills/next-partial-prefetching-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "next-partial-prefetching-optimizer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add vercel/next.js --skill next-partial-prefetching-optimizer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install vercel/next.js next-partial-prefetching-optimizer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/vercel/next.js.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/next-partial-prefetching-optimizer .opencode/skills/next-partial-prefetching-optimizer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "next-partial-prefetching-optimizer" agent skill from https://github.com/vercel/next.js/tree/canary/skills/next-partial-prefetching-optimizer into .opencode/skills/next-partial-prefetching-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "next-partial-prefetching-optimizer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
next-partial-prefetching-optimizerOptimize what selected Next.js client navigations include before the click under Partial Prefetching.
Next Partial Prefetching Optimizer is an agent skill from vercel/next.js, published by the product's own GitHub organization. Optimize what selected Next.js client navigations include before the click under Partial Prefetching. Use after Cache Components and Partial Prefetching are adopted when the user wants selected URL-specific UI to be instant, wants reusable content to wait for navigation, or needs to choose between default, viewport, and intent prefetching. Requires Next.js 16.3+.
Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `reference/red-test-robustness.md` and `rig-template.md`).
It works with Next.js. The licence is MIT.
Read from SKILL.md and the folder at commit a32ddfd. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
nextjs.orgFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Next Partial Prefetching Optimizer loads about 2.9k tokens when it runs. Until then it costs about 100 tokens; SKILL.md has 1,434 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from vercel/next.js at commit a32ddfd, republished under its MIT licence (© vercel). 1,434 words, ~2,877 tokens.
.claude/skills/next-partial-prefetching-optimizer/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Optimize each requested source link and destination as its own contract. Turn
the requested prefetched UI, navigation-only UI, and trigger into a production
instant()
test. Record the current behavior, make the smallest optimization, verify the
differential, and keep the passing test as regression coverage.
Before making framework changes, read the bundled Optimizing prefetching guide
at
node_modules/next/dist/docs/01-app/02-guides/optimizing-prefetching.md. If the
bundled guide is unavailable, use the online
guide. It is the
source of truth for prefetch stages, prefetch={true}, session-specific UI,
and cost trade-offs.
When the work changes what belongs in the App Shell, follow the Instant navigation and Caching docs for cache placement, Suspense boundaries, loading UI, and authorization.
The guides own framework behavior and implementation patterns. This skill owns the navigation contract, production rig, trustworthy RED-to-GREEN loop, parity check, differential, and report.
This is not an adoption skill. If Cache Components or Partial Prefetching are
not adopted, use their adoption skills and return to this workflow. If the App
Shell itself cannot commit under instant(), use
next-cache-components-optimizer first, then resume the selected navigation.
Run the workflow unattended. Resolve the contract from the request and the existing application. Stop for user input only when a product decision is genuinely blocked and cannot be inferred safely without changing cost, freshness, authorization, or user-visible behavior.
This loop runs unattended, so do not stop between implementation steps. Finish the navigations the user named, then check in. The rig, lock, RED/GREEN loop, and stage names are internal scaffolding; report the product behavior instead.
Inspect the source route, the exact link or interaction, the destination's
Suspense boundaries, its data reads, existing prefetch policy, and any existing
instant() test. Record:
The trigger is part of the contract. Two links to the same URL may use different prefetch policies and need separate tests.
Use the guide's cost model when the trigger is not already specified. Do not silently increase the number of links that can invoke the server or cache data whose freshness contract is unknown.
Read an existing instant-nav.rig.md. Cache Components optimization, Partial
Prefetching adoption, and this optimizer share the same build, auth, data, and
Playwright contract. Add the exact source link, destination markers, and
prefetch budget instead of creating another rig.
If the project has no rig, use rig-template.md to discover
and record one. The measured run must be a production build or
preview where
experimental.exposeTestingApiInProductionBuild
is enabled only for testing. Development can help diagnose a route, but
automatic link prefetching is production-only.
Search for an existing instant() test for the exact source link and
destination. Extend it when it already covers the same behavior. Otherwise,
add a focused click-driven test using the guide's
prefetched and deferred content testing
pattern.
Keep one production browser test per source-link, destination, and trigger contract. Do not loop over several destinations or collect their readiness results in one test. Focused tests can still run serially in one browser worker.
First, run an unlocked scaffold that proves the link reaches the exact pathname and query and that the selected UI eventually renders for the test user. Do not ship this scaffold.
Then run the same interaction inside instant(). The existing App Shell must
stay visible, while the guide's positive and negative assertions capture the
prefetched result. After the lock releases, every selected region must
eventually render.
Read reference/red-test-robustness.md
before treating this failure as RED. A timeout before the URL changes, a
missing App Shell, a redirect, missing data, or a stale preview indicates a rig
or route problem. It does not justify changing prefetching.
If the complete desired contract already passes under the lock, stop. Never
add prefetch={false} merely to manufacture a RED.
Only test files and the configuration needed to expose the testing API may change before these runs finish. Run builds and tests in the foreground. If the harness moves one into the background, wait for it to exit and continue the loop in the same task. A written test or a build still in progress is not verification.
Follow the Optimizing prefetching guide for stage and link policy. If the
contract also requires changing cache placement, Suspense, or loading UI,
follow the static-shell documentation used by
next-cache-components-optimizer. Preserve the existing freshness and
authorization behavior. Change only what the selected contract requires.
When reusable UI should wait for navigation, follow the
navigation()
reference, including its comparison with connection(). Then verify both
properties independently. The instant() assertion proves that the UI is
absent from the prefetch; it does not prove that the underlying work stayed
reusable. Verify that reusable work remains cached below the stage boundary.
When the contract needs an explicit runtime stage, follow the API references
for prefetch()
and
navigation().
Work one accepted navigation to GREEN before moving to another. Do not create an app-wide Link or cache abstraction from a single case.
If the optimization adds or expands a cache boundary, follow
Revalidating.
When a writer can change that cached data, test the complete lifecycle: populate
the cache, perform the mutation, then read the data again and verify the updated
value. A passing instant() test proves prefetched readiness, not mutation
freshness.
Keep the passing locked test for the real source link as regression coverage. Preserve the loaded page's content, ordering, empty and error states, authorization, freshness, redirects, and direct-load behavior.
Finally, remove only the optimization and rerun the test:
Reapply the optimization and require GREEN again. This differential proves the test guards the exact link policy instead of unrelated cached state. Ship only the final positive test.
Report the verified result using the user-facing format above. Be precise that prefetching is best-effort; the App Shell remains the fallback when it has not completed.
Treat request counts, transferred bytes, and cache behavior as measurements,
not as part of the instant() contract. Do not classify requests using private
RSC URLs or internal headers such as next-router-prefetch. The public testing
API verifies the rendered result, not the protocol stage that produced each
request.
instant() regression test ships.Finish every navigation named in the request. If Cache Components or Partial
Prefetching are not adopted, use next-cache-components-adoption or
next-partial-prefetching-adoption, then return to this workflow. If the App
Shell cannot commit under instant(), use next-cache-components-optimizer
and resume the selected navigation afterward. Do not leave a build or test for
the user to monitor.
Report additional optimization candidates without changing them unless they are already in scope. Do not broaden a selected per-link policy into an app-wide Link or cache abstraction.
rig-template.md: production build, test context, navigation contract, and
unattended loop discovery for projects without an existing
instant-nav.rig.md.reference/red-test-robustness.md: trustworthy RED and differential checks.© vercel, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files in skills/next-partial-prefetching-optimizer of vercel/next.js.
Open the folder on GitHubat commit a32ddfd
Next Partial Prefetching Optimizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Next Partial Prefetching Optimizer this skillvercel/next.js | 143k | — | ~2.9k | Automated safety check: Pass | MIT | |
| Vercel Optimize Auditvercel-labs/agent-skills | 32k | 9 repos | ~4.3k | Automated safety check: Pass | None | |
| AI SDKvercel-labs/ai-facts | 168 | 21 repos | ~1.2k | Automated safety check: Pass | None | |
| Supabase Development and Debuggingsupabase/agent-skills | 2.7k | 3 repos | ~3.6k | Automated safety check: Pass | MIT | |
| Chakra UI v3 Builderchakra-ui/chakra-ui | 41k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Remotion Best Practiceslyonjs/shortvid.io | 147 | 33 repos | ~1k | Automated safety check: Pass | MIT |
vercel-labs/agent-skills
Runs a metrics-first audit of a deployed Vercel project, gating investigations on real signals to produce ranked, citation-backed cost and performance recommendations.
vercel-labs/ai-facts
Answer questions about the AI SDK and help build AI-powered features.
supabase/agent-skills
General Supabase skill for database, auth, Edge Functions, Realtime and storage work, plus client libraries, migrations, security audits, debugging and reading logs.
chakra-ui/chakra-ui
Builds responsive, accessible Chakra UI v3 components and layouts, sets up Chakra in new or existing projects, and designs themes with tokens, semantic tokens and recipes.
lyonjs/shortvid.io
Best practices for Remotion - Video creation in React. An agent skill from lyonjs/shortvid.io.
vercel-labs/next-beats
Guides implementing animated page and state transitions in React with the native View Transition API, covering shared elements, list reorders and directional navigation.
vercel/next.js
Manages stacked PRs and splits multi-part work into reviewable branches with gh-stack.
vercel/next.js
Benchmark React or Next.js changes on Vercel Sandbox VMs with paired A/B statistics: react PR/commit vs base, or Next.js PR/commit vs base, measured end-to-end through the bench/render-pipeline app…
vercel/next.js
Verify Next.js runtime behavior after editing app code. An agent skill from vercel/next.js.
vercel/next.js
Draw diagrams for the Next.js docs in the style of the ones already published there: the light/dark PNGs an mdx references with <Image srcLight="/docs/light/<name.png" srcDark="/docs/dark/<name.png".
vercel/next.js
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces.
vercel/next.js
Build local React changes in the bundle variants consumed by Next.js, sync them into a local Next.js checkout, and test the resulting integration.
Works with
Optimize what selected Next.js client navigations include before the click under Partial Prefetching. js, published by the product's own GitHub organization.js client navigations include before the click under Partial Prefetching.
Next Partial Prefetching Optimizer fits situations like: wants selected URL-specific UI to be instant; wants reusable content to wait for navigation; needs to choose between default; intent prefetching.
Run `npx skills add vercel/next.js --skill next-partial-prefetching-optimizer -a claude-code`. Or copy the skill folder (skills/next-partial-prefetching-optimizer in vercel/next.js) into .claude/skills/next-partial-prefetching-optimizer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add vercel/next.js --skill next-partial-prefetching-optimizer -a codex`. Or copy the skill folder (skills/next-partial-prefetching-optimizer in vercel/next.js) into .agents/skills/next-partial-prefetching-optimizer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vercel/next.js --skill next-partial-prefetching-optimizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/next-partial-prefetching-optimizer, .gemini/skills/next-partial-prefetching-optimizer, .github/skills/next-partial-prefetching-optimizer and .opencode/skills/next-partial-prefetching-optimizer in your project.
SKILL.md names no scripts, command-line tools or credentials: Next Partial Prefetching Optimizer is instructions for the agent only.
SKILL.md names 1 domain. As links in the text: nextjs.org. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Next Partial Prefetching Optimizer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.9k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Next Partial Prefetching Optimizer: Vercel Optimize Audit (vercel-labs/agent-skills, 32k stars), AI SDK (vercel-labs/ai-facts, 168 stars), Supabase Development and Debugging (supabase/agent-skills, 2.7k stars) and Chakra UI v3 Builder (chakra-ui/chakra-ui, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
vercel (a GitHub organization, an official publisher) maintains it in vercel/next.js, which has 143,241 GitHub stars. The repository holds 27 skills in this directory. The repository was last updated on October 8, 2026.
Source: vercel/next.js on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.