---
name: "vercel-project-cli-deployments"
description: "Deploy frontend projects, manage preview environments, and sync production environment secrets."
metadata:
  author: "Vercel"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "deploy with vercel cli"
  - "pull vercel environment variables"
  - "configure vercel.json"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Vercel CLI Project Deployments & Environment Variables

Automates Vercel deployments: deploying via Vercel CLI (vercel --prod), managing environment variables across environments (development, preview, production), configuring vercel.json, and setting up build caches.

## When to Invoke
Invoke this skill whenever you need to:
- deploy with vercel cli
- pull vercel environment variables
- configure vercel.json

## Execution SOP & Rules
1. Link repository to Vercel project: vercel link --yes.
2. Pull project environment variables: vercel env pull .env.local.
3. Build project locally or in CI: vercel build --prod.
4. Deploy pre-built artifacts to production: vercel deploy --prebuilt --prod.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
