compound-workflow
v1.6.7
Published
Clarify → plan → execute → verify → capture. One Install action for Cursor, Claude, and OpenCode.
Readme
Compound Workflow
Compound Workflow is a portable, command-first system for shipping software with less ambiguity and stronger verification. It follows a simple cycle: clarify -> plan -> execute -> verify -> capture.
Use it when you want repeatable delivery without ad-hoc process drift.
Inspired by Compound Engineering (Every).
Best fit when you need:
- Clear intent and acceptance criteria before coding
- Structured execution with explicit review gates
- A repeatable process that captures reusable learnings
Workflow
The workflow turns a request into validated output and reusable team knowledge.
flowchart LR
A["brainstorm"] --> B["plan"] --> C["work (includes triage)"] --> D["review"] --> E["capture"] --> F["metrics"]Get Started
1. Install the package
npm install compound-workflow2. Automatic setup
The package’s postinstall script runs and configures your repo: AGENTS.md, standard directories, and OpenCode wiring. No separate npx step is needed.
3. If lifecycle scripts were skipped
If your package manager didn’t run postinstall, run once:
npx compound-workflow installRestart Cursor after install; enable third-party plugins in Settings if skills/commands don't appear.
4. After updating the package
To get the latest commands and wiring (e.g. after npm update compound-workflow or a new release), run install again so your project’s opencode.json is refreshed:
npx compound-workflow installWhat gets configured
- Workflow template in
AGENTS.md - Standard workspace directories (plans, todos, docs)
opencode.jsonmanaged entries pointing atnode_modules/compound-workflow/src/.agents/*
Breaking Change (2.0.0)
2.0.0 removes all legacy compatibility pathways (/setup, /sync, runtime mirror copies, and Cursor sync fallbacks).
See migration notes in docs/migrations/2026-03-03-v2-native-cutover.md.
Critical Path
After install, use this default sequence:
/workflow:brainstormfor requirements clarity/workflow:planfor implementation design/workflow:workto execute against the approved plan (includes automatic triage)/workflow:reviewto validate quality before completion/workflow:compoundto capture reusable learnings
Optional:
/workflow:triagefor manual backlog curation before or during execution/metricsand/assessfor process improvement
Commands (Quick Map)
Core flow: /workflow:brainstorm -> /workflow:plan -> /workflow:work -> /workflow:review -> /workflow:compound -> /metrics (optional /assess for rollups).
| Command | Purpose | Related skills | Related agents |
| ---------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| /install | Configure workflow files and runtime wiring in the repo | install CLI (no workflow skill routing) | none |
| /workflow:brainstorm | Clarify what to build through structured discussion | brainstorming (primary), document-review (optional refinement) | repo-research-analyst |
| /workflow:plan | Convert intent into an executable plan with fidelity/confidence | state-orchestration skill when needed (for example xstate-actor-orchestration) | repo-research-analyst, learnings-researcher, best-practices-researcher, framework-docs-researcher, git-history-analyzer, spec-flow-analyzer, planning-technical-reviewer |
| /workflow:triage | Manual queue curation for complex/multi-item backlogs (optional; /workflow:work runs triage automatically) | file-todos | none |
| /workflow:work | Execute plan/todos with quality gates and validation evidence | git-worktree, file-todos, standards, state-orchestration skill when needed | repo-research-analyst, learnings-researcher, best-practices-researcher, framework-docs-researcher, git-history-analyzer |
| /workflow:review | Perform independent quality review before completion | git-worktree (for non-current targets), standards | learnings-researcher, lint, bug-reproduction-validator, git-history-analyzer, framework-docs-researcher, agent-native-reviewer |
| /workflow:compound | Capture reusable implementation learnings in docs/solutions/ | compound-docs (primary), document-review (optional) | learnings-researcher, best-practices-researcher, framework-docs-researcher |
| /metrics | Log session outcomes and improvement actions | process-metrics, file-todos (optional for follow-ups) | none |
| /assess | Aggregate metrics trends and propose process improvements | file-todos (for approved follow-up actions) | none |
| /test-browser | Validate affected routes with browser-level checks | agent-browser, git-worktree (optional branch isolation) | none |
Canonical command docs: src/.agents/commands/
Learn More
- Workflow principles: docs/principles/workflow-baseline-principles.md
- Project command and policy index: src/AGENTS.md
- Command definitions: src/.agents/commands/
If docs conflict: follow docs/principles/workflow-baseline-principles.md, then src/AGENTS.md, then command docs.
Guardrails:
- Independent review policy: code/config changes require
/workflow:reviewbefore workflow completion (docs-only changes are exempt). - Standards baseline policy: code/config changes must pass the standards baseline gate in
/workflow:workand/workflow:review.
