compound-workflow 1.6.2 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compound-workflow",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "Clarify -> plan -> execute -> verify -> capture workflow: commands, skills, and agents for Claude Code",
5
5
  "author": {
6
6
  "name": "Compound Workflow"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compound-workflow",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "Clarify -> plan -> execute -> verify -> capture workflow for Cursor",
5
5
  "author": {
6
6
  "name": "Compound Workflow"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compound-workflow",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "description": "Clarify → plan → execute → verify → capture. One Install action for Cursor, Claude, and OpenCode.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -18,6 +18,8 @@ it.
18
18
  discussion-first facilitation (one-question-then-prompts), approach
19
19
  exploration patterns, and YAGNI principles.
20
20
 
21
+ It is critical that you follow this workflow in order; do not skip or shortcut steps.
22
+
21
23
  ## Guardrails
22
24
 
23
25
  - Do not write or modify application code.
@@ -27,6 +27,8 @@ Do not create drafts, notes, or intermediate files.
27
27
  After the primary solution doc is written, optional post-capture actions (by explicit user choice) may update other references (e.g. patterns indexes).
28
28
  </critical_requirement>
29
29
 
30
+ It is critical that you follow this workflow in order; do not skip or shortcut steps.
31
+
30
32
  ## Usage
31
33
 
32
34
  ```bash
@@ -49,14 +51,16 @@ After the primary solution doc is written, optional post-capture actions (by exp
49
51
  - **Implementation insight:** For feature work, confirm implementation is complete and there is a reusable learning or pattern to capture (no "problem solved" requirement for this path).
50
52
  - If critical context is missing, ask targeted questions and wait. Then **invoke the `compound-docs` skill** (it defines required fields, validation gates, and template).
51
53
 
52
- ### 2. Optional enrichment (before write)
54
+ ### 2. Required research (before write)
55
+
56
+ Research is required and must run in subagents. Do not perform research in-context. Run all research via Task (subagent). If the environment cannot run the Task, state that and perform a minimal in-context fallback, then proceed to capture.
53
57
 
54
- Run only agents that exist in this `.agents` workspace. **Enrichment is read-only**—it informs the doc content but must not write files.
58
+ Run only agents that exist in this `.agents` workspace. **Research is read-only**—it informs the doc content but must not write files.
55
59
 
56
- - Related docs: `Task learnings-researcher(<symptom/module/root cause keywords>)`
57
- - Optional: `Task best-practices-researcher(<topic>)`, `Task framework-docs-researcher(<topic>)`
60
+ - **Required:** `Task learnings-researcher(<symptom/module/root cause keywords>)` (related docs).
61
+ - **Conditional** (when the topic warrants, e.g. framework usage or cross-cutting patterns): `Task best-practices-researcher(<topic>)`, `Task framework-docs-researcher(<topic>)`. When run, these must also run as Tasks.
58
62
 
59
- Complete enrichment before assembly. Report which ran vs skipped.
63
+ Complete research before assembly. Report which enrichments ran (required: learnings-researcher; conditional: best-practices, framework-docs) and which were skipped.
60
64
 
61
65
  ### 3. Capture
62
66
 
@@ -105,14 +109,14 @@ User may optionally run `document-review` on the created doc. If the repo has do
105
109
 
106
110
  ## Success output (shape)
107
111
 
108
- Report which optional enrichments ran vs skipped. Then output the path of the created file. Present the **`compound-docs` decision menu** (see skill) and wait for user choice—do not substitute a shorter custom menu.
112
+ Report which enrichments ran (required: learnings-researcher; conditional: best-practices, framework-docs) and which were skipped. Then output the path of the created file. Present the **`compound-docs` decision menu** (see skill) and wait for user choice—do not substitute a shorter custom menu.
109
113
 
110
114
  Example summary (generic, portable):
111
115
 
112
116
  ```
113
117
  ✓ Documentation complete
114
118
 
115
- Optional enrichments: related-docs ran|skipped, best-practices ran|skipped, framework-docs ran|skipped
119
+ Enrichments: learnings-researcher (required) ran|skipped; best-practices ran|skipped; framework-docs ran|skipped
116
120
 
117
121
  File created: docs/solutions/<category>/YYYY-MM-DD-<module-slug>-<symptom-slug>.md
118
122
 
@@ -15,6 +15,8 @@ Transform feature descriptions, bug reports, or improvement ideas into well-stru
15
15
 
16
16
  Contract precedence: if this command conflicts with other workflow docs, follow `docs/principles/workflow-baseline-principles.md`, then `src/AGENTS.md`, then this command.
17
17
 
18
+ It is critical that you follow this workflow in order; do not skip or shortcut steps.
19
+
18
20
  This workflow MUST choose a planning fidelity and confidence level before final plan construction:
19
21
 
20
22
  - Fidelity: `Low | Medium | High`
@@ -833,7 +835,7 @@ Write the complete plan file to `docs/plans/YYYY-MM-DD-<type>-<slug>-plan.md`. T
833
835
 
834
836
  Confirm: "Plan written to docs/plans/[filename]"
835
837
 
836
- **Auto technical review (when Fidelity is Medium or High):** After writing the plan file, if the declared **Fidelity is Medium or High**, automatically run technical review: run **Task planning-technical-reviewer(plan_path)** when the environment can run the Task, or load the `technical-review` skill so the subagent is used when available. Use the plan path just written. If Fidelity is Low, skip this step; the user can still choose "Technical review" from Post-Generation Options or call `/workflow:tech-review` later.
838
+ **Technical review (required when Fidelity is Medium or High):** After writing the plan file, if the declared **Fidelity is Medium or High**, you **must** run technical review—it is not optional. Run **Task planning-technical-reviewer(plan_path)** using the plan path just written. Do not perform technical review in-context unless the environment cannot run the Task; if you fall back, state "planning-technical-reviewer unavailable; running direct technical review (degraded bias resistance)" and then load the `technical-review` skill and run it in-context. If Fidelity is Low, skip this step; the user can still choose "Technical review" from Post-Generation Options or call `/workflow:tech-review` later.
837
839
 
838
840
  **Non-interactive mode:** When the invocation is non-interactive (e.g., `workflow:plan` run by automation, CI, or with an explicit non-interactive flag/convention), skip AskQuestion calls and do not present Post-Generation Options. For determinism, the repo should define the flag or convention (e.g., in `AGENTS.md` Repo Config Block or a documented env var). Still **declare** Fidelity, Confidence, Solution scope, Spike evaluation, Spikes needed, Research mode, and Open questions in the required announcement format before writing the plan. Use these defaults when user input is unavailable: fidelity = Medium, confidence = Medium, solution_scope = full_remediation, spike evaluation = not-required unless risky-work triggers are present, spikes needed = n/a when spike evaluation is not required, research mode = local + external for Medium/High risk topics else local only. Proceed directly to writing the plan file and then exit or return the plan path as output.
839
841
 
@@ -863,6 +865,8 @@ Examples:
863
865
 
864
866
  ## Post-Generation Options
865
867
 
868
+ Technical review (above) is required for Medium/High fidelity and must be run via subagent when available.
869
+
866
870
  After writing the plan file, use **AskQuestion** to present these options:
867
871
 
868
872
  **Question:** "Plan ready at `docs/plans/YYYY-MM-DD-<type>-<slug>-plan.md`. What would you like to do next?"
@@ -13,6 +13,8 @@ Contract precedence: if this command conflicts with other workflow docs, follow
13
13
 
14
14
  **If the user provides a document path** (e.g. a plan or spec): redirect to the `technical-review` skill for technical correctness (no edits), and/or the `document-review` skill to refine the document. This command does not review documents.
15
15
 
16
+ It is critical that you follow this workflow in order; do not skip or shortcut steps.
17
+
16
18
  Guardrails (unless explicitly requested):
17
19
 
18
20
  - Do not modify code or documents
@@ -11,6 +11,8 @@ Run technical review on a feature approach or plan document. Checks technical al
11
11
 
12
12
  Contract precedence: if this command conflicts with other workflow docs, follow `docs/principles/workflow-baseline-principles.md`, then `src/AGENTS.md`, then this command.
13
13
 
14
+ It is critical that you follow this workflow in order; do not skip or shortcut steps.
15
+
14
16
  ## Inputs
15
17
 
16
18
  - **Plan path (optional):** `$ARGUMENTS` — path to the plan file (e.g. `docs/plans/YYYY-MM-DD-<type>-<slug>-plan.md`).
@@ -19,10 +21,11 @@ Contract precedence: if this command conflicts with other workflow docs, follow
19
21
  ## Execution
20
22
 
21
23
  1. Resolve the plan document (from argument, context, or discovery).
22
- 2. Load the `technical-review` skill and run it on that plan. The skill runs **Task planning-technical-reviewer(plan_path)** when the environment can run the Task, then synthesizes the verdict and findings queue.
24
+ 2. **Run technical review as a subagent (mandatory when supported).** Load the `technical-review` skill and run it on that plan. You **must** attempt the independent pass via a subagent first: run **Task planning-technical-reviewer(plan_path)** (e.g. `mcp_task` with subagent_type and the plan path). Do **not** perform the planning-technical-reviewer pass in-context unless the environment cannot run the Task; if you fall back, you **must** state "planning-technical-reviewer unavailable; running direct technical review (degraded bias resistance)". After the subagent (or fallback) pass, synthesize the verdict and findings queue.
23
25
  3. After technical review, if the user agrees to changes, recommend loading `document-review` to update the plan, then proceed to build when ready.
24
26
 
25
27
  ## Guardrails
26
28
 
29
+ - **Subagent mandatory when available.** You must run the planning-technical-reviewer pass as a subagent (Task / mcp_task) when the environment supports it. Do not run in-context unless the environment cannot run the Task; if you do, disclose the degraded mode.
27
30
  - Do not modify the plan in this command; technical review is read-only. Apply changes via document-review or user edit.
28
31
  - Do not create commits, push branches, or create pull requests.
@@ -16,6 +16,8 @@ Output of this command is the only executable queue for `/workflow:work`.
16
16
 
17
17
  Contract precedence: if this command conflicts with other workflow docs, follow `docs/principles/workflow-baseline-principles.md`, then `src/AGENTS.md`, then this command.
18
18
 
19
+ It is critical that you follow this workflow in order; do not skip or shortcut steps.
20
+
19
21
  ## Inputs
20
22
 
21
23
  - Default: triage all active todos under `todos/` (`pending` + `ready`)
@@ -15,6 +15,8 @@ This command takes a plan file and executes it systematically. The focus is on c
15
15
 
16
16
  Contract precedence: if this command conflicts with other workflow docs, follow `docs/principles/workflow-baseline-principles.md`, then `src/AGENTS.md`, then this command.
17
17
 
18
+ It is critical that you follow this workflow in order; do not skip or shortcut steps.
19
+
18
20
  Non-goals (unless explicitly requested):
19
21
 
20
22
  - Creating commits