Deploy vercel
One-shot deployment of any project to free cloud infrastructure — scan, auth, deploy, CI/CD, verify
npx -y skills add AayushMS/deploy-skills --skill deploy-vercelAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
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.
SKILL.md
3.8 KB, as published. Nobody here has run it
Deploy to Vercel
Install CLI
npm i -g vercel
Authenticate
vercel login
Verify: 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"}
EOF
Add .vercel to .gitignore.
4. Deploy to production
vercel --prod --yes
5. 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= |
Gives 0 of the 12 instructions most containers cloud skills give
Counted across 607 of the 657 authors here whose files we hold, read 2026-08-06
- run containers as a non-root userin 69 of 607, across 49 files
- use multi-stage buildsin 52 of 607, across 41 files
- use Promise.all for independent operationsin 47 of 607, across 13 files
- import directly instead of barrel filesin 46 of 607, across 12 files
- use ternary instead of AND for conditionalsin 45 of 607, across 12 files
- use Set or Map for O(1) lookupsin 42 of 607, across 10 files
- create a .dockerignore filein 41 of 607, across 31 files
- Read individual rule files for detailsin 39 of 607, across 9 files
- authenticate server actions like API routesin 35 of 607, across 7 files
- use next/dynamic for heavy componentsin 34 of 607, across 9 files
- use React.cache for per-request deduplicationin 34 of 607, across 10 files
- copy dependency files before source codein 34 of 607, across 21 files
Said here and by no other author read
- verify authentication before proceeding
- create projects via the REST API
- create a local project link file
- add the local config directory to gitignore
- use the repo root for monorepo projects
- connect GitHub via the REST API
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once.