@codihaus/claude-skills 1.6.26 → 1.6.28

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codihaus/claude-skills",
3
- "version": "1.6.26",
3
+ "version": "1.6.28",
4
4
  "description": "Claude Code skills for software development workflow",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: debrief
3
3
  description: Customer requirements → questionnaire (default) or BRD (with --answers flag)
4
- version: 5.2.0
4
+ version: 5.3.1
5
5
  ---
6
6
 
7
7
  # /debrief - Business Requirements Document
@@ -91,10 +91,21 @@ version: 5.2.0
91
91
 
92
92
  ### 4. Questionnaire = Decision Tool
93
93
 
94
- **3 sheets with evidence**:
94
+ **How to generate**:
95
+ ```bash
96
+ python .claude/skills/debrief/scripts/generate_questionnaire.py questionnaire-{YYYY-MM-DD}.xlsx -
97
+ ```
98
+ Pipe JSON to stdin with research data (see `references/workflow.md` for full JSON format).
99
+
100
+ **CRITICAL: Populate with real data**:
101
+ - **questions array**: 2-5 questions per feature (validation + open questions)
102
+ - **references object**: URLs by feature (comparison, reviews, ecosystems)
103
+ - **research object**: Feature counts, tier breakdown, source counts
104
+
105
+ **3 sheets generated**:
95
106
  - Summary (features count, tier breakdown, research stats)
96
- - Questions (validation + open)
97
- - References (URLs, evidence per feature)
107
+ - Questions (validation + open questions with context)
108
+ - References (URLs by feature, organized by source type)
98
109
 
99
110
  **Purpose**: User reviews evidence, makes decisions, validates with customer.
100
111
 
@@ -106,13 +117,24 @@ Then create BRD via `--answers` or `--generate-brd`.
106
117
 
107
118
  **See** `references/workflow.md` for detailed steps.
108
119
 
109
- **Modes**:
110
- - New Project: Research + questionnaire (no BRD)
111
- - Add Feature: Research + questionnaire (no BRD)
112
- - Process Answers (`--answers`): Create BRD from filled questionnaire
113
- - Generate BRD (`--generate-brd`): Create BRD from research
120
+ **CRITICAL**: ALWAYS ask context questions FIRST using AskUserQuestion tool before doing any research.
114
121
 
115
- **Default**: Questionnaire only. BRD requires explicit flag.
122
+ **Modes**:
123
+ - **New Project**:
124
+ 1. Ask 4 questions (Industry, Users, Constraints, Scope mode: MVP/Market Standard/Full)
125
+ 2. Research + questionnaire → `plans/brd/use-cases/{project}/questionnaire-{date}.xlsx`
126
+ 3. NO BRD created
127
+ - **Add Feature**:
128
+ 1. Ask 2 questions (Feature name, Scope mode: MVP/Market Standard/Full)
129
+ 2. Research + questionnaire → `plans/brd/use-cases/{feature}/questionnaire-{date}.xlsx`
130
+ 3. NO BRD created
131
+ - **Process Answers** (`--answers`):
132
+ 1. Read filled questionnaire
133
+ 2. **ASK what to do**: Continue research / Ask follow-ups / Create BRD
134
+ 3. Execute based on choice
135
+ - **Generate BRD** (`--generate-brd`): Create BRD from research
136
+
137
+ **Default**: Questionnaire only. BRD requires explicit flag AND user confirmation.
116
138
 
117
139
  ---
118
140
 
@@ -185,19 +185,33 @@ Per feature, collect:
185
185
 
186
186
  ## Questionnaire Strategy
187
187
 
188
- **Always generate questionnaire** with:
189
-
190
- **Validation questions** (customer confirms research):
191
- - "We found 9/10 competitors offer {feature}. Confirm you need this?"
192
- - "Market shows {feature} is {tier}. Agree with priority?"
193
-
194
- **Open questions** (genuine unknowns):
195
- - Business rules needing clarification
196
- - Integration requirements
197
- - Constraints and limits
188
+ **Always generate questionnaire** with **2-5 questions per feature**:
189
+
190
+ **Type 1: Validation questions** (customer confirms research):
191
+ - Category: "Validation"
192
+ - Priority: "Required"
193
+ - Examples:
194
+ - "We found 9/10 competitors offer {feature}. Do you need this?"
195
+ - "Market shows {feature} is {tier}. Agree with priority?"
196
+ - "80% of {category} tools include {feature} in free tier. Include in MVP?"
197
+
198
+ **Type 2: Open questions** (genuine unknowns from research):
199
+ - Category: "Requirements" / "Business Rules" / "Integrations" / "Constraints"
200
+ - Priority: "Required" (blockers) or "Optional" (nice to know)
201
+ - Examples:
202
+ - "What is the expected user load?" (Requirements)
203
+ - "Should users be able to delete their account?" (Business Rules)
204
+ - "Which third-party services must integrate?" (Integrations)
205
+ - "Are there compliance requirements (GDPR, HIPAA)?" (Constraints)
198
206
 
199
207
  **Purpose**: Customer validates assumptions + fills gaps
200
208
 
209
+ **CRITICAL**: Every question must have:
210
+ - Clear category
211
+ - Priority (Required/Optional)
212
+ - Context (why we're asking)
213
+ - Source (which feature/UC)
214
+
201
215
  ---
202
216
 
203
217
  ## Common Patterns
@@ -28,26 +28,30 @@
28
28
 
29
29
  **Mindset**: Discovery mode. Understand context, research market, validate with customer.
30
30
 
31
- ### Context Gathering
31
+ ### STEP 1: Context Gathering (MANDATORY - DO THIS FIRST)
32
+
33
+ **CRITICAL**: ALWAYS ask questions BEFORE doing any research. DO NOT skip this step.
32
34
 
33
35
  **Check for existing questionnaire**:
34
36
  - If found: Ask "Found existing research. Use it or start fresh?"
35
37
  - Reuse → Switch to Generate BRD mode
36
38
  - Fresh → Continue with new research
37
39
 
38
- **Ask 4 questions** (AskUserQuestion):
39
- 1. Industry (SaaS/E-commerce/Marketplace/etc.)
40
- 2. Target users (B2B/B2C/Internal)
41
- 3. Constraints (timeline/budget/compliance/integrations)
42
- 4. **Scope tier** (Core/Standard/Full) - determines WHICH features to include
40
+ **ALWAYS ask 4 questions** using AskUserQuestion tool:
41
+ 1. **Industry**: SaaS / E-commerce / Marketplace / etc.
42
+ 2. **Target users**: B2B / B2C / Internal
43
+ 3. **Constraints**: Timeline / Budget / Compliance / Integrations
44
+ 4. **Scope mode**: MVP / Market Standard / Full (determines WHICH features to include)
45
+
46
+ **DO NOT proceed to research until user answers these questions.**
43
47
 
44
48
  **Output**: Context understanding, scope alignment
45
49
 
46
50
  ---
47
51
 
48
- ### Market Research (ALWAYS Deep + Revalidation)
52
+ ### STEP 2: Market Research (ALWAYS Deep + Revalidation)
49
53
 
50
- **CRITICAL**: After scope tier chosen, ALWAYS do deep research + multi-source revalidation.
54
+ **CRITICAL**: After user answers questions and scope tier is chosen, THEN do deep research + multi-source revalidation.
51
55
 
52
56
  **Methodology**: See `research.md` for full process.
53
57
 
@@ -63,18 +67,97 @@
63
67
 
64
68
  **Output**: Features with tier classification and multi-source evidence
65
69
 
66
- ---
67
-
68
- ### Generate Questionnaire (ALWAYS)
70
+ **CRITICAL: Collect URLs during research** for references section:
71
+ - Comparison pages (e.g., "vs Alternative A")
72
+ - G2/Capterra reviews
73
+ - Chrome/WordPress/GitHub ecosystem pages
74
+ - Reddit/forum discussions
75
+ - Competitor feature pages
69
76
 
70
- **Principle**: Default output. No BRD files created yet.
77
+ ---
71
78
 
72
- **3 sheets**:
79
+ ### STEP 3: Generate Questionnaire (ALWAYS)
80
+
81
+ **Principle**: After research is complete, generate questionnaire. No BRD files created yet.
82
+
83
+ **How to generate**:
84
+ 1. Create JSON with research data (see format below)
85
+ 2. Call Python script: `python .claude/skills/debrief/scripts/generate_questionnaire.py questionnaire-{YYYY-MM-DD}.xlsx -`
86
+ 3. Pipe JSON to stdin or save as file
87
+
88
+ **CRITICAL: Populate questions array with TWO types:**
89
+
90
+ **Type 1: Validation questions** (confirm research findings):
91
+ - Category: "Validation"
92
+ - Priority: "Required"
93
+ - Question: "We found {X}/10 competitors offer {feature}. Do you need this?"
94
+ - Context: "Tier: {MVP/Standard/Advanced}, Evidence: {brief summary}"
95
+ - Source: Feature name
96
+
97
+ **Type 2: Open questions** (unknowns from research):
98
+ - Category: "Requirements" / "Business Rules" / "Integrations" / "Constraints"
99
+ - Priority: "Required" (blockers) or "Optional" (nice to know)
100
+ - Question: Specific question needing customer input
101
+ - Context: Why this matters / what it affects
102
+ - Source: Feature name or "General"
103
+
104
+ **Generate 2-5 questions per feature** (1-2 validation, 1-3 open questions).
105
+
106
+ **JSON format**:
107
+ ```json
108
+ {
109
+ "project_name": "Project Management Tool",
110
+ "date": "2026-01-25",
111
+ "research": {
112
+ "depth": "Deep",
113
+ "features_count": 12,
114
+ "tiers": {"MVP": 5, "Standard": 4, "Advanced": 3},
115
+ "sources_count": 23
116
+ },
117
+ "references": {
118
+ "Task Management": [
119
+ {"type": "Comparison", "url": "https://..."},
120
+ {"type": "G2 Reviews", "url": "https://..."},
121
+ {"type": "Chrome Extension", "url": "https://..."}
122
+ ],
123
+ "Team Collaboration": [
124
+ {"type": "Comparison", "url": "https://..."}
125
+ ]
126
+ },
127
+ "questions": [
128
+ {
129
+ "category": "Validation",
130
+ "question": "We found 9/10 competitors offer real-time task updates. Do you need this feature?",
131
+ "priority": "Required",
132
+ "context": "Tier: MVP, 90% competitor presence, high user demand in reviews",
133
+ "source": "Task Management"
134
+ },
135
+ {
136
+ "category": "Business Rules",
137
+ "question": "What is the maximum team size you expect to support?",
138
+ "priority": "Required",
139
+ "context": "Affects pricing model and infrastructure planning",
140
+ "source": "Team Collaboration"
141
+ },
142
+ {
143
+ "category": "Integrations",
144
+ "question": "Which third-party tools must integrate with this system?",
145
+ "priority": "Optional",
146
+ "context": "Common integrations: Slack, Google Calendar, GitHub",
147
+ "source": "General"
148
+ }
149
+ ]
150
+ }
151
+ ```
152
+
153
+ **3 sheets generated**:
73
154
  - **Summary**: Feature count, tier distribution, research stats
74
155
  - **Questions**: Validation + open questions
75
156
  - **References**: URLs by feature (comparison pages, reviews, ecosystems)
76
157
 
77
- **Output**: `questionnaire-{date}.xlsx` in current directory
158
+ **Output location**:
159
+ - New Project: `plans/brd/use-cases/{project-name}/questionnaire-{YYYY-MM-DD}.xlsx`
160
+ - Add Feature: `plans/brd/use-cases/{feature-name}/questionnaire-{YYYY-MM-DD}.xlsx`
78
161
 
79
162
  **NO BRD files created**. User reviews questionnaire first.
80
163
 
@@ -101,25 +184,29 @@
101
184
 
102
185
  **Mindset**: Continuity mode. Check duplicates, maintain consistency.
103
186
 
104
- ### Context Gathering
187
+ ### STEP 1: Context Gathering (MANDATORY - DO THIS FIRST)
188
+
189
+ **CRITICAL**: ALWAYS ask questions BEFORE doing any research. DO NOT skip this step.
105
190
 
106
- **Ask 2 questions**:
107
- 1. Feature name
108
- 2. Scope tier (Core/Standard/Full)
191
+ **ALWAYS ask 2 questions** using AskUserQuestion tool:
192
+ 1. **Feature name**: What feature to add?
193
+ 2. **Scope mode**: MVP / Market Standard / Full (determines WHICH features to include)
109
194
 
110
195
  **Duplicate check**: Read `docs-graph.json` if exists, warn if similar feature found
111
196
 
197
+ **DO NOT proceed to research until user answers these questions.**
198
+
112
199
  **Output**: Feature to add, scope confirmed
113
200
 
114
201
  ---
115
202
 
116
- ### Research & Generate Questionnaire
203
+ ### STEP 2: Research & Generate Questionnaire
117
204
 
118
205
  **Same as New Project**:
119
206
  - Market research (comparison-first, see `research.md`)
120
207
  - Generate questionnaire (validation + open questions)
121
208
 
122
- **Output**: `features/{feature}/questionnaire-{date}.xlsx`
209
+ **Output**: `plans/brd/use-cases/{feature}/questionnaire-{YYYY-MM-DD}.xlsx`
123
210
 
124
211
  **NO BRD files created**. User reviews questionnaire, gets answers, then runs `--answers`.
125
212
 
@@ -129,11 +216,11 @@
129
216
 
130
217
  **Trigger**: `/debrief --answers questionnaire.xlsx`
131
218
 
132
- **Goal**: Create BRD from customer-answered questionnaire.
219
+ **Goal**: Process filled questionnaire and ask what user wants to do next.
133
220
 
134
- **Mindset**: BRD creation mode. Customer validated research, now create structure.
221
+ **Mindset**: Interactive mode. User decides next action based on answers.
135
222
 
136
- ### Read Questionnaire
223
+ ### STEP 1: Read Questionnaire
137
224
 
138
225
  **Read questionnaire** (Excel file):
139
226
  - Summary sheet (features, tiers, research)
@@ -142,7 +229,23 @@
142
229
 
143
230
  ---
144
231
 
145
- ### Feature Sequencing
232
+ ### STEP 2: Ask What To Do (MANDATORY)
233
+
234
+ **CRITICAL**: ALWAYS ask what user wants to do. DO NOT auto-create BRD.
235
+
236
+ **Ask using AskUserQuestion tool** - What would you like to do?
237
+ 1. **Continue research and revise summary** (do more research based on answers)
238
+ 2. **Ask follow-up questions** (generate new questionnaire with deeper questions)
239
+ 3. **Create BRD** (generate use cases and BRD files)
240
+
241
+ **Based on user choice**:
242
+ - Choice 1 → Do additional research, update questionnaire
243
+ - Choice 2 → Generate new questionnaire with follow-up questions
244
+ - Choice 3 → Proceed to Feature Sequencing (below)
245
+
246
+ ---
247
+
248
+ ### STEP 3: Feature Sequencing (ONLY if user chose "Create BRD")
146
249
 
147
250
  **Principle**: Order by dependencies within each tier.
148
251
 
@@ -159,7 +262,7 @@
159
262
 
160
263
  ---
161
264
 
162
- ### Use Case Generation
265
+ ### STEP 4: Use Case Generation (ONLY if user chose "Create BRD")
163
266
 
164
267
  **Principle**: Lean 80/20 format (~30 lines).
165
268
 
@@ -183,9 +286,9 @@
183
286
 
184
287
  ---
185
288
 
186
- ### BRD Structure Creation
289
+ ### STEP 5: BRD Structure Creation (ONLY if user chose "Create BRD")
187
290
 
188
- **Create project-wide** (`brd/`):
291
+ **Create project-wide** (`plans/brd/`):
189
292
  - README.md (all features index)
190
293
  - context.md (stakeholders, users, constraints)
191
294
  - references.md (industry, compliance, competitor overview)