# Deploy to Vercel (deploy-to-vercel)

> Deploys an app to Vercel, choosing the method from link status, git remote and CLI auth, and returns the deployment URL.

- Category: [Deploy & Release](https://www.myskills.tools/en/categories/deploy-release/)
- Source: Official · Vercel Labs
- Repository: https://github.com/vercel-labs/agent-skills/tree/main/skills/deploy-to-vercel (commit dfeeb54 · v4.0.0)
- SKILL.md: https://github.com/vercel-labs/agent-skills/blob/main/skills/deploy-to-vercel/SKILL.md
- Install command: `npx skills add vercel-labs/agent-skills --skill deploy-to-vercel`
- License: MIT
- Compatible with: Any SKILL.md agent
- Permissions: read-repo ✓, write-files ✓, shell ✓, network ✓
- Status: Scan passed
- A rule scan cannot catch every risk. Read this skill's SKILL.md and check its permissions before installing.
- ⚠ Deploys code to Vercel, may run git add . and commit and push after approval, and may install the Vercel CLI globally.

## Core rule

Always deploy as preview, not production, unless the user explicitly asks for production.

## Execution Phases

1. **Gather project state** — Check the git remote, .vercel/ link files, vercel whoami auth status and the list of available teams.
2. **Pick a team** — If there are several teams, ask the user to choose and pass --scope on later commands; skip if already linked or only one team.
3. **Link and deploy** — If linked with a remote, commit and push after approval; otherwise vercel link then vercel deploy, installing and logging into the CLI if needed.
4. **No-auth fallback** — When login is impossible, create a temporary deployment with vercel deploy --temporary and share the claim URL and expiry.
5. **Return the URL** — Report the URL and build status from vercel ls or vercel inspect, without curling the deployed URL to verify it.

## Permissions (summarised from SKILL.md)

| Capability | Needed | Details |
|---|---|---|
| File writes | Limited | vercel link creates .vercel/ link files, and git-push deploys commit the current changes; application code is not edited. |
| Command execution | Required | Runs git, the vercel CLI (whoami, link, deploy, inspect, ls) and npm install -g vercel or npx vercel. |
| Network outbound | Limited | Connects only to Vercel, the npm registry and the git remote; it does not fetch the deployed URL to verify it. |

## SKILL.md frontmatter (YAML)

```yaml
---
name: deploy-to-vercel
description: 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".
metadata:
  author: vercel
  version: "4.0.0"
---
```

Home: https://www.myskills.tools/en/ · URL: https://www.myskills.tools/en/skills/deploy-to-vercel/
