deploy-vercel
Skill0 starsChanged 9 months agoMITView on GitHub
Deploy frontend applications to Vercel using CLI and REST API. Use when the user wants to deploy a React, Vite, Next.js, or static frontend to Vercel. Triggers on "deploy to Vercel", "Vercel deploy", "host my frontend", "deploy my app to Vercel", or any task requiring Vercel project creation, environment variables, production deployment, or GitHub auto-deploy connection.
- Installs packages
- Sends data out
2 other projects use a version of this.
Adopted by
Most recently taken up by
- ultimatethemedev-bit/claude-vitrine-kittheir own version, first seen Sep 20, 2026
- ominou5/funnel-architect-plugintheir own version, first seen Feb 26, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- ominou5/funnel-architect-plugin★ 86same name
- ultimatethemedev-bit/claude-vitrine-kit★ 0same name
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 repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- deploy-cloudflareSkill
- deploy-logSkill
- deploy-neonSkill
- deploy-netlifySkill
- deploy-projectSkill
- deploy-renderSkill
- deploy-supabaseSkill
- deploy-upstashSkill
- scan-projectSkill
- setup-authSkill
- setup-cicdSkill
- verify-deploymentSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
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 81
Add .vercel to .gitignore.
- Very specific: line 95
When the frontend imports from a shared directory (e.g., ../shared/types.ts):
- Very specific: line 115
Verify the response contains a "link" object with "type": "github".
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deploy to Vercel
Install CLI
npm i -g vercelAuthenticate
vercel loginVerify: vercel whoami
CLI Scope Issue
The Vercel CLI often fails in non-interactive (piped/automated) mode with missing_scope errors, even when --scope is provided. Use the REST API instead for project creation, env vars, and git linking. The CLI works reliably for vercel --prod deployments once the project is linked.
Deployment Workflow
1. Create project via API
VERCEL_TOKEN=$(cat ~/.local/share/com.vercel.cli/auth.json | python3 -c "import sys,json; print(json.load(sys.stdin)['token'])")
# Get team/scope ID first
curl -s "https://api.vercel.com/v2/teams" \
-H "Authorization: Bearer $VERCEL_TOKEN" | python3 -c "
import sys,json
for t in json.load(sys.stdin).get('teams',[]):
print(f'{t[\"id\"]}: {t[\"name\"]}')"
TEAM_ID="<team_id_from_above>"
curl -s -X POST "https://api.vercel.com/v11/projects?teamId=$TEAM_ID" \
-H "Authorization: Bearer $VERCEL_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "my-project",
"framework": "vite",
"buildCommand": "cd client && npm install && npm run build",
"outputDirectory": "client/dist",
"installCommand": "npm install"
}'For non-monorepo projects, omit buildCommand/outputDirectory/installCommand and let Vercel auto-detect.
Save the id field from the response as PROJECT_ID.
2. Set environment variables via API
curl -s -X POST "https://api.vercel.com/v10/projects/$PROJECT_ID/env?teamId=$TEAM_ID" \
-H "Authorization: Bearer $VERCEL_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"key": "VITE_SERVER_URL",
"value": "https://my-backend.up.railway.app",
"target": ["production", "preview"],
"type": "plain"
}'3. Create local project link
mkdir -p .vercel
cat > .vercel/project.json << EOF
{"projectId": "$PROJECT_ID", "orgId": "$TEAM_ID"}
EOFAdd .vercel to .gitignore.
4. Deploy to production
vercel --prod --yes5. Verify
The deploy output shows the production URL (e.g., https://my-project.vercel.app).
Monorepo Considerations
When the frontend imports from a shared directory (e.g., ../shared/types.ts):
- Set root directory to
.(repo root), notclient/ - Override
buildCommandtocd client && npm install && npm run build - Override
outputDirectorytoclient/dist - The
installCommandat root level should triggerpostinstallhooks for subdeps
Connect GitHub for Auto-Deploy
curl -s -X POST "https://api.vercel.com/v9/projects/$PROJECT_ID/link?teamId=$TEAM_ID" \
-H "Authorization: Bearer $VERCEL_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"type": "github",
"repo": "USER/REPO",
"productionBranch": "main"
}'Verify the response contains a "link" object with "type": "github".
Useful API Endpoints
See references/api_reference.md for the full API reference.
| Action | Method | Endpoint |
| Create project | POST | /v11/projects?teamId= |
| Set env var | POST | /v10/projects/{id}/env?teamId= |
| Link GitHub | POST | /v9/projects/{id}/link?teamId= |
| List env vars | GET | /v10/projects/{id}/env?teamId= |
| Update project | PATCH | /v9/projects/{id}?teamId= |
| Delete project | DELETE | /v9/projects/{id}?teamId= |
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.

