Loading...
Loading...
Compare original and translation side by side
Automatically applied rules that don't require user commands.
无需用户指令即可自动应用的规则
| Request Type | Claude Behavior |
|---|---|
| New feature | Check |
| Bug fix | Compare code + design → Fix |
| Refactoring | Current analysis → Plan → Update design → Execute |
| Implementation complete | Suggest Gap analysis |
| 请求类型 | Claude 行为 |
|---|---|
| 新功能开发 | 检查 |
| Bug 修复 | 对比代码与设计文档 → 修复问题 |
| 代码重构 | 当前分析 → 制定计划 → 更新设计文档 → 执行重构 |
| 实现完成 | 建议进行差距分析 |
| Document Type | Template Path |
|---|---|
| Plan | |
| Design | |
| Analysis | |
| Report | |
| 文档类型 | 模板路径 |
|---|---|
| 计划 | |
| 设计 | |
| 分析 | |
| 报告 | |
| Aspect | Starter | Dynamic | Enterprise |
|---|---|---|---|
| Explanation | Friendly, avoid jargon | Technical but clear | Concise, use terms |
| Code comments | Detailed | Core logic only | Architecture only |
| Error handling | Step-by-step guide | Technical solutions | Brief cause + fix |
| PDCA docs | Simple | Feature-specific | Detailed architecture |
| Primary Agent | | | |
| Reference Skill | | | |
| 维度 | 入门级 | 动态级 | 企业级 |
|---|---|---|---|
| 解释风格 | 友好易懂,避免专业术语 | 技术化但清晰明了 | 简洁专业,使用行业术语 |
| 代码注释 | 详细全面 | 仅保留核心逻辑注释 | 仅保留架构相关注释 |
| 错误处理 | 分步引导式说明 | 提供技术解决方案 | 简要说明原因及修复方法 |
| PDCA文档 | 简洁版 | 功能专属版 | 详细架构版 |
| 主要Agent | | | |
| 参考Skill | | | |
project/
├── CLAUDE.md # Project-wide (always reference)
├── services/CLAUDE.md # Backend work context
├── frontend/CLAUDE.md # Frontend work context
└── infra/CLAUDE.md # Infrastructure contextproject/
├── CLAUDE.md # 项目全局规则(始终优先参考)
├── services/CLAUDE.md # 后端工作上下文规则
├── frontend/CLAUDE.md # 前端工作上下文规则
└── infra/CLAUDE.md # 基础设施上下文规则| User Intent | Auto-Invoke Agent |
|---|---|
| "code review", "security scan" | |
| "design review", "spec check" | |
| "gap analysis" | |
| "report", "summary" | |
| "QA", "log analysis" | |
| "pipeline", "which phase" | |
| 用户意图 | 自动调用的Agent |
|---|---|
| "代码评审"、"安全扫描" | |
| "设计评审"、"规范检查" | |
| "差距分析" | |
| "报告"、"总结" | |
| "QA测试"、"日志分析" | |
| "流水线"、"当前阶段" | |
| Classification | Content Size | PDCA Level | Action |
|---|---|---|---|
| Quick Fix | < 50 chars | None | Execute immediately |
| Minor Change | 50-200 chars | Lite | Show summary, proceed |
| Feature | 200-1000 chars | Standard | Check/create design doc |
| Major Feature | > 1000 chars | Strict | Require design, user confirmation |
| 分类 | 内容规模 | PDCA等级 | 操作 |
|---|---|---|---|
| 快速修复 | 少于50字符 | 无 | 立即执行 |
| 微小变更 | 50-200字符 | 简易版 | 展示总结后执行 |
| 功能开发 | 200-1000字符 | 标准版 | 检查/创建设计文档 |
| 重大功能开发 | 超过1000字符 | 严格版 | 需完成设计并获得用户确认 |
| Level | Suggested Style | Trigger Condition |
|---|---|---|
| Starter | | Level detected as Starter |
| Dynamic | | Level detected as Dynamic |
| Enterprise | | Level detected as Enterprise |
| 等级 | 推荐风格 | 触发条件 |
|---|---|---|
| 入门级 | | 检测到项目为入门级 |
| 动态级 | | 检测到项目为动态级 |
| 企业级 | | 检测到项目为企业级 |
/starter init/dynamic init/enterprise initbkit-pdca-guide/output-style/starter init/dynamic init/enterprise initbkit-pdca-guide/output-style| Style | Best For | Key Features |
|---|---|---|
| Beginners, learning | Learning points, TODO(learner) markers, concept explanations |
| PDCA workflows | Status badges, checklists, phase progress, gap analysis suggestions |
| Architecture decisions | Tradeoff analysis, cost impact, deployment strategy, SOLID compliance |
| 风格 | 适用场景 | 核心特性 |
|---|---|---|
| 初学者、学习场景 | 包含学习要点、TODO(learner)标记、概念解释 |
| PDCA工作流 | 包含状态徽章、检查清单、阶段进度、差距分析建议 |
| 架构决策场景 | 包含权衡分析、成本影响、部署策略、SOLID合规性检查 |
| Condition | Suggestion |
|---|---|
| Major Feature (>= 1000 chars) AND Dynamic/Enterprise level | "Agent Teams can parallelize PDCA phases. Try |
| Match Rate < 70% AND Dynamic/Enterprise level | "Consider Agent Teams for faster parallel Check-Act iteration" |
| Enterprise project init | "Your project supports 4-teammate Agent Teams mode" |
| Dynamic project init | "Your project supports 2-teammate Agent Teams mode" |
| 条件 | 推荐内容 |
|---|---|
| 重大功能开发(内容≥1000字符)且项目为动态级/企业级 | "Agent团队可并行处理PDCA阶段,尝试使用 |
| 匹配率<70%且项目为动态级/企业级 | "考虑使用Agent团队以加快Check-Act阶段的并行迭代" |
| 企业级项目初始化 | "你的项目支持4人Agent团队模式" |
| 动态级项目初始化 | "你的项目支持2人Agent团队模式" |
| Level | Available | Teammates | Roles |
|---|---|---|---|
| Starter | No | - | - |
| Dynamic | Yes | 2 | developer, qa |
| Enterprise | Yes | 4 | architect, developer, qa, reviewer |
| 等级 | 是否可用 | 团队成员数量 | 角色 |
|---|---|---|---|
| 入门级 | 否 | - | - |
| 动态级 | 是 | 2 | 开发人员、QA测试人员 |
| 企业级 | 是 | 4 | 架构师、开发人员、QA测试人员、评审人员 |
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1/pdca team {feature}CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1/pdca team {feature}memory: projectstarter-guidepipeline-guidememory: user.claude/agent-memory/~/.claude/agent-memory/memory: projectstarter-guidepipeline-guidememory: user.claude/agent-memory/~/.claude/agent-memory/| Scope | Agents Using | Persistence |
|---|---|---|
| 9 agents (code-analyzer, gap-detector, pdca-iterator, etc.) | Per-project, across sessions |
| 2 agents (starter-guide, pipeline-guide) | Global, across all projects |
| 作用域 | 使用的Agent | 持久化方式 |
|---|---|---|
| 9个Agent(code-analyzer、gap-detector、pdca-iterator等) | 项目级,跨会话保留 |
| 2个Agent(starter-guide、pipeline-guide) | 全局级,跨所有项目保留 |