A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
🤖 Claude Code定制化研发流程系统 - 基于Spec-Driven和Test-Driven的AI智能体团队协作框架。构建AI优先的软件开发新范式,让AI智能体团队替代传统人类开发团队。
基于Spec-Driven和Test-Driven开发的全流程AI辅助研发系统
本项目提供了一套完整的定制化研发流程模板,专为Claude Code环境设计,支持从需求分析到系统监控的全生命周期开发。通过多Agent角色协作、智能工作流和自动化工具链,实现高效的软件开发流程。
graph TB
A[Claude Code] --> B[定制化Commands]
A --> C[Sub-Agents系统]
A --> D[MCP服务器集成]
B --> E[项目管理Commands]
B --> F[开发Commands]
B --> G[测试Commands]
B --> H[部署Commands]
C --> I[Product Manager Agent]
C --> J[Project Manager Agent]
C --> K[Architect Agent]
C --> L[Frontend Agent]
C --> M[Backend Agent]
C --> N[DevOps Agent]
C --> O[QA Agent]
C --> P[Security Agent]
D --> Q[Context7]
D --> R[Sequential]
D --> S[Magic]
D --> T[Playwright]
U[Git Worktree] --> V[多Agent并行开发]
W[任务管理系统] --> X[进度跟踪]
Y[Hooks系统] --> Z[自动化流程]
graph LR
A[Product Manager Agent<br/>产品经理] --> B[产品策略<br/>需求管理<br/>用户研究]
C[Project Manager Agent<br/>项目管理] --> D[项目规划<br/>进度跟踪<br/>团队协调]
E[Architect Agent<br/>系统架构] --> F[架构设计<br/>技术选型<br/>代码审查]
G[Frontend Agent<br/>前端开发] --> H[UI组件<br/>用户体验<br/>前端测试]
I[Backend Agent<br/>后端开发] --> J[API开发<br/>数据处理<br/>服务集成]
K[DevOps Agent<br/>运维部署] --> L[CI/CD<br/>容器化<br/>监控配置]
M[QA Agent<br/>质量保证] --> N[测试设计<br/>自动化测试<br/>质量管控]
O[Security Agent<br/>安全审计] --> P[安全扫描<br/>漏洞修复<br/>合规检查]
克隆模板仓库
git clone https://github.com/quboqin/template-agenticide-vibecoding.git
cd template-agenticide-vibecoding
初始化项目配置
# 复制配置文件到Claude Code配置目录
cp CLAUDE.md ~/.claude/CLAUDE.md
# 初始化Git Worktree环境
./scripts/git-worktree-manager.sh init
配置MCP服务器
# 安装必要的MCP服务器
# Context7, Sequential, Magic, Playwright
# 具体安装方法参考 config/mcp-servers.yaml
验证安装
# 检查Claude Code配置
claude-code --version
# 检查工作空间状态
./scripts/git-worktree-manager.sh status
创建新项目
# 使用Product Manager Agent创建产品规划
/product-analyze market --competitors --trends
# 使用Project Manager Agent创建项目规划
/project-init my-awesome-project product --timeline 3-months
设置Agent工作空间
# 为前端Agent创建工作空间
./scripts/git-worktree-manager.sh create-workspace frontend user-interface
# 为后端Agent创建工作空间
./scripts/git-worktree-manager.sh create-workspace backend api-server
开始开发
# 切换到前端工作空间
cd workspace/frontend/user-interface
# 使用定制化命令开发
/ui-create login-form react
/test-gen component 90%
| 文件 | 描述 | 用途 |
|---|---|---|
CLAUDE.md | 主配置文件 | 定义研发流程和Agent角色 |
config/commands.yaml | 命令配置 | 定制化Commands和参数 |
config/hooks.yaml | Hooks配置 | 自动化触发器和动作 |
config/mcp-servers.yaml | MCP配置 | 服务器集成和工具链 |
config/task-management.yaml | 任务管理 | 任务状态和流程定义 |
config/git-workflow.yaml | Git工作流 | 分支策略和协作规范 |
/product-analyze, /prd-create, /roadmap-plan, /user-feedback/project-init, /progress-track, /risk-manage, /team-coordinate/design, /analyze, /review-arch, /refactor/ui-create, /component-gen, /optimize-fe, /test-ui/api-create, /db-design, /optimize-be, /test-api/deploy, /monitor, /pipeline, /infra/test-create, /test-run, /bug-track, /quality-report/security-scan, /audit, /permission-design/spec-create [domain] [type]创建技术规格文档
/spec-create frontend component-library --template --detail
/spec-create backend api-gateway --review
/prd-gen [feature] [priority]生成产品需求文档
/prd-gen user-auth high --stakeholders --metrics
/prd-gen payment-system critical --timeline
/task-break [feature] [granularity]任务分解与估算
/task-break payment-system detailed --dependencies --risks
/task-break user-dashboard moderate --parallel
/implement [feature]实现功能或组件
/implement user-login --type component --framework react --test-driven
/implement payment-api --type api --framework fastapi --spec-driven
/code-review [scope]代码审查与质量检查
/code-review src/auth --focus security --automated
/code-review . --focus all --checklist
/test-gen [type] [coverage]生成测试用例和脚本
/test-gen e2e 90% --framework playwright --data
/test-gen unit 80% --framework jest --parallel
/test-run [suite] [environment]执行测试套件
/test-run regression staging --parallel --report
/test-run smoke production --coverage
/deploy-prep [env] [strategy]部署准备与配置
/deploy-prep production blue-green --validate --rollback
/deploy-prep staging rolling --monitor
/monitor-setup [service] [metrics]监控系统配置
/monitor-setup payment-api performance --alerts --dashboard
/monitor-setup user-service availability --sla
graph TD
A[需求收集] --> B[创建PRD]
B --> C[技术规格设计]
C --> D[API设计评审]
D --> E[开发实现]
E --> F[规格验证]
F --> G[集成测试]
G --> H[部署发布]
B --> I["/prd-gen"]
C --> J["/spec-create"]
E --> K["/implement --spec-driven"]
F --> L["/code-review"]
G --> M["/test-run"]
H --> N["/deploy-prep"]
graph TD
A[编写测试] --> B[运行测试失败]
B --> C[编写代码]
C --> D[运行测试通过]
D --> E[重构代码]
E --> F[运行测试通过]
F --> G[提交代码]
A --> H["/test-gen"]
B --> I["/test-run"]
C --> J["/implement --test-driven"]
D --> K["/test-run"]
E --> L["/refactor"]
G --> M["/code-review"]
sequenceDiagram
participant ProdM as Product Manager
participant ProjM as Project Manager
participant Arch as Architect Agent
participant FE as Frontend Agent
participant BE as Backend Agent
participant QA as QA Agent
participant Ops as DevOps Agent
ProdM->>ProdM: /product-analyze market
ProdM->>ProjM: 产品需求传递
ProjM->>ProjM: /project-init mvp-project
ProjM->>Arch: 项目规格评审
Arch->>Arch: /design system microservices
par 并行开发
Arch->>FE: API规格传递
FE->>FE: /ui-create components react
and
Arch->>BE: 数据模型设计
BE->>BE: /api-create services fastapi
end
FE->>QA: 前端组件测试
BE->>QA: API接口测试
QA->>QA: /test-run integration staging
QA->>Ops: 测试通过,准备部署
Ops->>Ops: /deploy-prep production blue-green
# 查看所有Agent工作空间
./scripts/git-worktree-manager.sh list-workspaces
# 创建Agent任务工作空间
./scripts/git-worktree-manager.sh create-workspace <agent> <task>
# 同步工作空间
./scripts/git-worktree-manager.sh sync-workspace <agent>
# 合并工作空间到主分支
./scripts/git-worktree-manager.sh merge-workspace <agent> develop
# 清理工作空间
./scripts/git-worktree-manager.sh cleanup-workspace <agent> <task>
main - 生产发布分支develop - 集成开发分支feature/{agent}/{task-name} - Agent任务分支hotfix/{issue-id}-{description} - 紧急修复分支# Product Manager Agent产品规划
./scripts/git-worktree-manager.sh create-workspace product-manager market-analysis
cd workspace/product-manager/market-analysis
/product-analyze market --competitors --opportunities
# Project Manager Agent项目规划
./scripts/git-worktree-manager.sh create-workspace project-manager project-planning
cd workspace/project-manager/project-planning
/project-init e-commerce-platform product --timeline 6-months
# 架构师设计系统
./scripts/git-worktree-manager.sh create-workspace architect system-design
cd workspace/architect/system-design
/design payment-system microservices
# 前端开发用户界面
./scripts/git-worktree-manager.sh create-workspace frontend user-interface
cd workspace/frontend/user-interface
/ui-create product-catalog react
# 后端开发API服务
./scripts/git-worktree-manager.sh create-workspace backend api-services
cd workspace/backend/api-services
/api-create product-api fastapi
| 状态 | 描述 | 图标 | 可转换状态 |
|---|---|---|---|
| backlog | 需求池中的待规划任务 | 📋 | planned, cancelled |
| planned | 已规划,待执行的任务 | 📅 | in-progress, blocked |
| in-progress | 正在执行中的任务 | 🔄 | review, testing, blocked |
| review | 代码审查中的任务 | 👁️ | in-progress, testing, done |
| testing | 测试验证中的任务 | 🧪 | in-progress, review, done |
| blocked | 被阻塞的任务 | 🚧 | planned, in-progress |
| done | 已完成的任务 | ✅ | testing |
| cancelled | 已取消的任务 | ❌ | 终态 |
项目进度保存在 PROJECT_PROGRESS.md 文件中,支持:
# 查看项目进度
cat PROJECT_PROGRESS.md
# 更新任务状态
/progress-sync --daily
# 生成里程碑报告
/progress-sync --milestone
/spec-create, /implement, /code-review/task-break, /analyze, /troubleshoot/ui-create, /component-gen, /implement/test-gen, /test-run, /monitor-setup创建Agent配置文件
# agents/custom-agent.md
role: "Custom Agent"
responsibilities: [...]
tools: [...]
commands: [...]
更新CLAUDE.md
### Custom Agent
- 职责描述
- 工具配置
- 命令定义
编辑commands.yaml
/custom-command:
description: "自定义命令描述"
usage: "/custom-command [参数]"
category: "custom"
agent: "Custom Agent"
实现命令逻辑
# 在相应Agent配置中添加命令实现
更新toolchain.yaml
custom_tools:
my_tool:
enabled: true
config: {...}
配置MCP服务器
# mcp-servers.yaml
custom_server:
enabled: true
endpoint: "custom://server"
A: 检查CLAUDE.md文件是否正确放置在Claude配置目录,确保文件格式正确。
A: 确保:
./scripts/git-worktree-manager.sh initA: 检查:
A: 使用以下命令解决:
# 清理冲突的工作空间
./scripts/git-worktree-manager.sh cleanup-workspace <agent> <task>
# 重新创建工作空间
./scripts/git-worktree-manager.sh create-workspace <agent> <task>
# 启用详细日志
export CLAUDE_DEBUG=true
# 检查系统状态
./scripts/git-worktree-manager.sh status
# 验证配置文件
./scripts/validate-config.sh
git config core.preloadindex true
git config core.fscache true
git config gc.auto 256
# 启用Git LFS
git lfs install
git lfs track "*.zip" "*.tar.gz" "*.dmg"
git checkout -b feature/amazing-featuregit commit -m 'Add amazing feature'git push origin feature/amazing-feature本项目采用 MIT许可证。
感谢以下项目和社区的支持:
干净、强大、属于你的 AI Agent 平台 --AI agents, without the clutter.
Native macOS app to monitor Claude AI usage limits and watch your coding sessions live
An AI-powered custom node for ComfyUI designed to enhance workflow automation and provide intelligent assistance
npx CLI installing 100+ agents, commands, hooks, and integrations in one command