← 返回 Skills 市场
57
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install laosi-brainstorm
功能描述
结构化头脑风暴 - 4视角拆解问题:约束/方案/边界/优先级,自动归档到知识库
使用说明 (SKILL.md)
Brainstorm - 结构化头脑风暴
激活词: 头脑风暴 / brainstorm / 想一下
为什么需要结构化
人的思维天然有偏见:确认偏误、锚定效应、可用性启发。固定4视角拆解能强迫大脑跳出惯性轨道。
Python 实现
import json
from datetime import datetime
from dataclasses import dataclass, field, asdict
from typing import List, Optional
@dataclass
class BrainstormSession:
topic: str
constraints: List[str] = field(default_factory=list)
alternatives: List[str] = field(default_factory=list)
edge_cases: List[str] = field(default_factory=list)
priorities: List[str] = field(default_factory=list)
created: str = ""
def __post_init__(self):
if not self.created:
self.created = datetime.now().isoformat()
def add_constraint(self, item: str):
self.constraints.append(item)
def add_alternative(self, item: str):
self.alternatives.append(item)
def add_edge_case(self, item: str):
self.edge_cases.append(item)
def add_priority(self, item: str):
self.priorities.append(item)
def summarize(self) -> dict:
return {
"topic": self.topic,
"counts": {
"constraints": len(self.constraints),
"alternatives": len(self.alternatives),
"edge_cases": len(self.edge_cases),
"priorities": len(self.priorities),
},
"total_ideas": sum(len(v) for v in [
self.constraints, self.alternatives,
self.edge_cases, self.priorities
]),
"created": self.created
}
def to_markdown(self) -> str:
lines = [f"# 头脑风暴: {self.topic}\
"]
lines.append("## 🚧 约束条件")
for c in self.constraints:
lines.append(f"- {c}")
lines.append("\
## 💡 备选方案")
for a in self.alternatives:
lines.append(f"- {a}")
lines.append("\
## ⚡ 边界情况")
for e in self.edge_cases:
lines.append(f"- {e}")
lines.append("\
## 🎯 优先级")
for p in self.priorities:
lines.append(f"- {p}")
return "\
".join(lines)
# 使用示例
s = BrainstormSession(topic="为个人博客添加AI搜索功能")
s.add_constraint("不能增加服务器成本")
s.add_constraint("搜索延迟必须\x3C2秒")
s.add_constraint("必须支持中文分词")
s.add_alternative("使用Meilisearch自托管全文搜索")
s.add_alternative("调用OpenAI Embedding API + 向量数据库(Pinecone)")
s.add_alternative("纯前端TF-IDF + 倒排索引")
s.add_alternative("使用Cloudflare Workers + Workers AI")
s.add_edge_case("博客内容为空时搜索返回什么")
s.add_edge_case("用户输入特殊字符/正则注入")
s.add_edge_case("并发大量搜索请求时")
s.add_edge_case("索引更新延迟导致搜到旧内容")
s.add_priority("MVP: 纯前端TF-IDF搜索现有文章")
s.add_priority("Phase 2: 接入LLM做语义搜索")
s.add_priority("Phase 3: 中文纠错提示")
print(s.to_markdown())
print(f"\
总计 {s.summarize()['total_ideas']} 个想法")
4视角详解
┌─────────────┐ ┌─────────────┐
│ 约束条件 │ │ 备选方案 │
│ 不可逾越 │ │ 跳出惯性 │
├─────────────┤ ├─────────────┤
│ - 硬限制 │ │ - 3+方案 │
│ - 不能做的 │ │ - 反直觉的 │
└─────────────┘ └─────────────┘
↑ ↑
输入 发散
──────────────────→
←──────────────────
收敛 选择
↓ ↓
┌─────────────┐ ┌─────────────┐
│ 边界情况 │ │ 优先级 │
│ 测试极限 │ │ MVP排序 │
├─────────────┤ ├─────────────┤
│ - 极端值 │ │ - 先做什么 │
│ - 静默失败 │ │ - 依赖关系 │
└─────────────┘ └─────────────┘
使用场景
- 产品设计: 新功能上线前跑一遍,避免遗漏边界情况
- 技术选型: 比较不同方案时,约束和优先级视角必用
- Bug修复: 备选方案视角打开思路,不局限于一种解法
- OKR制定: 约束(资源限制)+ 优先级(什么最重要)
命令行用法
python -c "
from brainstorm import BrainstormSession
s = BrainstormSession('test')
s.add_constraint('time limit: 2hrs')
s.add_alternative('approach A')
print(s.to_markdown())
"
依赖
- Python 3.8+
- 无第三方依赖
安全使用建议
Safe to install for structured ideation. Consider editing or ignoring the generic “想一下” trigger if accidental activation would be annoying, and check your agent’s normal note or memory settings if you do not want brainstorming outputs saved.
能力评估
Purpose & Capability
The skill’s stated purpose is structured brainstorming, and the artifact content matches that purpose with a four-perspective framework and a small illustrative Python example.
Instruction Scope
The trigger list includes the generic Chinese phrase “想一下,” which could be invoked accidentally, but the resulting behavior is limited to brainstorming guidance and does not request privileged actions.
Install Mechanism
The package contains only SKILL.md; metadata and scans show no executable scripts, declared third-party dependencies, or install-time commands.
Credentials
The sample code uses only Python standard-library modules and has no network, credential, shell, or broad filesystem access.
Persistence & Privilege
The description mentions automatic knowledge-base archiving, but the artifact does not implement or instruct hidden persistence; users should confirm how their agent stores generated brainstorming notes.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install laosi-brainstorm - 安装完成后,直接呼叫该 Skill 的名称或使用
/laosi-brainstorm触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
- Expanded SKILL.md with detailed documentation in both Chinese and English, including rationale and structured explanations.
- Added a full Python implementation example for structured brainstorming.
- Included usage examples and command-line usage instructions.
- Detailed the four perspectives (constraints, alternatives, edge cases, priorities) with ASCII diagrams.
- Listed application scenarios and requirements.
- No code or logic changes beyond documentation enhancements.
v1.0.0
- Initial release of the structured brainstorming tool.
- Guides users through problem-solving from 4 perspectives: Constraints, Alternatives, Edge Cases, and Priorities.
- Helps extract clear specifications and avoid confirmation bias before creative or technical work.
- Automatically archives brainstorm results to the knowledge base for traceability.
元数据
常见问题
结构化头脑风暴 是什么?
结构化头脑风暴 - 4视角拆解问题:约束/方案/边界/优先级,自动归档到知识库. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 57 次。
如何安装 结构化头脑风暴?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install laosi-brainstorm」即可一键安装,无需额外配置。
结构化头脑风暴 是免费的吗?
是的,结构化头脑风暴 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
结构化头脑风暴 支持哪些平台?
结构化头脑风暴 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 结构化头脑风暴?
由 534422530(@534422530)开发并维护,当前版本 v1.1.0。
推荐 Skills