Token导航 LogoToken导航

Agent Skill · 开发

vercel-deploy(Vercel 部署)

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

vercel-deploy 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在开发类的 21,746 个 Skill 里排第 14,414。

总安装 706周安装 30GitHub Stars 25下载 247核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vercel-deploy(Vercel 部署)
来源仓库:https://github.com/oimiragieo/agent-studio
仓库路径:skills/vercel-deploy
安装命令:
npx skills add https://github.com/oimiragieo/agent-studio --skill vercel-deploy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/oimiragieo/agent-studio --skill vercel-deploy

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于辅助云资源、部署、容器、基础设施和运维自动化任务。适合检查配置、整理部署步骤、分析资源状态或生成排障思路。使用时需明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作。涉及删除资源、重启服务、修改网络或权限配置时应先确认影响范围。安装前建议确认权限范围和维护状态,避免误操作生产系统。

来源仓库内路径:skills/vercel-deploy

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/oimiragieo/agent-studio --skill vercel-deploy;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

vercel-deploy 怎么安装?

在终端执行 npx skills add https://github.com/oimiragieo/agent-studio --skill vercel-deploy。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

vercel-deploy 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

vercel-deploy 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

vercel-deploy 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

vercel-deploy 用的人多吗?

公开数据是累计安装 706 次,近一周安装 30 次,下载 247 次,GitHub 25 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

vercel-deploy 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
vercel-deploy

Vercel 部署 · 本页

70625接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Vercel Deploy

Zero-auth deployment to Vercel with automatic framework detection. Deploy any web application with a single command and receive preview URLs, claim URLs, and deployment metadata.

When to Apply

Use this skill when:

  • Deploying a web application to Vercel for preview or production
  • Setting up a deployment pipeline for a new project
  • Creating preview deployments for pull request review
  • Testing production builds in a live environment
  • Demonstrating a prototype or proof of concept

Supported Frameworks

Vercel auto-detects and configures builds for these frameworks:

FrameworkDetectionBuild Command
Next.jsnext.config.*next build
Vitevite.config.*vite build
Remixremix.config.*remix build
SvelteKitsvelte.config.*vite build
Astroastro.config.*astro build
Nuxtnuxt.config.*nuxt build
Gatsbygatsby-config.*gatsby build
Angularangular.jsonng build
Vue CLIvue.config.*vue-cli-service build
Create React Appreact-scripts in depsreact-scripts build
Emberember-cli-build.jsember build
Hugoconfig.toml / hugo.tomlhugo
Jekyll_config.ymljekyll build
Eleventy.eleventy.jseleventy
Docusaurusdocusaurus.config.*docusaurus build
Static HTMLindex.html at rootNone

Deployment Workflow

Step 1: Prerequisites

Ensure the Vercel CLI is installed:

# Install globally
npm install -g vercel

# Or use npx (no install needed)
npx vercel

Step 2: Project Setup (First Time Only)

For new projects not yet linked to Vercel:

# Interactive setup -- creates .vercel/project.json
vercel link

# Or create a new project
vercel --yes

Step 3: Deploy

Preview Deployment (Default)
# Deploy to preview environment
vercel

# Output:
# Vercel CLI 34.x.x
# Linked to username/project-name
# Inspect: https://vercel.com/username/project-name/abcdef
# Preview: https://project-name-abc123.vercel.app
Production Deployment
# Deploy to production
vercel --prod

# Output includes production URL:
# Production: https://project-name.vercel.app
Zero-Auth Deployment (Agent Mode)

For automated deployments without authentication prompts:

# Using VERCEL_TOKEN environment variable
VERCEL_TOKEN=your-token vercel --yes --token=$VERCEL_TOKEN

# Or with npx for zero-install
VERCEL_TOKEN=your-token npx vercel --yes --token=$VERCEL_TOKEN

Step 4: Deployment Output

Successful deployments return JSON-compatible metadata:

{
  "url": "https://project-name-abc123.vercel.app",
  "inspectUrl": "https://vercel.com/team/project/deployment-id",
  "projectId": "prj_abc123",
  "deploymentId": "dpl_abc123",
  "readyState": "READY"
}

Use --json flag for machine-readable output:

vercel --json

Step 5: Post-Deployment Verification

# Check deployment status
vercel inspect <deployment-url>

# View deployment logs
vercel logs <deployment-url>

# List recent deployments
vercel list

Configuration Options

Environment Variables

# Set environment variables for deployment
vercel env add VARIABLE_NAME production
vercel env add VARIABLE_NAME preview
vercel env add VARIABLE_NAME development

# Or pass inline
vercel -e KEY=value -e KEY2=value2

Build Configuration

Override auto-detected settings in vercel.json:

{
  "buildCommand": "npm run build",
  "outputDirectory": "dist",
  "installCommand": "npm install",
  "framework": "vite",
  "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}

Custom Domains

# Add a custom domain
vercel domains add example.com

# Assign domain to project
vercel alias <deployment-url> example.com

Framework-Specific Patterns

Next.js

{
  "framework": "nextjs",
  "buildCommand": "next build",
  "outputDirectory": ".next"
}

Next.js deployments automatically enable:

  • Edge Runtime for middleware
  • ISR (Incremental Static Regeneration)
  • Image Optimization via next/image
  • Server Actions

Vite / React SPA

{
  "framework": "vite",
  "buildCommand": "vite build",
  "outputDirectory": "dist",
  "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}

SvelteKit

{
  "framework": "sveltekit",
  "buildCommand": "vite build",
  "outputDirectory": ".svelte-kit/output"
}

SvelteKit uses the @sveltejs/adapter-vercel adapter for optimal deployment.

Deployment Strategies

Preview per Pull Request

Configure GitHub integration for automatic preview deployments:

  1. Connect repository in Vercel dashboard
  2. Every PR gets a unique preview URL
  3. Comments added to PR with preview link
  4. Preview is torn down when PR is closed

Staged Rollouts

# Deploy to staging first
vercel --env ENVIRONMENT=staging

# Promote to production after validation
vercel promote <deployment-url>

Rollback

# List recent deployments
vercel list

# Rollback to a previous deployment
vercel rollback <deployment-url>

Troubleshooting

Build Fails

  1. Check build logs: vercel logs <url>
  2. Verify buildCommand matches local build
  3. Check environment variables are set for the target environment
  4. Ensure Node.js version matches (use engines in package.json)

404 on Client-Side Routes

Add rewrites for SPA frameworks:

{
  "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}

Large Bundle Warnings

  1. Enable tree-shaking in bundler config
  2. Use dynamic imports for heavy dependencies
  3. Check Vercel's bundle analysis: vercel inspect --logs

Timeout Issues

  • Serverless functions: Default 10s timeout (configurable up to 300s on Pro)
  • Edge functions: 25ms CPU time limit (wall-clock can be longer with I/O)
  • Static generation: 45s default timeout
{
  "functions": {
    "api/heavy-route.ts": {
      "maxDuration": 60
    }
  }
}

Security Considerations

  • Never commit VERCEL_TOKEN to version control
  • Use environment variables for secrets (not hardcoded)
  • Enable Vercel's DDoS protection for production
  • Use vercel env pull to sync environment variables locally
  • Review deployment protection settings for preview URLs

References

Iron Laws

  1. ALWAYS test the build locally before deploying to ensure the deployment will succeed
  2. NEVER deploy to production without first creating and validating a preview deployment
  3. ALWAYS verify environment variables are configured in the Vercel project before deploying
  4. NEVER store sensitive secrets in deployment commands or public URLs
  5. ALWAYS check the deployment logs immediately after deployment to confirm the build succeeded

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
Deploying without local build testBuild fails in Vercel, wasted deployment attemptRun build locally before vercel deploy
Skipping preview before productionRegressions reach users before detectionAlways validate preview URL first
Hardcoded env vars in deploy commandSecrets exposed in shell history and logsConfigure env vars in Vercel project settings
Ignoring post-deploy build logsSilent failures go undetectedAlways check logs after deployment
No framework detection verificationWrong settings cause build failuresVerify auto-detected framework in project config

Framework Detection Patterns

Vercel CLI auto-detects frameworks by checking project files in this priority order:

FrameworkDetection FileBuild CommandOutput Dir
Next.jsnext.config.*next build.next
Remixremix.config.*remix buildbuild
SvelteKitsvelte.config.*vite buildbuild
Astroastro.config.*astro builddist
Nuxtnuxt.config.*nuxt build.output
Vitevite.config.*vite builddist
Gatsbygatsby-config.*gatsby buildpublic
Angularangular.jsonng builddist
Vue CLIvue.config.*vue-cli-service builddist
Create React Appreact-scripts in pkgreact-scripts buildbuild
Docusaurusdocusaurus.config.*docusaurus buildbuild
Eleventy.eleventy.jseleventy_site
Hugoconfig.toml (Hugo)hugopublic
Jekyll_config.yml (Jekyll)jekyll build_site
Static HTMLindex.html onlynone.

When auto-detection fails, specify framework explicitly:

vercel --build-env FRAMEWORK_PRESET=nextjs

Environment Variable Management

Setting Environment Variables

# Add env var (prompts for value)
vercel env add MY_VAR production

# Add from .env file
vercel env pull .env.local

# List all env vars
vercel env ls

# Remove env var
vercel env rm MY_VAR production

Environment Scopes

ScopeWhen AppliedUse For
productionProduction deploys onlyAPI keys, secrets
previewPreview deploys (PRs)Staging configs
developmentvercel dev onlyLocal development

Monorepo Configuration

For pnpm/npm/yarn workspaces:

{
  "buildCommand": "cd ../.. && pnpm build --filter=my-app",
  "installCommand": "pnpm install --filter=my-app...",
  "rootDirectory": "packages/my-app"
}

Set root directory in Vercel dashboard or vercel.json:

{
  "framework": "nextjs",
  "buildCommand": "pnpm turbo build --filter=web",
  "outputDirectory": "apps/web/.next"
}

Local Development

vercel dev — runs your project locally with Vercel's edge network simulation

  • Supports: serverless functions, edge functions, environment variables
  • Port: defaults to 3000, use vercel dev --listen 3001 for custom port
  • Hot reload: automatic for Next.js, SvelteKit, Astro, Nuxt
vercel dev                    # Start local dev server on port 3000
vercel dev --listen 3001      # Custom port

vercel.json Configuration Patterns

{
  "rewrites": [{ "source": "/api/(.*)", "destination": "/api/index" }],
  "redirects": [{ "source": "/old", "destination": "/new", "permanent": true }],
  "headers": [{ "source": "/(.*)", "headers": [{ "key": "X-Frame-Options", "value": "DENY" }] }],
  "functions": { "api/heavy.js": { "memory": 3009, "maxDuration": 60 } },
  "crons": [{ "path": "/api/cron", "schedule": "0 * * * *" }]
}

Team & Project Config

vercel teams ls                 # List teams
vercel switch <team-slug>       # Switch active team
vercel link                     # Link local dir to Vercel project
vercel project ls               # List projects in current team

Memory Protocol (MANDATORY)

Before starting: Read .claude/context/memory/learnings.md

After completing:

  • New pattern -> .claude/context/memory/learnings.md
  • Issue found -> .claude/context/memory/issues.md
  • Decision made -> .claude/context/memory/decisions.md

平台分布

Codex

34.56%
按下载量换算85

Claude

27.42%
按下载量换算68

Cursor

18.91%
按下载量换算47

Gemini CLI

9.8%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills