All skills
vercel-labs avatar

/vercel-optimize

@583754a official
by Vercel Labsvercel-labs/agent-skills32k stars
2,784

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.

Use this Skill: https://skilld.dev/gh/vercel-labs/agent-skills/vercel-optimize

This session only. Nothing lands on disk.

referencesvoice.md

≈933 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Voice

Use Vercel's customer-facing voice: sharp teammate, clear, competent, no fluff.

Write for a user deciding what to fix next. Lead with the observed signal, the specific change, and how to verify it. Do not explain the skill's internals unless the user asked for debug details.

Rules

  • Use plain words. Prefer "use" over "leverage," "reduce" over "optimize" when the action is specific.
  • Be direct. No apologetic preambles, no marketing language, no "For context" wrap-up paragraphs.
  • Keep every recommendation tied to a route, file, metric, or project setting.
  • Use observed numbers only. Never invent savings, traffic, latency, or percentages.
  • Use cost magnitude language, not precise savings: "hundreds of dollars per month at current traffic," not "$340/mo."
  • Use precise performance language when measured: "95th percentile duration is 1,240ms."
  • Frame prerequisites as engineering constraints, not upsells. Explain the decision impact: what the missing data prevents, what the limited fallback can still do, and what the user should choose next.
  • Use short bullets and tables. Avoid long paragraphs in reports and final chat messages.
  • Write full sentences with punctuation in reports.

Avoid

  • seamlessly, effortlessly, powerful, robust, leverage, unleash, blazing, lightning-fast, turnkey, holistic, best-in-class, next-generation, cutting-edge, world-class, streamline, elevate, harness, crafted, myriad, plethora, empower, utilize
  • Filler adverbs: just, simply, actually
  • Hedge starts: Consider, You may want to, It is important to note
  • Rhetorical reframes: It's not X, it's Y
  • Unicode arrows in prose: ->, →, ⇒
  • Internal process terms in customer output: sub-agent, abstention, abstained, passRate, quality score, sanitizer

Use customer-facing replacements:

Internal Customer-facing
sub-agent investigation
abstained found no supported change
abstention investigated, no change recommended
passRate verification result
quality score review result
inv function invocations or requests, based on the metric
p95 95th percentile
perf performance
CWV Core Web Vitals

Product names

Use these spellings:

Right Wrong
Observability Plus OPlus, Oplus, O11y Plus, o11y+, obs+
Vercel Functions serverless functions when referring to Vercel's product
fluid compute mid-sentence Fluid Compute mid-sentence
BotID Bot ID, botID
AI Gateway Vercel AI Gateway, ai gateway
AI SDK Vercel AI SDK
Edge Config EdgeConfig
Routing Middleware Edge Middleware
Web Analytics Vercel Analytics
Hobby, Pro, Enterprise hobby, pro, enterprise as plan names

Mirror billing names from the user's dashboard. If a dashboard still says Edge Requests, use Edge Requests; do not rename it.

Recommendation shape

Field Pattern
what Verb + change + scope. Example: Add shared caching to /api/products.
why State the metric and code evidence. Example: The route handled 1,200,000 requests with a 0% cache hit rate; src/app/api/products/route.ts returns no Cache-Control header.
fix Numbered steps. Start each step with a verb.
verify Tell the user exactly which metric or command to re-check.

Good:

Add Cache-Control: s-maxage=300, stale-while-revalidate=86400 to /api/products. The route handled 1,200,000 GET requests with a 0% cache hit rate.

Bad:

Consider leveraging a robust caching strategy to unlock better performance.

Source: SKILL.md on GitHub

No alerts16d3 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The `vercel-optimize` skill is a robust tool designed for performance and cost auditing of Vercel projects. It implements a 'metrics-first' doctrine, ensuring that any code investigation is preceded by an analysis of production telemetry fetched via the official Vercel CLI. The skill demonstrates high security standards, including deterministic gates to limit AI investigation scope, automated redaction of sensitive telemetry identifiers, and a verification framework to prevent hallucinations.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

Signed by skilld at 583754a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 4 months ago
metadata
{
  "version": "1.2.0"
}
  • Nuxt
  • Performance
  • vercel
  • next.js
  • sveltekit
  • astro
  • optimization
  • cost
  • metrics
  • observability

README badge

README badge for vercel-labs/agent-skills/vercel-optimize

Runs a metrics-first audit of Vercel-deployed projects to identify cost and performance optimization opportunities. Collects production metrics, usage, and code signals, then gates candidates by verified impact before investigating Next.js, SvelteKit, Nuxt, and limited Astro apps. Produces ranked recommendations tied to actual route-level performance data and framework-aware documentation.

Generated from the current SKILL.md.

Does this work with my framework?
Vercel Optimize supports Next.js (App Router and Pages Router), SvelteKit, and Nuxt with full metric-backed recommendations. Astro support is limited. Other frameworks like Hono or Remix can run a code-only audit but may not map route-level metrics back to source files.
What do I need to set up before running an audit?
You need Vercel CLI v53+, an authenticated session (`vercel login`), a linked app directory (`vercel link`), and Node.js 20+. Observability Plus is required for route-level metric-backed recommendations.
Does this require Observability Plus?
Observability Plus is required for route-level recommendations. Without it, the skill can still run a limited code-only audit if you accept the reduced scope.
What metrics does this collect and analyze?
The skill collects Vercel production signals via `vercel metrics`, `vercel usage`, and `vercel contract`, then gates investigations based on metric-backed candidates. It analyzes cost (Function Invocations, Build Minutes, Fast Data Transfer), performance (Core Web Vitals), and caching opportunities on a 14-day window.
Can I run this on unsupported frameworks?
Yes, but with limitations. The skill can run a platform/code-only audit for unsupported frameworks and will prompt you to accept the limited scope before proceeding.

Generated from the current SKILL.md. These answers refresh after source changes.