Skip to content
Back to skills

Deploy Vercel

ASecurity

Deliver the app to Vercel — register the Vercel environment, then run `spectoflow deliver`, which runs the Vercel CLI (`vercel pull`, `vercel build`, `vercel deploy --prebuilt`) with the user's token and health-checks the deployment.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsrustshelldocker

Works with

  • cli

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned December 4, 2026

npx -y skills add georgesmomo/spectoflow --skill deploy-vercel --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Deploy Vercel?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Deploy Vercel
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/georgesmomo-deploy-vercel/badge)](https://www.skillsdirectory.com/skills/georgesmomo-deploy-vercel)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: deploy-vercel
description: Deliver the app to Vercel — register the Vercel environment, then run `spectoflow deliver`, which runs the Vercel CLI (`vercel pull`, `vercel build`, `vercel deploy --prebuilt`) with the user's token and health-checks the deployment.
capability: operations
inputs: A project that builds, the Vercel CLI on PATH, and — from the USER — whether this is a production deployment, and the Vercel project (linked with `vercel link`, or its org and project ids). The token is theirs and stays in their shell.
outputs: A `vercel` environment in `.spectoflow/config.json` and a delivery result — the deployment URL, healthy, or the failure code with its cause.
standard: Vercel CLI reference (vercel.com/docs/cli), The Twelve-Factor App
---
# Deploy to Vercel

The app is built here, locally (`vercel build`), and the result is uploaded (`vercel deploy --prebuilt`). A **preview**
deployment is the default; **production** only when the user asked for it.

## When to use
The Deliver step with a target of `platform` and a Vercel project, or the user says "deploy it on Vercel". Not for a plain
server or local Docker (skill `deploy`), not for Coolify or Dokploy (their own skills).

## Method
1. **Check the CLI**: `vercel --version`. If it is missing, tell the user (`npm i -g vercel`) and stop.
2. **The project.** Either the folder is linked (`.vercel/project.json` exists — the user runs `vercel link` once, it
   asks interactive questions) or the user gives the org and project ids (`team_…`, `prj_…`). Do not guess them.
3. **Register it**: `spectoflow env add <name> --type=vercel [--prod] [--org=team_… --project=prj_…] [--url=https://<public url> --health=/]`.
   `--prod` only on the user's word. The command allows it on this machine.
4. **The token is the user's.** Tell them to create a token (Vercel → Account Settings → Tokens) and
   `export VERCEL_TOKEN=…` in the shell that runs spectoflow — it reaches the CLI through that variable, never on a command
   line. Never ask them to paste it to you, never write it to a file.
5. **Deliver**: `spectoflow deliver --env=<name>` (a policy gate may ask the user first — wait for it). The CLI prints
   the deployment URL; without a configured `url`, that is the address that is health-checked.
6. **On failure, act on the code**: `untrusted-platform` → the user runs `spectoflow env trust <name>`; `vercel-missing`;
   `platform-auth` → `VERCEL_TOKEN` is not set; `pull-failed` → not linked / wrong ids / token without access;
   `build-failed` → read the output tail, fix the build, run again; `deploy-failed`; `health-failed` with a 401 → a
   preview behind Deployment Protection answers anonymous requests with 401: give the environment a public `url`.
   At most **three** attempts for the same code, then report it blocked with the last output.

## Output contract
```
::spectoflow role=operations kind=summary msg=<delivered to <name> (<preview|production>) at <url>, healthy — or the code and the cause>
```
A delivery that did not end healthy is never reported as done: end with `REJECTED: <code> — <one-line cause>`.

## Quality bar
- [ ] `spectoflow deliver` exited 0 in this session, not an earlier one.
- [ ] No token was written to a file, put on a command line or printed.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.