跳到正文
Skillpedia
部署与云(DevOps)33k · #8809

vercel-deploy

它能做什么

这项技能将你的应用或网站发布到 Vercel,并提供一个可以查看的链接。适合想快速把项目上线的人。

适用场景

  • ✓当你要求智能体部署应用并把链接发给你时。
  • ✓当你想在正式上线前,预览网站的版本进行检查时。
  • ✓当你明确要求发布项目的正式版本时。

技能链接

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/vercel-deploy/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/vercel-deploy/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把我的项目部署到 Vercel,并把链接发给我,方便我查看。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会运行 Vercel 命令,或运行一个备用脚本,将你的项目打包,等待构建完成,然后返回预览链接。只有在你要求时,它才会部署到正式环境。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Vercel Deploy

Deploy any project to Vercel instantly. Always deploy as preview (not production) unless the user explicitly asks for production.

Prerequisites

  • When sandboxing blocks the deployment network calls, rerun with sandbox_permissions=require_escalated.
  • The deployment might take a few minutes. Use appropriate timeout values.

Quick Start

Just run this (with a 10 minute timeout):

vercel deploy [path] -y

Important: Use a 10 minute (600000ms) timeout for the deploy command since builds can take a while.

If that fails with "No existing credentials found", use the fallback method below.

Fallback (No Auth)

If CLI fails with auth error, use the deploy script:

# Deploy current directory
bash scripts/deploy.sh

# Deploy specific project
bash scripts/deploy.sh /path/to/project

# Deploy existing tarball
bash scripts/deploy.sh /path/to/project.tgz

The script handles framework detection, packaging, and deployment. It waits for the build to complete and returns JSON with previewUrl and claimUrl.

Tell the user: "Your deployment is ready at [previewUrl]. Claim it at [claimUrl] to manage your deployment."

Production Deploys

Only if user explicitly asks:

vercel deploy [path] --prod -y

Output

Show the user the deployment URL. For fallback deployments, also show the claim URL.

Do not curl or fetch the deployed URL to verify it works. Just return the link.

Troubleshooting

Escalated Network Access

If deployment fails due to network issues (timeouts, DNS errors, connection resets), rerun the deploy with escalated permissions (use sandbox_permissions=require_escalated). The deploy requires escalated network access when sandbox networking blocks outbound requests.

Example guidance to the user:

The deploy needs escalated network access to deploy to Vercel. I can rerun the command with escalated permissions—want me to proceed?
常见问题

它默认会部署到我的正式网站吗?

不会。除非你明确要求正式版本,否则它会创建预览部署。

如果我没有登录 Vercel 怎么办?

这项技能有一个备用脚本,可以不使用你的账户进行部署,并返回一个之后可以认领的链接。

部署需要多长时间?

这项技能指出,部署可能需要几分钟,因为构建可能会运行一段时间。

详情

作者的原始描述

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".

repo: davila7/claude-code-templates

热度

GitHub 星标
33k
排名
#8809
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能