compound-workflow 1.8.0 → 1.9.1
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.
- package/README.md +62 -68
- package/package.json +2 -8
- package/scripts/check-pack-readme.mjs +1 -16
- package/scripts/check-workflow-contracts.mjs +34 -44
- package/scripts/install-cli.mjs +273 -555
- package/src/AGENTS.md +59 -192
- package/src/{.agents/agents → agents}/research/best-practices-researcher.md +2 -2
- package/src/{.agents/commands → commands}/assess.md +4 -4
- package/src/commands/install.md +43 -0
- package/src/{.agents/commands → commands}/metrics.md +1 -1
- package/src/{.agents/commands → commands}/test-browser.md +8 -8
- package/src/commands/workflow-agents.md +101 -0
- package/src/{.agents/commands → commands}/workflow-brainstorm.md +5 -5
- package/src/{.agents/commands → commands}/workflow-compound.md +1 -1
- package/src/{.agents/commands → commands}/workflow-plan.md +62 -85
- package/src/commands/workflow-work.md +839 -0
- package/src/{.agents/references → references}/README.md +1 -1
- package/src/{.agents/skills → skills}/capture-skill/SKILL.md +1 -1
- package/src/{.agents/skills → skills}/compound-docs/SKILL.md +6 -6
- package/src/{.agents/skills → skills}/compound-docs/references/yaml-schema.md +2 -2
- package/src/skills/setup-agents/SKILL.md +247 -0
- package/src/skills/standards/SKILL.md +79 -0
- package/src/skills/standards/references/architecture.md +228 -0
- package/src/skills/standards/references/code-quality.md +192 -0
- package/src/skills/standards/references/presentation.md +515 -0
- package/src/skills/standards/references/services.md +172 -0
- package/src/skills/standards/references/state-management.md +936 -0
- package/.claude-plugin/plugin.json +0 -7
- package/.cursor-plugin/plugin.json +0 -20
- package/.cursor-plugin/registration.json +0 -5
- package/scripts/check-version-parity.mjs +0 -36
- package/scripts/generate-platform-artifacts.mjs +0 -230
- package/src/.agents/commands/install.md +0 -51
- package/src/.agents/commands/workflow-work.md +0 -690
- package/src/.agents/registry.json +0 -48
- package/src/.agents/scripts/self-check.mjs +0 -227
- package/src/.agents/scripts/sync-opencode.mjs +0 -362
- package/src/.agents/skills/presentation-composability/SKILL.md +0 -72
- package/src/.agents/skills/react-ddd-mvc-frontend/SKILL.md +0 -51
- package/src/.agents/skills/react-ddd-mvc-frontend/references/feature-structure.md +0 -25
- package/src/.agents/skills/react-ddd-mvc-frontend/references/implementation-principles.md +0 -21
- package/src/.agents/skills/react-ddd-mvc-frontend/references/responsibility-gates.md +0 -41
- package/src/.agents/skills/react-ddd-mvc-frontend/references/source-map.md +0 -11
- package/src/.agents/skills/standards/SKILL.md +0 -747
- package/src/.agents/skills/xstate-actor-orchestration/SKILL.md +0 -197
- package/src/.agents/skills/xstate-actor-orchestration/agents/openai.yaml +0 -4
- package/src/.agents/skills/xstate-actor-orchestration/assets/statecharts/.gitkeep +0 -0
- package/src/.agents/skills/xstate-actor-orchestration/references/actor-system-patterns.md +0 -71
- package/src/.agents/skills/xstate-actor-orchestration/references/event-contracts.md +0 -73
- package/src/.agents/skills/xstate-actor-orchestration/references/functional-domain-patterns.md +0 -53
- package/src/.agents/skills/xstate-actor-orchestration/references/machine-structure-and-tags.md +0 -36
- package/src/.agents/skills/xstate-actor-orchestration/references/react-container-pattern.md +0 -45
- package/src/.agents/skills/xstate-actor-orchestration/references/reliability-observability.md +0 -39
- package/src/.agents/skills/xstate-actor-orchestration/references/skill-validation.md +0 -33
- package/src/.agents/skills/xstate-actor-orchestration/references/source-map.md +0 -44
- package/src/.agents/skills/xstate-actor-orchestration/references/statechart-review-and-signoff.md +0 -59
- package/src/.agents/skills/xstate-actor-orchestration/references/testing-strategy.md +0 -35
- package/src/.agents/skills/xstate-actor-orchestration/scripts/create-statechart-artifact.sh +0 -71
- package/src/.agents/skills/xstate-actor-orchestration/scripts/validate-skill.sh +0 -138
- package/src/generated/opencode.managed.json +0 -115
- /package/src/{.agents/agents → agents}/research/framework-docs-researcher.md +0 -0
- /package/src/{.agents/agents → agents}/research/git-history-analyzer.md +0 -0
- /package/src/{.agents/agents → agents}/research/learnings-researcher.md +0 -0
- /package/src/{.agents/agents → agents}/research/repo-research-analyst.md +0 -0
- /package/src/{.agents/agents → agents}/review/agent-native-reviewer.md +0 -0
- /package/src/{.agents/agents → agents}/review/planning-technical-reviewer.md +0 -0
- /package/src/{.agents/agents → agents}/workflow/bug-reproduction-validator.md +0 -0
- /package/src/{.agents/agents → agents}/workflow/lint.md +0 -0
- /package/src/{.agents/agents → agents}/workflow/spec-flow-analyzer.md +0 -0
- /package/src/{.agents/commands → commands}/workflow-review.md +0 -0
- /package/src/{.agents/commands → commands}/workflow-tech-review.md +0 -0
- /package/src/{.agents/commands → commands}/workflow-triage.md +0 -0
- /package/src/{.agents/references → references}/standards/README.md +0 -0
- /package/src/{.agents/skills → skills}/agent-browser/SKILL.md +0 -0
- /package/src/{.agents/skills → skills}/audit-traceability/SKILL.md +0 -0
- /package/src/{.agents/skills → skills}/brainstorming/SKILL.md +0 -0
- /package/src/{.agents/skills → skills}/compound-docs/assets/critical-pattern-template.md +0 -0
- /package/src/{.agents/skills → skills}/compound-docs/assets/resolution-template.md +0 -0
- /package/src/{.agents/skills → skills}/compound-docs/schema.project.yaml +0 -0
- /package/src/{.agents/skills → skills}/compound-docs/schema.yaml +0 -0
- /package/src/{.agents/skills → skills}/data-foundations/SKILL.md +0 -0
- /package/src/{.agents/skills → skills}/document-review/SKILL.md +0 -0
- /package/src/{.agents/skills → skills}/file-todos/SKILL.md +0 -0
- /package/src/{.agents/skills → skills}/file-todos/assets/todo-template.md +0 -0
- /package/src/{.agents/skills → skills}/financial-workflow-integrity/SKILL.md +0 -0
- /package/src/{.agents/skills → skills}/git-worktree/SKILL.md +0 -0
- /package/src/{.agents/skills → skills}/pii-protection-prisma/SKILL.md +0 -0
- /package/src/{.agents/skills → skills}/process-metrics/SKILL.md +0 -0
- /package/src/{.agents/skills → skills}/process-metrics/assets/daily-template.md +0 -0
- /package/src/{.agents/skills → skills}/process-metrics/assets/monthly-template.md +0 -0
- /package/src/{.agents/skills → skills}/process-metrics/assets/weekly-template.md +0 -0
- /package/src/{.agents/skills → skills}/technical-review/SKILL.md +0 -0
|
@@ -49,7 +49,7 @@ Use it to resolve optional defaults used by this command:
|
|
|
49
49
|
|
|
50
50
|
If not present, proceed with safe defaults and state what you assumed.
|
|
51
51
|
|
|
52
|
-
###
|
|
52
|
+
### Step 1 — Idea Refinement
|
|
53
53
|
|
|
54
54
|
**Check for brainstorm output first:**
|
|
55
55
|
|
|
@@ -72,11 +72,11 @@ Use file discovery tools (Glob/Read) to locate and read recent brainstorm docume
|
|
|
72
72
|
5. Use brainstorm decisions as input to the research phase
|
|
73
73
|
|
|
74
74
|
**If multiple brainstorms could match:**
|
|
75
|
-
Use **
|
|
75
|
+
Use **AskUserQuestion** to ask which brainstorm to use, or whether to proceed without one.
|
|
76
76
|
|
|
77
77
|
**If no brainstorm found (or not relevant), run idea refinement:**
|
|
78
78
|
|
|
79
|
-
Refine the idea through collaborative dialogue using **
|
|
79
|
+
Refine the idea through collaborative dialogue using **AskUserQuestion**:
|
|
80
80
|
|
|
81
81
|
- Ask questions one at a time to understand the idea fully
|
|
82
82
|
- Prefer multiple choice questions when natural options exist
|
|
@@ -94,25 +94,9 @@ Refine the idea through collaborative dialogue using **AskQuestion**:
|
|
|
94
94
|
**Skip option:** If the feature description is already detailed, offer:
|
|
95
95
|
"Your description is clear. Should I proceed with research, or would you like to refine it further?"
|
|
96
96
|
|
|
97
|
-
### 0.5. State-Orchestration Fit Check (Decision in planning)
|
|
98
|
-
|
|
99
|
-
Before finalizing architecture, decide whether to load an appropriate
|
|
100
|
-
state-orchestration skill (see Skill Index in AGENTS.md; e.g.
|
|
101
|
-
`xstate-actor-orchestration` when the stack uses that approach).
|
|
102
|
-
|
|
103
|
-
Load one when complexity exceeds simple local state, especially for:
|
|
104
|
-
|
|
105
|
-
- UI flows where a React container should orchestrate context/state and
|
|
106
|
-
compose presentational components
|
|
107
|
-
- Backend/internal workflows with hidden state complexity, lifecycle
|
|
108
|
-
management, retries/timeouts/cancellation, or actor coordination
|
|
109
|
-
- Cases where more than one boolean/flag currently controls flow
|
|
110
|
-
|
|
111
|
-
If not selected, document why simpler state management is sufficient.
|
|
112
|
-
|
|
113
97
|
## Main Tasks
|
|
114
98
|
|
|
115
|
-
###
|
|
99
|
+
### Step 2 — Local Research (Always Runs - Parallel)
|
|
116
100
|
|
|
117
101
|
<thinking>
|
|
118
102
|
First, I need to understand the project's conventions, existing patterns, and any documented learnings. This is fast and local - it informs whether external research is needed.
|
|
@@ -123,17 +107,19 @@ Run these agents **in parallel** to gather local context:
|
|
|
123
107
|
- Task repo-research-analyst(feature_description)
|
|
124
108
|
- Task learnings-researcher(feature_description)
|
|
125
109
|
|
|
110
|
+
Also read the Skill Index from `AGENTS.md` directly — capture which skills are available and their trigger conditions. This is a read-and-hold step; you will assign skills to tasks in Step 6.
|
|
111
|
+
|
|
126
112
|
**What to look for:**
|
|
127
113
|
|
|
128
114
|
- **Repo research:** existing patterns, AGENTS.md guidance, technology familiarity, pattern consistency
|
|
129
|
-
- Also consider repo-level guidance files such as `AGENTS.md`.
|
|
130
115
|
- **Learnings:** documented solutions in `docs/solutions/` that might apply (gotchas, patterns, lessons learned)
|
|
116
|
+
- **Skill Index:** available skills, their purpose, and when to apply them
|
|
131
117
|
|
|
132
118
|
These findings inform the next step.
|
|
133
119
|
|
|
134
|
-
###
|
|
120
|
+
### Step 3 — Planning Fidelity + Confidence + Research Mode (REQUIRED)
|
|
135
121
|
|
|
136
|
-
After Step
|
|
122
|
+
After Step 1 (Idea Refinement) and Step 2 (Local Research), you MUST choose planning fidelity and confidence, then decide whether to run external research.
|
|
137
123
|
|
|
138
124
|
#### Fidelity
|
|
139
125
|
|
|
@@ -178,7 +164,7 @@ If risky work is detected:
|
|
|
178
164
|
|
|
179
165
|
- Spike evaluation is mandatory.
|
|
180
166
|
- Declare `spikes_needed: yes|no`.
|
|
181
|
-
- If `spikes_needed: yes`, include explicit Spike Candidates with upfront dependency and priority modeling (see Step
|
|
167
|
+
- If `spikes_needed: yes`, include explicit Spike Candidates with upfront dependency and priority modeling (see Step 11).
|
|
182
168
|
- If `spikes_needed: no`, include a short rationale + risk mitigation note explaining why direct implementation is safe.
|
|
183
169
|
|
|
184
170
|
#### Research Mode
|
|
@@ -193,7 +179,7 @@ Baseline policy (by fidelity):
|
|
|
193
179
|
|
|
194
180
|
Override: high-risk topics always require external research, even if the user prefers speed.
|
|
195
181
|
|
|
196
|
-
**Required sections by fidelity** (ensure the chosen template includes these; see Step
|
|
182
|
+
**Required sections by fidelity** (ensure the chosen template includes these; see Step 12):
|
|
197
183
|
|
|
198
184
|
- **Low**: problem, constraints, acceptance criteria, implementation outline, verification checklist
|
|
199
185
|
- **Medium**: all Low + alternatives/tradeoffs, dependency/risk table, rollout notes, observability/test notes
|
|
@@ -216,18 +202,18 @@ Research mode: local only | local + external
|
|
|
216
202
|
Open questions: none | <list>
|
|
217
203
|
```
|
|
218
204
|
|
|
219
|
-
**When Open questions is not "none":** You MUST materialize them in the plan body as actionable items (see Step
|
|
205
|
+
**When Open questions is not "none":** You MUST materialize them in the plan body as actionable items (see Step 9). If an unknown blocks implementation feasibility, prefer **Spike Candidates**. If confidence is `Low`, the plan MUST include at least one checkbox under Discussion Points or Spike Candidates so `/workflow:work` can create pending todos and triage can resolve them.
|
|
220
206
|
|
|
221
|
-
###
|
|
207
|
+
### Step 4 — External Research (Conditional)
|
|
222
208
|
|
|
223
|
-
Run external research when Step
|
|
209
|
+
Run external research when Step 3 selected `local + external`.
|
|
224
210
|
|
|
225
211
|
Run these agents in parallel:
|
|
226
212
|
|
|
227
213
|
- Task best-practices-researcher(feature_description)
|
|
228
214
|
- Task framework-docs-researcher(feature_description)
|
|
229
215
|
|
|
230
|
-
###
|
|
216
|
+
### Step 5 — Git History Research (Conditional)
|
|
231
217
|
|
|
232
218
|
Use git history research when historical context is likely to change the plan.
|
|
233
219
|
|
|
@@ -241,7 +227,7 @@ If selected, run:
|
|
|
241
227
|
|
|
242
228
|
- Task git-history-analyzer(feature_description)
|
|
243
229
|
|
|
244
|
-
###
|
|
230
|
+
### Step 6 — Consolidate Research
|
|
245
231
|
|
|
246
232
|
After all research steps complete, consolidate findings:
|
|
247
233
|
|
|
@@ -250,10 +236,11 @@ After all research steps complete, consolidate findings:
|
|
|
250
236
|
- Note external documentation URLs and best practices (if external research was done)
|
|
251
237
|
- List related issues or PRs discovered
|
|
252
238
|
- Capture AGENTS.md conventions
|
|
239
|
+
- **Annotate skill assignments:** for each planned implementation phase or task, identify the relevant skills from the Skill Index. Record these as `required_skills` per phase/task — they will be embedded in the plan and consumed by `/workflow:work` when delegating to subagents.
|
|
253
240
|
|
|
254
241
|
**Optional validation:** Briefly summarize findings and ask if anything looks off or missing before proceeding to planning.
|
|
255
242
|
|
|
256
|
-
###
|
|
243
|
+
### Step 7 — SpecFlow Analysis (by fidelity)
|
|
257
244
|
|
|
258
245
|
Run flow/gap analysis to surface missing requirements before locking structure:
|
|
259
246
|
|
|
@@ -261,9 +248,11 @@ Run flow/gap analysis to surface missing requirements before locking structure:
|
|
|
261
248
|
- **Medium fidelity:** recommended
|
|
262
249
|
- **High fidelity:** required
|
|
263
250
|
|
|
264
|
-
|
|
251
|
+
**Dispatch subagent:** Task spec-flow-analyzer(feature_description, research_findings)
|
|
252
|
+
|
|
253
|
+
**Parent review:** Once findings are returned, assess whether gaps and edge cases are adequately surfaced. If coverage is insufficient or a critical flow was missed, re-dispatch with refined context before locking structure. Incorporate confirmed gaps into the upcoming issue structure and acceptance criteria.
|
|
265
254
|
|
|
266
|
-
###
|
|
255
|
+
### Step 8 — Issue Planning & Structure
|
|
267
256
|
|
|
268
257
|
<thinking>
|
|
269
258
|
Think like a product manager - what would make this issue clear and actionable? Consider multiple perspectives
|
|
@@ -289,7 +278,7 @@ Think like a product manager - what would make this issue clear and actionable?
|
|
|
289
278
|
- [ ] Gather supporting materials (error logs, screenshots, design mockups)
|
|
290
279
|
- [ ] Prepare code examples or reproduction steps if applicable, name the mock filenames in the lists
|
|
291
280
|
|
|
292
|
-
###
|
|
281
|
+
### Step 9 — Solution Scope Contract (REQUIRED for all plans)
|
|
293
282
|
|
|
294
283
|
Every plan MUST include an explicit scope contract so `/workflow:work` can enforce intent.
|
|
295
284
|
|
|
@@ -310,7 +299,7 @@ Placement:
|
|
|
310
299
|
- Put `solution_scope` in frontmatter.
|
|
311
300
|
- Put `completion_expectation` and `non_goals` in a dedicated section (recommended: `## Scope Contract`) in the plan body.
|
|
312
301
|
|
|
313
|
-
###
|
|
302
|
+
### Step 10 — Agentic Access & Validation Contract (REQUIRED for all plans)
|
|
314
303
|
|
|
315
304
|
Every plan MUST include an explicit contract describing how an agent will execute and verify the work without hidden assumptions.
|
|
316
305
|
|
|
@@ -333,16 +322,9 @@ Placement:
|
|
|
333
322
|
- Add a dedicated section in the plan body: `## Agentic Access & Validation Contract`.
|
|
334
323
|
- Reference this section from implementation phases/todos so `/workflow:work` can enforce it directly.
|
|
335
324
|
|
|
336
|
-
###
|
|
337
|
-
|
|
338
|
-
If SpecFlow was run in Step 1.7:
|
|
339
|
-
|
|
340
|
-
- [ ] Review SpecFlow analysis results
|
|
341
|
-
- [ ] Ensure any identified gaps or edge cases are reflected in the issue structure and acceptance criteria
|
|
342
|
-
|
|
343
|
-
### 3.5. Discussion Points & Spike Candidates
|
|
325
|
+
### Step 11 — Discussion Points & Spike Candidates
|
|
344
326
|
|
|
345
|
-
When you declared Open questions in Step
|
|
327
|
+
When you declared Open questions in Step 3 (other than "none"), and/or when risky-work spike evaluation requires spikes, the plan file MUST include one or both sections below with checkboxes so `/workflow:work` and `file-todos` can create pending todos for triage:
|
|
346
328
|
|
|
347
329
|
- **## Discussion Points (resolve/decide)** — Decisions to make (no code). Use `- [ ]` items (e.g. "Decide: X or Y?", "Confirm constraint Z").
|
|
348
330
|
- **## Spike Candidates (timeboxed)** — Timeboxed investigations to de-risk. Use `- [ ] Spike: <short description>` items.
|
|
@@ -379,7 +361,7 @@ Example Spike Candidate:
|
|
|
379
361
|
- Parallelizable: yes
|
|
380
362
|
```
|
|
381
363
|
|
|
382
|
-
###
|
|
364
|
+
### Step 12 — Choose Implementation Detail Level
|
|
383
365
|
|
|
384
366
|
Select how comprehensive you want the issue to be. Fidelity should drive this choice.
|
|
385
367
|
|
|
@@ -467,6 +449,13 @@ solution_scope: [partial_fix|full_remediation|migration]
|
|
|
467
449
|
- lint: [command or "ask once if not configured"]
|
|
468
450
|
- typecheck: [command or "ask once if not configured"]
|
|
469
451
|
|
|
452
|
+
## Implementation Tasks
|
|
453
|
+
|
|
454
|
+
- [ ] Task: [description]
|
|
455
|
+
- required_skills: [skill1, skill2]
|
|
456
|
+
- [ ] Task: [description]
|
|
457
|
+
- required_skills: [skill1]
|
|
458
|
+
|
|
470
459
|
## References
|
|
471
460
|
|
|
472
461
|
- Related issue: #[issue_number]
|
|
@@ -557,6 +546,13 @@ solution_scope: [partial_fix|full_remediation|migration]
|
|
|
557
546
|
|
|
558
547
|
[What to monitor; how to test and validate]
|
|
559
548
|
|
|
549
|
+
## Implementation Tasks
|
|
550
|
+
|
|
551
|
+
- [ ] Task: [description]
|
|
552
|
+
- required_skills: [skill1, skill2]
|
|
553
|
+
- [ ] Task: [description]
|
|
554
|
+
- required_skills: [skill1]
|
|
555
|
+
|
|
560
556
|
## Agentic Access & Validation Contract
|
|
561
557
|
|
|
562
558
|
- Access Preconditions: [services/fixtures/env needed]
|
|
@@ -636,18 +632,21 @@ solution_scope: [partial_fix|full_remediation|migration]
|
|
|
636
632
|
#### Phase 1: [Foundation]
|
|
637
633
|
|
|
638
634
|
- Tasks and deliverables
|
|
635
|
+
- required_skills: [skill1, skill2]
|
|
639
636
|
- Success criteria
|
|
640
637
|
- Estimated effort
|
|
641
638
|
|
|
642
639
|
#### Phase 2: [Core Implementation]
|
|
643
640
|
|
|
644
641
|
- Tasks and deliverables
|
|
642
|
+
- required_skills: [skill1, skill2]
|
|
645
643
|
- Success criteria
|
|
646
644
|
- Estimated effort
|
|
647
645
|
|
|
648
646
|
#### Phase 3: [Polish & Optimization]
|
|
649
647
|
|
|
650
648
|
- Tasks and deliverables
|
|
649
|
+
- required_skills: [skill1]
|
|
651
650
|
- Success criteria
|
|
652
651
|
- Estimated effort
|
|
653
652
|
|
|
@@ -749,7 +748,7 @@ solution_scope: [partial_fix|full_remediation|migration]
|
|
|
749
748
|
- Design documents: [links]
|
|
750
749
|
```
|
|
751
750
|
|
|
752
|
-
###
|
|
751
|
+
### Step 13 — Issue Creation & Formatting
|
|
753
752
|
|
|
754
753
|
<thinking>
|
|
755
754
|
Apply best practices for clarity and actionability, making the issue easy to scan and understand
|
|
@@ -793,15 +792,7 @@ Apply best practices for clarity and actionability, making the issue easy to sca
|
|
|
793
792
|
</details>
|
|
794
793
|
````
|
|
795
794
|
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
- [ ] Account for accelerated development with AI pair programming
|
|
799
|
-
- [ ] Include prompts or instructions that worked well during research
|
|
800
|
-
- [ ] Note which AI tools were used for initial exploration (Claude, Copilot, etc.)
|
|
801
|
-
- [ ] Emphasize comprehensive testing given rapid implementation
|
|
802
|
-
- [ ] Document any AI-generated code that needs human review
|
|
803
|
-
|
|
804
|
-
### 6. Final Review & Submission
|
|
795
|
+
### Step 14 — Final Review & Submission
|
|
805
796
|
|
|
806
797
|
**Pre-submission Checklist:**
|
|
807
798
|
|
|
@@ -829,7 +820,7 @@ mkdir -p docs/plans/
|
|
|
829
820
|
|
|
830
821
|
Write the complete plan file to `docs/plans/YYYY-MM-DD-<type>-<slug>-plan.md`. This step is mandatory and cannot be skipped — even when running as part of LFG/SLFG or other automated pipelines.
|
|
831
822
|
|
|
832
|
-
**When Open questions were declared (Step
|
|
823
|
+
**When Open questions were declared (Step 3):** The written plan MUST include at least one of: `## Discussion Points (resolve/decide)` with `- [ ]` items, or `## Spike Candidates (timeboxed)` with `- [ ] Spike: ...` items. If confidence is `Low`, at least one checkbox is required in one of these sections. This ensures `file-todos` can create pending discussion/spike todos for `/workflow:triage`.
|
|
833
824
|
|
|
834
825
|
**When risky-work Spike Evaluation declared `spikes_needed: yes`:** The written plan MUST include `## Spike Candidates (timeboxed)` with at least one spike checkbox and required per-candidate metadata (`Initial priority`, `Depends on`, `Unblocks`, `Timebox`, `Deliverable`, `Parallelizable`) so ordering can be defined in plan, confirmed in triage, and enforced in work.
|
|
835
826
|
|
|
@@ -839,7 +830,7 @@ Confirm: "Plan written to docs/plans/[filename]"
|
|
|
839
830
|
|
|
840
831
|
**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.
|
|
841
832
|
|
|
842
|
-
**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
|
|
833
|
+
**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 AskUserQuestion 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.
|
|
843
834
|
|
|
844
835
|
**Required in plan frontmatter:** Add these fields to the plan file:
|
|
845
836
|
|
|
@@ -849,7 +840,7 @@ Confirm: "Plan written to docs/plans/[filename]"
|
|
|
849
840
|
|
|
850
841
|
## Output Format
|
|
851
842
|
|
|
852
|
-
**Filename:** Use the filename from Step
|
|
843
|
+
**Filename:** Use the filename from Step 8 (Title & Categorization): `YYYY-MM-DD-<type>-<slug>-plan.md` with type and slug from the single contract.
|
|
853
844
|
|
|
854
845
|
```
|
|
855
846
|
docs/plans/YYYY-MM-DD-<type>-<slug>-plan.md
|
|
@@ -869,35 +860,21 @@ Examples:
|
|
|
869
860
|
|
|
870
861
|
Technical review (above) is required for Medium/High fidelity and must be run via subagent when available.
|
|
871
862
|
|
|
872
|
-
After writing the plan file, use **
|
|
873
|
-
|
|
874
|
-
**Question:** "Plan ready at `docs/plans/YYYY-MM-DD-<type>-<slug>-plan.md`. What would you like to do next?"
|
|
875
|
-
|
|
876
|
-
**Options:**
|
|
877
|
-
|
|
878
|
-
1. **Open plan in editor** - Open the plan file for review
|
|
879
|
-
2. **Review and refine** - Improve the document through structured self-review
|
|
880
|
-
3. **Start `/workflow:work`** - Execute this plan (includes default triage gate)
|
|
881
|
-
4. **Start `/workflow:triage`** - Manually curate/prioritize queue before execution
|
|
882
|
-
5. **Create Issue** - Create issue in project tracker (GitHub/Linear)
|
|
883
|
-
6. **Other** - Adjust the plan
|
|
884
|
-
|
|
885
|
-
Optional (only if those workflows exist in this repo):
|
|
863
|
+
After writing the plan file, use **AskUserQuestion** to ask: "Plan ready at `docs/plans/YYYY-MM-DD-<type>-<slug>-plan.md`. What would you like to do next?"
|
|
886
864
|
|
|
887
|
-
|
|
888
|
-
- **Technical review** - Load `technical-review` skill for technical correctness (no edits). Pair with `document-review` to apply any agreed changes to the plan.
|
|
865
|
+
**Options and routing:**
|
|
889
866
|
|
|
890
|
-
|
|
867
|
+
1. **Open plan in editor** → Navigate to `docs/plans/<plan_filename>.md`
|
|
868
|
+
2. **Review and refine** → Load `document-review` skill
|
|
869
|
+
3. **Start `/workflow:work`** → Run `/workflow:work <plan_path>` (includes triage gate)
|
|
870
|
+
4. **Start `/workflow:triage`** → Ensure plan todos exist (create via `file-todos` if needed), then run `/workflow:triage` to approve the ready queue
|
|
871
|
+
5. **Create Issue** → See "Issue Creation" section below
|
|
872
|
+
6. **Other** → Accept free text for rework or specific changes
|
|
891
873
|
|
|
892
|
-
|
|
893
|
-
- **Review and refine** → Load `document-review` skill.
|
|
894
|
-
- **Start `/workflow:work`** → Run `/workflow:work <plan_path>`; `/workflow:work` must run triage before implementation.
|
|
895
|
-
- **Start `/workflow:triage`** → Ensure plan todos exist (create via `file-todos` if needed), then run `/workflow:triage` to approve priority/dependencies and the executable ready queue.
|
|
896
|
-
- **Technical review** → Load `technical-review` skill; then if user agrees to changes, load `document-review` to update the plan.
|
|
897
|
-
- **Create Issue** → See "Issue Creation" section below
|
|
898
|
-
- **Other** → Accept free text for rework or specific changes
|
|
874
|
+
Optional (only if present in this repo):
|
|
899
875
|
|
|
900
|
-
**
|
|
876
|
+
- **Technical review** → Load `technical-review` skill; if user agrees to changes, load `document-review` to update the plan
|
|
877
|
+
- `/deepen-plan` → Enhance each section with parallel research agents (optional, not required)
|
|
901
878
|
|
|
902
879
|
Loop back to options after changes until user selects `/workflow:work`, `/workflow:triage`, or ends the session.
|
|
903
880
|
|
|
@@ -912,7 +889,7 @@ When user selects "Create Issue", detect their project tracker from repo guidanc
|
|
|
912
889
|
|
|
913
890
|
2. **If GitHub:**
|
|
914
891
|
|
|
915
|
-
Use **type** and **title** from Step
|
|
892
|
+
Use **type** and **title** from Step 8 (title has no prefix). Compose issue title as `"<type>: <title>"` (e.g., `feat: User authentication flow`).
|
|
916
893
|
|
|
917
894
|
If the `gh` CLI is available, create the issue via:
|
|
918
895
|
|
|
@@ -924,7 +901,7 @@ When user selects "Create Issue", detect their project tracker from repo guidanc
|
|
|
924
901
|
|
|
925
902
|
3. **If Linear:**
|
|
926
903
|
|
|
927
|
-
Use **type** and **title** from Step
|
|
904
|
+
Use **type** and **title** from Step 8. For Linear, use either the full title or `"<type>: <title>"` per team convention.
|
|
928
905
|
|
|
929
906
|
If the `linear` CLI is available, create the issue via:
|
|
930
907
|
|