协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
architect-planner【开发与工程】架构规划专家 - 使用 Codex 本地上下文、仓库证据和只读 child agent 进行大型系统架构设计与规划。
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
面向复杂系统设计、架构评审和迁移规划。默认使用 Codex 当前会话、仓库检索、项目文档和只读 child agent;不调用外部模型 CLI。
手动触发:
使用 architect-planner 设计:<架构需求>
明确以下信息:
优先读取本地证据:
rg --files
rg -n "architecture|deploy|service|database|queue|auth|cache" README.md docs . 2>/dev/null
如在代码仓内,先用本地 ProjectMind 或直接检索建立事实基础:
PROJECT_PATH="$(pwd)"
PROJECTMIND_HOME="${PROJECTMIND_HOME:-/Users/WangQiao/claude-enhanced-quality}"
PYTHON_BIN="${PYTHON_BIN:-$(command -v python3 || command -v python || true)}"
if [ -z "$PYTHON_BIN" ]; then
echo "ProjectMind error: no python3 or python interpreter found" >&2
exit 1
fi
"$PYTHON_BIN" "$PROJECTMIND_HOME/project_mind.py" "$PROJECT_PATH"
补充读取:
README.mddocs/复杂场景使用 explorer 做只读架构调研:
spawn_agent(agent_type="explorer", message="<architecture exploration prompt>")
wait_agent
close_agent
Prompt 框架:
Your task is architecture exploration. Read-only.
<agent-instructions>
Inputs:
- Goal: <架构目标>
- Constraints: <约束>
- Known files/docs: <本地证据>
Trace the current architecture and produce:
1. Current system map
2. Critical dependencies and coupling points
3. Architecture risks
4. Candidate target architectures
5. Migration constraints and unknowns
Cite concrete files and configuration paths.
</agent-instructions>
至少给出:
高风险架构变更派发 reviewer:
spawn_agent(agent_type="reviewer", message="<review architecture plan for risks>")
要求 reviewer 从正确性、安全、运维、迁移风险和测试缺口角度给 findings。
## Architecture Plan
### Context
[事实、约束、目标]
### Current State
[基于本地证据的现状]
### Recommendation
[推荐方案]
### Alternatives
| Option | Pros | Cons | When to choose |
### Target Architecture
[组件、边界、数据流]
### Migration Plan
1. [step] -> verify: [check]
### Risks
[风险和缓解]
### Validation
[命令、测试、指标]
如果 child agent 不可用,在当前回复中用 [EXPLORER] / [REVIEWER] 块自演分析,但必须引用本地文件和命令结果。