vercel-deploy
它能做什么
这项技能可以把项目上线到 Vercel,并返回一个实时链接。适合想快速分享网站或应用、又不想先搭建主机的人。
适用场景
- ✓当用户要求部署一个应用或网站的时候。
- ✓当用户想要预览部署或一个可以分享的链接的时候。
- ✓当用户要求把项目正式上线的时候。
技能链接
https://github.com/bytedance/deer-flow/blob/main/skills/public/vercel-deploy/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把这个项目部署到 Vercel,并把链接发给我。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能会打包项目,但去掉 node_modules 和 .git 文件夹,然后识别框架并上传。它会返回一个用于访问实时网站的预览网址,以及一个用于把网站转入 Vercel 账户的认领网址。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Vercel Deploy
Deploy any project to Vercel instantly. No authentication required.
How It Works
- Packages your project into a tarball (excludes
node_modulesand.git) - Auto-detects framework from
package.json - Uploads to deployment service
- Returns Preview URL (live site) and Claim URL (transfer to your Vercel account)
Usage
bash /mnt/skills/public/vercel-deploy/scripts/deploy.sh [path]
Arguments:
path- Directory to deploy, or a.tgzfile (defaults to current directory)
Examples:
# Deploy current directory
bash /mnt/skills/public/vercel-deploy/scripts/deploy.sh
# Deploy specific project
bash /mnt/skills/public/vercel-deploy/scripts/deploy.sh /path/to/project
# Deploy existing tarball
bash /mnt/skills/public/vercel-deploy/scripts/deploy.sh /path/to/project.tgz
Output
Preparing deployment...
Detected framework: nextjs
Creating deployment package...
Deploying...
✓ Deployment successful!
Preview URL: https://skill-deploy-abc123.vercel.app
Claim URL: https://vercel.com/claim-deployment?code=...
The script also outputs JSON to stdout for programmatic use:
{
"previewUrl": "https://skill-deploy-abc123.vercel.app",
"claimUrl": "https://vercel.com/claim-deployment?code=...",
"deploymentId": "dpl_...",
"projectId": "prj_..."
}
Framework Detection
The script auto-detects frameworks from package.json. Supported frameworks include:
- React: Next.js, Gatsby, Create React App, Remix, React Router
- Vue: Nuxt, Vitepress, Vuepress, Gridsome
- Svelte: SvelteKit, Svelte, Sapper
- Other Frontend: Astro, Solid Start, Angular, Ember, Preact, Docusaurus
- Backend: Express, Hono, Fastify, NestJS, Elysia, h3, Nitro
- Build Tools: Vite, Parcel
- And more: Blitz, Hydrogen, RedwoodJS, Storybook, Sanity, etc.
For static HTML projects (no package.json), framework is set to null.
Static HTML Projects
For projects without a package.json:
- If there's a single
.htmlfile not namedindex.html, it gets renamed automatically - This ensures the page is served at the root URL (
/)
Present Results to User
Always show both URLs:
✓ Deployment successful!
- [Preview URL](https://skill-deploy-abc123.vercel.app)
- [Claim URL](https://vercel.com/claim-deployment?code=...)
View your site at the Preview URL.
To transfer this deployment to your Vercel account, visit the Claim URL.
Troubleshooting
Network Restriction Error
If deployment fails due to network restrictions (common on claude.ai), tell the user:
Deployment failed due to network restrictions. To fix this:
1. Go to https://claude.ai/settings/capabilities
2. Add *.vercel.com to the allowed domains
3. Try deploying again
常见问题
我需要 Vercel 账户吗?
不需要。这项技能说明无需身份验证;之后你可以用认领链接,把网站转到自己的账户。
哪些文件夹不会被打包?
打包时会排除 node_modules 和 .git 文件夹。
我可以部署已经打包好的文件吗?
可以。你可以指定一个 .tgz 压缩包,而不是文件夹。
详情
作者的原始描述
Deploy applications and websites to Vercel. Use this skill when the user requests deployment actions such as "Deploy my app", "Deploy this to production", "Create a preview deployment", "Deploy and give me the link", or "Push this live". No authentication required - returns preview URL and claimable deployment link.
repo: bytedance/deer-flow
热度
- GitHub 星标
- 85k
- 排名
- #1392
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …