vercel-cli
Skill28 starsChanged 6 months agoMITView on GitHub
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.
- Installs packages
11 other projects use a version of this.
Adopted by
Most recently taken up by
- databricks/devhubtheir own version, first seen Sep 28, 2026
- vercel-labs/hatcherytheir own version, first seen Sep 25, 2026
- vercel/vercel-plugintheir own version, first seen Aug 12, 2026
- wdchenxyz/skills-arsenaltheir own version, first seen Aug 12, 2026
- GTMify/claude-skills-startertheir own version, first seen Jul 13, 2026
- tunnckoCore/skillstheir own version, first seen May 31, 2026
Used with
Projects with it also use shadcn, agent-browser and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
VercelSkillshadcn
Pre-built shadcn/ui components for json-render. Use when working with @json-render/shadcn, adding standard UI components to a catalog, or building web UIs with Radix UI + Tailwind CSS components.
Also in 4 projects that use this
VercelSkillagent-browser
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.
Also in 4 projects that use this
- +1 more from vercel-labs
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- vercel/vercel★ 16ksame name
- openai/plugins★ 7.3ksame name
- vercel/vercel-plugin★ 297same name
- databricks/devhub★ 26same name
- Xipher-Labs/walter-os★ 8same name
- vercel-labs/hatchery★ 7same name
- vercel-labs/workflow-workshop★ 6same name
- itsnex1s/awesome-claude-skills★ 5same name
- GTMify/claude-skills-starter★ 2same name
- tunnckoCore/skills★ 2same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository63 other files it gives its agents.
- .claude/skills/composition-patterns/AGENTS.mdAGENTS.md
- .claude/skills/react-best-practices/AGENTS.mdAGENTS.md
- .claude/skills/vercel-react-native-skills/AGENTS.mdAGENTS.md
- agy-cliSkill
- aws-cliSkill
- better-authSkill
- brainstormSkill
- claude-seoSkill
- code-qualitySkill
- codex-cliSkill
- color-accessibility-auditSkill
- vercel-composition-patternsSkill
- data-wranglerSkill
- doc-navigatorSkill
- domain-checkerSkill
- fastapi-senior-devSkill
- file-converterSkill
- firebase-cliSkill
- firecrawlSkill
- frontend-designSkill
- gemini-cliSkill
- github-cliSkill
- materialreacttable-masterySkill
- mcp-builderSkill
- mermaid-diagramSkill
- monday-comSkill
- mongodb-atlas-cliSkill
- multi-agent-patternsSkill
- n8n-cliSkill
- natural-languageSkill
- neon-postgres-agent-platformsSkill
- next-cache-componentsSkill
- nextjs-senior-devSkill
- next-upgradeSkill
- notebooklmSkill
- obsidian-skillsSkill
- owasp-securitySkill
- parallel-agentsSkill
- planning-with-filesSkill
- plan-to-tddSkill
- project-change-logSkill
- pydantic-modelSkill
- react-best-practicesSkill
- salesforce-cliSkill
- semantic-codingSkill
- senior-backendSkill
- skill-creatorSkill
- stripe-best-practicesSkill
- supabase-cliSkill
- swift-concurrency-6-2Skill
- swiftui-patternsSkill
- system-architectSkill
- terraformSkill
- testing-automation-expertSkill
- test-levelsSkill
- token-optimizerSkill
- trailofbits-securitySkill
- ui-ux-pro-maxSkill
- uiux-toolkitSkill
- upgrade-packages-jsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 94
After deploy, verify with vercel inspect <url> and vercel logs <url>
- Very specific: line 137
Never pass --yes/-y to Destructive or Forbidden ops
- Very specific: line 138
Prefer VERCEL_TOKEN env var over --token (argv is visible in process lists)
- Distinctive: line 141
Verify team/project before any production or delete op
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 apicalls or manage blob storage & integrations
Prerequisites
- Install:
npm i -g vercel(or pnpm/yarn). Native binary (experimental):pnpm i -g @vercel/vc-native -f - Auth:
vercel login— or for CI/CD setVERCEL_TOKEN(preferred over the--tokenflag, which leaks into process lists). Tokens: https://vercel.com/account/tokens - Verify:
vercel --versionandvercel whoami - Link:
vercel linkin the project dir (creates.vercel/) - Scope: confirm the active team with
vercel teams ls; switch withvercel switch
Safety Model
| Tier | Action Required | Examples |
| Safe | Execute immediately | vercel ls, inspect, env ls, whoami |
| Write | Inform user, then execute | deploy (preview), env add, alias set, dns add, staged routes/firewall rules edits |
| Destructive | AskUserQuestion BEFORE executing | deploy --prod, remove, rollback, promote, env rm, alias rm, domains rm, certs rm, cache purge, firewall publish |
| Forbidden | Multi-step typed confirmation, NEVER auto-confirm | project 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.
| Command | Why |
vercel project rm | Deletes project AND all its deployments — permanent |
vercel domains buy / domains transfer-in / buy | Spends money |
vercel domains move | Transfers domain to another scope |
vercel cache dangerously-delete | Hard-deletes cached data |
vercel firewall system-mitigations pause | Removes DDoS protection; you owe fees for abusive traffic |
vercel git disconnect | Breaks auto-deploy on push |
vercel logout | Destroys the local session |
| Bulk destructive loops | Multiplies 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:
- Confirm linked project & active scope (
vercel project inspect,vercel teams ls) - Confirm git state (right branch/commit)
AskUserQuestionto confirm production intent (template in safety-rules.md)- After deploy, verify with
vercel inspect <url>andvercel 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:
- Overview & command list: https://vercel.com/docs/cli
- Per-command:
https://vercel.com/docs/cli/<command> - Global options: https://vercel.com/docs/cli/global-options
vercel.jsonconfig: https://vercel.com/docs/project-configuration- REST API (for
vercel api): https://vercel.com/docs/rest-api
Full URI map: references/commands.md.
Common Flags
| Flag | Description |
--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 / -y | Skip prompts (NEVER on Forbidden ops) |
--debug | Verbose output for troubleshooting |
--json | Machine-readable output where supported |
Error Handling
| Error | Cause | Fix |
command not found: vercel | Not installed | npm i -g vercel |
Not authorized / No existing credentials | Not logged in | vercel login or set VERCEL_TOKEN |
Your codebase isn't linked | Dir not linked | vercel link |
The provided token is not valid | Bad/expired token | Regenerate at /account/tokens |
Can't find the specified scope | Wrong team | vercel teams ls → vercel switch |
unknown or unexpected option | Flag renamed | Self-heal: fetch /docs/cli/<command> |
Shell Safety
- Never pass
--yes/-yto Destructive or Forbidden ops - Prefer
VERCEL_TOKENenv var over--token(argv is visible in process lists) - Quote multi-word values, env values, and DNS records
- Append
| catif 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).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

