← Back to Skills Marketplace
57
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install laosi-brainstorm
Description
结构化头脑风暴 - 4视角拆解问题:约束/方案/边界/优先级,自动归档到知识库
README (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+
- 无第三方依赖
Usage Guidance
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install laosi-brainstorm - After installation, invoke the skill by name or use
/laosi-brainstorm - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is 结构化头脑风暴?
结构化头脑风暴 - 4视角拆解问题:约束/方案/边界/优先级,自动归档到知识库. It is an AI Agent Skill for Claude Code / OpenClaw, with 57 downloads so far.
How do I install 结构化头脑风暴?
Run "/install laosi-brainstorm" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 结构化头脑风暴 free?
Yes, 结构化头脑风暴 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 结构化头脑风暴 support?
结构化头脑风暴 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 结构化头脑风暴?
It is built and maintained by 534422530 (@534422530); the current version is v1.1.0.
More Skills