vercel-optimize

vercel-optimize is a skill for Claude Code, Codex from kok-o/koko-contextos-agents. It costs 116 tokens per session (957 once invoked), scanned A, a copy of vercel-optimize, MIT.

A guide for auditing Vercel deployments for cost and performance issues, using production measurements before examining source code.

In plain words
What is it for?
Use it with supported deployed projects to collect Vercel metrics, investigate selected routes or files, and produce ranked, evidence-based recommendations.
Why use it?
It keeps optimization work focused on verified problems instead of guesses or broad code searches.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/collect-signals.mjs [projectId] > "$RUN_DIR/vercel-signals.json".

Good fit Use it with supported deployed projects to collect Vercel metrics, investigate selected routes or files, and produce ranked, evidence-based recommendations.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/kok-o/koko-contextos-agents
agentmods
npx agentmods add skills/kok-o/koko-contextos-agents/vercel-optimize

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vercel-optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/kok-o/koko-contextos-agents/vercel-optimize.svg)](https://agentmods.dev/skills/kok-o/koko-contextos-agents/vercel-optimize)
Your own site
<a href="https://agentmods.dev/skills/kok-o/koko-contextos-agents/vercel-optimize"><img src="https://agentmods.dev/badge/skills/kok-o/koko-contextos-agents/vercel-optimize.svg" alt="Measured on agentmods" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 957 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00116 $0.00957
Opus 5 $0.00058 $0.00478
Sonnet 5 $0.00023 $0.00191
Haiku 4.5 $0.00012 $0.00096

Measured 3d ago against content hash b25941d505ca, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

vercel-optimize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to vercel-optimize — 335 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/core/skills/vercel-optimize/SKILL.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Vercel Optimize

Overview

Observability-first Vercel performance and cost reduction optimization skill. Evaluates deployed Next.js, SvelteKit, Nuxt, and Astro projects using production telemetry signals (signals.json), deterministic candidate gating, and code scanning to deliver ranked, verified architectural recommendations.

When to Use

  • When tasked with reducing Vercel bills, Function Invocations, Fast Data Transfer, or Build Minutes.
  • When diagnosing slow serverless routes, cold starts, or Edge vs Node runtime mismatches.
  • When evaluating caching opportunities (stale-while-revalidate, ISR, CDN edge caching) or Core Web Vitals degradation.

Rules & Patterns

1. Prerequisites & Framework Support

  • Vercel CLI v53+ with vercel metrics, vercel usage, vercel contract, and vercel api.
  • Authenticated CLI session (vercel login) and linked app directory (vercel link).
  • Framework support: Next.js App Router (Full), Pages Router (Supported), SvelteKit (Supported), Nuxt (Supported), Astro (Limited).
  • Security rule: Never put auth tokens in shell commands (VERCEL_TOKEN=... is banned in chat/logs).

2. Core Doctrine & Gating Pipeline

  • Metrics First: Recommendations start from Vercel production signals (14-day window), not repo-wide grep.
  • Deterministic Gates: scripts/gate-investigations.mjs selects code-scope and platform-scope candidates.
  • Candidate-Bound Scope: Inspect only files named by a candidate or a route-local import chain.
  • Version-Aware Citations: Use only verified citations matching the target framework version.
  • Specific Cache Policies: When recommending caching, state the exact cache policy and headers; keep auth-sensitive and error responses dynamic.

3. Recommendation Rules

  • Every recommendation must trace to a launched candidate and include observed metric evidence.
  • Cite verified files with line numbers when code changes are proposed.
  • Use precise observed performance numbers; avoid customer-facing speculative $N savings formulas.
  • Do not recommend duration reductions for Vercel Workflow runtime endpoints (/.well-known/workflow/v1/*).

Read the full file on GitHub · 84 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed · -239 lines b25941d505ca
  2. 8d ago First seen · 323 lines · 116 tokens per session scan A 95ae2683b30d

Subscribe to this mod's changes

vercel-optimize is a skill published in the GitHub repository kok-o/koko-contextos-agents (2 stars, last pushed 4d ago), licensed MIT. It adds 116 tokens to every session and 957 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to vercel-optimize, differing in 335 lines, and is treated as a copy.

Related

Other skills, from other repositories

deploy-release

Prepare and verify a staged or production deployment with rollback and smoke checks.

HoangNguyen0403/agent-skills-standard · 17 tokens

system-design-building-blocks

Select infrastructure components by the constraint each removes: load balancers, caches and invalidation, queues and pub/sub, CDN, API gateway, rate limiting, consistent hashing. Use when choosing cache, queue, replica, or edge layers; defer engine tuning to the database category.

HoangNguyen0403/agent-skills-standard · 61 tokens

harden-vps

Harden a production Linux VPS for your application across three layers — application (systemd hardening, monitoring alerts, backup automation), Ubuntu OS (UFW firewall, fail2ban SSH, unattended-upgrades, SSH hardening), and VPS provider (health checks, daily backups, monthly snapshots). Use when the user wants to…

danielvm-git/bigpowers · 99 tokens

deploy

Build → verify artifact → deploy → wait → smoke deployment pipeline. Platform-agnostic (MCP or CLI), with configurable timeout, retry with exponential backoff, and integrated health-check. The deploy half of CI/CD: run after build to push to production.

danielvm-git/bigpowers · 55 tokens

wire-observability

Add structured JSON logging, observability commands, and idempotent setup scripts to a project. Use when a project needs production-readiness instrumentation, when user wants structured logging, or as a production-readiness gate at any phase of development.

danielvm-git/bigpowers · 53 tokens

deploy

Deploy an application to a configured environment.

FlorianBruniaux/claude-code-ultimate-guide · 10 tokens