@codihaus/claude-skills 1.6.7 → 1.6.9
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/package.json +1 -1
- package/skills/debrief/SKILL.md +219 -400
- package/skills/dev-arch/SKILL.md +120 -403
- package/skills/dev-changelog/SKILL.md +67 -221
- package/skills/dev-coding/SKILL.md +95 -144
- package/skills/dev-review/SKILL.md +63 -238
- package/skills/dev-scout/SKILL.md +82 -55
- package/skills/dev-specs/SKILL.md +81 -37
- package/skills/dev-test/SKILL.md +79 -157
package/package.json
CHANGED
package/skills/debrief/SKILL.md
CHANGED
|
@@ -61,468 +61,287 @@ plans/
|
|
|
61
61
|
└── scout/ # /dev-scout project level
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
-
##
|
|
64
|
+
## Expected Outcome
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
Depending on mode:
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
**New Project:**
|
|
69
|
+
- BRD with use cases grouped by feature
|
|
70
|
+
- Context document (stakeholders, constraints, users)
|
|
71
|
+
- Market research (MVP/Standard/Advanced feature tiers)
|
|
72
|
+
- Feature folders created
|
|
73
|
+
- Architecture feasibility validated
|
|
74
|
+
- Questionnaire for customer gaps
|
|
69
75
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
76
|
+
**Add Feature:**
|
|
77
|
+
- New use cases added to BRD
|
|
78
|
+
- Feature folder created
|
|
79
|
+
- Links to existing features
|
|
80
|
+
- Change request (if BRD confirmed)
|
|
74
81
|
|
|
75
|
-
|
|
82
|
+
**Change Request:**
|
|
83
|
+
- CR document tracking the change
|
|
84
|
+
- Affected use cases updated
|
|
85
|
+
- Impact analysis
|
|
76
86
|
|
|
77
|
-
|
|
87
|
+
**Process Answers:**
|
|
88
|
+
- Use cases updated with answers
|
|
89
|
+
- Open questions resolved
|
|
90
|
+
- Status updated to "Confirmed" if complete
|
|
78
91
|
|
|
79
|
-
|
|
80
|
-
1. Read plans/docs-graph.json (if exists)
|
|
81
|
-
2. List existing use cases and features
|
|
82
|
-
3. Check for potential duplicates or overlaps
|
|
83
|
-
4. Identify related nodes for impact analysis
|
|
84
|
-
```
|
|
92
|
+
## Success Criteria
|
|
85
93
|
|
|
86
|
-
|
|
94
|
+
- Use cases are testable (clear acceptance criteria)
|
|
95
|
+
- No duplicate features (checked via docs-graph if exists)
|
|
96
|
+
- Open questions captured for customer
|
|
97
|
+
- Architecture can support requirements (validated by /dev-arch)
|
|
98
|
+
- Proper mode detected and handled
|
|
99
|
+
- Naming conventions followed (UC-{GROUP}-{NNN}-{slug})
|
|
87
100
|
|
|
88
|
-
|
|
89
|
-
|------|----------------|
|
|
90
|
-
| Add Feature | Existing UCs to avoid duplicates |
|
|
91
|
-
| Change Request | Nodes affected by the change |
|
|
92
|
-
| New Project | Skip (no graph yet) |
|
|
101
|
+
## Modes
|
|
93
102
|
|
|
94
|
-
|
|
103
|
+
Detect automatically on start:
|
|
95
104
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
"existing": [
|
|
103
|
-
{"id": "uc-auth-001", "label": "Login", "type": "use-case"},
|
|
104
|
-
{"id": "uc-auth-002", "label": "Signup", "type": "use-case"}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
// → Warn: "Login already exists as UC-AUTH-001. Create CR instead?"
|
|
108
|
-
```
|
|
105
|
+
| Condition | Mode | Behavior |
|
|
106
|
+
|-----------|------|----------|
|
|
107
|
+
| `plans/brd/` doesn't exist | **New Project** | Create full BRD structure |
|
|
108
|
+
| `plans/brd/` exists, adding features | **Add Feature** | Add to existing BRD, check for duplicates |
|
|
109
|
+
| Modifying confirmed use cases | **Change Request** | Create CR first, then update |
|
|
110
|
+
| `--answers` flag provided | **Process Answers** | Update use cases with customer responses |
|
|
109
111
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
For Change Requests, find what links to the affected UC:
|
|
113
|
-
|
|
114
|
-
```json
|
|
115
|
-
// Modifying: uc-auth-001 (Login)
|
|
116
|
-
// Graph edges show:
|
|
117
|
-
{
|
|
118
|
-
"incoming": ["uc-auth-002", "uc-auth-003", "spec-auth-001"],
|
|
119
|
-
"outgoing": ["feature-auth"]
|
|
120
|
-
}
|
|
121
|
-
// → Impact: 3 other nodes reference Login, need to update
|
|
122
|
-
```
|
|
112
|
+
## Context Gathering
|
|
123
113
|
|
|
124
|
-
|
|
125
|
-
- Duplicate use cases
|
|
126
|
-
- Orphaned specs (spec without UC)
|
|
127
|
-
- Missing impact analysis on changes
|
|
114
|
+
Use `AskUserQuestion` to understand project context and scope preferences.
|
|
128
115
|
|
|
129
|
-
###
|
|
116
|
+
### For New Project
|
|
130
117
|
|
|
131
|
-
Ask using `AskUserQuestion`:
|
|
132
|
-
|
|
133
|
-
**For New Project:**
|
|
118
|
+
Ask 5 key questions using `AskUserQuestion`:
|
|
134
119
|
|
|
135
120
|
**Q1: Project Type & Source Code**
|
|
121
|
+
Options:
|
|
136
122
|
- New project (no existing code)
|
|
137
123
|
- Existing codebase (current folder)
|
|
138
124
|
- Existing codebase (different folder)
|
|
139
125
|
|
|
140
126
|
**Q2: Industry/Niche**
|
|
141
|
-
|
|
127
|
+
Options:
|
|
128
|
+
- SaaS B2B
|
|
129
|
+
- SaaS B2C
|
|
130
|
+
- E-commerce
|
|
131
|
+
- Marketplace
|
|
132
|
+
- Enterprise
|
|
133
|
+
- Other
|
|
142
134
|
|
|
143
135
|
**Q3: Target Users**
|
|
144
|
-
|
|
136
|
+
Options:
|
|
137
|
+
- Business users (B2B)
|
|
138
|
+
- Consumers (B2C)
|
|
139
|
+
- Internal users
|
|
140
|
+
- Mixed
|
|
145
141
|
|
|
146
142
|
**Q4: Known Constraints** (multi-select)
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
**Q1: Feature Name**
|
|
155
|
-
- What to call this feature (e.g., "billing", "notifications")
|
|
156
|
-
|
|
157
|
-
**Q2: Scope for this feature**
|
|
158
|
-
- Core / Standard / Full
|
|
159
|
-
|
|
160
|
-
### Phase 1.5: Codebase Discovery (if existing codebase)
|
|
161
|
-
|
|
162
|
-
See `references/file-patterns.md` for scan patterns.
|
|
163
|
-
|
|
164
|
-
1. Check for docs (README, CLAUDE.md)
|
|
165
|
-
2. Scan frontend files (.vue, .tsx, .jsx)
|
|
166
|
-
3. Infer existing features
|
|
167
|
-
4. Summarize in context.md
|
|
168
|
-
|
|
169
|
-
### Phase 2: Market Research
|
|
170
|
-
|
|
171
|
-
Search for references (not prescriptions):
|
|
172
|
-
1. Industry patterns
|
|
173
|
-
2. User flows
|
|
174
|
-
3. Compliance requirements
|
|
175
|
-
4. Documentation links
|
|
176
|
-
|
|
177
|
-
Output to `references.md`.
|
|
178
|
-
|
|
179
|
-
### Phase 3: Use Case Generation
|
|
180
|
-
|
|
181
|
-
**Determine feature folder** from context (e.g., billing, auth, notifications).
|
|
182
|
-
|
|
183
|
-
**Determine group code** from feature (e.g., billing → PAY, auth → AUTH).
|
|
184
|
-
|
|
185
|
-
**Create feature subfolder** in use-cases if not exists:
|
|
186
|
-
```
|
|
187
|
-
plans/brd/use-cases/{feature}/
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
**For each use case**, create file in the feature subfolder:
|
|
191
|
-
|
|
192
|
-
**Path**: `plans/brd/use-cases/{feature}/UC-{GROUP}-{NNN}-{slug}.md`
|
|
193
|
-
|
|
194
|
-
```markdown
|
|
195
|
-
# UC-{GROUP}-{NNN}: {Title}
|
|
196
|
-
|
|
197
|
-
> **Feature**: [[feature-{feature}]]
|
|
198
|
-
> **Related**: [[uc-xxx-nnn]]
|
|
199
|
-
> **Status**: Draft
|
|
200
|
-
|
|
201
|
-
## User Story
|
|
202
|
-
As a {role}, I want {goal}, so that {benefit}.
|
|
203
|
-
|
|
204
|
-
## Acceptance Criteria
|
|
205
|
-
- [ ] Given {context}, when {action}, then {result}
|
|
206
|
-
|
|
207
|
-
## Business Rules
|
|
208
|
-
- {Rule}
|
|
209
|
-
|
|
210
|
-
## Integration Notes
|
|
211
|
-
{How this connects to existing features}
|
|
212
|
-
|
|
213
|
-
## Open Questions
|
|
214
|
-
- {Question}
|
|
215
|
-
|
|
216
|
-
## References
|
|
217
|
-
- [{Link}]({url})
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
### Phase 4: Generate/Update BRD Files
|
|
221
|
-
|
|
222
|
-
#### For New Project:
|
|
223
|
-
|
|
224
|
-
Create `plans/brd/` structure:
|
|
225
|
-
|
|
226
|
-
**README.md:**
|
|
227
|
-
```markdown
|
|
228
|
-
# {Project Name}
|
|
229
|
-
|
|
230
|
-
> **Created**: {date}
|
|
231
|
-
> **Status**: Active
|
|
232
|
-
> **Codebase**: New | Existing
|
|
233
|
-
|
|
234
|
-
## Overview
|
|
235
|
-
{Project description}
|
|
236
|
-
|
|
237
|
-
## Overview Flow
|
|
238
|
-
|
|
239
|
-
```mermaid
|
|
240
|
-
flowchart LR
|
|
241
|
-
A[User] --> B{Action}
|
|
242
|
-
B --> C[Feature 1]
|
|
243
|
-
B --> D[Feature 2]
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
## Features
|
|
247
|
-
|
|
248
|
-
| Feature | Use Cases | Technical | Status |
|
|
249
|
-
|---------|-----------|-----------|--------|
|
|
250
|
-
| Auth | UC-AUTH-001 to 003 | [→](../features/auth/) | Planning |
|
|
251
|
-
| Billing | UC-PAY-001 to 005 | [→](../features/billing/) | Planning |
|
|
252
|
-
|
|
253
|
-
## Use Cases
|
|
143
|
+
Options:
|
|
144
|
+
- Timeline constraint
|
|
145
|
+
- Budget constraint
|
|
146
|
+
- Compliance requirements
|
|
147
|
+
- Integration requirements
|
|
148
|
+
- None
|
|
254
149
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
150
|
+
**Q5: Scope Tier Preference**
|
|
151
|
+
Options:
|
|
152
|
+
- **Core (3-5 use cases)** - MVP, essential features only
|
|
153
|
+
- **Standard (8-12 use cases)** - Competitive parity, market standard
|
|
154
|
+
- **Full (15+ use cases)** - Advanced features, differentiation
|
|
260
155
|
|
|
261
|
-
|
|
262
|
-
| ID | Title | Priority | Status |
|
|
263
|
-
|----|-------|----------|--------|
|
|
264
|
-
| [UC-PAY-001](./use-cases/billing/UC-PAY-001-checkout.md) | Checkout | Must | Draft |
|
|
156
|
+
This helps align on MVP vs market standard vs advanced features upfront.
|
|
265
157
|
|
|
266
|
-
|
|
267
|
-
_No changes yet_
|
|
158
|
+
### For Add Feature
|
|
268
159
|
|
|
269
|
-
|
|
270
|
-
- [Context](./context.md)
|
|
271
|
-
- [References](./references.md)
|
|
272
|
-
- [Changelog](./changelog.md)
|
|
273
|
-
```
|
|
274
|
-
|
|
275
|
-
**context.md:**
|
|
276
|
-
```markdown
|
|
277
|
-
# Context
|
|
278
|
-
|
|
279
|
-
## Stakeholders
|
|
280
|
-
| Role | Responsibility |
|
|
281
|
-
|------|----------------|
|
|
282
|
-
|
|
283
|
-
## Users / Personas
|
|
284
|
-
| Persona | Description | Key Needs |
|
|
285
|
-
|---------|-------------|-----------|
|
|
286
|
-
|
|
287
|
-
## Current State
|
|
288
|
-
{How things work today}
|
|
289
|
-
|
|
290
|
-
## Existing Features
|
|
291
|
-
{From codebase discovery, if applicable}
|
|
292
|
-
|
|
293
|
-
| Feature | Evidence | Status |
|
|
294
|
-
|---------|----------|--------|
|
|
295
|
-
|
|
296
|
-
## Constraints
|
|
297
|
-
| Type | Description | Impact |
|
|
298
|
-
|------|-------------|--------|
|
|
299
|
-
|
|
300
|
-
## Assumptions
|
|
301
|
-
-
|
|
302
|
-
|
|
303
|
-
## Dependencies
|
|
304
|
-
-
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
#### For Add Feature:
|
|
308
|
-
|
|
309
|
-
1. Read existing `plans/brd/README.md`
|
|
310
|
-
2. **Check BRD status**:
|
|
311
|
-
- If any use cases are "Confirmed" → **Create CR first** (see Phase 6)
|
|
312
|
-
- If all use cases are "Draft" → Add directly
|
|
313
|
-
3. Add new feature to Features table
|
|
314
|
-
4. Add new use case group
|
|
315
|
-
5. Create feature folder: `plans/features/{feature}/`
|
|
316
|
-
6. Update changelog
|
|
317
|
-
7. Link CR to feature if created
|
|
318
|
-
|
|
319
|
-
**Why CR for confirmed BRDs**: Once stakeholders have approved use cases, any addition is a scope change that needs tracking.
|
|
320
|
-
|
|
321
|
-
**changelog.md addition:**
|
|
322
|
-
```markdown
|
|
323
|
-
## {date} - Added {Feature}
|
|
324
|
-
- Added {X} use cases: UC-{GROUP}-001 to {NNN}
|
|
325
|
-
- Created feature folder: features/{feature}/
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
### Phase 5: Create Feature Folder
|
|
329
|
-
|
|
330
|
-
For each feature mentioned, create:
|
|
331
|
-
|
|
332
|
-
```
|
|
333
|
-
plans/features/{feature}/
|
|
334
|
-
├── README.md # Feature overview, links to use cases
|
|
335
|
-
└── .gitkeep # Placeholder for scout/specs
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
**Feature README.md:**
|
|
339
|
-
```markdown
|
|
340
|
-
# {Feature Name}
|
|
341
|
-
|
|
342
|
-
> **Use Cases**: UC-{GROUP}-001 to {NNN}
|
|
343
|
-
> **Status**: Planning
|
|
344
|
-
|
|
345
|
-
## Related Use Cases
|
|
346
|
-
| ID | Title |
|
|
347
|
-
|----|-------|
|
|
348
|
-
| [UC-XXX-001](../../brd/use-cases/UC-XXX-001-slug.md) | Title |
|
|
349
|
-
|
|
350
|
-
## Technical (pending)
|
|
351
|
-
- [ ] Architecture: Run `/dev-arch {feature}`
|
|
352
|
-
- [ ] Scout: Run `/dev-scout {feature}`
|
|
353
|
-
- [ ] Impact: Analyze integration points
|
|
354
|
-
- [ ] Specs: Run `/dev-specs {feature}`
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
### Phase 5.5: Architecture Feasibility Check
|
|
358
|
-
|
|
359
|
-
After creating use cases, call `/dev-arch` to validate:
|
|
360
|
-
|
|
361
|
-
```
|
|
362
|
-
1. Load dev-arch skill
|
|
363
|
-
→ Read skills/dev-arch/SKILL.md
|
|
364
|
-
|
|
365
|
-
2. Pass context to dev-arch
|
|
366
|
-
→ Feature requirements from use cases
|
|
367
|
-
→ Existing architecture from scout (if exists)
|
|
368
|
-
|
|
369
|
-
3. dev-arch evaluates:
|
|
370
|
-
→ Can current architecture support this?
|
|
371
|
-
→ What new architecture decisions needed?
|
|
372
|
-
→ Any blockers or major concerns?
|
|
373
|
-
|
|
374
|
-
4. dev-arch returns:
|
|
375
|
-
→ "Feasible with existing patterns" → Continue
|
|
376
|
-
→ "Feasible with additions" → Note additions needed
|
|
377
|
-
→ "Requires architecture work" → Create architecture.md first
|
|
378
|
-
```
|
|
379
|
-
|
|
380
|
-
**Output from dev-arch:**
|
|
160
|
+
Ask 2 questions:
|
|
381
161
|
|
|
162
|
+
**Q1: Feature Name**
|
|
163
|
+
What to call this feature (e.g., "billing", "notifications", "analytics")
|
|
164
|
+
|
|
165
|
+
**Q2: Scope for This Feature**
|
|
166
|
+
Options:
|
|
167
|
+
- **Core** - MVP/essential only
|
|
168
|
+
- **Standard** - Competitive parity
|
|
169
|
+
- **Full** - Advanced/differentiation features
|
|
170
|
+
|
|
171
|
+
### For Existing Codebase
|
|
172
|
+
|
|
173
|
+
**If user indicates existing codebase:**
|
|
174
|
+
- Scan for docs (CLAUDE.md, README, CONTRIBUTING)
|
|
175
|
+
- Scan frontend files (.vue, .tsx, .jsx) to infer existing features
|
|
176
|
+
- Use `references/file-patterns.md` for scan patterns
|
|
177
|
+
- Summarize findings in `context.md`
|
|
178
|
+
|
|
179
|
+
This codebase discovery informs which features already exist and what gaps remain.
|
|
180
|
+
|
|
181
|
+
## Duplicate Prevention
|
|
182
|
+
|
|
183
|
+
**Use docs-graph** (if exists) to check for duplicates:
|
|
184
|
+
- List existing use cases and features
|
|
185
|
+
- Check for potential overlaps
|
|
186
|
+
- Identify related nodes for impact analysis
|
|
187
|
+
|
|
188
|
+
**Before creating use cases:**
|
|
189
|
+
- Check if similar UC already exists
|
|
190
|
+
- If modifying confirmed UC → Create CR instead
|
|
191
|
+
|
|
192
|
+
## Use Case Generation
|
|
193
|
+
|
|
194
|
+
**Output location:** `plans/brd/use-cases/{feature}/UC-{GROUP}-{NNN}-{slug}.md`
|
|
195
|
+
|
|
196
|
+
**Each use case includes:**
|
|
197
|
+
- User story (As a X, I want Y, so that Z)
|
|
198
|
+
- Acceptance criteria (testable)
|
|
199
|
+
- Business rules
|
|
200
|
+
- Integration notes
|
|
201
|
+
- Open questions
|
|
202
|
+
- References from market research
|
|
203
|
+
|
|
204
|
+
## Market Research
|
|
205
|
+
|
|
206
|
+
**Why research:** Understand feature tiers and competitive landscape to inform scope decisions.
|
|
207
|
+
|
|
208
|
+
**Combines with user's scope preference:**
|
|
209
|
+
- User chose "Core" → Focus research on MVP features
|
|
210
|
+
- User chose "Standard" → Research MVP + market standard features
|
|
211
|
+
- User chose "Full" → Research all tiers including advanced/differentiation
|
|
212
|
+
|
|
213
|
+
**What to research:**
|
|
214
|
+
- Industry patterns (what similar products do)
|
|
215
|
+
- User flows (standard UX patterns in this domain)
|
|
216
|
+
- Compliance requirements (regulations, standards, must-haves)
|
|
217
|
+
- Documentation links (references for engineers)
|
|
218
|
+
|
|
219
|
+
**Expected insights organized by tier:**
|
|
220
|
+
- **MVP Features (Must-Have):** Minimum to be viable product
|
|
221
|
+
- Example: Login, basic CRUD, core workflows
|
|
222
|
+
- **Market Standard (Competitive Parity):** What competitors offer
|
|
223
|
+
- Example: SSO, notifications, exports
|
|
224
|
+
- **Advanced Features (Differentiation):** What sets apart top products
|
|
225
|
+
- Example: AI suggestions, real-time collaboration, advanced analytics
|
|
226
|
+
|
|
227
|
+
**Output:**
|
|
228
|
+
- `references.md` - Organized by feature tier with links and notes
|
|
229
|
+
- Use insights to:
|
|
230
|
+
- Validate user's scope choice (Core/Standard/Full)
|
|
231
|
+
- Prioritize use cases (Must/Should/Could)
|
|
232
|
+
- Guide customer conversations ("This is standard" vs "This is premium")
|
|
233
|
+
|
|
234
|
+
**Format for references.md:**
|
|
382
235
|
```markdown
|
|
383
|
-
##
|
|
236
|
+
## {Feature} - Market Research
|
|
384
237
|
|
|
385
|
-
###
|
|
238
|
+
### MVP (Must-Have)
|
|
239
|
+
- Login/Signup - Industry standard: email + password + OAuth
|
|
240
|
+
- Reference: [Auth0 best practices](link)
|
|
241
|
+
- Profile management - Every product has this
|
|
386
242
|
|
|
387
|
-
###
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
| Payments | ✗ New | Need Stripe integration |
|
|
392
|
-
| Real-time | ✗ New | Need WebSocket |
|
|
243
|
+
### Market Standard (Competitive Parity)
|
|
244
|
+
- SSO integration - 80% of competitors offer this
|
|
245
|
+
- Reference: [SAML guide](link)
|
|
246
|
+
- Email notifications - User expectation
|
|
393
247
|
|
|
394
|
-
###
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
### Architecture Decisions Needed
|
|
399
|
-
- [ ] Payment provider selection
|
|
400
|
-
- [ ] Real-time architecture
|
|
248
|
+
### Advanced (Differentiation)
|
|
249
|
+
- AI-powered recommendations - Only Competitor X has this
|
|
250
|
+
- Reference: [ML recommendation patterns](link)
|
|
251
|
+
- Real-time collaboration - Top-tier feature
|
|
401
252
|
```
|
|
402
253
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
254
|
+
**How it guides use case creation:**
|
|
255
|
+
- User chose "Core" → Create use cases for MVP tier only
|
|
256
|
+
- User chose "Standard" → Create use cases for MVP + Market Standard tiers
|
|
257
|
+
- User chose "Full" → Create use cases for all tiers
|
|
406
258
|
|
|
407
|
-
|
|
259
|
+
This alignment ensures use cases match the agreed scope.
|
|
408
260
|
|
|
409
|
-
|
|
410
|
-
2. Update README.md Change History
|
|
411
|
-
3. Update affected use cases with reference
|
|
261
|
+
## BRD Structure
|
|
412
262
|
|
|
413
|
-
**
|
|
414
|
-
|
|
415
|
-
|
|
263
|
+
**Create/Update:**
|
|
264
|
+
- `README.md` - Project overview, feature index, use case tables
|
|
265
|
+
- `context.md` - Stakeholders, users, constraints, existing features
|
|
266
|
+
- `references.md` - Market research links
|
|
267
|
+
- `changelog.md` - Track all BRD updates
|
|
268
|
+
- `changes/` - Change requests (if modifying confirmed BRD)
|
|
416
269
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
> **Requestor**: {who requested}
|
|
270
|
+
**Feature folders:**
|
|
271
|
+
- `plans/features/{feature}/README.md` - Feature overview, links to use cases
|
|
420
272
|
|
|
421
|
-
##
|
|
422
|
-
{What is being requested}
|
|
273
|
+
## Architecture Validation
|
|
423
274
|
|
|
424
|
-
|
|
425
|
-
{Why this change is needed}
|
|
275
|
+
**After creating use cases**, call `/dev-arch` to validate feasibility:
|
|
426
276
|
|
|
427
|
-
|
|
277
|
+
**dev-arch checks:**
|
|
278
|
+
- Can current architecture support this?
|
|
279
|
+
- What new architecture decisions needed?
|
|
280
|
+
- Any blockers or major concerns?
|
|
428
281
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
282
|
+
**dev-arch returns:**
|
|
283
|
+
- Feasible with existing patterns → Continue
|
|
284
|
+
- Feasible with additions → Note what's needed
|
|
285
|
+
- Requires architecture work → Create architecture.md first
|
|
432
286
|
|
|
433
|
-
|
|
434
|
-
| ID | Change |
|
|
435
|
-
|----|--------|
|
|
436
|
-
| UC-XXX-001 | {What changes} |
|
|
287
|
+
## Open Questions & Questionnaire
|
|
437
288
|
|
|
438
|
-
|
|
439
|
-
-
|
|
289
|
+
**Collect open questions from:**
|
|
290
|
+
- Use case "Open Questions" sections
|
|
291
|
+
- Context gaps
|
|
292
|
+
- Integration uncertainties
|
|
293
|
+
- Business rules needing clarification
|
|
440
294
|
|
|
441
|
-
|
|
442
|
-
|
|
295
|
+
**If gaps exist, generate questionnaire:**
|
|
296
|
+
```bash
|
|
297
|
+
python .claude/skills/debrief/scripts/generate_questionnaire.py {output_path} questions.json
|
|
443
298
|
```
|
|
444
299
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
1. Use case files (`## Open Questions` section)
|
|
449
|
-
2. Context gaps (unknowns from Phase 1)
|
|
450
|
-
3. Integration uncertainties
|
|
451
|
-
4. Business rules needing clarification
|
|
452
|
-
|
|
453
|
-
**Build questions list:**
|
|
454
|
-
```json
|
|
455
|
-
{
|
|
456
|
-
"project_name": "{Project Name}",
|
|
457
|
-
"date": "{YYYY-MM-DD}",
|
|
458
|
-
"questions": [
|
|
459
|
-
{
|
|
460
|
-
"category": "Requirements",
|
|
461
|
-
"question": "What is the expected concurrent user load?",
|
|
462
|
-
"priority": "Required",
|
|
463
|
-
"context": "Needed for capacity planning",
|
|
464
|
-
"source": "UC-PAY-003"
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
"category": "Business",
|
|
468
|
-
"question": "What payment methods should be supported?",
|
|
469
|
-
"priority": "Required",
|
|
470
|
-
"context": "Affects integration scope",
|
|
471
|
-
"source": "UC-PAY-001"
|
|
472
|
-
}
|
|
473
|
-
]
|
|
474
|
-
}
|
|
475
|
-
```
|
|
300
|
+
**Output location:**
|
|
301
|
+
- New feature: `plans/features/{feature}/questionnaire-{YYYY-MM-DD}.xlsx`
|
|
302
|
+
- Change request: `plans/brd/changes/CR-{NNN}-questionnaire-{YYYY-MM-DD}.xlsx`
|
|
476
303
|
|
|
477
|
-
**Categories:**
|
|
478
|
-
|
|
479
|
-
- `Requirements` - Feature details, user needs
|
|
480
|
-
- `Constraints` - Timeline, budget, compliance
|
|
481
|
-
- `Integration` - Third-party systems, APIs
|
|
482
|
-
- `Technical` - Only if blocking business decisions
|
|
304
|
+
**Categories:** Business, Requirements, Constraints, Integration, Technical
|
|
305
|
+
**Priority:** Required (blocks UC), Optional (nice to clarify)
|
|
483
306
|
|
|
484
|
-
|
|
485
|
-
- `Required` - Blocks use case completion
|
|
486
|
-
- `Optional` - Nice to clarify, not blocking
|
|
307
|
+
## Change Requests
|
|
487
308
|
|
|
488
|
-
|
|
309
|
+
**Create CR when:**
|
|
310
|
+
- Modifying confirmed use cases
|
|
311
|
+
- BRD status is "Confirmed" and adding features
|
|
312
|
+
- Scope expansion discovered
|
|
489
313
|
|
|
490
|
-
|
|
314
|
+
**CR includes:**
|
|
315
|
+
- Request description
|
|
316
|
+
- Reason for change
|
|
317
|
+
- Impact analysis (new/modified UCs, affected features)
|
|
318
|
+
- Questionnaire (if questions exist)
|
|
491
319
|
|
|
492
|
-
|
|
493
|
-
python .claude/skills/debrief/scripts/generate_questionnaire.py {output_path} questions.json
|
|
494
|
-
```
|
|
320
|
+
## Process Answers Workflow
|
|
495
321
|
|
|
496
|
-
**
|
|
497
|
-
- New feature: `plans/features/{feature}/questionnaire-{YYYY-MM-DD}.xlsx`
|
|
498
|
-
- Change request: `plans/brd/changes/CR-{NNN}-questionnaire-{YYYY-MM-DD}.xlsx`
|
|
322
|
+
**When customer returns questionnaire:**
|
|
499
323
|
|
|
500
|
-
**
|
|
324
|
+
1. **Read questionnaire** - Extract answers from Excel
|
|
325
|
+
2. **Update use cases** - Add answers to relevant sections, remove from open questions
|
|
326
|
+
3. **Update feature README** - Note questionnaire processed
|
|
327
|
+
4. **Check completeness** - If gaps remain, generate new questionnaire with new date
|
|
328
|
+
5. **Update status** - Mark UCs as "Confirmed" if complete
|
|
501
329
|
|
|
502
|
-
|
|
503
|
-
- Summary sheet (project info, question counts)
|
|
504
|
-
- Questions sheet (categorized, with context/source)
|
|
505
|
-
- Answer column for customer to fill
|
|
330
|
+
**Keep questionnaire files** for revision history with date stamps.
|
|
506
331
|
|
|
507
|
-
|
|
332
|
+
## Summary Output
|
|
508
333
|
|
|
509
|
-
|
|
510
|
-
- Use cases created/updated
|
|
334
|
+
Provide summary with:
|
|
335
|
+
- Use cases created/updated (count)
|
|
511
336
|
- Features created
|
|
512
337
|
- Change requests (if any)
|
|
513
338
|
- Open questions count
|
|
514
|
-
- Questionnaire
|
|
515
|
-
- Next steps
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
-
|
|
519
|
-
-
|
|
520
|
-
- For new projects: Run `/dev-specs {feature}` (will auto-scout)
|
|
521
|
-
- For existing codebases:
|
|
522
|
-
- First time: Run `/dev-scout` (project-level analysis) OR let `/dev-specs` auto-scout
|
|
523
|
-
- Subsequent: Run `/dev-specs {feature}` directly (auto-scouts feature if needed)
|
|
524
|
-
|
|
525
|
-
**Note**: `/dev-specs` automatically runs both project-level and feature-level scouts if they don't exist, so you typically don't need to run `/dev-scout` manually unless you want to review the codebase analysis separately first.
|
|
339
|
+
- Questionnaire location (if generated)
|
|
340
|
+
- Next steps:
|
|
341
|
+
- Send questionnaire to customer
|
|
342
|
+
- Review with stakeholders
|
|
343
|
+
- Run `/dev-specs {feature}` (auto-scouts if needed)
|
|
344
|
+
- OR run `/dev-scout` first for project overview
|
|
526
345
|
|
|
527
346
|
---
|
|
528
347
|
|