EveryInc / compound-engineering-plugin
EveryInc / compound-engineering-plugin
Compound Engineering AI skills and agents that make each unit of engineering work easier than the last. Compound Engineering 是一套 AI 技能与智能体,旨在让每一项工程任务都比上一项更轻松。
Philosophy
理念
Each unit of engineering work should make subsequent units easier — not harder. Traditional development accumulates technical debt. Every feature adds complexity. Every bug fix leaves behind a little more local knowledge that someone has to rediscover later. The codebase gets larger, the context gets harder to hold, and the next change becomes slower. Compound engineering inverts this. 每一项工程工作都应使后续工作变得更容易,而不是更难。传统的开发模式会积累技术债务:每个功能都会增加复杂性,每次修复 Bug 都会留下一些需要后续重新发现的“局部知识”。代码库变得越来越臃肿,上下文越来越难以把控,下一次变更也会变得更慢。Compound Engineering 则扭转了这一局面。
80% is in planning and review, 20% is in execution: 80% 的精力用于规划与审查,20% 用于执行:
- Plan thoroughly before writing code with
/ce-brainstormand/ce-plan在编写代码前,使用/ce-brainstorm和/ce-plan进行充分规划。 - Review to catch issues and calibrate judgment with
/ce-code-reviewand/ce-doc-review使用/ce-code-review和/ce-doc-review进行审查,以发现问题并校准判断。 - Codify knowledge so it is reusable with
/ce-compound使用/ce-compound将知识代码化,使其可复用。 - Keep quality high so future changes are easy 保持高质量,以便未来的变更更加轻松。
The point is not ceremony. The point is leverage. A good brainstorm makes the plan sharper. A good plan makes execution smaller. A good review catches the pattern, not just the bug. A good compound note means the next agent does not have to learn the same lesson from scratch. 重点不在于形式,而在于杠杆效应。一次好的头脑风暴能让计划更精准;一份好的计划能让执行更精简;一次好的审查能发现模式而非仅仅是 Bug;一份好的复合笔记(Compound note)意味着下一个智能体无需从零开始学习同样的教训。
Workflow
工作流
/ce-strategy is upstream of the loop — it captures the product’s target problem, approach, persona, metrics, and tracks as a short durable anchor at STRATEGY.md. Ideate, brainstorm, and plan read it as grounding when present, so strategy choices flow into feature conception, prioritization, and spec.
/ce-strategy 位于循环的上游——它将产品的目标问题、方法、角色、指标和路径捕获为 STRATEGY.md 中的简短持久锚点。当存在该文件时,Ideate(构思)、Brainstorm(头脑风暴)和 Plan(规划)会将其作为基础,从而确保战略选择能够融入到功能构思、优先级排序和规范制定中。
The core loop is: brainstorm the requirements, plan the implementation, work through the plan, review the result, compound the learning, then repeat with better context. Use /ce-ideate before the loop when you want the agent to generate and critique bigger ideas before choosing one to brainstorm. It produces a ranked ideation artifact, not requirements, plans, or code.
核心循环是:头脑风暴需求、规划实现、执行计划、审查结果、复合学习,然后在更好的上下文基础上重复。当你想让智能体在头脑风暴前生成并批判性地评估更大胆的想法时,请在循环前使用 /ce-ideate。它会生成一个排好序的构思产物,而不是需求、计划或代码。
Skill Purpose
技能用途
| Skill | Purpose |
|---|---|
/ce-strategy | Create or maintain STRATEGY.md — the product’s target problem, approach, persona, key metrics, and tracks. Read as grounding by ideate, brainstorm, and plan. |
/ce-strategy | 创建或维护 STRATEGY.md —— 产品的目标问题、方法、角色、关键指标和路径。供构思、头脑风暴和规划作为基础读取。 |
/ce-ideate | Optional big-picture ideation: generate and critically evaluate grounded ideas, then route the strongest one into brainstorming. |
/ce-ideate | 可选的宏观构思:生成并批判性评估基于基础的想法,然后将最强的想法导入头脑风暴。 |
/ce-brainstorm | Interactive Q&A to think through a feature or problem and write a right-sized requirements doc before planning. |
/ce-brainstorm | 交互式问答,用于深入思考功能或问题,并在规划前编写大小适中的需求文档。 |
/ce-plan | Turn feature ideas into detailed implementation plans. |
/ce-plan | 将功能想法转化为详细的实施计划。 |
/ce-work | Execute plans with worktrees and task tracking. |
/ce-work | 使用工作树(worktrees)和任务跟踪执行计划。 |
/ce-debug | Systematically reproduce failures, trace root cause, and implement fixes. |
/ce-debug | 系统地重现故障、追踪根本原因并实施修复。 |
/ce-code-review | Multi-agent code review before merging. |
/ce-code-review | 合并前的多智能体代码审查。 |
/ce-compound | Document learnings to make future work easier. |
/ce-compound | 记录学习成果,使未来的工作更轻松。 |
/ce-product-pulse | Generate a single-page, time-windowed pulse report on usage, performance, errors, and followups. Saves to docs/pulse-reports/. |
/ce-product-pulse | 生成单页、时间窗口化的脉冲报告,涵盖使用情况、性能、错误和后续跟进。保存至 docs/pulse-reports/。 |
Quick Example
快速示例
A typical cycle starts by turning a rough idea into a requirements doc, then planning from that doc before handing execution to /ce-work:
一个典型的周期始于将粗略的想法转化为需求文档,然后根据该文档进行规划,最后将执行交给 /ce-work:
/ce-brainstorm "make background job retries safer"
/ce-plan docs/brainstorms/background-job-retry-safety-requirements.md
/ce-work
/ce-code-review
/ce-compound
For a focused bug investigation: 针对专注的 Bug 调查:
/ce-debug "the checkout webhook sometimes creates duplicate invoices"
/ce-code-review
/ce-compound
Getting Started
开始使用
After installing, run /ce-setup in any project. It checks your environment, installs missing tools, and bootstraps project config. The compound-engineering plugin currently ships 37 skills and 51 agents.
安装后,在任何项目中运行 /ce-setup。它会检查你的环境、安装缺失的工具并引导项目配置。Compound Engineering 插件目前包含 37 种技能和 51 个智能体。
Claude Code
In the plugin marketplace:
在插件市场中:
/plugin marketplace add EveryInc/compound-engineering-plugin
/plugin install compound-engineering
Cursor
In Cursor Agent chat, install from the plugin marketplace:
在 Cursor Agent 聊天中,从插件市场安装:
/add-plugin compound-engineering
Or search for “compound engineering” in the plugin marketplace.
或者在插件市场中搜索 “compound engineering”。
Codex
Three steps: register the marketplace, install the agent set, then install the plugin through Codex’s TUI. 三个步骤:注册市场、安装智能体集,然后通过 Codex 的 TUI 安装插件。
-
Register the marketplace with Codex: 使用 Codex 注册市场:
codex plugin marketplace add EveryInc/compound-engineering-plugin -
Install the Compound Engineering agents: 安装 Compound Engineering 智能体:
bunx @every-env/compound-plugin install compound-engineering --to codex -
Install the plugin through Codex’s TUI: 通过 Codex 的 TUI 安装插件: Launch codex, run
/plugins, find the Compound Engineering marketplace, select the compound-engineering plugin, and choose Install. Restart Codex after install completes. 启动 Codex,运行/plugins,找到 Compound Engineering 市场,选择compound-engineering插件并选择安装。安装完成后重启 Codex。