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
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Deploy Vercel?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/georgesmomo-deploy-vercel)
---
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.