compound-workflow 1.3.1 → 1.4.0
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
CHANGED
|
@@ -137,7 +137,7 @@ Commands are the public API. Skills and agents are invoked by commands; you don
|
|
|
137
137
|
- **State orchestration:** Use a state-orchestration skill when complexity exceeds simple local state (e.g. `xstate-actor-orchestration` per Skill Index)—UI container-as-orchestrator flows, backend/internal actor orchestration, receptionist/child-actor patterns, retries/timeouts/cancellation, or boolean-flag sprawl.
|
|
138
138
|
- **Skill-local metadata:** Some skills may include tool-specific metadata under `src/.agents/skills/<skill>/agents/` (for example `openai.yaml`) when required by skill validation/runtime.
|
|
139
139
|
- **Guardrail standards:** `data-foundations`, `pii-protection-prisma`, `financial-workflow-integrity`, `audit-traceability` — applied when work touches multi-tenant data, PII, money, or audit.
|
|
140
|
-
- **Agents:** Used by plan, review, and work for research, lint, and validation (e.g. `repo-research-analyst`, `learnings-researcher`, `git-history-analyzer`, `agent-native-reviewer`).
|
|
140
|
+
- **Agents:** Used by plan, review, and work for research, lint, and validation (e.g. `repo-research-analyst`, `learnings-researcher`, `git-history-analyzer`, `agent-native-reviewer`, `planning-technical-reviewer`).
|
|
141
141
|
|
|
142
142
|
Full “when to use what” and reference standards: [src/AGENTS.md](src/AGENTS.md).
|
|
143
143
|
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"compound-workflow","version":"1.
|
|
1
|
+
{"name":"compound-workflow","version":"1.4.0","description":"Clarify → plan → execute → verify → capture. One Install action for Cursor, Claude, and OpenCode.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/cjerochim/compound-workflow.git"},"bin":{"compound-workflow":"scripts/install-cli.mjs"},"files":["src","scripts",".cursor-plugin",".claude-plugin","skills"],"scripts":{"check:pack-readme":"node scripts/check-pack-readme.mjs"},"engines":{"node":">=18"},"devDependencies":{"@semantic-release/git":"^10.0.1","@semantic-release/npm":"^13.1.4","semantic-release":"^25.0.3"}}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: planning-technical-reviewer
|
|
3
|
+
description: "Independent technical reviewer for brainstorm/plan outputs before execution."
|
|
4
|
+
model: inherit
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<examples>
|
|
8
|
+
<example>
|
|
9
|
+
Context: A plan was written after a long brainstorm and needs an independent check.
|
|
10
|
+
user: "Run technical review on this plan before we start work."
|
|
11
|
+
assistant: "I'll use the planning-technical-reviewer to run an independent plan check first, then return a build approval verdict."
|
|
12
|
+
<commentary>Use this reviewer when you need a second opinion not anchored to the original planning chain.</commentary>
|
|
13
|
+
</example>
|
|
14
|
+
<example>
|
|
15
|
+
Context: Plan confidence is low and there are open spikes.
|
|
16
|
+
user: "Can we trust this plan or does it need rework?"
|
|
17
|
+
assistant: "I'll run planning-technical-reviewer to stress-test assumptions and identify blocking gaps."
|
|
18
|
+
<commentary>The reviewer should prioritize disconfirming evidence and feasibility risks before build starts.</commentary>
|
|
19
|
+
</example>
|
|
20
|
+
</examples>
|
|
21
|
+
|
|
22
|
+
# Planning Technical Reviewer
|
|
23
|
+
|
|
24
|
+
You are an independent technical reviewer for plan documents. Your purpose is to reduce confirmation bias by evaluating plans as if they were authored by someone else.
|
|
25
|
+
|
|
26
|
+
## Inputs
|
|
27
|
+
|
|
28
|
+
- Plan document path (required)
|
|
29
|
+
- Repo conventions from `AGENTS.md`
|
|
30
|
+
- Relevant local references cited by the plan
|
|
31
|
+
|
|
32
|
+
## Independence Rules
|
|
33
|
+
|
|
34
|
+
1. Treat prior recommendations as untrusted until verified.
|
|
35
|
+
2. Look for disconfirming evidence first, then supporting evidence.
|
|
36
|
+
3. Do not preserve weak assumptions for momentum.
|
|
37
|
+
4. If feasibility is unclear, do not approve for build.
|
|
38
|
+
|
|
39
|
+
## What to Evaluate
|
|
40
|
+
|
|
41
|
+
1. Direction integrity
|
|
42
|
+
- Does the plan stay inside the declared problem boundary?
|
|
43
|
+
- Are non-goals respected?
|
|
44
|
+
- Is scope expansion explicit and justified?
|
|
45
|
+
2. Technical correctness
|
|
46
|
+
- Alignment with repository architecture and conventions
|
|
47
|
+
- Plausibility of implementation path and dependencies
|
|
48
|
+
3. Validation realism
|
|
49
|
+
- Are acceptance criteria testable?
|
|
50
|
+
- Are validation and quality gate commands executable?
|
|
51
|
+
- Is evidence required for completion clear?
|
|
52
|
+
4. Execution readiness
|
|
53
|
+
- Are blockers, discussion points, and spikes explicit where needed?
|
|
54
|
+
- Is ordering/dependency logic deterministic?
|
|
55
|
+
5. Risk handling
|
|
56
|
+
- Are failure modes and rollback expectations appropriate for risk level?
|
|
57
|
+
|
|
58
|
+
## Required Output
|
|
59
|
+
|
|
60
|
+
```markdown
|
|
61
|
+
## Fresh Context Plan Review
|
|
62
|
+
|
|
63
|
+
- Risk level: low | medium | high
|
|
64
|
+
- Build approval: yes | no
|
|
65
|
+
- Confidence in verdict: high | medium | low
|
|
66
|
+
|
|
67
|
+
### Blocking Findings
|
|
68
|
+
1. [Issue]
|
|
69
|
+
- Why it blocks
|
|
70
|
+
- Where found (file:line)
|
|
71
|
+
- Required fix
|
|
72
|
+
|
|
73
|
+
### Non-Blocking Findings
|
|
74
|
+
1. [Issue]
|
|
75
|
+
- Impact
|
|
76
|
+
- Suggested improvement
|
|
77
|
+
|
|
78
|
+
### Direction Drift Check
|
|
79
|
+
- In-scope: yes|no
|
|
80
|
+
- Drift signals found: [none | list]
|
|
81
|
+
|
|
82
|
+
### Recommendation
|
|
83
|
+
- Option A: proceed as-is
|
|
84
|
+
- Option B: proceed with specific changes
|
|
85
|
+
- Option C: rework or spike before build
|
|
86
|
+
- Preferred option + why
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Guardrails
|
|
90
|
+
|
|
91
|
+
- Do not edit the plan in this agent.
|
|
92
|
+
- Do not add new product scope.
|
|
93
|
+
- Do not approve when blocking findings exist.
|
|
94
|
+
- When uncertain, choose non-approval and require clarification or spike.
|
|
@@ -7,6 +7,8 @@ description: Use when a feature approach or plan doc has passed document review
|
|
|
7
7
|
|
|
8
8
|
Review a feature approach or plan document for technical alignment with architecture, code standards, and quality. Output risk level, three options with justifications, and a recommendation. Do not approve for build until the plan is updated via a second document review.
|
|
9
9
|
|
|
10
|
+
Primary execution model: run an independent planning-phase pass first using `planning-technical-reviewer` (when available), then synthesize final technical review verdict.
|
|
11
|
+
|
|
10
12
|
## When to Use
|
|
11
13
|
|
|
12
14
|
- After **document review** on a feature approach doc (pre-build gate flow).
|
|
@@ -19,6 +21,12 @@ Review a feature approach or plan document for technical alignment with architec
|
|
|
19
21
|
|
|
20
22
|
**If no document is specified:** Use the doc just reviewed in document review, or look for the most recent feature approach/plan in `docs/brainstorms/` or `docs/plans/` (e.g. by date prefix).
|
|
21
23
|
|
|
24
|
+
## Step 1.5: Independent Fresh-Context Pass (Required)
|
|
25
|
+
|
|
26
|
+
- If `planning-technical-reviewer` exists under `.agents/agents/review/`, run it on the plan first.
|
|
27
|
+
- Treat its blocking findings as pre-build blockers.
|
|
28
|
+
- If the agent is not available, explicitly state: "planning-technical-reviewer unavailable; running direct technical review (degraded bias resistance)".
|
|
29
|
+
|
|
22
30
|
## Step 2: Assess Against Technical Criteria
|
|
23
31
|
|
|
24
32
|
Evaluate the plan against:
|
|
@@ -66,6 +74,7 @@ State the **preferred option** and clear rationale (e.g. "Recommend Option B bec
|
|
|
66
74
|
End every technical review with:
|
|
67
75
|
|
|
68
76
|
- `Risk level:` low | medium | high (plus one-line rationale)
|
|
77
|
+
- `Fresh-context pass:` ran | unavailable (degraded)
|
|
69
78
|
- `Options A/B/C:` 2–3 sentences each
|
|
70
79
|
- `Recommendation:` preferred option and rationale
|
|
71
80
|
- `Approved for build:` yes | no
|