An agentic software-development methodology: composable skills that push a coding agent through spec, plan, TDD and review instead of straight into code.
Vercel Optimize
Summary
Vercel's official optimization skill: collects real production metrics first, then returns ranked, citation-checked cost and performance fixes.
Features
- Metrics-first: collects Vercel metrics, usage, and contract data before reading any source file
- Deterministic JavaScript gates decide what gets investigated — not model judgement
- Candidate-bound scope: sub-agents read only files named by a candidate, never repo-wide
- Allow-listed, version-aware citations; version-mismatched docs are stripped by the verifier
- Covers invocations, cold starts, GB-hours, cache hit rate, Fast Data Transfer, ISR, CWV, and more
- Route-to-file mapping for Next.js and SvelteKit; Nuxt supported, Astro limited
- Config-contradiction guard rejects recommendations that the project already applies
- Outputs a ranked markdown report; cost stated as magnitude, never an invented dollar figure
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Usage Instructions
Learn how to use this skill with different AI agents.
Example Usage
From a linked Vercel project directory: "optimize this Vercel project" — the agent collects signals, checks blockers (framework support, Observability Plus, project scope), gates roughly six metric-backed candidates, investigates only the files those candidates name, verifies every claim and citation, then prints a ranked report — for example a low cache-hit route on /docs/[...slug] with a named cache policy and line-level file references.
Description
What it does
vercel-optimize is the flagship skill in vercel-labs/agent-skills, Vercel's official collection of agent skills. It audits a deployed Vercel project and returns ranked, evidence-backed recommendations for cutting spend and improving Core Web Vitals.
Its governing rule is what makes it unusual: the agent may not open a source file until signals have been collected and a deterministic gate points at a specific route, file, or project setting. No repo-wide grepping, no inferring problems from vercel.json.
The pipeline
- Collect — pulls Vercel metrics, usage, contract, and project config over a shared 14-day window, resolves the linked project's CLI scope, and merges in a codebase scan.
- Gate — plain JavaScript thresholds, not model judgement, decide which candidates are worth investigating, with a default budget of six and a diversity guardrail.
- Investigate — one brief per candidate, fanned out to sub-agents, each allowed to read only the files its brief names.
- Verify — extracted claims are checked against the files and against version-matched docs; anything unproven is held back.
- Report — a ranked markdown report plus a concise summary message.
Coverage
Function invocations, duration, TTFB and cold starts; CPU, memory and GB-hours; request volume, cache hit rate and status distribution; Fast Data Transfer and bot traffic; ISR reads, writes and over-revalidation; routing middleware; external API latency; Core Web Vitals from Speed Insights; Image Optimization; Build Minutes; usage spikes by billing service; Bot Protection; Fluid compute; and region pinning.
Route-to-file mapping is strongest for Next.js (App and Pages Router) and SvelteKit, supported for Nuxt, limited for Astro, and paused up front for Hono, Remix, and unknown frameworks rather than guessing.
Trust model
Citations come only from a curated allow-list and are stripped when they do not match the detected framework version. A config-contradiction guard rejects advice like "enable Fluid compute" when the signals show it is already on. Cost impact is stated as a magnitude — the skill never invents a dollar figure. Auth-sensitive, error, fallback, and geo-varying responses stay dynamic unless there is evidence caching them is safe.
Requirements
Node.js 20+, Vercel CLI v53 or newer, an authenticated session (vercel login), a linked project directory (vercel link), and Observability Plus for route-level metric-backed recommendations. Without route metrics the skill stops and offers an explicit code-only path instead of silently degrading.
Related Skills
Tencent's skill-evolution harness: it rewrites a whole skill folder — SKILL.md, scripts and references together — and lands every decision as a real Git issue, PR and wiki entry you can review.
Take an OpenSearch search application from requirements to a running cluster — BM25, dense and sparse vectors, hybrid retrieval, agentic search and RAG, with relevance evaluation built in.
Auth0's official agent skill: a router that detects your framework and intent, then loads the right Auth0 guidance for login, MFA, Organizations, tenant audits, debugging or provider migration.