Loading...
Loading...
Compare original and translation side by side
/brainstorm/brainstormproject-context.mdlearned-patterns.mddecisions-log.mddocs/plans/project-context.mdlearned-patterns.mddecisions-log.mddocs/plans/| Source | What to Extract | Priority |
|---|---|---|
| Memory files | Stack, conventions, past decisions | Highest |
| CLAUDE.md | Project structure, hard gates | High |
| Existing code | Current patterns, architecture | High |
| Recent commits | Direction of development | Medium |
| docs/plans/ | Prior designs and decisions | Medium |
| 来源 | 提取内容 | 优先级 |
|---|---|---|
| 内存文件 | 技术栈、规范、过往决策 | 最高 |
| CLAUDE.md | 项目结构、硬性限制 | 高 |
| 现有代码 | 当前模式、架构 | 高 |
| 最近提交 | 开发方向 | 中 |
| docs/plans/ | 前期设计和决策 | 中 |
| What You Need to Know | Question Type | Example |
|---|---|---|
| Core purpose | Open-ended | "What problem does this solve for the user?" |
| Scope boundaries | Multiple choice | "Should this handle: (A) only logged-in users, (B) all users, (C) depends on role?" |
| Technical constraints | Yes/No + follow-up | "Does this need to work offline?" |
| Priority trade-offs | Forced ranking | "Rank these: speed, correctness, simplicity" |
| Success criteria | Measurable target | "What does 'working' look like? Can you describe the happy path?" |
| Non-goals | Explicit exclusion | "What should we explicitly NOT build in this iteration?" |
| 需要了解的内容 | 问题类型 | 示例 |
|---|---|---|
| 核心用途 | 开放式问题 | "What problem does this solve for the user?" |
| 范围边界 | 选择题 | "Should this handle: (A) only logged-in users, (B) all users, (C) depends on role?" |
| 技术约束 | 是/否+后续追问 | "Does this need to work offline?" |
| 优先级权衡 | 强制排序 | "Rank these: speed, correctness, simplicity" |
| 成功标准 | 可衡量的目标 | "What does 'working' look like? Can you describe the happy path?" |
| 非目标 | 明确排除项 | "What should we explicitly NOT build in this iteration?" |
| Rule | Rationale |
|---|---|
| One question per message | Prevents cognitive overload |
| Multiple choice preferred | Faster to answer, reduces ambiguity |
| Research before asking | Respect user's time |
| Build on memory | Do not re-ask known things |
| Testable outcomes | Vague success criteria lead to vague designs |
| 规则 | 原因 |
|---|---|
| 每条消息只提一个问题 | 避免认知负担 |
| 优先使用选择题 | 回答速度更快,减少歧义 |
| 提问前先调研 | 尊重用户的时间 |
| 基于已有记忆提问 | 不要重复询问已知的内容 |
| 可测试的结果 | 模糊的成功标准会导致模糊的设计 |
| Section | Content |
|---|---|
| Name | Short descriptive label |
| Architecture summary | 2-3 sentences |
| Key trade-offs | Pros and cons |
| Complexity | Low / Medium / High |
| Risk | What could go wrong |
| Your assessment | Why you do or do not recommend it |
| 模块 | 内容 |
|---|---|
| 名称 | 简短的描述性标签 |
| 架构概要 | 2-3句话 |
| 核心权衡 | 优缺点 |
| 复杂度 | 低 / 中 / 高 |
| 风险 | 可能出现的问题 |
| 你的评估 | 你推荐或不推荐这个方案的原因 |
undefinedundefined
**Lead with your recommended approach** and explain why it is the best fit given the constraints discussed in Phase 2.
**STOP — Do NOT proceed to Phase 4 until:**
- [ ] You have proposed at least 2 approaches
- [ ] Each approach has explicit trade-offs
- [ ] You have made a clear recommendation
- [ ] User has indicated which approach to pursue
---
**优先展示你推荐的方案**,并说明基于阶段2讨论的约束,为什么它是最合适的选择。
**停止 —— 满足以下条件前不要进入阶段4:**
- [ ] 你已经提出了至少2种方案
- [ ] 每个方案都有明确的权衡说明
- [ ] 你已经给出了清晰的推荐
- [ ] 用户已经指明要采用哪个方案
---| Complexity | Required Sections | Optional Sections |
|---|---|---|
| Simple (1-3 tasks) | Architecture, Components | — |
| Medium (4-10 tasks) | Architecture, Components, Data Flow, Error Handling | Testing Strategy |
| Complex (10+ tasks) | Architecture, Components, Data Flow, Error Handling, Testing Strategy, Performance, Security | Migration Plan |
| 复杂度 | 必填模块 | 可选模块 |
|---|---|---|
| 简单(1-3个任务) | 架构、组件 | — |
| 中等(4-10个任务) | 架构、组件、数据流、错误处理 | 测试策略 |
| 复杂(10个以上任务) | 架构、组件、数据流、错误处理、测试策略、性能、安全 | 迁移方案 |
docs/plans/YYYY-MM-DD-<topic>-design.mdmemory/decisions-log.mdmemory/learned-patterns.mdplanningdocs/plans/YYYY-MM-DD-<topic>-design.mdmemory/decisions-log.mdmemory/learned-patterns.mdplanningundefinedundefined
**STOP — Do NOT proceed until:**
- [ ] Design document is saved to `docs/plans/`
- [ ] Memory files are updated with new decisions/patterns
- [ ] User has confirmed the design is complete
---
**停止 —— 满足以下条件前不要继续:**
- [ ] 设计文档已经保存到`docs/plans/`目录
- [ ] 内存文件已经更新了新的决策/规范
- [ ] 用户已经确认设计完成
---| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| "This is too simple to brainstorm" | Every project needs a design, even simple ones | Design can be brief, but must exist |
| "The user already knows what they want" | Users know WHAT, not HOW | Explore the HOW through approaches |
| "I can just start coding" | Code without design is technical debt from line 1 | Design first, code second |
| "We don't have time to brainstorm" | We don't have time to rebuild from poor assumptions | Brainstorming prevents costly rework |
| "The requirements are clear" | Requirements are not design — you still need approaches | Explore trade-offs even with clear requirements |
| Asking 5 questions at once | Overwhelms the user, gets shallow answers | One question per message |
| Skipping context loading | Re-asks things already known | Check memory files first |
| Not proposing alternatives | Anchors on first idea, misses better options | Always propose 2-3 approaches |
| Presenting entire design at once | Too much to review, user skims | Section by section with approval |
| Not persisting decisions | Same discussions repeat in future sessions | Update memory files |
| 反模式 | 失败原因 | 正确做法 |
|---|---|---|
| "这个太简单了,不需要头脑风暴" | 每个项目都需要设计,哪怕是简单的项目 | 设计可以很简短,但必须存在 |
| "用户已经知道他们想要什么了" | 用户知道要什么,不知道怎么做 | 通过方案探索实现方式 |
| "我可以直接开始写代码" | 没有设计的代码从第一行开始就是技术债务 | 先设计,再编码 |
| "我们没时间做头脑风暴" | 我们没时间因为错误的假设重新开发 | 头脑风暴可以避免代价高昂的返工 |
| "需求已经很清晰了" | 需求不等于设计——你仍然需要明确实现方案 | 哪怕需求清晰也要探索不同方案的权衡 |
| 一次问5个问题 | 给用户造成负担,得到的回答不够深入 | 每条消息只提一个问题 |
| 跳过上下文加载 | 重复询问已经知道的内容 | 先检查内存文件 |
| 不提供备选方案 | 局限于第一个想法,错过更好的选择 | 始终提供2-3种方案 |
| 一次性展示整个设计 | 内容太多难以评审,用户只会粗略浏览 | 分模块展示,逐个获得认可 |
| 不沉淀决策 | 未来的会话中会重复讨论同样的问题 | 更新内存文件 |
| Skill | Relationship | When |
|---|---|---|
| Upstream — provides project context from memory | Phase 1: context loading |
| Downstream — receives approved design | Phase 5: transition to planning |
| Complementary — breaks design into work breakdown | When design reveals complex scope |
| Complementary — can formalize design into specs | When formal specifications are needed |
| Downstream — verifies design completeness | Before claiming design is done |
| Skill | 关系 | 触发时机 |
|---|---|---|
| 上游——从内存提供项目上下文 | 阶段1:上下文加载 |
| 下游——接收经过审批的设计 | 阶段5:交接给规划流程 |
| 互补——将设计拆分为工作分解结构 | 当设计显示范围较为复杂时 |
| 互补——可以将设计正式化为规范 | 当需要正式规格说明时 |
| 下游——验证设计完整性 | 在声明设计完成之前 |
User: "I want to add dark mode to the app"
Phase 1: [Check memory — React app, Tailwind CSS, no current theme system]
Phase 2: "Should dark mode (A) follow system preference automatically,
(B) be a manual toggle only, or (C) both with manual override?"
Phase 3: Approach A: CSS variables + Tailwind dark: prefix
Approach B: Theme context provider with CSS-in-JS
Recommend A — aligns with existing Tailwind usage
Phase 4: Section 1: Architecture — Tailwind dark mode with class strategy
Section 2: Components — ThemeToggle component, layout wrapper
Phase 5: Save design doc, invoke planning skillUser: "I want to add dark mode to the app"
Phase 1: [Check memory — React app, Tailwind CSS, no current theme system]
Phase 2: "Should dark mode (A) follow system preference automatically,
(B) be a manual toggle only, or (C) both with manual override?"
Phase 3: Approach A: CSS variables + Tailwind dark: prefix
Approach B: Theme context provider with CSS-in-JS
Recommend A — aligns with existing Tailwind usage
Phase 4: Section 1: Architecture — Tailwind dark mode with class strategy
Section 2: Components — ThemeToggle component, layout wrapper
Phase 5: Save design doc, invoke planning skillDesign approved and saved to docs/plans/2026-03-15-dark-mode-design.md.
Updated memory/decisions-log.md with theme system decision.
Invoking planning skill to create implementation plan.Design approved and saved to docs/plans/2026-03-15-dark-mode-design.md.
Updated memory/decisions-log.md with theme system decision.
Invoking planning skill to create implementation plan.