AGENT SKILL

Vercel 应用部署与管理

vercel-cli

将应用部署到 Vercel。当用户要求部署、发布或上线 Web 应用,或管理 Vercel 项目、域名和环境变量时使用。

License 许可
MIT
最近更新
2026-10-30
Stars
★ 5
Forks
2

01 前言 Front Matter

name
vercel-cli
description
Deploy apps to Vercel. Use when asked to deploy, ship, or publish a web application, or manage Vercel projects, domains, and environment variables.

02 资源文件 9

03 SKILL.md 正文

Vercel CLI

You can deploy web applications to Vercel using the vercel CLI.

Auth

Auth is handled by OneCLI — the HTTPS_PROXY injects the real token into API requests automatically. The Vercel CLI requires a token to be present to skip its local credential check, so always pass --token placeholder on every command. OneCLI replaces this with the real token at the proxy level.

Before any Vercel operation, verify auth:

vercel whoami --token placeholder

If this fails with an auth error, ask the user to add a Vercel token to OneCLI. They can create one at https://vercel.com/account/tokens and register it via onecli secrets create on the host. Once added, retry vercel whoami.

Deploying

Always use --yes to skip interactive prompts and --token placeholder for auth (OneCLI replaces with real token).

# Deploy to production
vercel deploy --yes --prod --token placeholder

# Deploy from a specific directory
vercel deploy --yes --prod --token placeholder --cwd /path/to/project

# Preview deployment (not production)
vercel deploy --yes --token placeholder

After deploying, verify the live URL:

# Check deployment status
vercel inspect <deployment-url> --token placeholder

Pre-Send Checks (do this before sharing the URL)

Don't send the deployment URL to the user until you've confirmed it's actually working. At minimum:

  1. Local build passes — run npm run build (or the project's build command) before vercel deploy. If the build fails locally, fix it first; don't deploy broken code.
  2. Deployment succeeded — the vercel deploy output shows a "Production: https://..." URL and the status is READY (confirm with vercel inspect).
  3. Live URL responds — curl -sI <url> | head -1 should return HTTP/2 200 (or another 2xx/3xx). A 404/500 means something's broken even though Vercel reported success.
  4. Optional visual check — if agent-browser is loaded, open the URL and eyeball it. Helpful for catching broken layouts that a 200 response wouldn't reveal.

If any check fails, fix the issue and redeploy before reporting to the user.

Project Management

# Link to an existing Vercel project (non-interactive)
vercel link --yes --token placeholder

# List recent deployments
vercel ls --token placeholder

# List all projects
vercel project ls --token placeholder

Domains

# List domains
vercel domains ls --token placeholder

# Add a domain to the current project
vercel domains add example.com --token placeholder

Environment Variables

# Pull env vars from Vercel to local .env
vercel env pull --token placeholder

# Add an env var (use echo to pipe the value — avoids interactive prompt)
echo "value" | vercel env add VAR_NAME production --token placeholder

Common Errors

Error Fix
Error: No framework detected Ensure the project has a package.json with a build script, or set the framework in vercel.json
Error: Rate limited Wait and retry. Don't loop — report to user
Error: You have reached your project limit User needs to upgrade Vercel plan or delete unused projects
ENOTFOUND api.vercel.com Network issue. Check proxy connectivity
Auth error after vercel whoami Credential may be expired. Ask the user to refresh the Vercel token in OneCLI

Best Practices

  • Run npm run build locally before deploying to catch build errors early
  • Use --cwd instead of cd to keep your working directory stable
  • For Next.js projects, vercel deploy auto-detects the framework — no extra config needed
  • Use vercel.json only when you need custom build settings, rewrites, or headers

04 同仓库更多 Skills

microsoft
microsoft/amplifier-app-nanoclaw

WhatsApp 消息格式化

whatsapp-formatting

为 WhatsApp 格式化消息,包括可渲染为真实 WhatsApp 标签的提及(mention)。在 WhatsApp 对话中回复时使用(platform_id / chatJid 以 @s.whatsapp.net 或 @g.us 结尾)。

普通用户即时通讯与消息处理
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

新频道欢迎引导

welcome

向新连接的频道介绍自己。当频道首次接入时自动触发。发送友好的问候和简要的功能概述。

内部沟通专员即时通讯与消息处理
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

Vercel 应用部署

vercel-cli

将应用部署到 Vercel。当用户要求部署、发布 Web 应用,或管理 Vercel 项目、域名和环境变量时使用。

软件开发工程师部署与发布管理
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

Slack 消息格式化

slack-formatting

使用 mrkdwn 语法为 Slack 格式化消息。当回复 Slack 频道时使用(文件夹以“slack_”开头,或 JID 包含 slack 标识符)。

内部沟通专员即时通讯与消息处理
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

智能体自我定制

self-customize

定制你自己的智能体——添加能力、安装包、添加 MCP 服务器、编辑代码或 CLAUDE.md。当用户要求你添加功能、安装工具或修改工作方式时使用。对于非平凡的代码改动,请通过 create_agent 委派给构建智能体处理。

AI 工程师智能体开发
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

OneCLI 网关凭证代理

onecli-gateway

OneCLI 网关:一种透明的 HTTPS 代理,可将存储的凭证注入到对外调用中。当用户要求读取电子邮件、查看日历、访问 GitHub 仓库、创建 issue、检查 Stripe 付款,或与任何外部服务或 API 交互时,你必须使用本技能。不要使用浏览器扩展或 OAuth CLI 工具。直接发起 HTTP 请求;网关会自动注入凭证。

安全工程师API 网关配置与管理
★ 5