/skills:setup-vercelfrom skills
Setup Vercel for a project. Use this skill when the user says "setup vercel", "set up vercel", "configure vercel", or "link to vercel".
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Complete setup for deploying Next.js projects to Vercel with type-safe configuration.
bun add -g vercel
vercel login
Verify authentication:
vercel whoami
vercel link --yes
This creates a .vercel directory with project configuration. The directory is automatically added to .gitignore.
bun add -D @vercel/config
Create vercel.ts in the project root with type-safe configuration:
Note:
analyticsandspeedInsightsare NOT part of the Vercel deployment config (VercelConfig). Enable them via the@vercel/analyticsand@vercel/speed-insightspackages in your Next.js layout instead.
import type { VercelConfig } from '@vercel/config/v1'
const securityHeaders = [
{ key: 'X-Content-Type-Options', value: 'nosniff' },
{ key: 'X-Frame-Options', value: 'DENY' },
{ key: 'X-XSS-Protection', value: '0' },
{ key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' },
]
export const config: VercelConfig = {
functions: {
// Configure based on your API routes:
// 'app/api/ai/route.ts': { maxDuration: 60, memory: 1024 },
// 'app/api/stripe/webhook/route.ts': { maxDuration: 30 },
// 'app/api/search/route.ts': { maxDuration: 10 },
},
headers: [
{ source: '/api/(.*)', headers: securityHeaders },
],
rewrites: [
// { source: '/sitemap.xml', destination: '/api/sitemap' },
],
crons: [
// { path: '/api/cron/cleanup', schedule: '0 3 * * *' },
],
}
Install the packages and add them to your root layout:
bun add @vercel/analytics @vercel/speed-insights
In src/app/layout.tsx:
import { Analytics } from '@vercel/analytics/react'
import { SpeedInsights } from '@vercel/speed-insights/next'
// Add inside the <body> tag:
<Analytics />
<SpeedInsights />
Pull existing environment variables for local development:
vercel env pull .env.local
# List all variables
vercel env ls
# Add variable (interactive)
vercel env add MY_VAR
# Add to specific environment
vercel env add MY_VAR production
vercel env add MY_VAR preview
vercel env add MY_VAR development
# Remove variable
vercel env rm MY_VAR production
# Pull to local file
vercel env pull .env.local
| Environment | Trigger | Usage |
|---|---|---|
| Production | vercel --prod, main branch | Live site |
| Preview | vercel, feature branches | Testing |
| Development | vercel dev | Local dev |
NEXT_PUBLIC_ prefix for client-side variables# Preview deployment
vercel
# Production deployment
vercel --prod
# Local development with Vercel env vars
vercel dev
functions: {
'app/api/heavy/route.ts': {
memory: 1024, // MB (128-3009)
maxDuration: 60, // seconds (depends on plan)
},
}
headers: [
{
source: '/(.*)',
headers: [
{ key: 'X-Frame-Options', value: 'DENY' },
],
},
],
rewrites: [
{ source: '/api/v1/:path*', destination: '/api/:path*' },
{ source: '/blog/:slug', destination: '/posts/:slug' },
],
redirects: [
{ source: '/old-page', destination: '/new-page', permanent: true },
],
crons: [
{ path: '/api/cron/daily', schedule: '0 0 * * *' },
{ path: '/api/cron/hourly', schedule: '0 * * * *' },
],
For automated deployments, set these in your CI environment:
| Variable | Description |
|---|---|
VERCEL_TOKEN | API token from account settings |
VERCEL_ORG_ID | Found in .vercel/project.json |
VERCEL_PROJECT_ID | Found in .vercel/project.json |
| Command | Description |
|---|---|
vercel | Deploy to preview |
vercel --prod | Deploy to production |
vercel dev | Local dev server |
vercel link | Link to project |
vercel env pull | Pull env vars |
vercel env ls | List env vars |
vercel logs | View logs |
vercel inspect <url> | Inspect deployment |
vercel rollback | Rollback deployment |
vercel promote | Promote preview to production |
bun add -g vercel)vercel login)vercel link --yes)@vercel/config installedvercel.ts created with configuration.vercel in .gitignoreWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mattwoodco/skills --plugin skills84 skills in this plugin
/add-featureParent skill for feature and project workflows. Use when the user wants to build a project, add a feature, polish a skill, test all skills, or browse the skill catalog. Routes to add-project (build project from idea), improve-skill (refine one skill in a sandbox), test-skills (validate full skill composition), or any child skill by name.
/add-projectEnd-to-end project builder: idea → spec → shell → ralph loop → secrets → report. SMS notification after every phase. Creates a project directory with symlinked skills and a ralph execution loop. Does NOT scaffold Next.js — ralph does that as step 1.1 of the plan. Use when the user says "build project", "build a project", "new project", "create project", "build from idea", "scaffold and notify", "spec a project", "plan a project", or "scaffold project".
/