compound-workflow 0.1.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/.claude-plugin/marketplace.json +11 -0
- package/.claude-plugin/plugin.json +12 -0
- package/.cursor-plugin/plugin.json +12 -0
- package/README.md +155 -0
- package/package.json +22 -0
- package/scripts/install-cli.mjs +313 -0
- package/scripts/sync-into-repo.sh +103 -0
- package/src/.agents/agents/research/best-practices-researcher.md +132 -0
- package/src/.agents/agents/research/framework-docs-researcher.md +134 -0
- package/src/.agents/agents/research/git-history-analyzer.md +62 -0
- package/src/.agents/agents/research/learnings-researcher.md +288 -0
- package/src/.agents/agents/research/repo-research-analyst.md +146 -0
- package/src/.agents/agents/review/agent-native-reviewer.md +299 -0
- package/src/.agents/agents/workflow/bug-reproduction-validator.md +87 -0
- package/src/.agents/agents/workflow/lint.md +20 -0
- package/src/.agents/agents/workflow/spec-flow-analyzer.md +149 -0
- package/src/.agents/commands/assess.md +60 -0
- package/src/.agents/commands/install.md +53 -0
- package/src/.agents/commands/metrics.md +59 -0
- package/src/.agents/commands/setup.md +9 -0
- package/src/.agents/commands/sync.md +9 -0
- package/src/.agents/commands/test-browser.md +393 -0
- package/src/.agents/commands/workflow/brainstorm.md +252 -0
- package/src/.agents/commands/workflow/compound.md +142 -0
- package/src/.agents/commands/workflow/plan.md +737 -0
- package/src/.agents/commands/workflow/review-v2.md +148 -0
- package/src/.agents/commands/workflow/review.md +110 -0
- package/src/.agents/commands/workflow/triage.md +54 -0
- package/src/.agents/commands/workflow/work.md +439 -0
- package/src/.agents/references/README.md +12 -0
- package/src/.agents/references/standards/README.md +9 -0
- package/src/.agents/scripts/self-check.mjs +227 -0
- package/src/.agents/scripts/sync-opencode.mjs +355 -0
- package/src/.agents/skills/agent-browser/SKILL.md +223 -0
- package/src/.agents/skills/audit-traceability/SKILL.md +260 -0
- package/src/.agents/skills/brainstorming/SKILL.md +250 -0
- package/src/.agents/skills/compound-docs/SKILL.md +533 -0
- package/src/.agents/skills/compound-docs/assets/critical-pattern-template.md +34 -0
- package/src/.agents/skills/compound-docs/assets/resolution-template.md +97 -0
- package/src/.agents/skills/compound-docs/references/yaml-schema.md +87 -0
- package/src/.agents/skills/compound-docs/schema.project.yaml +18 -0
- package/src/.agents/skills/compound-docs/schema.yaml +119 -0
- package/src/.agents/skills/data-foundations/SKILL.md +185 -0
- package/src/.agents/skills/document-review/SKILL.md +108 -0
- package/src/.agents/skills/file-todos/SKILL.md +177 -0
- package/src/.agents/skills/file-todos/assets/todo-template.md +106 -0
- package/src/.agents/skills/financial-workflow-integrity/SKILL.md +423 -0
- package/src/.agents/skills/git-worktree/SKILL.md +268 -0
- package/src/.agents/skills/pii-protection-prisma/SKILL.md +629 -0
- package/src/.agents/skills/process-metrics/SKILL.md +46 -0
- package/src/.agents/skills/process-metrics/assets/daily-template.md +37 -0
- package/src/.agents/skills/process-metrics/assets/monthly-template.md +21 -0
- package/src/.agents/skills/process-metrics/assets/weekly-template.md +25 -0
- package/src/.agents/skills/technical-review/SKILL.md +83 -0
- package/src/AGENTS.md +213 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: audit-traceability
|
|
3
|
+
description: Append-only audit logging with actor attribution and correlation IDs for regulated/financial workflows (Prisma + Postgres).
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Audit & Traceability Standard (Prisma + Postgres)
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
Define an audit system that supports forensic reconstruction of actions, suitable for regulated/financial products.
|
|
11
|
+
|
|
12
|
+
This skill focuses on:
|
|
13
|
+
|
|
14
|
+
- immutable append-only audit logs
|
|
15
|
+
- actor attribution
|
|
16
|
+
- correlation of events across services
|
|
17
|
+
- safe handling of sensitive information
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Non-Negotiable Rules
|
|
22
|
+
|
|
23
|
+
- MUST use append-only audit tables (no updates/deletes).
|
|
24
|
+
- MUST record actor type and actor identity (when available).
|
|
25
|
+
- MUST include correlation identifiers (request id / trace id / workflow run id).
|
|
26
|
+
- MUST NOT store plaintext PII in audit logs.
|
|
27
|
+
- MUST capture state transitions and decisions.
|
|
28
|
+
- MUST ensure audit writes happen in the same transaction as the business change when feasible.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Data Model
|
|
33
|
+
|
|
34
|
+
### application_audit_log (baseline)
|
|
35
|
+
|
|
36
|
+
```sql
|
|
37
|
+
CREATE TYPE audit_actor_type AS ENUM ('USER','SYSTEM','ADMIN','WORKFLOW');
|
|
38
|
+
|
|
39
|
+
CREATE TABLE application_audit_log (
|
|
40
|
+
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
41
|
+
application_id uuid NOT NULL REFERENCES applications(id) ON DELETE CASCADE,
|
|
42
|
+
|
|
43
|
+
event_type text NOT NULL,
|
|
44
|
+
actor_type audit_actor_type NOT NULL,
|
|
45
|
+
actor_id text NULL,
|
|
46
|
+
|
|
47
|
+
correlation_id text NULL,
|
|
48
|
+
request_ip inet NULL,
|
|
49
|
+
user_agent text NULL,
|
|
50
|
+
|
|
51
|
+
previous_state jsonb NULL,
|
|
52
|
+
new_state jsonb NULL,
|
|
53
|
+
metadata jsonb NOT NULL DEFAULT '{}'::jsonb,
|
|
54
|
+
|
|
55
|
+
created_at timestamptz NOT NULL DEFAULT now()
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
CREATE INDEX application_audit_app_idx ON application_audit_log(application_id);
|
|
59
|
+
CREATE INDEX application_audit_created_idx ON application_audit_log(created_at);
|
|
60
|
+
CREATE INDEX application_audit_event_idx ON application_audit_log(event_type);
|
|
61
|
+
CREATE INDEX application_audit_correlation_idx ON application_audit_log(correlation_id);
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Operational enforcement options (choose at least one):
|
|
65
|
+
|
|
66
|
+
- DB permissions: app role granted only INSERT/SELECT on audit tables
|
|
67
|
+
- triggers: forbid UPDATE/DELETE with a raising trigger
|
|
68
|
+
- schema separation: place audit tables in a dedicated schema with restricted roles
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Recommended `event_type` taxonomy
|
|
73
|
+
|
|
74
|
+
Keep it consistent and searchable:
|
|
75
|
+
|
|
76
|
+
- `APPLICATION_CREATED`
|
|
77
|
+
- `DRAFT_UPDATED`
|
|
78
|
+
- `SUBMITTED`
|
|
79
|
+
- `STATUS_CHANGED`
|
|
80
|
+
- `PII_UPDATED` (no plaintext)
|
|
81
|
+
- `REVIEW_APPROVED`
|
|
82
|
+
- `REVIEW_REJECTED`
|
|
83
|
+
- `PAYMENT_AUTHORIZED`
|
|
84
|
+
- `PAYMENT_CAPTURED`
|
|
85
|
+
- `NOTIFICATION_SENT`
|
|
86
|
+
- `ADMIN_VIEWED_PII` (if applicable)
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## What to Store (and What Not to)
|
|
91
|
+
|
|
92
|
+
### Allowed in `previous_state` / `new_state`
|
|
93
|
+
|
|
94
|
+
- status
|
|
95
|
+
- current step
|
|
96
|
+
- non-PII derived flags
|
|
97
|
+
- submission ids
|
|
98
|
+
- workflow run ids
|
|
99
|
+
- numeric amounts only if required and non-sensitive for your context
|
|
100
|
+
|
|
101
|
+
### MUST NOT store
|
|
102
|
+
|
|
103
|
+
- names, emails, addresses, DOB
|
|
104
|
+
- identity document numbers
|
|
105
|
+
- bank account numbers
|
|
106
|
+
- free-text user input likely to contain PII
|
|
107
|
+
|
|
108
|
+
Instead store:
|
|
109
|
+
|
|
110
|
+
- field names changed
|
|
111
|
+
- hashes (where necessary)
|
|
112
|
+
- references to secure stores
|
|
113
|
+
|
|
114
|
+
Example metadata for PII update:
|
|
115
|
+
|
|
116
|
+
```json
|
|
117
|
+
{
|
|
118
|
+
"fields_changed": ["address", "dob"],
|
|
119
|
+
"schema_version": 1,
|
|
120
|
+
"kek_key_id": "pii-kek-v4"
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Transactional Audit Pattern
|
|
127
|
+
|
|
128
|
+
### Rule
|
|
129
|
+
|
|
130
|
+
If you update business state, write the audit row in the same DB transaction when possible.
|
|
131
|
+
|
|
132
|
+
Pattern (conceptual):
|
|
133
|
+
|
|
134
|
+
1. Load previous state (minimal, non-PII)
|
|
135
|
+
2. Perform version-guarded update to business table
|
|
136
|
+
3. Insert audit row referencing previous/new state + metadata
|
|
137
|
+
|
|
138
|
+
This prevents "state changed but audit missing" scenarios.
|
|
139
|
+
|
|
140
|
+
If a change spans systems and cannot be fully transactional, emit an event/outbox entry and write a compensating audit record when the change is finalized.
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## Correlation IDs
|
|
145
|
+
|
|
146
|
+
### Minimum requirement
|
|
147
|
+
|
|
148
|
+
- Every inbound request has a `correlation_id` (UUID or equivalent).
|
|
149
|
+
- Propagate `correlation_id` across:
|
|
150
|
+
- workflow runs
|
|
151
|
+
- queue messages
|
|
152
|
+
- downstream calls
|
|
153
|
+
|
|
154
|
+
Store correlation id in audit logs and idempotency rows.
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Actor Attribution
|
|
159
|
+
|
|
160
|
+
### Standard actor model
|
|
161
|
+
|
|
162
|
+
- `USER`: authenticated end user
|
|
163
|
+
- `ADMIN`: internal staff with elevated privilege
|
|
164
|
+
- `SYSTEM`: background job/service
|
|
165
|
+
- `WORKFLOW`: orchestrator run id
|
|
166
|
+
|
|
167
|
+
Always include `actor_type`. Include `actor_id` where available.
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Privileged Access Auditing (PII Views)
|
|
172
|
+
|
|
173
|
+
If you allow staff/support access, log `ADMIN_VIEWED_PII` with:
|
|
174
|
+
|
|
175
|
+
- admin id
|
|
176
|
+
- reason code / ticket id
|
|
177
|
+
- application id
|
|
178
|
+
- correlation id
|
|
179
|
+
|
|
180
|
+
This is critical for regulated contexts.
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Retention & Redaction
|
|
185
|
+
|
|
186
|
+
Retention is policy-dependent:
|
|
187
|
+
|
|
188
|
+
- audit logs are often retained long-term
|
|
189
|
+
- PII may be deleted/redacted earlier
|
|
190
|
+
|
|
191
|
+
Design so you can delete/redact PII while keeping audit entries (audit has no plaintext PII).
|
|
192
|
+
|
|
193
|
+
---
|
|
194
|
+
|
|
195
|
+
## Failure Modes
|
|
196
|
+
|
|
197
|
+
### Audit write fails
|
|
198
|
+
|
|
199
|
+
For critical actions:
|
|
200
|
+
|
|
201
|
+
- fail closed (do not change business state without audit)
|
|
202
|
+
|
|
203
|
+
For non-critical actions:
|
|
204
|
+
|
|
205
|
+
- queue an audit repair job
|
|
206
|
+
- still emit an incident/security event (no PII)
|
|
207
|
+
|
|
208
|
+
Define which events are critical.
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Prisma Models (Baseline)
|
|
213
|
+
|
|
214
|
+
```prisma
|
|
215
|
+
enum AuditActorType {
|
|
216
|
+
USER
|
|
217
|
+
SYSTEM
|
|
218
|
+
ADMIN
|
|
219
|
+
WORKFLOW
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
model ApplicationAuditLog {
|
|
223
|
+
id String @id @default(uuid()) @db.Uuid
|
|
224
|
+
applicationId String @db.Uuid
|
|
225
|
+
|
|
226
|
+
eventType String
|
|
227
|
+
actorType AuditActorType
|
|
228
|
+
actorId String?
|
|
229
|
+
|
|
230
|
+
correlationId String?
|
|
231
|
+
requestIp String? @db.Inet
|
|
232
|
+
userAgent String?
|
|
233
|
+
|
|
234
|
+
previousState Json?
|
|
235
|
+
newState Json?
|
|
236
|
+
metadata Json @default("{}")
|
|
237
|
+
|
|
238
|
+
createdAt DateTime @default(now())
|
|
239
|
+
|
|
240
|
+
@@index([applicationId])
|
|
241
|
+
@@index([createdAt])
|
|
242
|
+
@@index([eventType])
|
|
243
|
+
@@index([correlationId])
|
|
244
|
+
}
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## PR Review Checklist
|
|
250
|
+
|
|
251
|
+
- [ ] Audit row added for all state transitions.
|
|
252
|
+
- [ ] Audit row added for all approvals/decisions.
|
|
253
|
+
- [ ] No plaintext PII stored in audit.
|
|
254
|
+
- [ ] `correlation_id` propagated and persisted.
|
|
255
|
+
- [ ] Privileged access events audited (if applicable).
|
|
256
|
+
- [ ] Append-only is enforced (permissions and/or triggers).
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
End of Skill.
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorming
|
|
3
|
+
description: This skill should be used before implementing features, building components, or making changes. It guides exploring user intent, approaches, and design decisions before planning. Triggers on "let's brainstorm", "help me think through", "what should we build", "explore approaches", ambiguous feature requests, or when the user's request has multiple valid interpretations that need clarification.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Brainstorming
|
|
7
|
+
|
|
8
|
+
This skill provides detailed process knowledge for effective brainstorming sessions that clarify **WHAT** to build before diving into **HOW** to build it.
|
|
9
|
+
|
|
10
|
+
## When to Use This Skill
|
|
11
|
+
|
|
12
|
+
Brainstorming is valuable when:
|
|
13
|
+
|
|
14
|
+
- Requirements are unclear or ambiguous
|
|
15
|
+
- Multiple approaches could solve the problem
|
|
16
|
+
- Trade-offs need to be explored with the user
|
|
17
|
+
- The user hasn't fully articulated what they want
|
|
18
|
+
- The feature scope needs refinement
|
|
19
|
+
|
|
20
|
+
Brainstorming can be skipped when:
|
|
21
|
+
|
|
22
|
+
- Requirements are explicit and detailed
|
|
23
|
+
- The user knows exactly what they want
|
|
24
|
+
- The task is a straightforward bug fix or well-defined change
|
|
25
|
+
|
|
26
|
+
## Core Process
|
|
27
|
+
|
|
28
|
+
### Phase 0: Assess Requirement Clarity
|
|
29
|
+
|
|
30
|
+
Before diving into questions, assess whether brainstorming is needed.
|
|
31
|
+
|
|
32
|
+
**Signals that requirements are clear:**
|
|
33
|
+
|
|
34
|
+
- User provided specific acceptance criteria
|
|
35
|
+
- User referenced existing patterns to follow
|
|
36
|
+
- User described exact behavior expected
|
|
37
|
+
- Scope is constrained and well-defined
|
|
38
|
+
|
|
39
|
+
**Signals that brainstorming is needed:**
|
|
40
|
+
|
|
41
|
+
- User used vague terms ("make it better", "add something like")
|
|
42
|
+
- Multiple reasonable interpretations exist
|
|
43
|
+
- Trade-offs haven't been discussed
|
|
44
|
+
- User seems unsure about the approach
|
|
45
|
+
|
|
46
|
+
If requirements are clear, suggest: "Your requirements seem clear. Consider proceeding directly to planning or implementation."
|
|
47
|
+
|
|
48
|
+
### Phase 1: Understand the Idea
|
|
49
|
+
|
|
50
|
+
Default to **discussion-first**. Questions are a tool of last resort to unblock discussion, not the main loop.
|
|
51
|
+
|
|
52
|
+
**Default cadence (per iteration):**
|
|
53
|
+
|
|
54
|
+
1. **Synthesize current understanding** (2--4 bullets)
|
|
55
|
+
2. **Ask at most ONE high-leverage clarifying question** (only if needed)
|
|
56
|
+
3. **Surface tensions & unknowns** via 3--5 **discussion prompts** (not interrogation)
|
|
57
|
+
4. **Capture assumptions + tentative decisions** (bullets)
|
|
58
|
+
|
|
59
|
+
**Hard rules:**
|
|
60
|
+
|
|
61
|
+
- Ask **no more than one** clarifying question per iteration.
|
|
62
|
+
- Do **not** ask follow-up questions in the same turn.
|
|
63
|
+
- If ambiguity is blocking progress, ask **one** additional clarifying question max, then return to discussion prompts.
|
|
64
|
+
|
|
65
|
+
**First response template (copy/paste shape):**
|
|
66
|
+
|
|
67
|
+
```markdown
|
|
68
|
+
**What I think you're aiming for (so far):**
|
|
69
|
+
- ...
|
|
70
|
+
- ...
|
|
71
|
+
|
|
72
|
+
**One question to anchor us:**
|
|
73
|
+
<single sentence>
|
|
74
|
+
|
|
75
|
+
**Prompts to react to (pick any):**
|
|
76
|
+
- Tradeoff: ...
|
|
77
|
+
- Edge area: ...
|
|
78
|
+
- UX vs architecture: ...
|
|
79
|
+
- Scale implication: ...
|
|
80
|
+
- Short-term vs long-term: ...
|
|
81
|
+
|
|
82
|
+
**Working assumptions (tell me what’s wrong):**
|
|
83
|
+
- ...
|
|
84
|
+
- ...
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Choosing the ONE question (when needed):**
|
|
88
|
+
|
|
89
|
+
- **Do not open with multiple-choice.** Open with synthesis and discussion prompts. Multiple-choice applies only when you have already done a dialogue iteration and are asking that one allowed question.
|
|
90
|
+
|
|
91
|
+
1. **Prefer multiple choice when natural options exist** (only after a dialogue iteration)
|
|
92
|
+
|
|
93
|
+
- Good: "Should the notification be: (a) email only, (b) in-app only, or (c) both?"
|
|
94
|
+
- Avoid: "How should users be notified?"
|
|
95
|
+
|
|
96
|
+
2. **Make it high-leverage**
|
|
97
|
+
|
|
98
|
+
- Anchor on **purpose**, **users**, **success**, or a **hard constraint**
|
|
99
|
+
- Avoid implementation sequencing ("how will we build it?")
|
|
100
|
+
|
|
101
|
+
3. **Validate assumptions explicitly**
|
|
102
|
+
|
|
103
|
+
- "I'm assuming users will be logged in. Is that correct?"
|
|
104
|
+
|
|
105
|
+
4. **Prefer success criteria early**
|
|
106
|
+
- "What would make you say 'this worked'?"
|
|
107
|
+
|
|
108
|
+
**Prompt menu (examples):**
|
|
109
|
+
|
|
110
|
+
- Purpose: "What problem is painful enough to fix now?"
|
|
111
|
+
- Users/context: "Who is the primary user and what’s their moment-of-need?"
|
|
112
|
+
- Constraints: "What constraint should we treat as immovable?"
|
|
113
|
+
- Success: "What does success look like (observable behavior)?"
|
|
114
|
+
- Edges: "What must not happen? What failure would be unacceptable?"
|
|
115
|
+
- Patterns: "What existing behavior/pattern do we want to preserve?"
|
|
116
|
+
|
|
117
|
+
**Exit condition:** Continue until direction is clear OR the user says "proceed" / "move on".
|
|
118
|
+
|
|
119
|
+
### Phase 2: Explore Approaches
|
|
120
|
+
|
|
121
|
+
After understanding the idea, propose 2-3 concrete approaches.
|
|
122
|
+
|
|
123
|
+
**Structure for Each Approach:**
|
|
124
|
+
|
|
125
|
+
```markdown
|
|
126
|
+
### Approach A: [Name]
|
|
127
|
+
|
|
128
|
+
[2-3 sentence description]
|
|
129
|
+
|
|
130
|
+
**Pros:**
|
|
131
|
+
|
|
132
|
+
- [Benefit 1]
|
|
133
|
+
- [Benefit 2]
|
|
134
|
+
|
|
135
|
+
**Cons:**
|
|
136
|
+
|
|
137
|
+
- [Drawback 1]
|
|
138
|
+
- [Drawback 2]
|
|
139
|
+
|
|
140
|
+
**Best when:** [Circumstances where this approach shines]
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
**Guidelines:**
|
|
144
|
+
|
|
145
|
+
- Lead with a recommendation and explain why
|
|
146
|
+
- Be honest about trade-offs
|
|
147
|
+
- Consider YAGNI—simpler is usually better
|
|
148
|
+
- Reference codebase patterns when relevant
|
|
149
|
+
|
|
150
|
+
### Phase 3: Capture the Design
|
|
151
|
+
|
|
152
|
+
Summarize key decisions in a structured format.
|
|
153
|
+
|
|
154
|
+
**Design Doc Structure:**
|
|
155
|
+
|
|
156
|
+
```markdown
|
|
157
|
+
---
|
|
158
|
+
date: YYYY-MM-DD
|
|
159
|
+
topic: <kebab-case-topic>
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
# <Topic Title>
|
|
163
|
+
|
|
164
|
+
## What We're Building
|
|
165
|
+
|
|
166
|
+
[Concise description—1-2 paragraphs max]
|
|
167
|
+
|
|
168
|
+
## Why This Approach
|
|
169
|
+
|
|
170
|
+
[Brief explanation of approaches considered and why this one was chosen]
|
|
171
|
+
|
|
172
|
+
## Key Decisions
|
|
173
|
+
|
|
174
|
+
- [Decision 1]: [Rationale]
|
|
175
|
+
- [Decision 2]: [Rationale]
|
|
176
|
+
|
|
177
|
+
## Open Questions
|
|
178
|
+
|
|
179
|
+
- [Any unresolved questions for the planning phase]
|
|
180
|
+
|
|
181
|
+
## Next Steps
|
|
182
|
+
|
|
183
|
+
→ `/workflow:plan` for implementation details
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**Output Location:** `docs/brainstorms/YYYY-MM-DD-<topic>-brainstorm.md`
|
|
187
|
+
|
|
188
|
+
Before handoff, review the `Open Questions` section.
|
|
189
|
+
|
|
190
|
+
- Classify open questions as **blocking** vs **non-blocking**.
|
|
191
|
+
- Ask the user about each **blocking** question (one at a time) when possible.
|
|
192
|
+
- Move resolved items into a `Resolved Questions` section.
|
|
193
|
+
- Keep non-blocking items in `Open Questions` to carry into planning, with clear ownership or a decision deadline.
|
|
194
|
+
|
|
195
|
+
### Phase 4: Handoff
|
|
196
|
+
|
|
197
|
+
Present clear options for what to do next:
|
|
198
|
+
|
|
199
|
+
1. **Proceed to planning** → Run `/workflow:plan`
|
|
200
|
+
2. **Refine further** → Continue exploring the design
|
|
201
|
+
3. **Done for now** → User will return later
|
|
202
|
+
|
|
203
|
+
## YAGNI Principles
|
|
204
|
+
|
|
205
|
+
During brainstorming, actively resist complexity:
|
|
206
|
+
|
|
207
|
+
- **Don't design for hypothetical future requirements**
|
|
208
|
+
- **Choose the simplest approach that solves the stated problem**
|
|
209
|
+
- **Prefer boring, proven patterns over clever solutions**
|
|
210
|
+
- **Ask "Do we really need this?" when complexity emerges**
|
|
211
|
+
- **Defer decisions that don't need to be made now**
|
|
212
|
+
|
|
213
|
+
## Incremental Validation
|
|
214
|
+
|
|
215
|
+
Keep sections short—200-300 words maximum. After each section of output, pause to validate understanding:
|
|
216
|
+
|
|
217
|
+
- "What part feels most important / most wrong?"
|
|
218
|
+
- "Which prompt should we dig into next?"
|
|
219
|
+
- "Any assumption I should flip before we continue?"
|
|
220
|
+
|
|
221
|
+
This prevents wasted effort on misaligned designs.
|
|
222
|
+
|
|
223
|
+
## Anti-Patterns to Avoid
|
|
224
|
+
|
|
225
|
+
| Anti-Pattern | Better Approach |
|
|
226
|
+
| ------------------------------------- | ------------------------------------------- |
|
|
227
|
+
| Asking many questions in a row | Ask 1 high-leverage question, then prompts |
|
|
228
|
+
| Jumping to implementation details | Stay focused on WHAT, not HOW |
|
|
229
|
+
| Proposing overly complex solutions | Start simple, add complexity only if needed |
|
|
230
|
+
| Ignoring existing codebase patterns | Research what exists first |
|
|
231
|
+
| Making assumptions without validating | State assumptions explicitly and confirm |
|
|
232
|
+
| Creating lengthy design documents | Keep it concise—details go in the plan |
|
|
233
|
+
|
|
234
|
+
## Integration with Planning
|
|
235
|
+
|
|
236
|
+
Brainstorming answers **WHAT** to build:
|
|
237
|
+
|
|
238
|
+
- Requirements and acceptance criteria
|
|
239
|
+
- Chosen approach and rationale
|
|
240
|
+
- Key decisions and trade-offs
|
|
241
|
+
|
|
242
|
+
Planning answers **HOW** to build it:
|
|
243
|
+
|
|
244
|
+
- Implementation steps and file changes
|
|
245
|
+
- Technical details and code patterns
|
|
246
|
+
- Testing strategy and verification
|
|
247
|
+
|
|
248
|
+
When brainstorm output exists, `/workflow:plan` should detect it and use it as input, skipping its own idea refinement phase.
|
|
249
|
+
|
|
250
|
+
Brainstorming should avoid deep implementation sequencing. Leave execution design and step-by-step build order to planning.
|