AI Agent Skills 完整指南
一、统一 Skills 目录结构(推荐)
推荐统一使用:
.ai-skills/统一同步到:
- Cursor
- Claude Code
- GPT Codex
- Antigravity
- OpenCode
- Continue
- Aider
二、推荐目录结构
project-root/
│
├── .ai-skills/
│ ├── grill-me.md
│ ├── frontend-design.md
│ ├── opsx-propose.md
│ ├── opsx-apply.md
│ ├── opsx-explore.md
│ ├── opsx-archive.md
│ ├── task-planner.md
│ ├── code-review.md
│ ├── bug-hunter.md
│ ├── refactor.md
│ ├── api-design.md
│ ├── db-design.md
│ ├── dockerize.md
│ ├── ci-cd.md
│ ├── security-audit.md
│ ├── perf-optimize.md
│ ├── websocket-design.md
│ ├── mobile-responsive.md
│ ├── ui-polish.md
│ └── docs-gen.md
│
├── .cursor/
├── .claude/
├── .codex/
├── .antigravity/
├── .opencode/
├── .continue/
└── .aider/三、核心 Skills(推荐)
| Skill | 命令 | 用途 |
|---|---|---|
| grill-me | /grill-me | 疯狂追问方案漏洞、性能问题、扩展性问题 |
| frontend-design | /frontend-design | 生成高设计感 UI、SaaS 风格前端页面 |
| opsx-propose | /opsx-propose | 自动生成 proposal / design / specs / tasks |
| opsx-apply | /opsx-apply | 按任务清单自动实现代码 |
| opsx-explore | /opsx-explore | 技术探索、架构讨论、不写代码 |
| opsx-archive | /opsx-archive | 归档已完成项目阶段 |
| task-planner | /task-planner | 任务拆解、排序、依赖分析 |
| code-review | /code-review | 审查代码质量、发现风险 |
| bug-hunter | /bug-hunter | 定位 Bug、异常分析 |
| refactor | /refactor | 重构代码结构 |
| api-design | /api-design | 设计 REST / GraphQL API |
| db-design | /db-design | 数据库结构设计 |
| dockerize | /dockerize | Docker / Compose 配置 |
| ci-cd | /ci-cd | GitHub Actions / 自动部署 |
| security-audit | /security-audit | 安全审计、权限漏洞检查 |
| perf-optimize | /perf-optimize | 性能优化 |
| websocket-design | /websocket-design | WebSocket / Socket.IO 架构设计 |
| mobile-responsive | /mobile-responsive | 移动端响应式适配 |
| ui-polish | /ui-polish | UI 细节优化 |
| docs-gen | /docs-gen | 自动生成开发文档 |
四、推荐 Skill 用途分类
1. 架构设计类
| Skill | 用途 |
|---|---|
| opsx-explore | 技术探索 |
| grill-me | 拷打架构 |
| opsx-propose | 输出完整规格 |
| api-design | API 设计 |
| db-design | 数据库设计 |
| websocket-design | 实时通信设计 |
2. 开发实现类
| Skill | 用途 |
|---|---|
| opsx-apply | 自动实现代码 |
| task-planner | 任务拆解 |
| refactor | 重构代码 |
| dockerize | Docker 配置 |
| ci-cd | 自动部署 |
| docs-gen | 自动生成文档 |
3. UI / 前端类
| Skill | 用途 |
|---|---|
| frontend-design | 高级 UI |
| ui-polish | UI 精修 |
| mobile-responsive | 移动端适配 |
4. 测试 / 质量类
| Skill | 用途 |
|---|---|
| code-review | 代码审查 |
| bug-hunter | Bug 排查 |
| perf-optimize | 性能优化 |
| security-audit | 安全检查 |
五、全部 Skills 自动安装(推荐)
Linux / macOS
mkdir -p .ai-skills
mkdir -p .cursor/commands
mkdir -p .claude/commands
mkdir -p .codex/commands
mkdir -p .antigravity/commands
mkdir -p .opencode/commands
mkdir -p .continue/prompts
mkdir -p .aider/prompts
git clone https://github.com/openagentx/ai-agent-skills.git .ai-skills
cp -R .ai-skills/* .cursor/commands/
cp -R .ai-skills/* .claude/commands/
cp -R .ai-skills/* .codex/commands/
cp -R .ai-skills/* .antigravity/commands/
cp -R .ai-skills/* .opencode/commands/
cp -R .ai-skills/* .continue/prompts/
cp -R .ai-skills/* .aider/prompts/Windows PowerShell
mkdir .ai-skills
mkdir .cursor\commands
mkdir .claude\commands
mkdir .codex\commands
mkdir .antigravity\commands
mkdir .opencode\commands
mkdir .continue\prompts
mkdir .aider\prompts
git clone https://github.com/openagentx/ai-agent-skills.git .ai-skills
Copy-Item .ai-skills\* .cursor\commands -Recurse
Copy-Item .ai-skills\* .claude\commands -Recurse
Copy-Item .ai-skills\* .codex\commands -Recurse
Copy-Item .ai-skills\* .antigravity\commands -Recurse
Copy-Item .ai-skills\* .opencode\commands -Recurse
Copy-Item .ai-skills\* .continue\prompts -Recurse
Copy-Item .ai-skills\* .aider\prompts -Recurse六、自动同步脚本(推荐)
sync-skills.sh
#!/bin/bash
TARGETS=(
".cursor/commands"
".claude/commands"
".codex/commands"
".antigravity/commands"
".opencode/commands"
".continue/prompts"
".aider/prompts"
)
for target in "${TARGETS[@]}"
do
mkdir -p "$target"
cp -R .ai-skills/* "$target/"
done
echo "AI Skills synced."七、各 Agent 客户端适配
| Agent | Skills 目录 |
|---|---|
| Cursor | .cursor/commands/ |
| Claude Code | .claude/commands/ |
| GPT Codex | .codex/commands/ |
| Antigravity | .antigravity/commands/ |
| OpenCode | .opencode/commands/ |
| Continue | .continue/prompts/ |
| Aider | .aider/prompts/ |
八、推荐工作流
1. 技术探索
/opsx-explore2. 架构拷打
/grill-me3. 生成规格
/opsx-propose生成:
- proposal
- design
- specs
- tasks
4. UI 设计
/frontend-design5. 自动实现
/opsx-apply6. 阶段归档
/opsx-archive九、推荐组合
小项目
task-planner
frontend-design中型项目
task-planner
grill-me
frontend-design大型项目
opsx-explore
grill-me
opsx-propose
frontend-design
opsx-apply
opsx-archive十、推荐开发模式
推荐:
Explore
→ Grill
→ Propose
→ Design
→ Apply
→ Archive避免:
直接让 AI 一次性生成完整项目Spec-Driven Development 是大型 AI Agent 项目最稳定的开发模式。
本文著作权归作者 [ yang ] 享有,未经作者书面授权,禁止转载,封面图片来源于 [ 互联网 ] ,本文仅供个人学习、研究和欣赏使用。如有异议,请联系博主及时处理。