本文档为 AI 编码智能体(Claude Code、Cursor、Copilot 等)在本仓库中工作时提供指导。
面向 Claude.ai 与 Claude Code 的一组技能集合,用于处理与 Vercel 部署相关的工作。技能是经过打包的说明与脚本,用于扩展 Claude 的能力。
skills/
{skill-name}/ # kebab-case directory name
SKILL.md # Required: skill definition
scripts/ # Required: executable scripts
{script-name}.sh # Bash scripts (preferred)
{skill-name}.zip # Required: packaged for distribution
kebab-case(例如 vercel-deploy、log-monitor)SKILL.mdkebab-case.sh(例如 deploy.sh、fetch-logs.sh){skill-name}.zip---
name: {skill-name}
description: {One sentence describing when to use this skill. Include trigger phrases like "Deploy my app", "Check logs", etc.}
---
# {Skill Title}
{Brief description of what the skill does.}
## How It Works
{Numbered list explaining the skill's workflow}
## Usage
bash bash /mnt/skills/user/{skill-name}/scripts/{script}.sh [args]
**Arguments:**
- `arg1` - Description (defaults to X)
**Examples:**
{Show 2-3 common usage patterns}
## Output
{Show example output users will see}
## Present Results to User
{Template for how Claude should format results when presenting to users}
## Troubleshooting
{Common issues and solutions, especially network/permissions errors}
技能按需加载——启动时只加载技能名称与描述。只有当智能体判断某个技能相关时,完整的 SKILL.md 才会进入上下文。为减少上下文占用:
#!/bin/bash shebangset -e 实现失败即退出echo "Message" >&2/mnt/skills/user/{skill-name}/scripts/{script}.sh创建或更新技能后:
cd skills
zip -r {skill-name}.zip {skill-name}/
为用户记录以下两种安装方式:
Claude Code:
cp -r skills/{skill-name} ~/.claude/skills/
claude.ai: 将技能加入项目知识,或将 SKILL.md 内容粘贴到对话中。
如果技能需要网络访问,提示用户在 claude.ai/admin-settings/capabilities 中添加所需域名。