Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Add this skill
npx mdskills install openai/vercel-deployClear deployment workflow with good fallback handling and timeout guidance for long-running builds
1---2name: vercel-deploy3description: Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".4---56# Vercel Deploy78Deploy any project to Vercel instantly. **Always deploy as preview** (not production) unless the user explicitly asks for production.910## Prerequisites1112- Check whether the Vercel CLI is installed **without** escalated permissions (for example, `command -v vercel`).13- Only escalate the actual deploy command if sandboxing blocks the deployment network calls (`sandbox_permissions=require_escalated`).14- The deployment might take a few minutes. Use appropriate timeout values.1516## Quick Start17181. Check whether the Vercel CLI is installed (no escalation for this check):1920```bash21command -v vercel22```23242. If `vercel` is installed, run this (with a 10 minute timeout):25```bash26vercel deploy [path] -y27```2829**Important:** Use a 10 minute (600000ms) timeout for the deploy command since builds can take a while.30313. If `vercel` is not installed, or if the CLI fails with "No existing credentials found", use the fallback method below.3233## Fallback (No Auth)3435If CLI fails with auth error, use the deploy script:3637```bash38skill_dir="<path-to-skill>"3940# Deploy current directory41bash "$skill_dir/scripts/deploy.sh"4243# Deploy specific project44bash "$skill_dir/scripts/deploy.sh" /path/to/project4546# Deploy existing tarball47bash "$skill_dir/scripts/deploy.sh" /path/to/project.tgz48```4950The script handles framework detection, packaging, and deployment. It waits for the build to complete and returns JSON with `previewUrl` and `claimUrl`.5152**Tell the user:** "Your deployment is ready at [previewUrl]. Claim it at [claimUrl] to manage your deployment."5354## Production Deploys5556Only if user explicitly asks:57```bash58vercel deploy [path] --prod -y59```6061## Output6263Show the user the deployment URL. For fallback deployments, also show the claim URL.6465**Do not** curl or fetch the deployed URL to verify it works. Just return the link.6667## Troubleshooting6869### Escalated Network Access7071If deployment fails due to network issues (timeouts, DNS errors, connection resets), rerun the actual deploy command with escalated permissions (use `sandbox_permissions=require_escalated`). Do not escalate the `command -v vercel` installation check. The deploy requires escalated network access when sandbox networking blocks outbound requests.7273Example guidance to the user:7475```76The deploy needs escalated network access to deploy to Vercel. I can rerun the command with escalated permissions—want me to proceed?77```78
Full transparency — inspect the skill content before installing.