vercel-deployment

vercel-deployment is a skill for Claude Code, Codex from hoangatg/ai-agent-toolkit. It costs 38 tokens per session (791 once invoked), scanned A, original, MIT.

Vercel deployment guidance for publishing frontend and Next.js applications. It covers preview and production deployments, redirects, rewrites, serverless and edge functions, caching, and incremental page rebuilding.

In plain words
What is it for?
Use it to configure Vercel projects, manage deployment environments, set response rules, run scheduled functions, and optimize cached pages.
Why use it?
It helps you understand how code moves from a Git branch to a reviewable preview and then to production, including the limits of different function types.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure Vercel projects, manage deployment environments, set response rules, run scheduled functions, and optimize cached pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hoangatg/ai-agent-toolkit/vercel-deployment
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hoangatg/ai-agent-toolkit --skill vercel-deployment
Clone the repo
git clone --depth 1 https://github.com/hoangatg/ai-agent-toolkit

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-deployment

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/vercel-deployment/github.svg)](https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/vercel-deployment)
Your own site
<a href="https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/vercel-deployment"><img src="https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/vercel-deployment/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for vercel-deployment

Your own site · 80×15
<a href="https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/vercel-deployment"><img src="https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/vercel-deployment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 791 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00038 $0.00791
Opus 5 $0.00019 $0.00396
Sonnet 5 $0.00008 $0.00158
Haiku 4.5 $0.00004 $0.00079

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

Security

Grade A, and why

vercel-deployment scanned grade A with 1 finding 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 8d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- No Node.js APIs (fs, child_process)
.agent/skills/vercel-deployment/SKILL.md · 124 lines

How it starts

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

Vercel Deployment

Push to deploy. Preview everything. Ship with confidence.


1. Deployment Model

How It Works

git push → Build → Preview URL → Review → Merge → Production

Environment Types

Environment Trigger URL
Production Push to main app.com
Preview Push to any branch / PR branch-xxx.vercel.app
Development vercel dev localhost:3000

2. Configuration

vercel.json Essentials

Setting Purpose
redirects URL redirects (301/302)
rewrites URL rewrites (proxy)
headers Custom response headers
functions Serverless function config
crons Scheduled functions

3. Edge & Serverless Functions

Type Runtime Cold Start Best For
Serverless Node.js ~250ms API routes, heavy logic
Edge V8 Isolates ~0ms Fast responses, middleware

Edge Function Limitations

  • No Node.js APIs (fs, child_process)
  • Limited execution time (30s)
  • Smaller bundle size
  • Limited npm packages

4. Caching & ISR

Incremental Static Regeneration

Pattern Use Case
Time-based revalidate: 60 (every 60s)
On-demand revalidateTag() / revalidatePath()
Static Build-time only

Cache Headers

Header Effect
s-maxage=60 CDN cache for 60s
stale-while-revalidate Serve stale while fetching new
no-store Never cache

5. Performance

Feature Impact
Edge Network Global CDN, close to users
Image Optimization Auto next/image on edge
Font Optimization next/font zero CLS
Analytics Web Vitals tracking
Speed Insights Real user monitoring

6. Environment Variables

Type Scope
Production Only production deploys
Preview Only preview deploys
Development vercel dev only
NEXT_PUBLIC_ Exposed to browser

Read the full file on GitHub · 124 lines

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. 8d ago First seen · 124 lines · 38 tokens per session scan A cfa98f6f73f9

Subscribe to this mod's changes

vercel-deployment is a skill published in the GitHub repository hoangatg/ai-agent-toolkit (1 stars, last pushed 5mo ago), licensed MIT. It adds 38 tokens to every session and 791 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.