对话式使用 Superpowers+CodeGraph 指南
配置好之后怎么用?
像跟人聊天一样就行。 不需要学命令,OpenClaw agent 自动判断用哪个 CodeGraph 工具。
代码理解
- 「这个项目的路由怎么组织的?」→ agent 自动调 codegraph_explore
- 「AuthService.login 怎么实现的?」→ agent 自动调 codegraph_node
开发任务自动走 Superpowers
- 「帮我加个注销功能」→ 自动 Brainstorm → Plan → Build → Review
- 「这个 bug 在哪?」→ 自动 codegraph_trace → 定位根因
- 「我想重构」→ 自动 codegraph_impact 评影响
代码审查
- 「帮我 review」→ codegraph_impact + 检查测试覆盖
- 「这个修改影响哪些模块?」→ 秒回影响范围
实测效果
Juxingyi 项目(236 文件,4226 节点)初始化 2.6 秒。后续查询零文件读取。
核心原则
- 自然语言先行
- Agent 自动判断
- 不要手动 grep
- 复杂任务走 Superpowers 全流程
一句话:像跟人聊天一样问代码问题。完整方案见 docs/Superpowers-CodeGraph-OpenClaw-集成方案.md
评论