npx skills add https://github.com/boshu2/agentops --skill brainstorm目的: 将“做什么”与“如何做”分开。在确定解决方案之前,先探索问题空间。
四个阶段:
/plan 编写结构化输出/brainstorm "add user authentication" # 完整的4阶段流程
/brainstorm # 提示输入目标
如果用户提供了目标字符串,则对其进行评估。否则提示用户输入。
使用 AskUserQuestion 并提供选项来评估清晰度:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
如果目标模糊或处于探索中,则在继续之前提出后续问题以明确目标。在获得具体的问题陈述(一句话,可测试)之前,不要进入阶段 2。
回答以下问题(根据需要探索代码库):
在继续之前总结发现。如果有任何不清楚的地方,询问用户。
生成 2-3 个不同的方案。对于每个方案:
展示比较结果,并使用 AskUserQuestion 让用户选择一个方案或请求混合方案。
生成日期标识符:YYYY-MM-DD-<目标标识符>(小写,连字符,无空格)。
将输出文件写入 .agents/brainstorm/YYYY-MM-DD-<标识符>.md:
---
id: brainstorm-YYYY-MM-DD-<goal-slug>
type: brainstorm
date: YYYY-MM-DD
---
# Brainstorm: <Goal>
## Problem Statement
## Approaches Considered
## Selected Approach
## Open Questions
## Next Step: /plan
所有五个部分都必须填写。“下一步”部分应包含一个具体的 /plan 调用建议,并将所选方案作为上下文。
如果 .agents/brainstorm/ 目录不存在,则创建它。
阶段 4 输出写入完毕 = 完成。没有后续阶段,没有循环。
写入输出文件后,验证:
Problem Statement、Approaches Considered、Selected Approach、Open Questions、Next Step: /plan)都存在且非空向用户报告文件路径。
示例 1:具体目标
User: /brainstorm "add rate limiting to the API"
Phase 1: Goal is clear — add rate limiting to the API.
Phase 2: Problem is uncontrolled request volume causing timeouts.
Benefits operators and end users. No rate limiting exists today.
Phase 3: Three approaches — token bucket middleware, API gateway,
per-route decorators. User picks token bucket.
Phase 4: Writes .agents/brainstorm/2026-02-17-rate-limiting.md
示例 2:模糊目标
User: /brainstorm "improve performance"
Phase 1: Goal is vague. Asks: "Which part? API response times,
build speed, database queries, or something else?"
User says: "API response times on the search endpoint."
Phase 2: Investigates search endpoint, finds N+1 queries.
Phase 3: Approaches — query optimization, caching layer, pagination.
Phase 4: Writes .agents/brainstorm/2026-02-17-search-performance.md
| 问题 | 原因 | 解决方案 |
|---|---|---|
| Brainstorm 在阶段 1 循环,无法推进 | 经过后续提问后目标仍然过于模糊 | 提供一个具体的、可测试的问题陈述(例如,“将 API 搜索延迟降低到 200 毫秒以下”,而不是“提高性能”)。 |
| 输出文件缺少一个或多个必需部分 | 阶段 4 被中断或技能提前终止 | 使用相同的目标重新运行 /brainstorm;验证输出中是否包含所有 5 个部分(Problem Statement、Approaches Considered、Selected Approach、Open Questions、Next Step: /plan)。 |
.agents/brainstorm/ 目录未创建 | 技能无法创建目录(权限或路径问题) | 使用 mkdir -p .agents/brainstorm 手动创建,然后重新运行。 |
“下一步”部分中的 /plan 调用过于通用或不完整 | 所选方案不够具体,无法生成具体的计划命令 | 编辑输出文件以完善所选方案,然后构建一个包含方案名称和关键约束的 /plan 调用。 |
| Brainstorm 在阶段 3 只产生一个方案 | 问题空间狭窄或目标约束过多 | 稍微放宽目标,或明确要求提供替代方案(例如,“考虑缓存方案和查询优化方案”)。 |
每周安装次数
165
仓库
GitHub 星标数
198
首次出现
2026年2月17日
安全审计
安装于
opencode164
codex160
github-copilot159
kimi-cli159
gemini-cli159
amp159
Purpose: Separate WHAT from HOW. Explore the problem space before committing to a solution.
Four phases:
/plan/brainstorm "add user authentication" # full 4-phase process
/brainstorm # prompts for goal
If the user provided a goal string, evaluate it. Otherwise prompt for one.
Use AskUserQuestion with options to gauge clarity:
If vague or exploring , ask follow-up questions to sharpen the goal before proceeding. Do NOT move to Phase 2 until you have a concrete problem statement (one sentence, testable).
Answer these questions (use codebase exploration as needed):
Summarize findings before moving on. If anything is unclear, ask the user.
Generate 2-3 distinct approaches. For each:
Present the comparison and use AskUserQuestion to let the user pick an approach or request a hybrid.
Generate a date slug: YYYY-MM-DD-<goal-slug> (lowercase, hyphens, no spaces).
Write the output file to .agents/brainstorm/YYYY-MM-DD-<slug>.md:
---
id: brainstorm-YYYY-MM-DD-<goal-slug>
type: brainstorm
date: YYYY-MM-DD
---
# Brainstorm: <Goal>
## Problem Statement
## Approaches Considered
## Selected Approach
## Open Questions
## Next Step: /plan
All five sections must be populated. The "Next Step" section should contain a concrete /plan invocation suggestion with the selected approach as context.
Create the .agents/brainstorm/ directory if it does not exist.
Phase 4 output written = done. No further phases, no loops.
After writing the output file, verify:
Problem Statement, Approaches Considered, Selected Approach, Open Questions, Next Step: /plan) are present and non-emptyReport the file path to the user.
Example 1: Specific goal
User: /brainstorm "add rate limiting to the API"
Phase 1: Goal is clear — add rate limiting to the API.
Phase 2: Problem is uncontrolled request volume causing timeouts.
Benefits operators and end users. No rate limiting exists today.
Phase 3: Three approaches — token bucket middleware, API gateway,
per-route decorators. User picks token bucket.
Phase 4: Writes .agents/brainstorm/2026-02-17-rate-limiting.md
Example 2: Vague goal
User: /brainstorm "improve performance"
Phase 1: Goal is vague. Asks: "Which part? API response times,
build speed, database queries, or something else?"
User says: "API response times on the search endpoint."
Phase 2: Investigates search endpoint, finds N+1 queries.
Phase 3: Approaches — query optimization, caching layer, pagination.
Phase 4: Writes .agents/brainstorm/2026-02-17-search-performance.md
| Problem | Cause | Solution |
|---|---|---|
| Brainstorm loops in Phase 1 without advancing | Goal remains too vague after follow-up questions | Provide a concrete, testable problem statement (e.g., "reduce API search latency below 200ms" instead of "improve performance"). |
| Output file missing one or more required sections | Phase 4 was interrupted or the skill terminated early | Re-run /brainstorm with the same goal; verify all 5 sections (Problem Statement, Approaches Considered, Selected Approach, Open Questions, Next Step: /plan) are present in the output. |
| directory not created |
Weekly Installs
165
Repository
GitHub Stars
198
First Seen
Feb 17, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode164
codex160
github-copilot159
kimi-cli159
gemini-cli159
amp159
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
109,600 周安装
.agents/brainstorm/| The skill could not create the directory (permissions or path issue) |
Manually create it with mkdir -p .agents/brainstorm and re-run. |
/plan invocation in "Next Step" section is generic or incomplete | The selected approach was not specific enough to generate a concrete plan command | Edit the output file to refine the selected approach, then craft a /plan invocation that includes the approach name and key constraints. |
| Brainstorm produces only one approach in Phase 3 | The problem space is narrow or the goal is overly constrained | Widen the goal slightly or explicitly ask for alternative approaches (e.g., "consider a caching approach and a query optimization approach"). |