@codihaus/claude-skills 1.6.20 → 1.6.22
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/bin/cli.js +1 -0
- package/knowledge/stacks/_index.md +29 -3
- package/package.json +1 -1
- package/skills/_registry.md +23 -0
- package/skills/debrief/SKILL.md +89 -413
- package/skills/debrief/references/codes.md +135 -0
- package/skills/debrief/references/research.md +227 -0
- package/skills/debrief/references/templates/brd-references.md +80 -0
- package/skills/debrief/references/templates/feature-references.md +98 -0
- package/skills/debrief/references/templates/use-case.md +31 -0
- package/skills/debrief/references/workflow.md +315 -0
- package/skills/dev-coding/SKILL.md +6 -0
- package/src/commands/init.js +7 -2
- package/src/utils/skills.js +153 -6
- package/skills/debrief/references/file-patterns.md +0 -173
- package/skills/debrief/references/group-codes.md +0 -72
- package/skills/debrief/references/research-queries.md +0 -106
- package/skills/debrief/references/use-case-template.md +0 -141
- /package/skills/debrief/references/{change-request-template.md → templates/change-request.md} +0 -0
package/bin/cli.js
CHANGED
|
@@ -23,6 +23,7 @@ program
|
|
|
23
23
|
.option('--all', 'Install all skills (default)', true)
|
|
24
24
|
.option('--no-deps', 'Skip dependency checking')
|
|
25
25
|
.option('--no-hooks', 'Skip hooks setup')
|
|
26
|
+
.option('-k, --knowledge <path>', 'Path to custom knowledge base to install')
|
|
26
27
|
.option('-y, --yes', 'Skip confirmation prompts')
|
|
27
28
|
.action(init);
|
|
28
29
|
|
|
@@ -28,7 +28,7 @@ Each stack follows this structure:
|
|
|
28
28
|
|
|
29
29
|
```
|
|
30
30
|
stacks/{stack-name}/
|
|
31
|
-
├── _index.md # Main knowledge file
|
|
31
|
+
├── _index.md # Main knowledge file (always read first)
|
|
32
32
|
│ ├── Overview # What it is, when to use
|
|
33
33
|
│ ├── Best Practices # Patterns to follow
|
|
34
34
|
│ ├── Anti-Patterns # What to avoid
|
|
@@ -37,17 +37,43 @@ stacks/{stack-name}/
|
|
|
37
37
|
│ ├── For /dev-review # Review checklists
|
|
38
38
|
│ └── Integration # How it works with other stacks
|
|
39
39
|
│
|
|
40
|
-
├── references/ # Detailed documentation
|
|
40
|
+
├── references/ # Detailed documentation (load as needed)
|
|
41
41
|
│ ├── api.md # API reference
|
|
42
42
|
│ ├── patterns.md # Common patterns
|
|
43
43
|
│ └── performance.md # Performance optimization
|
|
44
44
|
│
|
|
45
|
-
└── assets/ # Code templates
|
|
45
|
+
└── assets/ # Code templates (load as needed)
|
|
46
46
|
├── composable.ts # Example composable
|
|
47
47
|
├── component.vue # Example component
|
|
48
48
|
└── config.ts # Example config
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
+
## Loading Knowledge
|
|
52
|
+
|
|
53
|
+
Skills can load knowledge in two ways:
|
|
54
|
+
|
|
55
|
+
### 1. Quick Reference (Default)
|
|
56
|
+
Load only `_index.md` for overview and skill-specific guidance:
|
|
57
|
+
```
|
|
58
|
+
Read knowledge/stacks/{stack}/_index.md
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### 2. Deep Dive (When Needed)
|
|
62
|
+
Use `_knowledge.json` to discover and load additional files:
|
|
63
|
+
```
|
|
64
|
+
1. Read knowledge/_knowledge.json → Get file list for {stack}
|
|
65
|
+
2. Read knowledge/stacks/{stack}/_index.md → Main guidance
|
|
66
|
+
3. Read knowledge/stacks/{stack}/references/patterns.md → Detailed patterns
|
|
67
|
+
4. Read knowledge/stacks/{stack}/references/performance.md → Performance tips
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### When to Load More Than _index.md
|
|
71
|
+
|
|
72
|
+
- **Specs**: Usually `_index.md` is enough (high-level patterns)
|
|
73
|
+
- **Coding**: Load `references/` when implementing complex features
|
|
74
|
+
- **Review**: Load `references/performance.md` for performance reviews
|
|
75
|
+
- **Architecture**: Load `references/` for deep architectural decisions
|
|
76
|
+
|
|
51
77
|
## How Skills Use Stack Knowledge
|
|
52
78
|
|
|
53
79
|
### /dev-scout
|
package/package.json
CHANGED
package/skills/_registry.md
CHANGED
|
@@ -227,6 +227,29 @@ Domain knowledge captures:
|
|
|
227
227
|
|
|
228
228
|
See `knowledge/stacks/_index.md` and `knowledge/domains/_index.md` for details.
|
|
229
229
|
|
|
230
|
+
### Knowledge Loading Patterns
|
|
231
|
+
|
|
232
|
+
Skills can load knowledge at two depths:
|
|
233
|
+
|
|
234
|
+
**Quick Reference (Default):**
|
|
235
|
+
- Load `knowledge/stacks/{stack}/_index.md` for overview and skill-specific sections
|
|
236
|
+
- Use for most tasks where general guidance is enough
|
|
237
|
+
- Examples: Specs, basic reviews, standard implementations
|
|
238
|
+
|
|
239
|
+
**Deep Dive (When Needed):**
|
|
240
|
+
1. Read `knowledge/_knowledge.json` to discover available files
|
|
241
|
+
2. Load `_index.md` for overview
|
|
242
|
+
3. Load additional reference files based on needs:
|
|
243
|
+
- `references/patterns.md` - Detailed implementation patterns
|
|
244
|
+
- `references/performance.md` - Performance optimization
|
|
245
|
+
- `references/api.md` - API reference
|
|
246
|
+
|
|
247
|
+
**When to go deep:**
|
|
248
|
+
- Complex or performance-critical implementations
|
|
249
|
+
- Architecture decisions requiring deep framework knowledge
|
|
250
|
+
- Comprehensive code reviews
|
|
251
|
+
- Learning new patterns for unfamiliar stacks
|
|
252
|
+
|
|
230
253
|
## Skill Awareness Protocol
|
|
231
254
|
|
|
232
255
|
Every skill should:
|
package/skills/debrief/SKILL.md
CHANGED
|
@@ -1,469 +1,145 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: debrief
|
|
3
|
-
description:
|
|
4
|
-
version:
|
|
3
|
+
description: Customer requirements → market-validated BRD with tiered features
|
|
4
|
+
version: 4.0.0
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
# /debrief - Business Requirements Document
|
|
7
|
+
# /debrief - Business Requirements Document
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
> - **Before**: Use `/dev-scout` if existing codebase
|
|
11
|
-
> - **During**: Calls `/dev-arch` to validate architecture feasibility
|
|
12
|
-
> - **After**: Use `/dev-specs` for implementation plans
|
|
13
|
-
> - **Auto**: `docs-graph.json` updated by hook for relationships
|
|
9
|
+
**Role**: Business analyst creating market-validated BRDs.
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
**Focus**: WHAT features + WHY (business), not HOW (technical).
|
|
16
12
|
|
|
17
|
-
|
|
13
|
+
---
|
|
18
14
|
|
|
19
|
-
|
|
20
|
-
- Add new feature to existing project (updates BRD)
|
|
21
|
-
- Process change requests (tracked separately)
|
|
15
|
+
## When to Use
|
|
22
16
|
|
|
23
|
-
|
|
17
|
+
- New project → Create BRD
|
|
18
|
+
- Add features → Extend BRD
|
|
19
|
+
- Process customer answers → Update BRD
|
|
20
|
+
- Questionnaire only → Generate questions
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
/debrief "Customer wants a SaaS platform" # New project
|
|
27
|
-
/debrief "Add billing and subscriptions" # Add feature
|
|
28
|
-
/debrief requirements.pdf # From document
|
|
29
|
-
/debrief # Interactive
|
|
30
|
-
/debrief --answers questionnaire.xlsx # Process customer answers
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Output Structure
|
|
22
|
+
---
|
|
34
23
|
|
|
35
|
-
|
|
24
|
+
## Usage
|
|
36
25
|
|
|
26
|
+
```bash
|
|
27
|
+
/debrief "Customer wants..." # New project
|
|
28
|
+
/debrief "Add {feature}" # Add feature
|
|
29
|
+
/debrief --answers questionnaire.xlsx # Process answers
|
|
30
|
+
/debrief --questionnaire-only # Questions only
|
|
37
31
|
```
|
|
38
|
-
plans/
|
|
39
|
-
├── brd/ # This skill manages this folder
|
|
40
|
-
│ ├── README.md # Project overview, feature index
|
|
41
|
-
│ ├── context.md # Stakeholders, constraints
|
|
42
|
-
│ ├── use-cases/ # ALL use cases, grouped by feature
|
|
43
|
-
│ │ ├── auth/ # Auth feature UCs
|
|
44
|
-
│ │ │ ├── UC-AUTH-001-login.md
|
|
45
|
-
│ │ │ ├── UC-AUTH-002-signup.md
|
|
46
|
-
│ │ │ └── UC-AUTH-003-forgot.md
|
|
47
|
-
│ │ ├── billing/ # Billing feature UCs
|
|
48
|
-
│ │ │ ├── UC-PAY-001-checkout.md
|
|
49
|
-
│ │ │ └── UC-PAY-002-refund.md
|
|
50
|
-
│ │ └── ...
|
|
51
|
-
│ ├── changes/ # Change requests
|
|
52
|
-
│ │ └── CR-001-add-sso.md
|
|
53
|
-
│ ├── references.md
|
|
54
|
-
│ └── changelog.md
|
|
55
|
-
│
|
|
56
|
-
├── features/ # Created per feature
|
|
57
|
-
│ ├── auth/ # /dev-scout and /dev-specs work here
|
|
58
|
-
│ ├── billing/
|
|
59
|
-
│ └── ...
|
|
60
|
-
│
|
|
61
|
-
└── scout/ # /dev-scout project level
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Expected Outcome
|
|
65
|
-
|
|
66
|
-
Depending on mode:
|
|
67
|
-
|
|
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
|
|
75
|
-
|
|
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)
|
|
81
|
-
|
|
82
|
-
**Change Request:**
|
|
83
|
-
- CR document tracking the change
|
|
84
|
-
- Affected use cases updated
|
|
85
|
-
- Impact analysis
|
|
86
|
-
|
|
87
|
-
**Process Answers:**
|
|
88
|
-
- Use cases updated with answers
|
|
89
|
-
- Open questions resolved
|
|
90
|
-
- Status updated to "Confirmed" if complete
|
|
91
|
-
|
|
92
|
-
## Success Criteria
|
|
93
|
-
|
|
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})
|
|
100
|
-
|
|
101
|
-
## Modes
|
|
102
|
-
|
|
103
|
-
Detect automatically on start:
|
|
104
|
-
|
|
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 |
|
|
111
|
-
|
|
112
|
-
## Context Gathering
|
|
113
32
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
### For New Project
|
|
117
|
-
|
|
118
|
-
Ask 5 key questions using `AskUserQuestion`:
|
|
33
|
+
---
|
|
119
34
|
|
|
120
|
-
|
|
121
|
-
Options:
|
|
122
|
-
- New project (no existing code)
|
|
123
|
-
- Existing codebase (current folder)
|
|
124
|
-
- Existing codebase (different folder)
|
|
35
|
+
## Output Structure
|
|
125
36
|
|
|
126
|
-
**
|
|
127
|
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
- Enterprise
|
|
133
|
-
- Other
|
|
37
|
+
**Project-wide** → `plans/brd/`:
|
|
38
|
+
- README.md (all features index)
|
|
39
|
+
- context.md (stakeholders, users, constraints)
|
|
40
|
+
- references.md (industry, compliance, competitor overview)
|
|
41
|
+
- use-cases/{feature}/ (all use cases, grouped)
|
|
42
|
+
- changelog.md
|
|
134
43
|
|
|
135
|
-
**
|
|
136
|
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
- Internal users
|
|
140
|
-
- Mixed
|
|
44
|
+
**Feature-specific** → `plans/features/{feature}/`:
|
|
45
|
+
- README.md (feature overview)
|
|
46
|
+
- references.md (market research, evidence, tier validation)
|
|
47
|
+
- questionnaire-{date}.xlsx (feature questions)
|
|
141
48
|
|
|
142
|
-
|
|
143
|
-
Options:
|
|
144
|
-
- Timeline constraint
|
|
145
|
-
- Budget constraint
|
|
146
|
-
- Compliance requirements
|
|
147
|
-
- Integration requirements
|
|
148
|
-
- None
|
|
49
|
+
---
|
|
149
50
|
|
|
150
|
-
|
|
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
|
|
51
|
+
## Key Principles
|
|
155
52
|
|
|
156
|
-
|
|
53
|
+
### 1. Comparison-First Discovery
|
|
157
54
|
|
|
158
|
-
|
|
55
|
+
**Don't** scan competitors one-by-one.
|
|
56
|
+
**Do** use comparison/alternative pages first:
|
|
57
|
+
- `"{category} comparison"` → feature matrices from 10+ competitors
|
|
58
|
+
- `"best {category} alternatives"` → what features matter
|
|
59
|
+
- `"{competitor A} vs {competitor B}"` → deal-breaker features
|
|
159
60
|
|
|
160
|
-
|
|
61
|
+
Then deep revalidation per feature (ecosystem, user signals).
|
|
161
62
|
|
|
162
|
-
|
|
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`
|
|
63
|
+
### 2. Always Generate Questionnaire
|
|
178
64
|
|
|
179
|
-
|
|
65
|
+
Include both:
|
|
66
|
+
- **Validation questions**: "We found 9/10 competitors offer SSO. Confirm this is needed?"
|
|
67
|
+
- **Open questions**: "What's max team size per account?"
|
|
180
68
|
|
|
181
|
-
|
|
69
|
+
Customer validates assumptions + fills gaps.
|
|
182
70
|
|
|
183
|
-
|
|
184
|
-
- List existing use cases and features
|
|
185
|
-
- Check for potential overlaps
|
|
186
|
-
- Identify related nodes for impact analysis
|
|
71
|
+
### 3. Scope-Based Organization
|
|
187
72
|
|
|
188
|
-
**
|
|
189
|
-
-
|
|
190
|
-
-
|
|
73
|
+
**Project-wide** (brd/references.md):
|
|
74
|
+
- Industry landscape
|
|
75
|
+
- Compliance (GDPR, PCI)
|
|
76
|
+
- Competitor company profiles
|
|
191
77
|
|
|
192
|
-
|
|
78
|
+
**Feature-specific** (features/{name}/references.md):
|
|
79
|
+
- Market research for THIS feature
|
|
80
|
+
- Tier validation evidence (MVP/Standard/Advanced)
|
|
81
|
+
- Sequenced features with dependencies
|
|
193
82
|
|
|
194
|
-
|
|
83
|
+
### 4. Lean Use Cases (80/20)
|
|
195
84
|
|
|
196
|
-
**
|
|
197
|
-
-
|
|
198
|
-
-
|
|
199
|
-
-
|
|
200
|
-
- Integration notes
|
|
85
|
+
**Include (20%)**:
|
|
86
|
+
- Story (1 line)
|
|
87
|
+
- Critical acceptance criteria (3-5 bullets)
|
|
88
|
+
- Key business rules (constraints, limits)
|
|
201
89
|
- 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:**
|
|
235
|
-
```markdown
|
|
236
|
-
## {Feature} - Market Research
|
|
237
|
-
|
|
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
|
|
242
|
-
|
|
243
|
-
### Market Standard (Competitive Parity)
|
|
244
|
-
- SSO integration - 80% of competitors offer this
|
|
245
|
-
- Reference: [SAML guide](link)
|
|
246
|
-
- Email notifications - User expectation
|
|
247
|
-
|
|
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
|
|
252
|
-
```
|
|
253
|
-
|
|
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
|
|
258
90
|
|
|
259
|
-
|
|
91
|
+
**Defer to /dev-specs (80%)**:
|
|
92
|
+
- Detailed flows
|
|
93
|
+
- Integration points
|
|
94
|
+
- Edge cases
|
|
95
|
+
- UI/UX details
|
|
260
96
|
|
|
261
|
-
|
|
262
|
-
|
|
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)
|
|
269
|
-
|
|
270
|
-
**Feature folders:**
|
|
271
|
-
- `plans/features/{feature}/README.md` - Feature overview, links to use cases
|
|
272
|
-
|
|
273
|
-
## Architecture Validation
|
|
274
|
-
|
|
275
|
-
**After creating use cases**, call `/dev-arch` to validate feasibility:
|
|
276
|
-
|
|
277
|
-
**dev-arch checks:**
|
|
278
|
-
- Can current architecture support this?
|
|
279
|
-
- What new architecture decisions needed?
|
|
280
|
-
- Any blockers or major concerns?
|
|
281
|
-
|
|
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
|
|
286
|
-
|
|
287
|
-
## Open Questions & Questionnaire
|
|
288
|
-
|
|
289
|
-
**Collect open questions from:**
|
|
290
|
-
- Use case "Open Questions" sections
|
|
291
|
-
- Context gaps
|
|
292
|
-
- Integration uncertainties
|
|
293
|
-
- Business rules needing clarification
|
|
294
|
-
|
|
295
|
-
**If gaps exist, generate questionnaire:**
|
|
296
|
-
```bash
|
|
297
|
-
python .claude/skills/debrief/scripts/generate_questionnaire.py {output_path} questions.json
|
|
298
|
-
```
|
|
299
|
-
|
|
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`
|
|
303
|
-
|
|
304
|
-
**Categories:** Business, Requirements, Constraints, Integration, Technical
|
|
305
|
-
**Priority:** Required (blocks UC), Optional (nice to clarify)
|
|
306
|
-
|
|
307
|
-
## Change Requests
|
|
308
|
-
|
|
309
|
-
**Create CR when:**
|
|
310
|
-
- Modifying confirmed use cases
|
|
311
|
-
- BRD status is "Confirmed" and adding features
|
|
312
|
-
- Scope expansion discovered
|
|
313
|
-
|
|
314
|
-
**CR includes:**
|
|
315
|
-
- Request description
|
|
316
|
-
- Reason for change
|
|
317
|
-
- Impact analysis (new/modified UCs, affected features)
|
|
318
|
-
- Questionnaire (if questions exist)
|
|
319
|
-
|
|
320
|
-
## Process Answers Workflow
|
|
321
|
-
|
|
322
|
-
**When customer returns questionnaire:**
|
|
323
|
-
|
|
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
|
|
329
|
-
|
|
330
|
-
**Keep questionnaire files** for revision history with date stamps.
|
|
331
|
-
|
|
332
|
-
## Summary Output
|
|
333
|
-
|
|
334
|
-
Provide summary with:
|
|
335
|
-
- Use cases created/updated (count)
|
|
336
|
-
- Features created
|
|
337
|
-
- Change requests (if any)
|
|
338
|
-
- Open questions count
|
|
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
|
|
97
|
+
Keep use cases ~30 lines max. Business stakeholders scan in 30 seconds.
|
|
345
98
|
|
|
346
99
|
---
|
|
347
100
|
|
|
348
|
-
##
|
|
349
|
-
|
|
350
|
-
When customer returns filled questionnaire, run:
|
|
351
|
-
```
|
|
352
|
-
/debrief --answers plans/features/billing/questionnaire-2024-01-20.xlsx
|
|
353
|
-
```
|
|
354
|
-
|
|
355
|
-
### Step 1: Read Questionnaire
|
|
356
|
-
|
|
357
|
-
Read the Excel file and extract answers:
|
|
358
|
-
- Parse "Answer" column
|
|
359
|
-
- Match to source use cases via "Context/Source" column
|
|
360
|
-
- Flag unanswered required questions
|
|
361
|
-
|
|
362
|
-
### Step 2: Update Related Files
|
|
101
|
+
## Workflow
|
|
363
102
|
|
|
364
|
-
|
|
103
|
+
**See** `references/workflow.md` for detailed steps.
|
|
365
104
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
4. **Update CR file** if questionnaire is CR-related
|
|
105
|
+
**Modes**:
|
|
106
|
+
- No `plans/brd/` → New Project
|
|
107
|
+
- `plans/brd/` exists → Add Feature
|
|
108
|
+
- `--answers {file}` → Process Answers
|
|
109
|
+
- `--questionnaire-only` → Questions Only
|
|
372
110
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
**Keep the file** for revision history:
|
|
376
|
-
- File stays at original location with date
|
|
377
|
-
- Add "Processed: {date}" to Summary sheet
|
|
378
|
-
- If follow-up needed → new questionnaire with new date
|
|
111
|
+
---
|
|
379
112
|
|
|
380
|
-
|
|
381
|
-
```
|
|
382
|
-
plans/features/billing/
|
|
383
|
-
├── questionnaire-2024-01-15.xlsx # Initial, processed
|
|
384
|
-
├── questionnaire-2024-01-22.xlsx # Follow-up, processed
|
|
385
|
-
└── questionnaire-2024-01-28.xlsx # Final clarifications
|
|
386
|
-
```
|
|
113
|
+
## Market Research
|
|
387
114
|
|
|
388
|
-
|
|
115
|
+
**See** `references/market-research-methodology.md`.
|
|
389
116
|
|
|
390
|
-
|
|
391
|
-
- Count remaining open questions across related use cases
|
|
392
|
-
- If still gaps → generate new questionnaire with new date
|
|
393
|
-
- If complete → update use case status to "Confirmed"
|
|
117
|
+
**Sources**: Competitors, ecosystems (Chrome, WordPress, GitHub, etc.), user signals (Reddit, reviews).
|
|
394
118
|
|
|
395
|
-
|
|
119
|
+
**Tiers**:
|
|
120
|
+
- **MVP**: 80%+ competitors, free tier, high demand
|
|
121
|
+
- **Standard**: 60-80% competitors, pro tier, expected
|
|
122
|
+
- **Advanced**: <60% competitors, enterprise, differentiator
|
|
396
123
|
|
|
397
|
-
|
|
124
|
+
---
|
|
398
125
|
|
|
399
|
-
|
|
400
|
-
```markdown
|
|
401
|
-
## Questionnaire History
|
|
402
|
-
| Date | Status | Questions |
|
|
403
|
-
|------|--------|-----------|
|
|
404
|
-
| 2024-01-15 | Processed | 8 answered |
|
|
405
|
-
| 2024-01-22 | Processed | 3 answered |
|
|
406
|
-
```
|
|
126
|
+
## Tools
|
|
407
127
|
|
|
408
|
-
|
|
409
|
-
```markdown
|
|
410
|
-
## Clarifications
|
|
411
|
-
- [Questionnaire 2024-01-20](./CR-001-questionnaire-2024-01-20.xlsx)
|
|
412
|
-
```
|
|
128
|
+
AskUserQuestion, WebSearch, Glob, Read, Write, Bash
|
|
413
129
|
|
|
414
|
-
|
|
130
|
+
---
|
|
415
131
|
|
|
416
|
-
|
|
417
|
-
- Questions answered: X/Y
|
|
418
|
-
- Use cases updated: [list]
|
|
419
|
-
- Files modified: [list]
|
|
420
|
-
- Remaining gaps: [if any]
|
|
421
|
-
- Next questionnaire: [path if generated]
|
|
422
|
-
- Status: Complete | Needs follow-up
|
|
132
|
+
## References
|
|
423
133
|
|
|
424
|
-
|
|
134
|
+
- `references/workflow.md` - Principles and methodology
|
|
135
|
+
- `references/research.md` - Market research guide
|
|
136
|
+
- `references/codes.md` - Group codes and file patterns
|
|
137
|
+
- `references/templates/` - Output formats
|
|
425
138
|
|
|
426
|
-
|
|
427
|
-
|------|---------|
|
|
428
|
-
| `AskUserQuestion` | Context gathering |
|
|
429
|
-
| `Glob` | Find existing files, codebase scan |
|
|
430
|
-
| `Read` | Read existing BRD, docs |
|
|
431
|
-
| `Write` | Create/update BRD files |
|
|
432
|
-
| `WebSearch` | Market research |
|
|
139
|
+
---
|
|
433
140
|
|
|
434
141
|
## Scripts
|
|
435
142
|
|
|
436
|
-
### Customer Questionnaire
|
|
437
|
-
|
|
438
|
-
Generate dynamic questionnaire based on open questions identified during debrief:
|
|
439
|
-
|
|
440
143
|
```bash
|
|
441
144
|
python .claude/skills/debrief/scripts/generate_questionnaire.py output.xlsx questions.json
|
|
442
145
|
```
|
|
443
|
-
|
|
444
|
-
**Input:** JSON file with collected open questions (see Phase 7)
|
|
445
|
-
|
|
446
|
-
**Output:** Excel file with:
|
|
447
|
-
- Summary sheet (project info, priority breakdown, category counts)
|
|
448
|
-
- Questions sheet (categorized questions with context/source)
|
|
449
|
-
- Answer column for customer to fill
|
|
450
|
-
- Required vs Optional priority indicators
|
|
451
|
-
|
|
452
|
-
**Example:**
|
|
453
|
-
```bash
|
|
454
|
-
# After debrief creates questions.json
|
|
455
|
-
python .claude/skills/debrief/scripts/generate_questionnaire.py plans/features/{feature}/questionnaire-{date}.xlsx /tmp/questions.json
|
|
456
|
-
```
|
|
457
|
-
|
|
458
|
-
The questionnaire only contains questions we couldn't answer from:
|
|
459
|
-
- Customer brief
|
|
460
|
-
- Existing codebase (if any)
|
|
461
|
-
- Market research
|
|
462
|
-
|
|
463
|
-
## References
|
|
464
|
-
|
|
465
|
-
- `references/research-queries.md` - Search templates
|
|
466
|
-
- `references/use-case-template.md` - UC file template
|
|
467
|
-
- `references/group-codes.md` - Standard group codes
|
|
468
|
-
- `references/file-patterns.md` - Codebase scan patterns
|
|
469
|
-
- `references/change-request-template.md` - CR template
|