adb-mysql
Free阿里云 AnalyticDB (ADB) for MySQL 只读数据分析。 多维分析(计数/聚合/时间序列)、交叉验证、Schema 文档生成、多 Profile。
The English summary is being prepared. Showing the original description.
Multi-agent brainstorming: async opinion collision with expert personas. Mixed Codex/Claude Code engine. Use when multiple AI agents need to collaboratively discuss, debate, and converge on solutions through structured dialog. Triggers: brainstorm, multi-perspective discussion, opinion collision, expert debate, war room, collective intelligence, 头脑风暴, 多视角讨论, 集思广益.
The English summary is being prepared. Showing the original description.
Review the instructions the agent will receive before you install.
你负责编排一场多 Agent 头脑风暴。不同于任务编排(每个 Agent 独立执行任务), 头脑风暴的 Agent 通过一个共享讨论空间异步交换观点、质疑与建设性辩论,最终收敛到高质量方案。
支持两种 Agent 引擎:
@openai/codex-sdk) — OpenAI Codex 代理@anthropic-ai/claude-agent-sdk) — Anthropic Claude Code 代理架构:
你 (Orchestrator)
│
├── 启动 Brainstorm Engine (Node.js HTTP Server + Web 面板)
│ └── 讨论空间 API: 供 Agent 发表/阅读/回应观点
│
├── 派发 N 个 Agent (每个可独立选择 Codex 或 Claude Code 引擎)
│ └── 每个 Agent 通过运行时生成的 discuss.py CLI 与讨论空间交互
│
└── 讨论结束后生成 synthesis.md 综合报告
与 agent-task-orchestration 的区别:
| 维度 | 任务编排 | 头脑风暴 |
|---|---|---|
| Agent 关系 | 独立执行,互不通信 | 共享空间,互相响应 |
| 成功标准 | 每个任务通过测试 | 讨论收敛到共识 |
| 产出物 | 代码文件 | 方案文档 (synthesis.md) |
| 节奏控制 | DAG 拓扑排序 | 异步自治 + 收敛检测 |
| Agent 引擎 | Codex 专用 | Codex 或 Claude Code |
challenge/build/respond 机制让观点互相校正,而不是并列堆叠。synthesis.md,把共识/分歧/决策点收敛成一个可执行结论。运行需要 Node.js ≥18.0.0 和至少一个引擎已认证。
# 安装依赖(在技能目录下)
cd <SKILLS_DIR>/agent-brainstorm && npm install
引擎认证 (至少完成一个):
claude 完成交互登录,或 export ANTHROPIC_API_KEY='sk-ant-...'codex login,或 export OPENAI_API_KEY='sk-...'# 启动头脑风暴(推荐)
node <SKILLS_DIR>/agent-brainstorm/scripts/brainstorm.mjs <session-file> [options]
# 使用 Claude Code 引擎
node <SKILLS_DIR>/agent-brainstorm/scripts/brainstorm.mjs <session-file> --engine claude [options]
# 查看历史
node <SKILLS_DIR>/agent-brainstorm/scripts/brainstorm.mjs --list --cwd <project-dir>
# 查看状态
node <SKILLS_DIR>/agent-brainstorm/scripts/brainstorm.mjs --status --cwd <project-dir>
# 清理
node <SKILLS_DIR>/agent-brainstorm/scripts/brainstorm.mjs --clean --cwd <project-dir>
理解用户想讨论什么。关键问题:
创建 JSON 配置文件(建议放在 .brainstorm/ 或项目根目录下的临时文件):
{
"topic": {
"title": "NightOwl 事件调度架构选型",
"context": "我们正在构建一个 24/7 AI 代理系统……",
"goals": ["选择最适合的事件调度模型"],
"constraints": ["必须使用嵌入式 SQLite"]
},
"agents": [
{
"id": "architect",
"name": "系统架构师",
"expertise": "系统设计、事件驱动架构",
"engine": "claude"
},
{
"id": "reliability",
"name": "可靠性工程师",
"expertise": "容错设计、重试策略"
},
{
"id": "devil",
"name": "魔鬼代言人",
"expertise": "寻找方案漏洞",
"engine": "codex"
}
],
"config": {
"codebase_paths": ["packages/daemon/src/"]
}
}
引擎选择规则:
"engine": "codex" 或 "engine": "claude" 指定引擎--engine 参数(默认 codex)Agent 数量建议: 3-5 个。太少缺乏碰撞,太多产生噪声。
角色设计关键:
devil),专门找漏洞expertise 字段要具体,引导 Agent 的分析方向常用角色参考: 阅读 references/agent-protocol.md
node <SKILLS_DIR>/agent-brainstorm/scripts/brainstorm.mjs \
.brainstorm/session.json \
--cwd <project-dir> \
--approval-mode full-auto \
--timeout 30 \
--port 8899
参数说明:
| 参数 | 默认 | 说明 |
|---|---|---|
--cwd | 当前目录 | Agent 的工作目录(项目根目录) |
--port | 随机 | 讨论服务端口 |
--timeout | 30 | 最大讨论时间(分钟) |
--engine | codex | 默认 Agent 引擎,每个 agent 可在 JSON 中通过 engine 字段覆盖 |
--approval-mode | full-auto | Agent 执行策略 |
--dry-run | false | 预览不执行 |
⚠️ 关键:此命令是阻塞式的 — 进程在所有 Agent 完成讨论并生成 synthesis.md 后才退出。
你不需要手动轮询状态、不需要 sleep/wait、不需要后台运行。直接执行并等待命令返回即可。
这意味着:无论你是 Codex、Claude Code 还是其他 Agent 引擎,只要执行此命令并等待退出,一切都由引擎自动处理。
启动后引擎内部流程:
discuss.py CLI 工具到 .brainstorm/synthesis.md → 进程退出引擎进程会自动阻塞直到讨论结束,你只需等待 Phase 3 的命令返回。
0 = 讨论正常完成1 = 有 Agent 失败--timeout 后引擎自动强制结束并退出禁止:不要把引擎命令放到后台然后手动轮询。这会浪费 Agent turns 且容易出错。 正确做法:直接执行命令,让它阻塞到完成。引擎内部已包含所有监控、续期、超时逻辑。
讨论结束后,Engine 自动生成 .brainstorm/<session-id>/synthesis.md,包含:
向用户汇报时:
synthesis.md每个 Agent 通过运行时生成的 discuss.py CLI 工具参与讨论:
python3 .brainstorm/discuss.py <agent_id> <command> [args...]
命令:
topic — 查看议题和当前状态posts — 查看所有已发表观点new — 只查看新观点post <content> — 发表意见respond <post_id> <content> — 回应某个观点propose <content> — 提出方案agree <post_id> — 同意challenge <post_id> <reason> — 质疑build <post_id> <addition> — 扩展conclude <summary> — 投票结束status — 查看收敛状态Discussion Space 自动追踪讨论阶段:
exploring → 所有 Agent 至少发布 1 个 opinion
debating → 回应数 ≥ Agent 数 且 agree > challenge
converging → 过半 Agent 投 conclude 票
concluded → 所有 Agent 完成或超时
核心设计: Agent 不需要同步。每个 Agent 按自己的节奏:
先完成的 Agent 的观点自动进入讨论空间,后到的 Agent 能看到所有前序观点。 这种异步模式比同步更好——允许每个 Agent 充分思考。
| 阀 | 值 | 触发后 |
|---|---|---|
| 全局超时 | --timeout (默认 30min) | 强制 concluded |
| SIGINT 保护 | 3 次 Ctrl+C | 讨论中 Ctrl+C 被拦截,3 次强制退出(保存状态) |
| 引擎降级 | 自动 | 一个引擎不可用时自动切换到另一可用引擎 |
| Agent session 上限 | SDK 内部控制 | Agent 自然结束 |
| 最终产出 | synthesis.md | 即使讨论不完美也有记录 |
| 症状 | 原因 | 解决 |
|---|---|---|
Cannot find module | npm 依赖未安装 | cd <SKILLS_DIR>/agent-brainstorm && npm install |
Preflight failed | CLI 未安装或未认证 | 见"前置条件"完成认证 |
| Agent 长时间 0 posts | 模型不兼容标准工具集 | 确认 Claude Code 使用官方模型(非第三方代理模型) |
API Error 400 | Agent 使用了不存在的工具 | 同上,模型兼容性问题 |
| SIGINT 被拦截 | 讨论中 Ctrl+C 保护 | 连按 3 次 Ctrl+C 强制退出 |
| 引擎降级日志 | 指定引擎不可用 | 正常行为,已自动切换 |
| 文档 | 用途 | 何时读取 |
|---|---|---|
| agent-protocol.md | Agent 角色设计 + 讨论协议 | 设计 Agent 角色时 |
No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
阿里云 AnalyticDB (ADB) for MySQL 只读数据分析。 多维分析(计数/聚合/时间序列)、交叉验证、Schema 文档生成、多 Profile。
The English summary is being prepared. Showing the original description.
Frontend design blueprints with craftsmanship scoring, self-critique loops, and engineering handoff. Aesthetic intelligence against AI homogeneity. Use for: UI/UX design specs, design system creation, visual direction exploration, component design review, design-to-engineering handoff.
The English summary is being prepared. Showing the original description.
Multi-agent SWE team built on the Workshop model. Full-stack vertical workers, meeting room with @mention notification, private pipes, shared task board. Git worktree isolation, Leader-driven coordination. Mixed Codex/Claude Code engine. Use when a task needs engineering depth beyond a single agent. NOT for simple task parallelism (use agent-task-orchestration) or design discussions (use agent-brainstorm).
The English summary is being prepared. Showing the original description.
Task decomposition and multi-agent orchestration with retry, checkpoint recovery, and real-time monitoring. Mixed Codex/Claude Code engine. Parallel/sequential execution.
The English summary is being prepared. Showing the original description.
针对 cnb.cool 的云原生构建(CNB Build):生成/修改 .cnb.yml 流水线、触发规则、 构建环境、runner 资源、缓存、环境变量、手动触发与调试。 在接入、迁移、优化或排查 CNB 构建配置时使用。
The English summary is being prepared. Showing the original description.
Coding.net DevOps automation: MR lifecycle, CI operations (trigger/logs/stop), artifact registry, cross-project queries, remote file audit.
The English summary is being prepared. Showing the original description.