skills/development-workflows/brainstorming-baha/SKILL.md
当用户想要 brainstorm 一个想法、设计 feature 或 spec 时使用。通过对话探索意图与需求,然后将 spec 文档写入 .brainstorm/ 并 STOP。不会自动接 implementation planning 或任何其他技能。
npx skillsauth add bahayonghang/my-claude-code-settings brainstorming-bahaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
通过自然的协作对话,帮助将想法转化为完整的设计与 spec 文档。
首先了解当前项目的上下文,然后逐一提问来完善想法。一旦理解了要构建的内容,就展示设计方案并获得用户批准,再把验证过的 spec 落盘。
<HARD-GATE> 在展示设计方案并获得用户批准之前,不要调用任何实现类技能,不要写代码,不要搭建任何项目,不要采取任何实现行动。这适用于所有项目,无论看起来多简单。 </HARD-GATE>每个项目都要经过这个流程。一个待办事项列表、一个单函数工具、一个配置变更——全都需要。"简单"的项目恰恰是未经检验的假设造成最多浪费的地方。设计可以很简短(真正简单的项目几句话就够了),但必须展示出来并获得批准。
为以下每一项创建一个任务,并按顺序完成:
.brainstorm/YYYY-MM-DD-<topic>-design.md 并提交 gitdigraph brainstorming {
"探索项目上下文" [shape=box];
"有视觉相关问题?" [shape=diamond];
"提供视觉伴侣\n(独立消息,不含其他内容)" [shape=box];
"提出澄清问题" [shape=box];
"提出 2-3 种方案" [shape=box];
"分节展示设计" [shape=box];
"用户批准设计?" [shape=diamond];
"写 spec 文档" [shape=box];
"Spec 自检\n(就地修复)" [shape=box];
"用户复核 spec?" [shape=diamond];
"交付 spec 路径并 STOP" [shape=doublecircle];
"探索项目上下文" -> "有视觉相关问题?";
"有视觉相关问题?" -> "提供视觉伴侣\n(独立消息,不含其他内容)" [label="是"];
"有视觉相关问题?" -> "提出澄清问题" [label="否"];
"提供视觉伴侣\n(独立消息,不含其他内容)" -> "提出澄清问题";
"提出澄清问题" -> "提出 2-3 种方案";
"提出 2-3 种方案" -> "分节展示设计";
"分节展示设计" -> "用户批准设计?";
"用户批准设计?" -> "分节展示设计" [label="否,修改"];
"用户批准设计?" -> "写 spec 文档" [label="是"];
"写 spec 文档" -> "Spec 自检\n(就地修复)";
"Spec 自检\n(就地修复)" -> "用户复核 spec?";
"用户复核 spec?" -> "写 spec 文档" [label="需要修改"];
"用户复核 spec?" -> "交付 spec 路径并 STOP" [label="通过"];
}
终态是把 spec 路径交付给用户并 STOP。 不要调用其他技能,不要开始实现规划,不要写代码。报告 spec 路径并结束你的回合——后续怎么用 spec,由用户自己决定。
理解想法:
探索方案:
展示设计:
面向隔离和清晰的设计:
在现有代码库中工作:
写文档:
.brainstorm/YYYY-MM-DD-<topic>-design.md
Spec 自检: 写完 spec 后,用新鲜的眼光再看一遍:
发现问题就地修复。修完即可,不需要再次复核。
用户复核闸门: spec 自检通过后,请用户在继续之前审阅 spec 文件:
"Spec 已经写入并提交到
<path>。请你审阅一下,看是否需要修改,然后我们再考虑下一步。"
等待用户回复。如果他们要求修改,改完后再走一次 spec 自检。只有用户批准后才进入下一步。
完成——在此 STOP:
一个基于浏览器的伴侣工具,用于在头脑风暴过程中展示原型、图表和视觉选项。它是一个工具——不是一种模式。接受伴侣意味着它可用于适合视觉呈现的问题;并不意味着每个问题都要通过浏览器。
提供伴侣: 当预计后续问题会涉及视觉内容(原型、布局、图表)时,提供一次以获得同意:
"我们接下来讨论的一些内容,如果能在浏览器中展示给你看可能会更直观。我可以在讨论过程中为你制作原型、图表、对比图和其他视觉材料。这个功能还比较新,可能会消耗较多 token。要试试吗?(需要打开一个本地 URL)"
此提议必须是一条独立的消息。 不要将它与澄清问题、上下文摘要或任何其他内容合并。消息中应该只包含上述提议,没有其他内容。等待用户回复后再继续。如果他们拒绝,继续纯文本的头脑风暴。
逐问题决策: 即使用户接受了,也要对每个问题单独决定是使用浏览器还是终端。判断标准:用户看到它是否比读到它更容易理解?
关于 UI 主题的问题不一定是视觉问题。"在这个上下文中个性化是什么意思?"是一个概念问题——使用终端。"哪种向导布局更好?"是一个视觉问题——使用浏览器。
如果用户同意使用伴侣,在继续之前阅读详细指南:
visual-companion.md
development
Implement safe, behavior-preserving code refactors after inspecting the existing project. Use when the user asks to refactor code, split large files or modules, extract functions or methods, reduce duplicated logic, rename confusing classes/functions/variables, improve code comments, remove unused or dead code, or says 重构代码, 拆分模块, 提取方法, 减少重复代码, 优化命名, 优化注释, 删除未调用代码. For broad refactor requests, plan safe slices and wait for approval; for narrow scoped requests, directly implement the smallest verifiable slice.
development
Use only when the user explicitly asks for swarm, subagents, parallel agents, dynamic workflow, multi-agent orchestration, 多智能体编排, or when the task truly needs coordinated research plus implementation plus review plus verification packets. Do not use for ordinary code review, planning-only work, single-line bugfixes, routine audits, or migrations unless orchestration is requested or at least two independent workflow dimensions are present.
development
Run a code quality review focused on maintainability, structure, abstraction quality, file growth, branching complexity, boundary cleanliness, and refactoring opportunities. Use when the user asks for code quality review, code review, maintainability review, architecture quality review, PR code quality feedback, 代码质量审查, 代码质量 review, 可维护性审查, 架构质量审查, or review comments about code structure. Do not use for pure security review, formatting-only review, performance profiling, or implementation tasks unless the user also asks for a code quality review.
development
Plan-first brainstorming workflow that turns an idea into an approved Markdown implementation plan by default. Use when the user wants to brainstorm, design, scope, or plan a feature/spec before implementation. Spark explores project context, asks only blocking questions, writes the plan under the project root's .plannings/YYYY-MM-DD-feature-slug.md path, self-reviews it, and waits for user approval. Create an HTML or visual plan/spec only when the user explicitly asks for HTML, browser-viewable, or visual output; save the paired .html beside the Markdown plan.