@pjmendonca/devflow 1.18.0 → 1.20.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.
Files changed (49) hide show
  1. package/.claude/commands/brainstorm.md +28 -0
  2. package/.claude/commands/init.md +102 -6
  3. package/.claude/skills/brainstorm/SKILL.md +531 -0
  4. package/.claude/skills/dashboard/SKILL.md +118 -0
  5. package/CHANGELOG.md +62 -0
  6. package/README.md +2 -2
  7. package/bin/devflow-dashboard.js +10 -0
  8. package/bin/devflow-swarm.js +11 -0
  9. package/bin/devflow.js +2 -0
  10. package/package.json +3 -1
  11. package/tooling/.automation/memory/knowledge/kg_integration-test.json +116 -1
  12. package/tooling/.automation/memory/knowledge/kg_test-story.json +392 -2
  13. package/tooling/.automation/memory/shared/shared_integration-test.json +37 -1
  14. package/tooling/.automation/memory/shared/shared_test-story.json +109 -1
  15. package/tooling/.automation/memory/shared/shared_test.json +235 -1
  16. package/tooling/.automation/memory/shared/shared_validation-check.json +40 -1
  17. package/tooling/.automation/validation/history/2026-01-03_val_1287a74c.json +41 -0
  18. package/tooling/.automation/validation/history/2026-01-03_val_3b24071f.json +32 -0
  19. package/tooling/.automation/validation/history/2026-01-03_val_44d77573.json +32 -0
  20. package/tooling/.automation/validation/history/2026-01-03_val_5b31dc51.json +32 -0
  21. package/tooling/.automation/validation/history/2026-01-03_val_74267244.json +32 -0
  22. package/tooling/.automation/validation/history/2026-01-03_val_8b2d95c7.json +59 -0
  23. package/tooling/.automation/validation/history/2026-01-03_val_d875b297.json +41 -0
  24. package/tooling/.automation/validation/history/2026-01-16_val_0b81ec2f.json +41 -0
  25. package/tooling/.automation/validation/history/2026-01-16_val_26c18e64.json +32 -0
  26. package/tooling/.automation/validation/history/2026-01-16_val_32af0152.json +32 -0
  27. package/tooling/.automation/validation/history/2026-01-16_val_353d1569.json +32 -0
  28. package/tooling/.automation/validation/history/2026-01-16_val_39e3c143.json +59 -0
  29. package/tooling/.automation/validation/history/2026-01-16_val_77fb42e4.json +32 -0
  30. package/tooling/.automation/validation/history/2026-01-16_val_a0752656.json +41 -0
  31. package/tooling/.automation/validation/history/2026-01-16_val_a29213b0.json +41 -0
  32. package/tooling/.automation/validation/history/2026-01-16_val_a9375d4c.json +32 -0
  33. package/tooling/.automation/validation/history/2026-01-16_val_c147bbdf.json +32 -0
  34. package/tooling/.automation/validation/history/2026-01-16_val_d06ccf8d.json +32 -0
  35. package/tooling/.automation/validation/history/2026-01-16_val_d6a80295.json +59 -0
  36. package/tooling/.automation/validation/history/2026-01-16_val_dce5005d.json +41 -0
  37. package/tooling/.automation/validation/history/2026-01-16_val_e53b3a63.json +32 -0
  38. package/tooling/docs/stories/.gitkeep +0 -0
  39. package/tooling/docs/templates/brainstorm-guide.md +314 -0
  40. package/tooling/docs/templates/story.md +66 -0
  41. package/tooling/scripts/lib/__init__.py +1 -1
  42. package/tooling/scripts/lib/cost_display.py +7 -1
  43. package/tooling/scripts/lib/pair_programming.py +6 -4
  44. package/tooling/scripts/lib/swarm_orchestrator.py +13 -11
  45. package/tooling/scripts/live_dashboard.py +832 -0
  46. package/tooling/scripts/new-doc.py +1 -1
  47. package/tooling/scripts/run-collab.py +2 -2
  48. package/tooling/scripts/run-story.py +21 -9
  49. package/tooling/scripts/setup-checkpoint-service.py +1 -1
@@ -0,0 +1,314 @@
1
+ # Brainstorming Techniques Guide
2
+
3
+ This guide provides structured approaches for product discovery and story creation during Devflow initialization and brainstorming sessions.
4
+
5
+ ---
6
+
7
+ ## Technique 1: Guided Discovery (Socratic Method)
8
+
9
+ Progressive questioning to uncover product vision and features.
10
+
11
+ ### Vision Questions
12
+
13
+ 1. **Problem Space**
14
+ - What problem are you solving?
15
+ - Who experiences this problem most acutely?
16
+ - What happens if this problem isn't solved?
17
+
18
+ 2. **Target Users**
19
+ - Who is your primary user?
20
+ - What's their current workflow/workaround?
21
+ - What frustrates them most about existing solutions?
22
+
23
+ 3. **Success Definition**
24
+ - What does success look like in 6 months?
25
+ - How will you measure success?
26
+ - What's the one thing this product MUST do well?
27
+
28
+ 4. **Competitive Landscape**
29
+ - What alternatives exist today?
30
+ - What's your unfair advantage?
31
+ - Why would users switch to your solution?
32
+
33
+ ### Feature Discovery Questions
34
+
35
+ 1. **Core Value**
36
+ - What's the minimum feature set for first value delivery?
37
+ - If you could only ship one feature, what would it be?
38
+ - What features are table stakes vs. differentiators?
39
+
40
+ 2. **User Journey**
41
+ - What's the first thing a new user should do?
42
+ - What action leads to the "aha moment"?
43
+ - What would make users come back daily?
44
+
45
+ 3. **Constraints**
46
+ - What's technically hardest about this product?
47
+ - What regulatory or compliance constraints exist?
48
+ - What's your deadline or launch constraint?
49
+
50
+ ---
51
+
52
+ ## Technique 2: User Journey Mapping
53
+
54
+ Walk through user flows to discover features systematically.
55
+
56
+ ### Journey Framework
57
+
58
+ ```
59
+ TRIGGER -> ENTRY -> CORE ACTIONS -> SUCCESS -> RETENTION
60
+ ```
61
+
62
+ ### Journey Questions by Stage
63
+
64
+ **1. Trigger (What brings users?)**
65
+ - How do users discover your product?
66
+ - What motivates them to try it?
67
+ - What's their emotional state when starting?
68
+
69
+ **2. Entry (First experience)**
70
+ - What's the onboarding flow?
71
+ - What information do you need from users?
72
+ - How quickly can they see value?
73
+
74
+ **3. Core Actions (Main usage)**
75
+ - What are the 3-5 primary actions users take?
76
+ - What workflows are most common?
77
+ - What data do they create/consume?
78
+
79
+ **4. Success (Value delivery)**
80
+ - What outcome indicates success for the user?
81
+ - How do they know they've achieved their goal?
82
+ - What feedback loops exist?
83
+
84
+ **5. Retention (Coming back)**
85
+ - Why would users return?
86
+ - What triggers re-engagement?
87
+ - How does value compound over time?
88
+
89
+ ### Journey Mapping Exercise
90
+
91
+ ```
92
+ For each user type, complete:
93
+
94
+ User: [Name/Persona]
95
+ Goal: [What they want to achieve]
96
+
97
+ Journey:
98
+ 1. [Trigger] -> Feature: ___
99
+ 2. [Entry] -> Feature: ___
100
+ 3. [Action 1] -> Feature: ___
101
+ 4. [Action 2] -> Feature: ___
102
+ 5. [Action 3] -> Feature: ___
103
+ 6. [Success] -> Feature: ___
104
+ 7. [Return] -> Feature: ___
105
+ ```
106
+
107
+ ---
108
+
109
+ ## Technique 3: Rapid Feature List
110
+
111
+ Fast ideation followed by grouping and prioritization.
112
+
113
+ ### Phase 1: Ideation (5 minutes)
114
+
115
+ Rules:
116
+ - No filtering - capture everything
117
+ - Quantity over quality
118
+ - Build on others' ideas
119
+ - No criticism yet
120
+
121
+ Prompt questions:
122
+ - What features do competitors have?
123
+ - What would make users say "wow"?
124
+ - What automation would save time?
125
+ - What information do users need?
126
+ - What actions should be one-click?
127
+
128
+ ### Phase 2: Grouping (3 minutes)
129
+
130
+ Group features into:
131
+ - **User Management** (auth, profiles, settings)
132
+ - **Core Features** (primary value proposition)
133
+ - **Data & Content** (creation, display, storage)
134
+ - **Social/Sharing** (collaboration, communication)
135
+ - **Analytics/Insights** (reporting, tracking)
136
+ - **Integrations** (third-party connections)
137
+ - **Admin/Settings** (configuration, management)
138
+
139
+ ### Phase 3: Prioritization (5 minutes)
140
+
141
+ Use MoSCoW method:
142
+ - **Must Have**: Critical for launch, non-negotiable
143
+ - **Should Have**: Important but can work around
144
+ - **Could Have**: Nice to have, enhances experience
145
+ - **Won't Have**: Out of scope for now
146
+
147
+ ### Rapid List Template
148
+
149
+ ```
150
+ MUST HAVE (MVP)
151
+ - [ ] Feature 1
152
+ - [ ] Feature 2
153
+ - [ ] Feature 3
154
+
155
+ SHOULD HAVE (v1.1)
156
+ - [ ] Feature 4
157
+ - [ ] Feature 5
158
+
159
+ COULD HAVE (Later)
160
+ - [ ] Feature 6
161
+ - [ ] Feature 7
162
+
163
+ WON'T HAVE (Not now)
164
+ - [ ] Feature 8
165
+ ```
166
+
167
+ ---
168
+
169
+ ## Technique 4: Story Decomposition
170
+
171
+ Breaking epics into implementable stories.
172
+
173
+ ### INVEST Criteria
174
+
175
+ Every story should be:
176
+ - **I**ndependent: Can be built separately
177
+ - **N**egotiable: Details can be discussed
178
+ - **V**aluable: Delivers user value
179
+ - **E**stimable: Can be sized
180
+ - **S**mall: Fits in a sprint
181
+ - **T**estable: Has clear acceptance criteria
182
+
183
+ ### Decomposition Strategies
184
+
185
+ **1. By User Role**
186
+ ```
187
+ Epic: User Authentication
188
+ -> Story: User can sign up with email
189
+ -> Story: Admin can invite users
190
+ -> Story: User can reset password
191
+ ```
192
+
193
+ **2. By Workflow Step**
194
+ ```
195
+ Epic: Checkout Flow
196
+ -> Story: User can add items to cart
197
+ -> Story: User can enter shipping address
198
+ -> Story: User can complete payment
199
+ ```
200
+
201
+ **3. By Data Operation (CRUD)**
202
+ ```
203
+ Epic: Task Management
204
+ -> Story: User can create a task
205
+ -> Story: User can view task list
206
+ -> Story: User can edit a task
207
+ -> Story: User can delete a task
208
+ ```
209
+
210
+ **4. By Happy Path + Edge Cases**
211
+ ```
212
+ Epic: File Upload
213
+ -> Story: User can upload single file (happy path)
214
+ -> Story: System handles invalid file types
215
+ -> Story: System handles upload failures
216
+ ```
217
+
218
+ ### Story Sizing Reference
219
+
220
+ | Size | Description | Example |
221
+ |------|-------------|---------|
222
+ | XS | < 2 hours | Add a button, fix typo |
223
+ | S | 2-4 hours | Simple form, basic API endpoint |
224
+ | M | 1-2 days | Feature with UI + API + tests |
225
+ | L | 3-5 days | Complex feature, multiple components |
226
+ | XL | 1+ week | Should be broken down further |
227
+
228
+ ---
229
+
230
+ ## Technique 5: Prioritization Frameworks
231
+
232
+ ### RICE Scoring
233
+
234
+ ```
235
+ Score = (Reach x Impact x Confidence) / Effort
236
+
237
+ Reach: Number of users affected per quarter
238
+ Impact: 3=massive, 2=high, 1=medium, 0.5=low, 0.25=minimal
239
+ Confidence: 100%, 80%, 50%
240
+ Effort: Person-weeks
241
+ ```
242
+
243
+ ### Impact/Effort Matrix
244
+
245
+ ```
246
+ HIGH IMPACT
247
+ |
248
+ Quick | Big Bets
249
+ Wins | (schedule these)
250
+ (do first)|
251
+ -------------+-------------
252
+ Fill-ins | Time Sinks
253
+ (maybe) | (avoid)
254
+ |
255
+ LOW IMPACT
256
+
257
+ LOW EFFORT | HIGH EFFORT
258
+ ```
259
+
260
+ ### Priority Labels
261
+
262
+ | Priority | Meaning | Timing |
263
+ |----------|---------|--------|
264
+ | P0 | Critical | This sprint, drop everything |
265
+ | P1 | High | Next sprint |
266
+ | P2 | Medium | This quarter |
267
+ | P3 | Low | Backlog |
268
+
269
+ ---
270
+
271
+ ## Quick Reference: Init Session (10 min)
272
+
273
+ 1. **Vision** (2 min)
274
+ - What problem are you solving?
275
+ - Who's your primary user?
276
+
277
+ 2. **Core Features** (3 min)
278
+ - What's the one thing this must do well?
279
+ - What are the 3-5 core features?
280
+
281
+ 3. **First Sprint** (3 min)
282
+ - What's your MVP scope?
283
+ - Pick 3-5 stories for sprint 1
284
+
285
+ 4. **Wrap-up** (2 min)
286
+ - Review and confirm
287
+ - Generate story files
288
+
289
+ ---
290
+
291
+ ## Full Workshop Reference (30 min)
292
+
293
+ 1. **Vision Discovery** (5 min)
294
+ - Complete vision questions
295
+ - Define success metrics
296
+
297
+ 2. **User Journey Mapping** (8 min)
298
+ - Map 1-2 primary user journeys
299
+ - Extract features from each step
300
+
301
+ 3. **Rapid Feature List** (7 min)
302
+ - Brainstorm all features
303
+ - Group by category
304
+ - Apply MoSCoW
305
+
306
+ 4. **Story Decomposition** (7 min)
307
+ - Break down Must Have features
308
+ - Apply INVEST criteria
309
+ - Size stories
310
+
311
+ 5. **Sprint Planning** (3 min)
312
+ - Select sprint 1 stories
313
+ - Verify capacity fit
314
+ - Generate files
@@ -0,0 +1,66 @@
1
+ # STORY-{sprint}-{number}-{slug}
2
+
3
+ **Type**: Feature
4
+ **Status**: backlog | drafted | ready-for-dev | in-progress | review | done
5
+ **Sprint**: {sprint}
6
+ **Priority**: P0 (Critical) | P1 (High) | P2 (Medium) | P3 (Low)
7
+ **Effort**: XS | S | M | L | XL
8
+ **Created**: {date}
9
+ **Last Updated**: {date}
10
+
11
+ ---
12
+
13
+ ## Summary
14
+
15
+ {One-line description of what this story delivers}
16
+
17
+ ## User Story
18
+
19
+ As a **{user type}**,
20
+ I want **{goal/desire}**,
21
+ So that **{benefit/value}**.
22
+
23
+ ## Context
24
+
25
+ {Why is this story important? What problem does it solve? Background information.}
26
+
27
+ ## Acceptance Criteria
28
+
29
+ - [ ] **AC-1**: {Specific, testable criterion}
30
+ - [ ] **AC-2**: {Specific, testable criterion}
31
+ - [ ] **AC-3**: {Specific, testable criterion}
32
+
33
+ ## Technical Notes
34
+
35
+ {Implementation hints, architectural considerations, API contracts, data structures}
36
+
37
+ ## Business Rules
38
+
39
+ - {Rule 1}: {Business logic that must be enforced}
40
+ - {Rule 2}: {Validation or constraint}
41
+
42
+ ## Dependencies
43
+
44
+ - {Story or system this depends on}
45
+
46
+ ## Out of Scope
47
+
48
+ - {What this story explicitly does NOT include}
49
+
50
+ ## UI/UX Notes
51
+
52
+ {Wireframes, mockups, or design specifications if applicable}
53
+
54
+ ## Testing Strategy
55
+
56
+ - **Unit Tests**: {What to test at unit level}
57
+ - **Integration Tests**: {What to test at integration level}
58
+ - **Manual QA**: {Scenarios requiring manual verification}
59
+
60
+ ## Definition of Done
61
+
62
+ - [ ] Code implemented and compiles
63
+ - [ ] All acceptance criteria met
64
+ - [ ] Tests written and passing
65
+ - [ ] Code reviewed
66
+ - [ ] Documentation updated (if applicable)
@@ -25,7 +25,7 @@ Usage:
25
25
  from lib.platform import get_platform, IS_WINDOWS
26
26
  """
27
27
 
28
- __version__ = "1.18.0"
28
+ __version__ = "1.20.0"
29
29
 
30
30
  # Lazy imports to avoid circular dependencies
31
31
  __all__ = [
@@ -22,7 +22,13 @@ from typing import Optional
22
22
  # Add parent for imports
23
23
  sys.path.insert(0, str(Path(__file__).parent))
24
24
 
25
- from platform import IS_WINDOWS
25
+ try:
26
+ from lib.platform import IS_WINDOWS
27
+ except ImportError:
28
+ # Fallback for when running from lib directory
29
+ import sys as _sys
30
+
31
+ IS_WINDOWS = _sys.platform == "win32"
26
32
 
27
33
  from colors import Colors
28
34
  from cost_tracker import PRICING, CostTracker
@@ -32,12 +32,14 @@ from typing import Optional
32
32
 
33
33
  # Import dependencies
34
34
  try:
35
- from platform import IS_WINDOWS
36
-
37
- from shared_memory import get_knowledge_graph, get_shared_memory
38
- except ImportError:
39
35
  from lib.platform import IS_WINDOWS
40
36
  from lib.shared_memory import get_knowledge_graph, get_shared_memory
37
+ except ImportError:
38
+ # Fallback for when running from lib directory
39
+ import sys as _sys
40
+
41
+ IS_WINDOWS = _sys.platform == "win32"
42
+ from shared_memory import get_knowledge_graph, get_shared_memory
41
43
 
42
44
  # Try to import validation loop
43
45
  try:
@@ -43,11 +43,9 @@ from typing import Optional
43
43
 
44
44
  # Import dependencies
45
45
  try:
46
- from platform import IS_WINDOWS
47
-
48
- from agent_handoff import HandoffGenerator
49
- from agent_router import AgentRouter
50
- from personality_system import (
46
+ from lib.agent_handoff import HandoffGenerator
47
+ from lib.agent_router import AgentRouter
48
+ from lib.personality_system import (
51
49
  ConvergenceDetector,
52
50
  DebatePosition,
53
51
  PersonalityHandoff,
@@ -55,11 +53,16 @@ try:
55
53
  PersonalitySelector,
56
54
  extract_arguments_from_response,
57
55
  )
58
- from shared_memory import get_knowledge_graph, get_shared_memory
56
+ from lib.platform import IS_WINDOWS
57
+ from lib.shared_memory import get_knowledge_graph, get_shared_memory
59
58
  except ImportError:
60
- from lib.agent_handoff import HandoffGenerator
61
- from lib.agent_router import AgentRouter
62
- from lib.personality_system import (
59
+ # Fallback for when running from lib directory
60
+ import sys as _sys
61
+
62
+ IS_WINDOWS = _sys.platform == "win32"
63
+ from agent_handoff import HandoffGenerator
64
+ from agent_router import AgentRouter
65
+ from personality_system import (
63
66
  ConvergenceDetector,
64
67
  DebatePosition,
65
68
  PersonalityHandoff,
@@ -67,8 +70,7 @@ except ImportError:
67
70
  PersonalitySelector,
68
71
  extract_arguments_from_response,
69
72
  )
70
- from lib.platform import IS_WINDOWS
71
- from lib.shared_memory import get_knowledge_graph, get_shared_memory
73
+ from shared_memory import get_knowledge_graph, get_shared_memory
72
74
 
73
75
  # Try to import validation loop
74
76
  try: