Vercel Optimize skill for Claude
Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps. Collect Vercel metrics, usage, project config, and code scan results first; investigate only metric-backed candidates; produce ranked recommendations grounded in verified files and version-aware Vercel/framework docs. Trigger for Vercel bill reduction, slow or expensive routes, caching opportunities, Function Invocations, Build Minutes, Fast Data Transfer, Core Web Vitals, Bot Management, Fluid compute, or cost breakdown requests.
Vercel Optimize SKILL.md
A preview of the skill file from vercel-labs/agent-skills.
Vercel Optimize
Run an observability-first Vercel optimization audit. Do not inspect source files until signals.json exists and a deterministic gate points to a route, file, or project setting.
Core doctrine: read references/doctrine.md if any rule is unclear.
- Metrics first. Recommendations start from Vercel production signals, not repo-wide grep.
- Deterministic gates.
scripts/gate-investigations.mjsdecides what deserves investigation. - Candidate-bound scope. Read only files named by a candidate or a route-local import chain.
- Version-aware citations. Use only
references/docs-library.json; invalid or version-mismatched citations are stripped. - Customer copy. Read references/voice.md before writing report text or chat output.
Prerequisites
- Vercel CLI v53+ with
vercel metrics,vercel usage,vercel contract, andvercel api. - Authenticated CLI session:
vercel login. - Linked app directory:
vercel link.VERCEL_PROJECT_IDcan help resolve project config, butvercel metricsstill requires directory linkage. The link or environment must include the intended project org/team/user scope so the collector can resolve a CLI-safe--scopeand keepvercel metrics,vercel usage, andvercel contracton the same account. - Node.js 20+.
- Observability Plus for route-level metric-backed recommendations.
Never put auth tokens in shell commands. Do not type VERCEL_TOKEN=..., --token ..., or Authorization: Bearer ... into commands that may be echoed in chat.
Framework Support
The preflight reads package.json and sets expectations before metric fan-out.
How to install Vercel Optimize
Claude Code
Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):
npx degit vercel-labs/agent-skills/skills/vercel-optimize#main ~/.claude/skills/vercel-optimizeCodex
npx degit vercel-labs/agent-skills/skills/vercel-optimize#main ~/.codex/skills/vercel-optimizeClaude.ai and Claude Desktop
Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.
Frequently asked questions
+What does the Vercel Optimize skill do?
Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps. Collect Vercel metrics, usage, project config, and code scan results first; investigate only metric-backed candidates; produce ranked recommendations grounded in verified files and version-aware Vercel/framework docs. Trigger for Vercel bill reduction, slow or expensive routes, caching opportunities, Function Invocations, Build Minutes, Fast Data Transfer, Core Web Vitals, Bot Management, Fluid compute, or cost breakdown requests.
+How do I install Vercel Optimize in Claude Code?
Copy the skill folder into ~/.claude/skills/vercel-optimize, for example with "npx degit vercel-labs/agent-skills/skills/vercel-optimize#main ~/.claude/skills/vercel-optimize". Claude Code loads it automatically and uses it when a task matches.
+Does Vercel Optimize work with ChatGPT or Codex?
Yes. Vercel Optimize uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/vercel-optimize. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.
+Is Vercel Optimize free?
Vercel Optimize is published on GitHub by vercel-labs. The repository does not declare a license, so check with the author before reusing it.