johnku2011/boilerplates-with-ai-skills/deploy-vercel
Claude Code and agent skill by johnku2011/boilerplates-with-ai-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use when deploying or configuring this project on Vercel — env vars, build settings, serverless limits, and production checks for Next.js or Express.
Install
npx vskill@latest install johnku2011/boilerplates-with-ai-skills/deploy-vercelSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as johnku2011/boilerplates-with-ai-skills/deploy-vercel.
Deploy on Vercel
Overview
Ship this project to Vercel with correct env vars, build settings, and production checks. Applies to Next.js App Router and Express API boilerplates in this catalog.
Pre-deploy Checklist
- [ ]
npm run buildpasses locally - [ ]
npm testpasses - [ ] Secrets are in Vercel project settings, not in git
- [ ] No debug logging of tokens or PII
- [ ] Production URL and env documented in README
Next.js App Router
- Connect the Git repo in the Vercel dashboard (or
vercel link+vercel deploy). - Framework preset: Next.js (auto-detected).
- Set server-only env vars in Vercel — never prefix secrets with
NEXT_PUBLIC_. - Use Server Components and Route Handlers for privileged logic.
- After deploy, smoke-test critical routes and API handlers.
Common issues:
- Build fails on server/client boundary — find
"use client"leaks of server modules. - Missing env at build time — set vars for Production and Preview if needed.
Express API (serverless)
- This boilerplate ships
vercel.jsonrouting to the Express app. - Set
NODE_ENV=productionand API secrets in Vercel env settings. - Keep handlers stateless — no in-memory session stores across invocations.
- Run integration tests against
vercel devbefore promoting to production.
Common issues:
- Cold starts — keep startup lean; lazy-load heavy deps.
- Body size / timeout — respect Vercel function limits; return 413/504 gracefully.
Environment Variables
| Kind | Where | |
|---|---|---|
| Secrets (API keys, DB URLs) | Vercel → Settings → Environment Variables (Production) | |
| Public config (analytics ID) | NEXT_PUBLIC_* only when safe for browsers | |
| Local dev | .env.local (gitignored) — never commit |
Post-deploy
- Hit health or home route; confirm expected status.
- Check Vercel function logs for startup errors.
- Run
bwai scan-projecton the deployed repo clone if skills changed.
Rollback
Use Vercel instant rollback to the previous production deployment if smoke tests fail. Fix forward only after identifying root cause.
Anti-patterns
- Committing
.envor Vercel tokens to git. - Using production secrets in Preview without understanding exposure.
- Deploying with a red test suite or skipped security review on auth changes.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingshared/skills/deploy-vercel/SKILL.md
Popularity
- Repository stars
- 240
- Repository forks
- 24
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/johnku2011/boilerplates-with-ai-skills/deploy-vercel)