/si-coder:sc-vercelfrom si-coder
Deploys a Next.js frontend to Vercel with Convex Cloud backend integration. Creates project, sets CONVEX_DEPLOY_KEY, configures build command, adds custom domain, sets up Hostinger DNS, and triggers deploy.
Ships in si-coder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Status: implemented (online path).
flowchart TD
A["/sc-vercel"] --> B["find/create Vercel project<br/>(bound to GitHub repo)"]
B --> C["set CONVEX_DEPLOY_KEY (encrypted)"]
C --> D["set coupled build cmd<br/>npx convex deploy --cmd 'npm run build'"]
D --> E["add custom domain / subdomain"]
E --> F["read required DNS from Vercel<br/>(array-normalized + IPv4 guard)"]
F --> G["Hostinger DNS<br/>CNAME (sub) / A (apex)"]
G --> H["trigger deploy + poll readyState<br/>(15-min cap, blip-tolerant)"]
H --> I["live URL ✅<br/>NEXT_PUBLIC_CONVEX_URL injected at build"]
When VERCEL_TOKEN is stored in a direct SI-Coder named connection, run this skill's credential-dependent helper through sc run -- ...:
sc run -- node skills/sc-vercel/scripts/deploy.js --help
The plain node ... examples below are script-interface examples for callers that already supply the required environment. A Composio/native-MCP Vercel connection must execute through that external backend.
/sc-convex-cloud for the backend.scripts/deploy.js is a single 12-step orchestrator:
VERCEL_TOKEN (+ optional VERCEL_TEAM_ID).--git-owner/--git-repo, else read origin from the local git remote.findOrCreateProject({ name, gitRepo, framework:'nextjs' }) — bind the repo on create.CONVEX_DEPLOY_KEY (type:'encrypted', Production only — it's a prod key). Do not set NEXT_PUBLIC_CONVEX_URL (injected by the build).--build-command → repo vercel.json → Bun/npm-aware Convex fallback. This lets repositories can keep their own gated bun run build:auto contract.HOSTINGER_API_TOKEN.getDeployment every 4s until readyState ∈ {READY, ERROR, CANCELED}.misconfigured === false) up to ~60s — never hard-fail (cert/record can lag).| Var | Required | Purpose |
|---|---|---|
VERCEL_TOKEN | yes | Personal access token, https://vercel.com/account/tokens |
VERCEL_TEAM_ID | optional | For team-scoped projects; appended as ?teamId= to every API call |
CONVEX_DEPLOY_KEY | yes | Convex Cloud production deploy key. Set on Vercel as encrypted, Production-only. NEVER logged |
HOSTINGER_API_TOKEN | optional | Enables automatic DNS record writes. Without it, the records are printed for manual entry |
Resolution order is authoritative and package-manager-aware:
--build-command <cmd> when an operator explicitly supplies one.vercel.json → buildCommand for the normal coupled path. A repository that already owns its gate/deploy orchestration must not be replaced by a generic npm command.bunx convex deploy --cmd 'bun run build'; npm repos use npx convex deploy --cmd 'npm run build'. Both include --cmd-url-env-var-name NEXT_PUBLIC_CONVEX_URL.--decoupled deliberately bypasses a potentially coupled vercel.json command and runs only the package-manager-native frontend build.
Mandate: do NOT also hand-set NEXT_PUBLIC_CONVEX_URL in Vercel for the same coupled env — the repository command or --cmd injection is the single source of truth. The NEXT_PUBLIC_ prefix is required because Next.js does not expose the default CONVEX_URL to the browser.
Read live from Vercel's domain config; do not hardcode:
app.example.com) → CNAME to recommendedCNAME[0].value (fallback cname.vercel-dns.com).example.com) → A to the first IP of recommendedIPv4[rank=1].value (an array; pick value[0], fallback 76.76.21.21).verification[] when the domain reports verified:false — added first, then verifyDomain is called.CONVEX_DEPLOY_KEY is a secret: passed via env to the Vercel encrypted env, and never echoed by any script. Only NEXT_PUBLIC_CONVEX_URL (public) is printed.
node skills/sc-vercel/scripts/deploy.js \
--project myapp --app myapp --domain app.example.com \
--git-owner <your-gh-user> --git-repo myapp --prod
| Flag | Meaning |
|---|---|
--project <name> | Vercel project name (defaults to --app if omitted) |
--app <name> | Logical app name (defaults to --project) |
--domain <host> | Full host to attach — apex example.com OR subdomain app.example.com |
--git-owner <o> / --git-repo <r> | GitHub owner/name; if absent, read from git remote get-url origin |
--ref <branch> / --branch <branch> | Git ref/branch to deploy; if absent, derived from git rev-parse --abbrev-ref HEAD, else main (use this for master-default repos) |
--prod | Deploy the production target / alias |
--decoupled | Opt-out of coupled build: set NEXT_PUBLIC_CONVEX_URL from env and run only the frontend build |
--build-command <cmd> | Explicit project build command; otherwise repo vercel.json then Bun/npm fallback wins |
--cwd <path> | Working dir for git-remote and build-contract resolution (default: process cwd) |
sc-vercel/
├── SKILL.md
└── scripts/
├── _shared.js # getClient (VERCEL_TOKEN/VERCEL_TEAM_ID) + parseArgs
└── deploy.js # 12-step orchestrator (project + env + build + domain + DNS + deploy)
Note: the old "suggested file layout" with separate
project.js/env.js/domain.jsis superseded — project/env/domain/deploy are consolidated intodeploy.json top of thelib/vercel.jsclient.
https://api.vercel.com; auth Authorization: Bearer <VERCEL_TOKEN>; team projects append ?teamId=<VERCEL_TEAM_ID> to every URL.deploy.js cannot install it headlessly; a triggerDeploy 403 surfaces a clear hint to install the App./sc-all --target vercel skips the Dokploy app + self-hosted Convex; it uses /sc-convex-cloud + /sc-vercel instead.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
vercel-deploy, convex-cloud, nextjs-deployment, dns-configuration, ci-cd
Generated from the plugin's indexed repository (rahmanef63/si-coder-agent) — no native marketplace selected
npx claudepluginhub p/rahmanef63-si-coder27 skills in this plugin
/scMain SI-Coder entry point for non-technical users. Turn a plain-language idea or existing web app into a working product, improve frontend quality across UI/UX/DX/AX, and publish it. Route automatically while keeping technical details optional./sc-allTurn a plain-language web-app goal into a working live app. Designed for non-technical users: choose architecture and hosting automatically, connect accounts safely, create/publish code, data, domain and verification end-to-end, delegate user-facing frontend quality to sc-fe, and expose technical details only when needed or requested./sc-axSI-Coder Agent Experience (AX) skill. Make projects, tools, workflows, and frontend actions easy for coding agents to discover, understand, invoke correctly, observe, recover, resume, and verify with low context/token waste.Other plugins' skills for the same job