vercel-optimize
Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps.
Skill by dotlas
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/dotlas-vercel-optimize
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, cloud, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
vercel-optimize- Description
- 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.
- License
- MIT
- Metadata
- version: 1.2.0
- Instructions
- 419 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (156)
- AGENTS.md
- CONTRIBUTING.md
- README.md
- SKILL.md
- auth-route.mjs · lib/
- budget-summary.mjs · lib/
- citations.mjs · lib/
- cost-coverage.mjs · lib/
- dedup-recs.mjs · lib/
- deep-dive.mjs · lib/
- display-labels.mjs · lib/
- extract-claims.mjs · lib/
- framework-support.mjs · lib/
- build-minutes-fanout.mjs · lib/gates/
- cold-start.mjs · lib/gates/
- contract.mjs · lib/gates/
- cwv-poor.mjs · lib/gates/
- external-api-slow.mjs · lib/gates/
- hard-gates.mjs · lib/gates/
- index.mjs · lib/gates/
- isr-overrevalidation.mjs · lib/gates/
- middleware-heavy.mjs · lib/gates/
- observability-events-attribution.mjs · lib/gates/
- platform-bot-protection.mjs · lib/gates/
- platform-fluid-compute.mjs · lib/gates/
- region-misconfig.mjs · lib/gates/
- route-errors.mjs · lib/gates/
- scanner-driven.mjs · lib/gates/
- select-candidates.mjs · lib/gates/
- slow-route.mjs · lib/gates/
- types.d.ts · lib/gates/
- uncached-route.mjs · lib/gates/
- usage-spike-triage.mjs · lib/gates/
- grade-recommendation.mjs · lib/
- impact-label.mjs · lib/
- impact-magnitude.mjs · lib/
- investigation-brief.mjs · lib/
- observation-safety.mjs · lib/
- project-facts.mjs · lib/
- queries.mjs · lib/
- reconcile-candidates.mjs · lib/
- render-report.mjs · lib/
- repo-root.mjs · lib/
- route-normalize.mjs · lib/
- bot-protection-certainty.mjs · lib/sanitizers/
- cache-tag-invalidation-certainty.mjs · lib/sanitizers/
- count-correct.mjs · lib/sanitizers/
- function-duration-invocations.mjs · lib/sanitizers/
- index.mjs · lib/sanitizers/
- middleware-conflict.mjs · lib/sanitizers/
- missing-citation.mjs · lib/sanitizers/
- pre-release.mjs · lib/sanitizers/
- rate-limit.mjs · lib/sanitizers/
- rendering-mode-mislabel.mjs · lib/sanitizers/
- undeclared-dep.mjs · lib/sanitizers/
- vercel-directive-strip.mjs · lib/sanitizers/
- window-units.mjs · lib/sanitizers/
- cache-components-suspense-dedupe.mjs · lib/scanners/
- edge-heavy-import.mjs · lib/scanners/
- force-dynamic.mjs · lib/scanners/
- …and 96 more
SKILL.md (first lines)
# 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](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](references/voice.md) before writing report
text or chat output.
## 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:
```text
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.
```bash
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.
```bash
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](references/data-collection.md).
The metric registry is [lib/queries.mjs](lib/queries.mjs); keep all queries on the
shared 14-day window.
`collect-signals.mjs` resolves the linked project owner to `commandScope.cliScope` and
verifies that the resolved account can read the resolved project before it checks
Observability Plus.
Downstream scripts reuse that scope for every Vercel CLI command that
accepts `--scope`. Do not run `vercel usage`, `vercel metrics`, or `vercel contract`
manually without the same scope; unscoped usage can report the user’s personal
organization while route metrics come from the team project.
If project or scope resolution is ambiguous, stop and ask the user which Vercel project
and team/personal scope they want audited.
Do not infer the intended scope from the current `vercel whoami` team, and do not
proceed with metrics, usage, or contract collection until the link, an exact project
match in `.vercel/repo.json`, or `VERCEL_PROJECT_ID` + `VERCEL_ORG_ID` identifies the
intended account.
Use this prompt for `PROJECT_SCOPE_UNRESOLVED`, `SCOPE_UNRESOLVED`, or
`PROJECT_SCOPE_MISMATCH`:
```text
I can't safely identify the Vercel project and account for this audit yet.
Please confirm the Vercel project name or ID and the team slug/name, or tell me it's under your personal account. Once confirmed, I'll relink or rerun collection against that exact scope before checking metrics.
```
### 1.1 Stop on blockers
Check blockers before gating:
```bashFrom dotlas/skills, MIT.
More from dotlas/skills
- 0.507score
codebase-integrity
dotlas
Audit the codebase for dependency conflicts, loose types, duplicated patterns, and import boundary violations.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
tidy-next-codebase
dotlas
Audit a Next.js codebase for stale/dead code and duplication, turn the findings into a fully deterministic cleanup plan, then execute it as a gated…
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
import-skill
dotlas
Import a third-party skill into this owned catalog (dotlas/skills) from a skills.sh URL, a GitHub repo/subdir, or a pasted `npx skills add` command.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
commit
dotlas
Commit local changes — inspect the working tree, group into atomic conventional commits, and write messages that match the repo's conventions.
SkillCFreshness: C★ 2Claude Code +9 - 0.487score
impeccable
dotlas
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or…
SkillCFreshness: C★ 2Claude Code +9 - 0.479score
improve-codebase-architecture
dotlas
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
SkillCFreshness: C★ 2Claude Code +9 - 0.477score
grilling
dotlas
Grill the user relentlessly about a plan, decision, or idea.
SkillCFreshness: C★ 2Claude Code +9 - 0.476score
resolving-merge-conflicts
dotlas
Use when you need to resolve an in-progress git merge/rebase conflict.
SkillCFreshness: C★ 2Claude Code +9 - 0.476score
teach
dotlas
Teach the user a new skill or concept, within this workspace.
SkillCFreshness: C★ 2Claude Code +9 - 0.471score
handoff
dotlas
Compact the current conversation into a handoff document for another agent to pick up.
SkillCFreshness: C★ 2Claude Code +9 - 0.350score
vercel-react-best-practices
vercel
React and Next.js performance optimization guidelines from Vercel Engineering.
SkillCFreshness: C★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 23, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.2.0
- License
- MIT
- Repository
- github.com/dotlas/skills
- Website
- www.skills.sh/dotlas/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.824score
vercel-optimize
vercel-labsOfficial
Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps.
SkillBFreshness: B★ 32.9KClaude Code +9 - 0.339score
vercel-optimize
jcsoftlabs
Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps.
SkillAFreshness: AClaude Code +9 - 0.333score
vercel-optimize
GrupoANDevelopment-m
Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps.
SkillAFreshness: AClaude Code +9 - 0.298score
vercel-optimize
amandeavor
Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps.
SkillCFreshness: C★ 1Claude Code +9
More from dotlas
- 0.507score
commit
dotlas
Commit local changes — inspect the working tree, group into atomic conventional commits, and write messages that match the repo's conventions.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
tidy-next-codebase
dotlas
Audit a Next.js codebase for stale/dead code and duplication, turn the findings into a fully deterministic cleanup plan, then execute it as a gated…
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
import-skill
dotlas
Import a third-party skill into this owned catalog (dotlas/skills) from a skills.sh URL, a GitHub repo/subdir, or a pasted `npx skills add` command.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
codebase-integrity
dotlas
Audit the codebase for dependency conflicts, loose types, duplicated patterns, and import boundary violations.
SkillCFreshness: C★ 2Claude Code +9 - 0.487score
impeccable
dotlas
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or…
SkillCFreshness: C★ 2Claude Code +9 - 0.479score
improve-codebase-architecture
dotlas
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
SkillCFreshness: C★ 2Claude Code +9
Cite this page
vercel-optimize skill. Agent Mart. https://agentmart.dev/skills/dotlas-vercel-optimize (last updated 2026-10-24)