本文へ移動
cccskills
無料GitHub で公開

vercel-deploy

Deploy a project to Vercel safely. Preview versus production, project linking, vercel CLI and Git-based flows, promote, rollback. Never deploys without the user's explicit approval. Use for any request to deploy, ship, publish, promote or roll back on Vercel.

日本語の概要は準備中です。原文の説明を表示しています。

連携ツールVercel
インストール方法を見る

含まれるファイル(1)

  • SKILL.md7.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Vercel: deploy with approval

Hard rule. Never run a command from the "needs approval" list until the user has, in this conversation, said yes to that specific action after you showed them the command, the team and project it targets, whether it is a preview or production deployment, and what it changes. An earlier yes does not cover a later, different command.

Pushing a commit is a deploy when the project has Git integration: a push to the production branch (usually main) creates a production deployment, and a push to any other branch creates a preview. Treat git push, merging a pull request and vercel --prod the same way.

Preview versus production

PreviewProduction
Created byvercel, vercel deploy, push to a non-production branch, a PRvercel --prod, vercel deploy --target=production, push to the production branch, promoting a deployment
URLunique per deployment (and a branch URL)your production domains
Env varsPreview environment (optionally per branch)Production environment
Risklow, but may still run build hooks and write to shared servicesreal users, real data

The first deployment of a brand-new project is always production, even if you omit --prod. So vercel run in a directory that is not yet linked to a project can create the project and make a production deployment. Check for .vercel/project.json first (the /vercel-preflight command reports it); if it is absent, say so and ask before linking or creating anything. Never use --yes to skip the project-setup questions without approval; it answers them with guessed defaults.

Custom environments (for example staging) are targeted with vercel deploy --target=staging.

Commands by risk

Safe without approval (local or read-only):

  • vercel --version, vercel whoami, vercel list, vercel inspect <url>
  • vercel logs ... (read-only; see vercel-logs-debug)
  • vercel deploy --dry (CLI 59.x: reports the detected framework preset and the files that would be uploaded, without creating a deployment; it needs the user to be logged in, and you should confirm with vercel deploy --help on their version)
  • vercel build (builds locally into .vercel/output; needs vercel pull first)
  • vercel env ls (names and types, not values); vercel env run -- <cmd> with the default Development values (production or preview values go to the command's process, so ask first)
  • /vercel-preflight

Needs approval (changes the account, creates a deployment, or writes secrets):

  • vercel, vercel deploy (preview), vercel --prod (shorthand for --target=production), vercel deploy --prebuilt, and vercel deploy --temporary (uploads the source to a temporary public deployment without a login)
  • vercel link, vercel project add|rm, vercel git connect
  • vercel promote, vercel rollback, vercel redeploy, vercel remove
  • vercel env add|update|rm, and vercel env pull / vercel pull (they write environment values to files on disk; use vercel env run when you only need them for one command)
  • vercel domains ..., vercel alias ..., vercel dns ..., vercel certs ...
  • vercel login and anything that opens a browser OAuth flow: the user does this
  • git push / opening or merging a PR on a Vercel-connected repository
  • Vercel MCP tools that deploy, change settings, or buy anything

Never ask for a Vercel token in chat and never print one. Authentication is the user's vercel login or a VERCEL_TOKEN they export themselves. A Vercel command run without credentials may start a browser login flow instead of failing; if you see "No existing credentials found", stop and tell the user to run vercel login. Do not drive the login yourself.

Agent-run CLIs are non-interactive by default (--non-interactive), so prompts fail instead of waiting. Do not "fix" that by adding --yes; ask the user.

Workflow

  1. Preflight. Run /vercel-preflight. Fix errors; explain warnings.
  2. Identify the target. vercel whoami, then read .vercel/project.json (project name and org) or the Git remote. State team, project and branch. If the team is ambiguous, ask.
  3. Build and test locally with the project's own commands. To reproduce Vercel's build: vercel pull --environment=preview then vercel build (--environment=production and vercel build --prod for production settings). Pulling writes env files under .vercel/; keep them gitignored.
  4. Choose preview first. Even for a production release, deploy a preview, verify it, then promote or merge. Say that in the plan.
  5. Ask. Present a short plan:
    • exact command, team/project, environment (preview, production, custom)
    • what changes: new deployment, domains, env vars, build cache (--force)
    • how you will verify, and how to roll back Then stop and wait for an explicit yes.
  6. Run only the approved command. vercel prints the deployment URL on stdout; use --logs if you need build logs, --no-wait only if asked.
  7. Verify. vercel inspect <url> for status. Request the URL with curl -sS -o /dev/null -w "%{http_code}\n" <url>. A preview behind Deployment Protection answers 401 or redirects to login: that is expected. Do not disable protection or generate bypass links; ask the user to open it signed in, or to use the documented vercel curl helper themselves.
  8. Report the deployment URL and ID from the command output. If it failed, show the error text, run vercel inspect <url> --logs, and only then propose a fix.

Promote and rollback

  • vercel promote <deployment-url-or-id> makes an existing deployment the current production deployment (promoting a preview creates a production deployment and asks for confirmation; --yes bypasses it, so do not add it without approval). vercel promote status shows pending promotions.
  • vercel rollback [deployment-url-or-id] points production back at an earlier deployment. On the Hobby plan only the previous production deployment is eligible. vercel rollback status shows pending rollbacks. To undo a rollback, vercel promote a deployment.
  • A rollback restores code and its build-time configuration, not data. Database changes made by the bad release are not reverted.

Prebuilt deploys

vercel build followed by vercel deploy --prebuilt (optionally --archive=tgz for thousands of files) deploys local build output. System environment variables such as VERCEL_ENV are missing at build time then, so use Git-based or plain vercel deploys if the build reads them.

If the user did not approve

Say what was done (preflight, local build), what was not, and the exact command they can run or approve. Do not deploy "to see if it works".

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Audit a page or UI against WCAG 2.2 AA. Runs a static HTML scanner and a contrast calculator, then walks the manual keyboard, zoom, screen-reader-name and form checks the tools cannot do, and reports findings with the criterion, evidence, fix and how to verify. Use for accessibility reviews, WCAG checks, contrast questions or "is this accessible".

日本語の概要は準備中です。原文の説明を表示しています。

codewhale-hq/codewhale-plugin-marketplace52026年10月12日 更新

batch

無料

Break a large, parallelizable goal into bounded work units, coordinate existing agent/worktree machinery, integrate, and verify. Explicit-only.

日本語の概要は準備中です。原文の説明を表示しています。

codewhale-hq/codewhale-plugin-marketplace52026年10月12日 更新

best-of-n

無料

Generate a small set of independent candidate solutions in worktrees, judge them against one explicit rubric, and apply the winner only after PASS verification.

日本語の概要は準備中です。原文の説明を表示しています。

codewhale-hq/codewhale-plugin-marketplace52026年10月12日 更新

Read and act on selected Chrome tabs and frames — their real browser, their logged-in sessions. Use for questions about the current page, filling a form the user is on, following a link they mentioned, or checking what a site actually renders. Not for throwaway automation in a clean profile.

日本語の概要は準備中です。原文の説明を表示しています。

codewhale-hq/codewhale-plugin-marketplace52026年10月12日 更新

Deploy or change a Cloudflare Worker with cf. Review config, preflight, build and dry-run; show the target and change, obtain explicit approval, deploy and verify. Covers versions, secrets, rollback and named modes.

日本語の概要は準備中です。原文の説明を表示しています。

codewhale-hq/codewhale-plugin-marketplace52026年10月12日 更新

Look up current Cloudflare documentation (Workers, Pages, KV, R2, D1, Queues, DNS, WAF, platform APIs) through Cloudflare's official remote MCP server. Use when answering Cloudflare questions or writing Cloudflare config.

日本語の概要は準備中です。原文の説明を表示しています。

codewhale-hq/codewhale-plugin-marketplace52026年10月12日 更新

codewhale-hq のスキルをすべて見る

このスキルの問題を報告する