← 工具

Compound Engineering

Every.to 出品的 Claude Code / Codex / Cursor 官方插件,6 步闭环让每个开发单元的成果沉淀为下一次的跳板。每步都用多 Agent 互相 Review,海外内容团队出活速度提升 3-5 倍,Stars 22K+

#46
推荐排名
21,982
GitHub Stars
15,387
推荐得分
AI 编程工作流 / 知识沉淀
适用场景
效率AI Agent工作流自动化编程助手TypeScript

为什么需要

传统开发是「债务型」:每个 feature 加复杂度,每个 bug 修完留下一段没人懂的本地知识,下次改更慢。Compound Engineering 反过来——80% 时间做 brainstorm 和 plan,20% 才动手写代码,每个循环的产出自动沉淀给下一个循环。

核心是 6 步闭环:

  1. /ce-brainstorm 交互式问答,明确需求
  2. /ce-plan 把需求拆成具体实施计划
  3. /ce-work 在 worktree 里执行计划
  4. /ce-simplify-code 简化刚写的代码
  5. /ce-code-review 多 Agent 互相 Review
  6. /ce-compound 把这次学到的写进 docs/solutions/,下次自动读

第二条箭头是核心:今天 compound 写的 note,下周 brainstormplan 会自动读它,循环累加。每个 cycle 变简单,Agent 不需要重新学同一课。

怎么用

按官方文档装到 Claude Code:

/plugin marketplace add EveryInc/compound-engineering-plugin
/plugin install compound-engineering@compound-engineering

装完直接 /ce-ideate new drawing tools 启动。

插件同时支持 Codex、Cursor、OpenCode、GitHub Copilot 等主流编码 Agent。

配套技能

  • /ce-strategy 上游锚点:维护 STRATEGY.md,作为 ideate / brainstorm 的 grounding
  • /ce-ideate 没方向时先生成 5 个候选 idea 并打分
  • /ce-debug 修 bug 而非 feature 时跳过 brainstorm → plan
  • /ce-product-pulse 外圈:周期生成用户实际体验报告(usage、performance、errors)

使用案例

出海内容团队的周迭代:周一 /ce-product-pulse 看上周用户行为数据,自动生成 docs/pulse-reports/week-24.md;周二 /ce-ideate 基于报告产出 5 个新功能 idea,选最强的进 /ce-brainstorm;周三 /ce-plan 出实施方案;周四 /ce-work + /ce-simplify-code;周五 /ce-code-review + /ce-compound,沉淀这周学到的所有 pattern 到 docs/solutions/。下周的 brainstorm 直接读到这些 note,跳过重复学习。

注意事项

  • 完全免费开源(MIT)
  • 需要 Claude Code / Codex / Cursor 之一
  • 第一次用会感觉「仪式感重」,但 2-3 个 cycle 后会发现循环本身就是知识积累
  • 与 gstack、Ponytail 同类但更全面,倾向规格驱动 + 知识沉淀