agentsclimarketplace

Vercel cli

Skill georgekhananaev/claude-skills-vault/.claude/skills/vercel-cli

A curated collection of high impact skills for Claude Code designed to supercharge the senior full stack workflow. This vault automates the repetitive parts of development like architectural reviews, TDD cycles, and PR management so you can stay in flow. It is a force multiplier for shipping clean, production ready code at scale. πŸš€βš‘οΈ

Install
npx -y skills add georgekhananaev/claude-skills-vault --skill vercel-cli

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

Safety-first Vercel CLI (`vercel`/`vc`) skill to fully manage projects from the terminal β€” deploys, env vars, domains, DNS, certs, projects, teams, logs, rollbacks, promotions, firewall, and `vercel api`. Classifies each command by risk tier and gates destructive/forbidden ops behind confirmation. Self-heals via embedded doc URIs.

SKILL.md

6.9 KB, ~1.7k tokens by cl100k_base, as published. Nobody here has run it

Vercel CLI

Safety-first wrapper for the Vercel CLI (vercel, alias vc). Every command is classified by risk tier before execution β€” full project control, with anything irreversible gated behind explicit confirmation.

When to Use

  • Deploy projects (preview/production), build locally, or run vercel dev
  • Manage env vars, secrets, and pull project settings (env, pull)
  • Manage domains, DNS records, certificates, and aliases
  • Manage projects, teams/scopes, and Git connections
  • Inspect deployments, read logs, roll back, promote, or redeploy
  • Configure firewall, routes, redirects, cache, flags, rolling releases
  • Make authenticated vercel api calls or manage blob storage & integrations

Prerequisites

  1. Install: npm i -g vercel (or pnpm/yarn). Native binary (experimental): pnpm i -g @vercel/vc-native -f
  2. Auth: vercel login β€” or for CI/CD set VERCEL_TOKEN (preferred over the --token flag, which leaks into process lists). Tokens: https://vercel.com/account/tokens
  3. Verify: vercel --version and vercel whoami
  4. Link: vercel link in the project dir (creates .vercel/)
  5. Scope: confirm the active team with vercel teams ls; switch with vercel switch

Safety Model

TierAction RequiredExamples
SafeExecute immediatelyvercel ls, inspect, env ls, whoami
WriteInform user, then executedeploy (preview), env add, alias set, dns add, staged routes/firewall rules edits
DestructiveAskUserQuestion BEFORE executingdeploy --prod, remove, rollback, promote, env rm, alias rm, domains rm, certs rm, cache purge, firewall publish
ForbiddenMulti-step typed confirmation, NEVER auto-confirmproject rm, domains buy/transfer-in, buy, cache dangerously-delete, firewall system-mitigations pause, git disconnect, bulk destructive loops

Full classification + confirmation templates: references/safety-rules.md.

Decision Flow

Command received
  β†’ Classify risk tier (see Safety Model + references/commands.md)
  β†’ Safe?        Execute immediately
  β†’ Write?       State what will happen β†’ execute
  β†’ Destructive? AskUserQuestion with options β†’ wait β†’ execute or cancel
  β†’ Forbidden?   Warn β†’ typed confirmation β†’ final confirm β†’ execute or cancel
On failure β†’ Self-Healing (fetch the command's doc URI)

Forbidden Commands (never auto-confirm)

These need typed multi-step confirmation β€” keep them visible. The full Destructive list and per-command tiers live in references/safety-rules.md and references/commands.md.

CommandWhy
vercel project rmDeletes project AND all its deployments β€” permanent
vercel domains buy / domains transfer-in / buySpends money
vercel domains moveTransfers domain to another scope
vercel cache dangerously-deleteHard-deletes cached data
vercel firewall system-mitigations pauseRemoves DDoS protection; you owe fees for abusive traffic
vercel git disconnectBreaks auto-deploy on push
vercel logoutDestroys the local session
Bulk destructive loopsMultiplies blast radius

AskUserQuestion Integration

For Destructive ops, present tailored options with a "Cancel". Examples:

Q: "Roll back production for <project>?"
  - "Roll back to previous" β€” vercel rollback
  - "Roll back to specific deployment" β€” vercel rollback <id>
  - "Cancel"

Q: "Remove env var <NAME> from <environment>?"
  - "Remove it" β€” vercel env rm <NAME> <env>
  - "Cancel"

For Forbidden ops, follow the triple-confirmation protocol in references/safety-rules.md.

Production Deploy Protocol

--prod, promote, rollback, and *-release/publish change live traffic. Before running:

  1. Confirm linked project & active scope (vercel project inspect, vercel teams ls)
  2. Confirm git state (right branch/commit)
  3. AskUserQuestion to confirm production intent (template in safety-rules.md)
  4. After deploy, verify with vercel inspect <url> and vercel logs <url>

Self-Healing

The CLI changes often (subcommands get renamed). On any error or unexpected behavior: read the error β†’ vercel help <command> β†’ if still unclear, WebFetch https://vercel.com/docs/cli/<command> β†’ adjust β†’ re-run. If a command was renamed/removed, surface that with the doc link rather than guessing repeatedly. Key URIs:

Full URI map: references/commands.md.

Common Flags

FlagDescription
--token <t>Auth token (prefer VERCEL_TOKEN env var)
--scope <team>Team/scope to operate in
--cwd <dir>Run as if in a different directory
--target <env>Target a custom environment
--yes / -ySkip prompts (NEVER on Forbidden ops)
--debugVerbose output for troubleshooting
--jsonMachine-readable output where supported

Error Handling

ErrorCauseFix
command not found: vercelNot installednpm i -g vercel
Not authorized / No existing credentialsNot logged invercel login or set VERCEL_TOKEN
Your codebase isn't linkedDir not linkedvercel link
The provided token is not validBad/expired tokenRegenerate at /account/tokens
Can't find the specified scopeWrong teamvercel teams ls β†’ vercel switch
unknown or unexpected optionFlag renamedSelf-heal: fetch /docs/cli/<command>

Shell Safety

  • Never pass --yes/-y to Destructive or Forbidden ops
  • Prefer VERCEL_TOKEN env var over --token (argv is visible in process lists)
  • Quote multi-word values, env values, and DNS records
  • Append | cat if a command might invoke a pager
  • Verify team/project before any production or delete op

Integration

Pairs with: github-cli (repo/PRs that trigger deploys), nextjs-senior-dev / next-upgrade (the apps deployed), supabase-cli / neon-postgres-agent-platforms (data services), code-quality (review before a prod deploy).

What ships with it: 2 files

19.1 KB alongside SKILL.md

references/

Keep looking

Skills are one crate of 327,167. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.