deploy-to-vercel
它能做什么
这个工具可以帮你使用 Vercel 平台把网站或应用部署上线。它会自动完成所有设置,让你的项目可以在网上被访问。
适用场景
- ✓当你想发布一个已经做好的网站时。
- ✓当你说“把我的应用上线”时。
- ✓当你想要一个链接,把项目分享给别人时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/deploy-to-vercel/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我把网站部署上线,并把链接发给我。”
每周 5 个新技能,1 分钟读完。
工作原理
工具会先检查你的项目是否已经连接到 Vercel。如果已经连接,就直接推送更新;如果没有,就先完成连接设置,再推送更新,让你的网站正式上线。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Deploy to Vercel
Deploy any project to Vercel. Always deploy as preview (not production) unless the user explicitly asks for production.
The goal is to get the user into the best long-term setup: their project linked to Vercel with git-push deploys. Every method below tries to move the user closer to that state.
When to Use
- Use this skill when the task matches this description: 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".
Step 1: Gather Project State
Run all four checks before deciding which method to use:
# 1. Check for a git remote
git remote get-url origin 2>/dev/null
# 2. Check if locally linked to a Vercel project (either file means linked)
cat .vercel/project.json 2>/dev/null || cat .vercel/repo.json 2>/dev/null
# 3. Check if the Vercel CLI is installed and authenticated
vercel whoami 2>/dev/null
# 4. List available teams (if authenticated)
vercel teams list --format json 2>/dev/null
Team selection
If the user belongs to multiple teams, present all available team slugs as a bulleted list and ask which one to deploy to. Once the user picks a team, proceed immediately to the next step — do not ask for additional confirmation.
Pass the team slug via --scope on all subsequent CLI commands (vercel deploy, vercel link, vercel inspect, etc.):
vercel deploy [path] -y --no-wait --scope <team-slug>
If the project is already linked (.vercel/project.json or .vercel/repo.json exists), the orgId in those files determines the team — no need to ask again. If there is only one team (or just a personal account), skip the prompt and use it directly.
About the .vercel/ directory: A linked project has either:
.vercel/project.json— created byvercel link(single project linking). ContainsprojectIdandorgId..vercel/repo.json— created byvercel link --repo(repo-based linking). ContainsorgId,remoteName, and aprojectsarray mapping directories to Vercel project IDs.
Either file means the project is linked. Check for both.
Do NOT use vercel project inspect, vercel ls, or vercel link to detect state in an unlinked directory — without a .vercel/ config, they will interactively prompt (or with --yes, silently link as a side-effect). Only vercel whoami is safe to run anywhere.
Step 2: Choose a Deploy Method
Linked (.vercel/ exists) + has git remote → Git Push
This is the ideal state. The project is linked and has git integration.
Ask the user before pushing. Never push without explicit approval:
This project is connected to Vercel via git. I can commit and push to trigger a deployment. Want me to proceed?Commit and push:
git add . git commit -m "deploy: <description of changes>" git pushVercel automatically builds from the push. Non-production branches get preview deployments; the production branch (usually
main) gets a production deployment.Retrieve the preview URL. If the CLI is authenticated:
sleep 5 vercel ls --format jsonThe JSON output has a
deploymentsarray. Find the latest entry — itsurlfield is the preview URL.If the CLI is not authenticated, tell the user to check the Vercel dashboard or the commit status checks on their git provider for the preview URL.
Linked (.vercel/ exists) + no git remote → vercel deploy
The project is linked but there's no git repo. Deploy directly with the CLI.
vercel deploy [path] -y --no-wait
Use --no-wait so the CLI returns immediately with the deployment URL instead of blocking until the build finishes (builds can take a while). Then check on the deployment status with:
vercel inspect <deployment-url>
For production deploys (only if user explicitly asks):
vercel deploy [path] --prod -y --no-wait
Not linked + CLI is authenticated → Link first, then deploy
The CLI is working but the project isn't linked yet. This is the opportunity to get the user into the best state.
- Ask the user which team to deploy to. Present the team slugs from Step 1 as a bulleted list. If there's only one team (or just a personal account), skip this step.
…
常见问题
什么是“部署”(deploy)?
“部署”指的是把网站或应用放到线上、让用户可以通过互联网访问的过程。
什么是 Vercel?
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\".
热度
- GitHub 星标
- 48k
- 排名
- #4371
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。