Source: vercel-labs/agent-skills · Maintainer: Vercel · License: MIT (per the skill README and repo README; no LICENSE file in the repo) · Checked: 24 October 2026
What is the Vercel optimize skill?
The Vercel optimize skill has your coding agent audit a deployed Vercel project for cost and performance, starting from real production metrics rather than a read of the code. It finds slow or expensive routes, caching gaps, function and build-minute waste, then ranks fixes with file references and doc citations. It is for teams running Next.js, SvelteKit or Nuxt on Vercel who want to cut the bill or speed up hot routes.
It lives in the vercel-optimize folder of vercel-labs/agent-skills, and it is the first skill listed in the repo README. The description's first sentence reads: "Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps."
As of 24 October 2026, its skills.sh page listed about 109,100 installs (snapshot, 24 October 2026). The skill is at version 1.2.0 and was last changed in June 2026.
What does it do?
The skill is model-invoked. Its description names triggers such as Vercel bill reduction, slow or expensive routes, caching, Function Invocations, Build Minutes, Fast Data Transfer, Core Web Vitals, Bot Management, Fluid compute and cost breakdowns. The README's suggested prompt is simply "optimize this Vercel project".
Its doctrine fits in four rules from the SKILL.md: metrics first, deterministic gates, candidate-bound scope and version-aware citations. The opening line is blunt: "Do not inspect source files until signals.json exists and a deterministic gate points to a route, file, or project setting."
The pipeline, all driven by Node.js scripts in the folder:
- Collect.
collect-signals.mjspulls metrics, usage and project config through the Vercel CLI over a shared 14-day window.scan-codebase.mjsruns code scanners andmerge-signals.mjsjoins the two intosignals.json. - Stop on blockers. Unsupported framework, unclear team scope, no traffic, missing Observability Plus or an unlinked folder each triggers a scripted stop: the agent asks you how to proceed, or links the folder and reruns collection.
- Gate.
gate-investigations.mjspicks candidates with fixed thresholds. The default budget is 6 code-scope candidates;--max-candidates 12orallwidens it. - Investigate. One brief per candidate. With 3 or more briefs the agent spawns one sub-agent per brief when the host supports it, and each reads only the files its brief names.
- Verify.
verify-and-regen.mjschecks files, citations and version fit, withholds weak recommendations and plans retries. - Report.
render-report.mjswrites a Markdown report and a short final message, which the agent prints verbatim.
What's in the folder: SKILL.md, README.md, AGENTS.md (a cross-agent entry point), CONTRIBUTING.md, metadata.json, 15 scripts in scripts/, a lib/ of gates, scanners and sanitizers, and references/ with the doctrine, playbooks for content sites, ecommerce, SaaS, AI apps, API services, marketing and SvelteKit, support topics, and docs-library.json, the allow-list of citable docs.
How do you install it?
The skills.sh page gives this command. The skills CLI matches --skill against the frontmatter name, which here matches the folder:
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-optimize
The README writes the same thing in short form, npx skills add vercel-labs/agent-skills --skill vercel-optimize. Add -g for all projects or -a claude-code to target Claude Code. A global install lands in ~/.claude/skills/vercel-optimize/, one of the standard Claude Code skill locations.
Manual install, from the skill's README and AGENTS.md: copy skills/vercel-optimize into .agents/skills/vercel-optimize, then add a line to your project AGENTS.md telling the agent to follow that SKILL.md and collect Vercel metrics before reading source files.
Codex and Cursor read the same SKILL.md format; see Codex skills and Cursor skills. The repo ships no claude.ai ZIP for this skill, and it needs a local shell with the Vercel CLI, so a terminal agent is the fit.
How do you use it?
Run your agent from the linked app directory. Example prompts (suggestions, except the first, which is the README's):
optimize this Vercel projectOur Vercel bill jumped this month. Find out which routes and services drove it.Which routes have the worst cache hit rate, and what should we change?Check whether we are over-revalidating ISR pages.Audit Build Minutes in this monorepo.
Requirements, from the SKILL.md and README:
- Node.js 20 or later.
- Vercel CLI v53 or later with
vercel metrics,vercel usage,vercel contractandvercel api(npm i -g vercel@latest). - A logged-in CLI (
vercel login) and a linked directory (vercel link).VERCEL_PROJECT_IDalone is not enough forvercel metrics. - Observability Plus for route-level, metric-backed recommendations.
The README adds a self-check: "If it starts by reading source files or guessing from vercel.json, the skill was not loaded correctly."
Which frameworks does it support?
| Framework | Status in the SKILL.md |
|---|---|
| Next.js App Router | Supported, strongest route mapping |
| Next.js Pages Router | Supported |
| SvelteKit | Supported |
| Nuxt | Supported, fewer framework-specific recommendations |
| Astro | Limited |
| Hono, Remix, unknown | Blocked by default; limited audit only if you accept |
The README's roadmap lists Hono and Remix route mapping, AI Gateway, Sandbox, and Blob, Edge Config, Runtime Cache, Workflows, Queues, Flags and Microfrontends billing as planned.
Tips and limits
From the skill and Vercel's docs, not from testing:
- Observability Plus is the real dependency. The
vercel metricsdocs say metrics other than Web Analytics and Speed Insights require it. Observability Plus is available on Pro and Enterprise, is on by default for teams created or upgraded to Pro on or after April 3, 2026, and costs $1.20 per 1 million events as of October 2026. - It needs traffic. With no meaningful traffic in 14 days, it says route-level metrics are sparse and limits itself to traffic-independent findings.
- Scope must be unambiguous. If it can't tell which project and team to audit, it stops and asks rather than guessing from
vercel whoami. - No dollar figures. The rules require "cost magnitude phrases only; never customer-facing
$Nsavings." - Scripts run on your machine. The agent runs the bundled Node.js scripts, which call the Vercel CLI and read your repo, writing results to a temporary run directory. The skill forbids putting tokens in commands.
- Audits. On 24 October 2026 the skills.sh page showed Pass from Gen Agent Trust Hub, Socket and Snyk.
The MIT License lets you copy and adapt the skill as long as the notice stays with it.
Save it in your Kipt library
In Kipt, open Skills and paste the skill's GitHub folder link into the import box. Kipt reads the SKILL.md and the folder's scripts and references; for a repo with many skills, like this one, it shows a list to pick from. You can also drop the folder or a .zip. Your skills live in your own private GitHub repo and install into Claude Code or Codex with one command:
npx skills add https://github.com/<you>/<repo>.git --all -g
Kipt is not affiliated with Vercel.
Similar skills
- Web performance skill: Cloudflare's Core Web Vitals audit, for pages on any host.
- React best practices skill: Vercel's React and Next.js performance rules for the code itself.
- Deploy to Vercel skill: ship the fixes as a preview deployment.
- Vercel CLI skill: token-based Vercel CLI access for agents without a browser login.