Skip to content
Skillpedia
Deploy & cloud (DevOps)48k · #4491

vercel-optimize

Helps your agent find cost and performance issues in Vercel apps. It analyzes metrics, configurations, and code to give recommendations.

What it does

This tool analyzes your Vercel website to find issues that might be costing you more money or making your site slower. It checks metrics, configurations, and code to provide improvement suggestions.

When to use it

  • ✓When your Vercel site is running slowly.
  • ✓If you suspect you're overspending on Vercel.
  • ✓Before launching a major update to check for potential problems.

Example of what to ask your AI

“Analyze my Vercel site for cost and performance optimization.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/vercel-optimize/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/vercel-optimize/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

The tool first checks your site's usage and performance data on Vercel. Then, it analyzes the code and configurations to find areas for improvement.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add sickn33/agentic-awesome-skills --skill vercel-optimize

Or download just the file:

curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/vercel-optimize/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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.mjs decides 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.

When to Use

  • Use this skill when the task matches this description: Audit deployed Vercel apps for cost and performance issues using metrics, project config, code scans, and version-aware recommendations.

Prerequisites

  • Vercel CLI v53+ with vercel metrics, vercel usage, vercel contract, and vercel api.
  • Authenticated CLI session: vercel login.
  • Linked app directory: vercel link. VERCEL_PROJECT_ID can help resolve project config, but vercel metrics still requires directory linkage. The link or environment must include the intended project org/team/user scope so the collector can resolve a CLI-safe --scope and keep vercel metrics, vercel usage, and vercel contract on 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.

Framework Status Notes
Next.js App Router supported strongest route mapping, scanners, playbooks, citations
Next.js Pages Router supported scoped to Pages Router idioms when detected
SvelteKit supported route mapping for src/routes files and SvelteKit scanner
Nuxt supported route mapping plus generic/platform checks; fewer framework-specific recs
Astro limited route mapping plus generic checks; fewer framework-specific recs
Hono / Remix / unknown blocked by default continue only if the user accepts a limited platform/code-only audit

If unsupported, stop and ask before scanning or gating:

This project uses <framework>. Vercel Optimize supports metric-backed code recommendations for Next.js, SvelteKit, and Nuxt. Astro support is limited. For <framework>, I can still run a limited platform/scanner audit, but route-level Vercel metrics may not map back to source files.

Do you want me to continue with the limited audit, or stop here?

If the user continues, rerun collection with --continue-unsupported-framework.

Run Directory

Use a fresh run directory for every audit. Do not reuse briefs, sub-agent outputs, or reports across runs.

RUN_DIR="$(mktemp -d -t vercel-optimize-XXXXXX)"

Pipeline

1. Collect, scan, and merge signals

Run from the linked app directory or pass --cwd where a script supports it. Keep stdout JSON separate from stderr logs. Do not combine streams.

node scripts/collect-signals.mjs [projectId] > "$RUN_DIR/vercel-signals.json" 2> "$RUN_DIR/collect.stderr"
node -e 'JSON.parse(require("fs").readFileSync(process.argv[1], "utf8"))' "$RUN_DIR/vercel-signals.json"

node scripts/scan-codebase.mjs <repo-root> > "$RUN_DIR/codebase.json"
node scripts/merge-signals.mjs "$RUN_DIR/vercel-signals.json" "$RUN_DIR/codebase.json" --out "$RUN_DIR/signals.json"

Collection details, schemas, metric IDs, and degradation behavior live in references/data-collection.md. The metric registry is lib/queries.mjs; keep all queries on the shared 14-day window.

…

FAQ

Do I need to install anything?

Yes, you need to have the Vercel CLI installed and set up with login and a link to your project.

Does it work for any type of Vercel site?

It works best with Next.js, SvelteKit, and Nuxt. For other frameworks like Astro, support is limited. For unsupported projects, it can perform a basic analysis.

What are 'metrics' and 'signals'?

Metrics are data about how your site is performing (speed, errors, etc.). Signals are information collected by Vercel that help identify these issues.

Details

Original description by the author

Audit deployed Vercel apps for cost and performance issues using metrics, project config, code scans, and version-aware recommendations.

repo: sickn33/agentic-awesome-skills

Popularity

GitHub stars
48k
Ranking position
#4491
License
MIT
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills