vercel/vercel-plugin/deployments-cicd
Claude Code and agent skill by vercel/vercel-plugin
- vendor
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Vercel deployment and CI/CD expert guidance. Use when deploying, promoting, rolling back, inspecting deployments, building with --prebuilt, or configuring CI workflow files for Vercel.
Install
npx vskill@latest install vercel/vercel-plugin/deployments-cicdSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as vercel/vercel-plugin/deployments-cicd.
Vercel Deployments & CI/CD
You are an expert in Vercel deployment workflows — vercel deploy, vercel promote, vercel rollback, vercel inspect, vercel build, and CI/CD pipeline integration with GitHub Actions, GitLab CI, and Bitbucket Pipelines.
Deployment Commands
Preview Deployment
Git pushes to non-production branches make previews. A project's first deploy goes to production. To undo it, ask the user, then run vercel remove <id> --yes.
Production Deployment
Build Locally, Deploy Build Output
When to use `--prebuilt`: Custom CI pipelines where you control the build step, need build caching at the CI level, or need to run tests between build and deploy.
Prebuilt limits: System Environment Variables are missing at build time, and Next.js Skew Protection needs a custom deployment ID.
Promote & Rollback
Promote a production deployment, not a preview. Promoting a staged production deployment is instant and serves the same build. Promoting a preview rebuilds it with production environment variables, so the tested build is not the one released.
Rollback turns off auto-assignment. New production pushes stop going live until vercel promote restores it.
Inspect Deployments
CI/CD Integration
When to Add a CI Pipeline
The Git integration builds every push, posts preview URLs on pull requests, and deploys the production branch. Use CI for what Vercel does not run: tests, security scans, performance budgets, and approval gates. Gate releases on them with Deployment Checks while Vercel keeps building. Deploy from CI only when the build must run in your runner, such as to keep source code off Vercel or for GitHub Enterprise Server.
Required Environment Variables
Every CI pipeline needs these three variables:
Set these as secrets in your CI provider. Never commit them to source control. The CLI reads VERCEL_TOKEN from the environment; do not pass --token, which exposes it in process lists and logs.
GitHub Actions
Other CI Pipelines and Backend Access
| Task | Read | |
|---|---|---|
| Post preview URLs on pull requests from GitHub Actions, or deploy from GitLab CI or Bitbucket Pipelines | references/cli-pipelines.md | |
| Let deployed functions reach AWS, GCP, or Vault without static secrets (OIDC federation) | references/oidc-federation.md | |
| Deployment Checks, or testing protected deployments from CI | references/deployment-checks.md | |
| Live status (MCP) | references/live-status.md |
Common CI Patterns
Release Only Tested Builds
With Git deployments, require Deployment Checks. When CI deploys with the CLI, stage a production deployment, test it, then promote that build:
Global CLI Flags for CI
| Flag | Purpose | |
|---|---|---|
--token <token> | Authenticate; in CI, set VERCEL_TOKEN instead | |
--yes / -y | Skip confirmation prompts | |
--scope <team> | Execute as a specific team | |
--cwd <dir> | Set working directory |
Best Practices
- Always use `--prebuilt` in CI — separates build from deploy, enables build caching and test gates
- Use `vercel pull` before build — ensures correct env vars and project settings
- Release only tested builds — Deployment Checks (Git) or staged production builds (CLI)
- Use OIDC federation for runtime backend access — lets Vercel functions auth to AWS/GCP without static secrets (does not replace
VERCEL_TOKENfor CLI) - Pin the Vercel CLI version in CI —
npm install -g vercel@latestcan break unexpectedly - Add `--yes` flag in CI — prevents interactive prompts from hanging pipelines
Deployment Strategy Matrix
| Scenario | Strategy | Commands | |
|---|---|---|---|
| Standard team workflow | Git-push deploy | Push to main/feature branches | |
| Custom CI/CD (Actions, CircleCI) | Prebuilt deploy | vercel build && vercel deploy --prebuilt | |
| Monorepo with Turborepo | Affected + remote cache | turbo run build --affected | |
| Preview for every PR | Default behavior | Auto-creates preview URL per branch | |
| Release a tested build | Deployment Checks (Git) or staged production (CLI) | Required checks, or vercel deploy --prod --skip-domain → test → vercel promote <url> | |
| Atomic deploys with DB migrations | Two-phase | Run migration → verify → vercel promote | |
| Latency-sensitive regional data | Vercel Functions | Keep the Node.js default; set the function region near the data |
Common Build Errors
| Error | Cause | Fix | |
|---|---|---|---|
ERR_PNPM_OUTDATED_LOCKFILE | Lockfile doesn't match package.json | Run pnpm install, commit lockfile | |
NEXT_NOT_FOUND | Root directory misconfigured | Set Root Directory in Project Settings | |
Invalid next.config.js | Config syntax error | Validate config locally with next build | |
functions/api/*.js mismatch | Wrong file structure | Move to app/api/ directory (App Router) | |
Error: EPERM | File permission issue in build | Don't chmod in build scripts; use postinstall |
Deploy Summary Format
Present a structured deploy result block:
If the deployment failed, append:
For production deploys, also include:
Deploy Next Steps
Based on the deployment outcome:
- Success (preview) → "Visit the preview URL to verify. When ready, run
/deploy prodto promote to production." - Success (production) → "Your production site is live. Run
/statusto see the full project overview." - Build error → "Check the build logs above. Common fixes: verify
buildscript in package.json, check for missing env vars with/env list, ensure dependencies are installed." - Missing env vars → "Run
/env pullto sync environment variables locally, or/env listto review what's configured on Vercel." - Monorepo issues → "Set the Root Directory in Project Settings to the app's folder;
vercel.jsonhas norootDirectorykey." - Post-deploy errors detected → "Review errors above. Check
vercel logs --deployment <url> -q level:errorfor details. If drains are configured, correlate with external monitoring." - No monitoring configured → "Set up drains or install an error tracking integration before the next production deploy. Run
/statusfor a full observability diagnostic."
Official Documentation
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 16 Nov 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/deployments-cicd/SKILL.md
Popularity
- Repository stars
- 337
- Repository forks
- 81
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 8 months ago.
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/vercel/vercel-plugin/deployments-cicd)