# Vercel Optimize > 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. Source: https://skillsagentes.com/skills/vercel-labs/agent-skills/vercel-optimize Repository: https://github.com/vercel-labs/agent-skills Author: vercel-labs License: not specified Updated: hace 2 meses Context cost: 142 tok installed, 4.3k tok once triggered, 206.8k tok with every bundled file Bundle: 156 files, 808 KB Permissions requested: none declared ## Install ```bash npx -y skills add vercel-labs/agent-skills --skill vercel-optimize --agent claude-code ``` ## What it does - Ejecuta una auditoría de optimización de Vercel basada en observabilidad, sin tocar código fuente hasta que exista signals.json y un gate deterministe señale un candidato - Recopila métricas de Vercel, uso, configuración del proyecto y resultados de escaneo de código antes de investigar nada - Investiga solo candidatos respaldados por métricas mediante scripts/gate-investigations.mjs - Genera recomendaciones priorizadas basadas en archivos verificados y documentación de Vercel/framework compatible con la versión detectada - Renderiza un informe y mensaje final para el cliente usando magnitudes de coste, nunca cifras en $ ## Use it when - Reducir la factura de Vercel o investigar rutas lentas o costosas - Explorar oportunidades de caching, Function Invocations, Build Minutes, Fast Data Transfer, Core Web Vitals, Bot Management o Fluid compute - Pedir un desglose de costes de un proyecto en Vercel ## Don't bother when - El proyecto usa Hono, Remix u otro framework no soportado y el usuario no acepta una auditoría limitada de plataforma/código ## What triggers it - "¿Por qué subió tanto mi factura de Vercel este mes?" - "Encuentra rutas lentas o caras en mi app Next.js desplegada en Vercel" - "Dame recomendaciones para reducir Function Invocations y Build Minutes" - "Revisa oportunidades de caching en mi proyecto Nuxt en Vercel" - "Haz un desglose de costes de mi proyecto en Vercel" ## Before you install - Requiere Vercel CLI v53+ con sesión autenticada (vercel login), directorio de app enlazado (vercel link), Node.js 20+ y Observability Plus para recomendaciones a nivel de ruta. - Needs on PATH: jq, node - Environment: GATE_VERSION, JSON, MAX_CODE_CANDIDATES, QUERIES, RUN_DIR, TIME_WINDOW, VERCEL_OPTIMIZE_CONTINUE_UNSUPPORTED_FRAMEWORK, VERCEL_OPTIMIZE_CONTINUE_WITHOUT_OBSERVABILITY, VERCEL_OPTIMIZE_MAX_CANDIDATES ## Files - AGENTS.md — 2 KB - CONTRIBUTING.md — 2 KB - README.md — 4 KB - SKILL.md — 17 KB - lib/auth-route.mjs — 807 B - lib/budget-summary.mjs — 7 KB - lib/citations.mjs — 4 KB - lib/cost-coverage.mjs — 8 KB - lib/dedup-recs.mjs — 10 KB - lib/deep-dive.mjs — 10 KB - lib/display-labels.mjs — 7 KB - lib/extract-claims.mjs — 19 KB - lib/framework-support.mjs — 2 KB - lib/gates/build-minutes-fanout.mjs — 3 KB - lib/gates/cold-start.mjs — 3 KB - lib/gates/contract.mjs — 3 KB - lib/gates/cwv-poor.mjs — 3 KB - lib/gates/external-api-slow.mjs — 2 KB - lib/gates/hard-gates.mjs — 2 KB - lib/gates/index.mjs — 2 KB - lib/gates/isr-overrevalidation.mjs — 2 KB - lib/gates/middleware-heavy.mjs — 2 KB - lib/gates/observability-events-attribution.mjs — 2 KB - lib/gates/platform-bot-protection.mjs — 5 KB - lib/gates/platform-fluid-compute.mjs — 4 KB - lib/gates/region-misconfig.mjs — 3 KB - lib/gates/route-errors.mjs — 3 KB - lib/gates/scanner-driven.mjs — 5 KB - lib/gates/select-candidates.mjs — 5 KB - lib/gates/slow-route.mjs — 4 KB - lib/gates/types.d.ts — 893 B - lib/gates/uncached-route.mjs — 4 KB - lib/gates/usage-spike-triage.mjs — 5 KB - lib/grade-recommendation.mjs — 7 KB - lib/impact-label.mjs — 5 KB - lib/impact-magnitude.mjs — 2 KB - lib/investigation-brief.mjs — 34 KB - lib/observation-safety.mjs — 9 KB - lib/project-facts.mjs — 4 KB - lib/queries.mjs — 10 KB - lib/reconcile-candidates.mjs — 16 KB - lib/render-report.mjs — 38 KB - lib/repo-root.mjs — 3 KB - lib/route-normalize.mjs — 8 KB - lib/sanitizers/bot-protection-certainty.mjs — 2 KB - lib/sanitizers/cache-tag-invalidation-certainty.mjs — 1 KB - lib/sanitizers/count-correct.mjs — 2 KB - lib/sanitizers/function-duration-invocations.mjs — 1 KB - lib/sanitizers/index.mjs — 3 KB - lib/sanitizers/middleware-conflict.mjs — 2 KB - lib/sanitizers/missing-citation.mjs — 497 B - lib/sanitizers/pre-release.mjs — 2 KB - lib/sanitizers/rate-limit.mjs — 3 KB - lib/sanitizers/rendering-mode-mislabel.mjs — 2 KB - lib/sanitizers/undeclared-dep.mjs — 3 KB - lib/sanitizers/vercel-directive-strip.mjs — 1 KB - lib/sanitizers/window-units.mjs — 869 B - lib/scanners/cache-components-suspense-dedupe.mjs — 4 KB - lib/scanners/edge-heavy-import.mjs — 4 KB - lib/scanners/force-dynamic.mjs — 2 KB - lib/scanners/headers-in-page.mjs — 2 KB - lib/scanners/index.mjs — 1 KB - lib/scanners/large-static-asset.mjs — 3 KB - lib/scanners/max-age-without-s-maxage.mjs — 2 KB - lib/scanners/middleware-broad-matcher.mjs — 2 KB - lib/scanners/missing-cache-headers.mjs — 4 KB - lib/scanners/prisma-include-tree.mjs — 2 KB - lib/scanners/region-pin-in-config.mjs — 3 KB - lib/scanners/source-maps-production.mjs — 1 KB - lib/scanners/sveltekit-prerender-missing.mjs — 2 KB - lib/scanners/turbo-force-bypass.mjs — 5 KB - lib/scanners/unoptimized-image.mjs — 4 KB - lib/scanners/use-cache-date-stamp.mjs — 4 KB - lib/support-topics.mjs — 13 KB - lib/throttle.mjs — 9 KB - lib/util.mjs — 544 B - lib/vercel.mjs — 30 KB - lib/verify-claim.mjs — 60 KB - lib/workspace-resolver.mjs — 17 KB - metadata.json — 903 B - references/candidates.md — 8 KB - references/data-collection.md — 20 KB - references/docs-library.json — 31 KB - references/doctrine.md — 9 KB - references/observability-plus.md — 5 KB - references/playbooks/README.md — 3 KB - references/playbooks/ai-application.md — 4 KB - references/playbooks/api-service.md — 2 KB - references/playbooks/content-site.md — 2 KB - references/playbooks/ecommerce.md — 3 KB - references/playbooks/marketing.md — 3 KB - references/playbooks/saas.md — 3 KB - references/playbooks/sveltekit.md — 4 KB - references/recommendations.md — 11 KB - references/scanner-patterns.md — 13 KB - references/scoring.md — 12 KB - references/support-topics/README.md — 2 KB - references/support-topics/astro-edge-middleware-scope.md — 1012 B - references/support-topics/astro-output-mode-and-isr.md — 1 KB - references/support-topics/auth-preserving-parallelization.md — 1 KB - references/support-topics/bot-protection-product-guardrails.md — 1 KB - references/support-topics/build-minutes-monorepo-fanout.md — 1 KB - references/support-topics/cache-components-static-shell-boundaries.md — 1 KB - references/support-topics/cache-components-suspense-dedupe-pitfall.md — 1 KB - references/support-topics/cdn-cache-auth-safety.md — 1 KB - references/support-topics/cold-start-initialization-bundle.md — 1 KB - references/support-topics/core-web-vitals-client-bottlenecks.md — 1 KB - references/support-topics/database-egress-pooling-region.md — 1015 B - references/support-topics/dynamic-rendering-traps.md — 1 KB - references/support-topics/external-api-critical-path-platform.md — 1 KB - references/support-topics/external-api-critical-path.md — 978 B - references/support-topics/fast-data-transfer-payloads.md — 1 KB - references/support-topics/fluid-compute-caveats.md — 1 KB - references/support-topics/function-duration-io-and-after.md — 1 KB - references/support-topics/function-invocation-reduction.md — 1 KB - references/support-topics/function-region-misconfiguration-ttfb.md — 1 KB - references/support-topics/image-optimization-cost-control.md — 1 KB - references/support-topics/isr-revalidation-static-generation.md — 1 KB - references/support-topics/middleware-proxy-edge-cost.md — 991 B - references/support-topics/next-fetch-revalidate-floor.md — 1 KB - references/support-topics/next-font-cls-self-hosting.md — 906 B - references/support-topics/next-heavy-ui-lazy-load-boundaries.md — 1 KB - references/support-topics/next-image-lcp-preload-sizes.md — 1 KB - references/support-topics/next-route-handler-get-cache-defaults.md — 1 KB - references/support-topics/next-script-third-party-strategy.md — 1 KB - references/support-topics/nextjs-version-cache-semantics.md — 996 B - references/support-topics/not-found-catchall-request-waste.md — 1 KB - references/support-topics/nuxt-route-rules-cache-isr.md — 1 KB - references/support-topics/observability-events-cost-attribution.md — 1 KB - references/support-topics/post-response-work-waituntil.md — 1009 B - references/support-topics/route-error-durable-offload.md — 1 KB - references/support-topics/route-error-runtime-limits.md — 988 B - references/support-topics/runtime-cache-reusable-data.md — 1 KB - references/support-topics/sveltekit-isr-prerender-safety.md — 1 KB - references/support-topics/sveltekit-split-cold-start-tradeoff.md — 1 KB - references/support-topics/usage-spike-triage.md — 1018 B - references/support-topics/use-cache-date-stamp-isr-write-amplifier.md — 1 KB - references/support-topics/use-cache-remote-shared-origin-data.md — 1 KB - references/support-topics/workflow-resumable-stream-routes.md — 1 KB - references/verification.md — 9 KB - references/voice.md — 4 KB - scripts/budget-summary.mjs — 2 KB - scripts/build-docs.mjs — 3 KB - scripts/check-citations.mjs — 3 KB - scripts/check-docs-fresh.mjs — 4 KB - scripts/collect-signals.mjs — 21 KB - scripts/collect-sub-agent-outputs.mjs — 10 KB - scripts/deep-dive.mjs — 12 KB - scripts/gate-investigations.mjs — 6 KB - scripts/merge-signals.mjs — 6 KB - scripts/prepare-investigation-brief.mjs — 8 KB - scripts/reconcile-candidates.mjs — 2 KB - scripts/render-report.mjs — 17 KB - scripts/scan-codebase.mjs — 11 KB - scripts/verify-and-regen.mjs — 15 KB - scripts/verify-finding.mjs — 698 B ## SKILL.md Not reproduced here. Read it at https://github.com/vercel-labs/agent-skills/blob/main/skills/vercel-optimize/SKILL.md --- Skills Agentes — https://skillsagentes.com/skills/vercel-labs/agent-skills/vercel-optimize