@codihaus/claude-skills 1.5.0 → 1.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codihaus/claude-skills",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Claude Code skills for software development workflow",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -8,7 +8,10 @@
8
8
  },
9
9
  "scripts": {
10
10
  "build": "node scripts/build.js",
11
- "prepublishOnly": "npm run build",
11
+ "release": "node scripts/publish.js",
12
+ "release:patch": "node scripts/publish.js patch",
13
+ "release:minor": "node scripts/publish.js minor",
14
+ "release:major": "node scripts/publish.js major",
12
15
  "test": "node bin/cli.js --help"
13
16
  },
14
17
  "type": "module",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: debrief
3
3
  description: Analyze customer requirements and deliver market research, tiered proposals, and recommendations
4
- version: 3.8.0
4
+ version: 3.9.0
5
5
  ---
6
6
 
7
7
  # /debrief - Business Requirements Document (BRD)
@@ -490,7 +490,7 @@ Gather all open questions from:
490
490
  If open questions exist, generate customer questionnaire:
491
491
 
492
492
  ```bash
493
- python scripts/generate_questionnaire.py {output_path} questions.json
493
+ python .claude/skills/debrief/scripts/generate_questionnaire.py {output_path} questions.json
494
494
  ```
495
495
 
496
496
  **Output location** (contextual, with date for revision tracking):
@@ -516,10 +516,13 @@ Output summary:
516
516
 
517
517
  **Next steps suggestions:**
518
518
  - Send questionnaire to customer (if generated)
519
- - Run `/dev-scout` for codebase analysis
520
- - Run `/dev-scout {feature}` for targeted analysis
521
519
  - Review use cases with stakeholders
522
- - Run `/dev-specs {feature}` when ready
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.
523
526
 
524
527
  ---
525
528
 
@@ -616,7 +619,7 @@ Output:
616
619
  Generate dynamic questionnaire based on open questions identified during debrief:
617
620
 
618
621
  ```bash
619
- python scripts/generate_questionnaire.py output.xlsx questions.json
622
+ python .claude/skills/debrief/scripts/generate_questionnaire.py output.xlsx questions.json
620
623
  ```
621
624
 
622
625
  **Input:** JSON file with collected open questions (see Phase 7)
@@ -630,7 +633,7 @@ python scripts/generate_questionnaire.py output.xlsx questions.json
630
633
  **Example:**
631
634
  ```bash
632
635
  # After debrief creates questions.json
633
- python scripts/generate_questionnaire.py plans/brd/questionnaire.xlsx /tmp/questions.json
636
+ python .claude/skills/debrief/scripts/generate_questionnaire.py plans/features/{feature}/questionnaire-{date}.xlsx /tmp/questions.json
634
637
  ```
635
638
 
636
639
  The questionnaire only contains questions we couldn't answer from:
File without changes
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: dev-coding
3
3
  description: Implement features from specs with backend and frontend skills
4
- version: 1.3.0
4
+ version: 1.7.0
5
5
  ---
6
6
 
7
7
  # /dev-coding - Implementation Skill
@@ -50,7 +50,81 @@ Updates to specs:
50
50
 
51
51
  ## Workflow
52
52
 
53
- ### Phase 0: Load Context
53
+ ### Phase 0: Determine Scope & Select UCs
54
+
55
+ **Before starting, determine which use cases to implement.**
56
+
57
+ ```
58
+ Parse user input:
59
+ - /dev-coding UC-AUTH-001 → Specific UC (skip to Phase 1)
60
+ - /dev-coding auth → Feature-level (need UC selection)
61
+ ```
62
+
63
+ **If user specified feature name (not specific UC), show UC selection:**
64
+
65
+ 1. **List available UCs:**
66
+ ```
67
+ Available Use Cases for auth:
68
+ 1. UC-AUTH-001: User Login
69
+ 2. UC-AUTH-002: User Signup
70
+ 3. UC-AUTH-003: Password Reset
71
+ 4. UC-AUTH-004: Email Verification
72
+ 5. UC-AUTH-005: Two-Factor Authentication
73
+ ```
74
+
75
+ 2. **Ask implementation mode** (use AskUserQuestion):
76
+ - **One by one (Recommended)**: Implement 1 UC, test, then ask for next
77
+ - **Multiple (custom selection)**: Select specific UCs (e.g., "1,3-5,7")
78
+ - **All at once**: Implement all UCs in sequence
79
+
80
+ 3. **Process selection:**
81
+ - **One by one**: Implement → Test → Ask to continue (safest, recommended)
82
+ - **Multiple**: Implement → Test each UC → Auto-continue (no prompts between)
83
+ - **All at once**: Implement → Test each UC → Auto-continue (no prompts)
84
+
85
+ **Parsing examples:**
86
+ | Input | Result |
87
+ |-------|--------|
88
+ | `1,3,5` | UCs 1, 3, 5 |
89
+ | `1-3` | UCs 1, 2, 3 |
90
+ | `1,3-5,7` | UCs 1, 3, 4, 5, 7 |
91
+ | `all` | All UCs |
92
+
93
+ **After selection, store plan:**
94
+ ```
95
+ implementationPlan = {
96
+ mode: "one-by-one" | "multiple" | "all",
97
+ ucs: [UC-AUTH-001, UC-AUTH-003, ...],
98
+ currentIndex: 0
99
+ }
100
+ ```
101
+
102
+ **Flow Visualization:**
103
+
104
+ ```
105
+ Mode: ONE BY ONE (Recommended)
106
+ ─────────────────────────────
107
+ UC #1: Implement → Test → ✓ Pass → [ASK USER: Continue?]
108
+ ↓ Yes
109
+ UC #2: Implement → Test → ✓ Pass → [ASK USER: Continue?]
110
+ ↓ Yes
111
+ UC #3: Implement → Test → ✓ Pass → Done
112
+
113
+
114
+ Mode: MULTIPLE / ALL AT ONCE
115
+ ────────────────────────────
116
+ UC #1: Implement → Test → ✓ Pass → [Auto-continue]
117
+
118
+ UC #2: Implement → Test → ✓ Pass → [Auto-continue]
119
+
120
+ UC #3: Implement → Test → ✓ Pass → Done
121
+ ```
122
+
123
+ **Key Point:** Testing (Phase 7) is a checkpoint after each UC in ALL modes.
124
+ - "One by one": Test passes → Ask user before next UC
125
+ - "Multiple/All": Test passes → Automatically start next UC
126
+
127
+ ### Phase 1: Load Context
54
128
 
55
129
  ```
56
130
  1. Read UC spec
@@ -85,7 +159,7 @@ Updates to specs:
85
159
  → Warn if not, let user decide to proceed
86
160
  ```
87
161
 
88
- ### Phase 1: Determine Work Type
162
+ ### Phase 2: Determine Work Type
89
163
 
90
164
  Based on spec, determine what's needed:
91
165
 
@@ -103,7 +177,7 @@ Read spec → Extract:
103
177
  - Pages/routes needed?
104
178
  ```
105
179
 
106
- ### Phase 2: Load Sub-Skills
180
+ ### Phase 3: Load Sub-Skills
107
181
 
108
182
  **If backend work needed:**
109
183
  ```
@@ -127,7 +201,7 @@ Tech detected from scout:
127
201
  - react → react.md
128
202
  ```
129
203
 
130
- ### Phase 3: Execute Backend (if needed)
204
+ ### Phase 4: Execute Backend (if needed)
131
205
 
132
206
  Follow dev-coding-backend workflow:
133
207
 
@@ -154,7 +228,7 @@ Follow dev-coding-backend workflow:
154
228
  - Request/response shapes
155
229
  - Auth requirements
156
230
 
157
- ### Phase 4: Execute Frontend (if needed)
231
+ ### Phase 5: Execute Frontend (if needed)
158
232
 
159
233
  Follow dev-coding-frontend workflow:
160
234
 
@@ -174,7 +248,7 @@ Follow dev-coding-frontend workflow:
174
248
  - Visual check (Playwright screenshot or manual)
175
249
  - Interaction test
176
250
 
177
- ### Phase 5: Integration Test
251
+ ### Phase 6: Integration Test
178
252
 
179
253
  End-to-end verification:
180
254
 
@@ -240,7 +314,9 @@ Run through `_quality-attributes.md` Implementation Level checklists:
240
314
 
241
315
  ### Phase 7: Auto-Test
242
316
 
243
- **Automatically run testing to verify implementation:**
317
+ **CRITICAL: Testing runs after EVERY UC implementation (all modes).**
318
+
319
+ Testing verifies each UC before proceeding to the next:
244
320
 
245
321
  ```
246
322
  1. Load dev-test skill
@@ -250,19 +326,36 @@ Run through `_quality-attributes.md` Implementation Level checklists:
250
326
  → From project config or spec
251
327
  → Default: http://localhost:3000/{path}
252
328
 
253
- 3. Run E2E test
329
+ 3. Run E2E test for CURRENT UC
254
330
  → Navigate to page
255
331
  → Execute user flow from spec
256
332
  → Capture errors
257
333
 
258
- 4. Analyze results
334
+ 4. Run regression tests (if previous UCs exist)
335
+ → Quick smoke test of previously completed UCs
336
+ → Ensures new UC didn't break existing functionality
337
+ → Example: UC-AUTH-002 (Signup) shouldn't break UC-AUTH-001 (Login)
338
+
339
+ Regression approach:
340
+ - If only 1-2 previous UCs: Full test
341
+ - If 3+ previous UCs: Critical path only (login flow, main actions)
342
+ - Skip if UCs are completely independent
343
+
344
+ 5. Analyze results
259
345
  → Console errors?
260
346
  → Network failures?
261
347
  → Visual issues?
348
+ → Regression failures?
349
+
350
+ 6. Handle results:
351
+ - All pass (current + regression) → Proceed to Phase 8 (Complete)
352
+ - Current UC fails → Fix current UC and re-test
353
+ - Regression fails → Fix regression issue (may need to update previous UC)
262
354
 
263
- 5. Handle results:
264
- - All pass Proceed to Phase 8
265
- - Issues found Report and fix
355
+ IMPORTANT: Do NOT proceed to next UC until:
356
+ - Current UC passes all tests
357
+ - Previous UCs still work (regression pass)
358
+ This ensures quality and prevents cascading failures.
266
359
  ```
267
360
 
268
361
  **Test Flow:**
@@ -300,12 +393,14 @@ if (hasErrors) {
300
393
 
301
394
  ### Phase 8: Complete
302
395
 
396
+ **This phase runs after each UC is implemented AND tested.**
397
+
303
398
  1. **Update spec status**
304
399
  ```markdown
305
400
  <!-- In specs/{UC-ID}/README.md -->
306
401
  > **Status**: Complete
307
402
  > **Completed**: {date}
308
- > **Tested**: ✓ Pass
403
+ > **Tested**: ✓ Pass (Phase 7)
309
404
  ```
310
405
 
311
406
  2. **Document changes**
@@ -330,15 +425,56 @@ if (hasErrors) {
330
425
 
331
426
  3. **Update docs-graph** (automatic via hook)
332
427
 
333
- 4. **Suggest next action**
334
- ```markdown
335
- **Implementation complete and tested.**
336
-
337
- 💡 **Suggestions:**
338
- - Run `/dev-review` to review changes before commit
339
- - UC-AUTH-002 (Signup) is now unblocked
428
+ 4. **Continue with next UC (if applicable)**
429
+ ```
430
+ IMPORTANT: This step only runs if Phase 7 (Testing) passed.
431
+ If tests fail, fix issues and re-test before continuing.
432
+
433
+ Check implementationPlan from Phase 0:
434
+
435
+ If more UCs remaining:
436
+ Mode "one-by-one":
437
+ → Show: "✓ UC-AUTH-001 implemented and tested successfully!"
438
+ → Show: "Remaining: UC-AUTH-002, UC-AUTH-003, UC-AUTH-004"
439
+ → Ask (AskUserQuestion): "Continue with UC-AUTH-002?"
440
+ Options:
441
+ - Yes (continue with next UC)
442
+ - No (stop here, can resume later)
443
+ - Select different UCs (return to Phase 0)
444
+ → Yes: currentIndex++, restart from Phase 1
445
+ → No: Show summary, stop
446
+ → Select: Return to Phase 0 for new selection
447
+
448
+ Mode "multiple" or "all":
449
+ → Show: "✓ UC-AUTH-001 implemented and tested successfully!"
450
+ → Automatically: currentIndex++
451
+ → Restart from Phase 1 with next UC
452
+ → No user prompt until all selected UCs complete
453
+
454
+ If all UCs complete:
455
+ → Show summary (see below)
456
+ → Suggest /dev-review {feature}
340
457
  ```
341
458
 
459
+ **Summary Output (all UCs complete):**
460
+ ```markdown
461
+ ✅ All Use Cases Implemented
462
+
463
+ **Completed:**
464
+ - UC-AUTH-001: User Login ✓
465
+ - UC-AUTH-003: Password Reset ✓
466
+ - UC-AUTH-004: Email Verification ✓
467
+
468
+ **Stats:**
469
+ - Files changed: 12
470
+ - Tests: All passing
471
+ - Duration: ~45 minutes
472
+
473
+ **Next Steps:**
474
+ - Run `/dev-review auth` for code review
475
+ - Create PR when ready
476
+ ```
477
+
342
478
  ## Communication Protocol
343
479
 
344
480
  ### When to Ask
@@ -439,8 +575,9 @@ When coding, use Context7 to look up library APIs:
439
575
  | `/utils/docs-graph` | Auto-updates on file changes |
440
576
  | `/dev-review` | Review after testing passes |
441
577
 
442
- ## Example Flow
578
+ ## Example Flows
443
579
 
580
+ ### Example 1: Specific UC (Skip Selection)
444
581
  ```
445
582
  User: /dev-coding UC-AUTH-001
446
583
 
@@ -479,3 +616,146 @@ User: /dev-coding UC-AUTH-001
479
616
  → Suggest: "Run /dev-review before committing"
480
617
  → Note: "UC-AUTH-002 (Signup) is now unblocked"
481
618
  ```
619
+
620
+ ### Example 2: One by One Mode (Recommended)
621
+ ```
622
+ User: /dev-coding auth
623
+
624
+ 📋 Available Use Cases for auth:
625
+ 1. UC-AUTH-001: User Login
626
+ 2. UC-AUTH-002: User Signup
627
+ 3. UC-AUTH-003: Password Reset
628
+
629
+ ? Which use cases would you like to implement?
630
+ ◉ One by one (Recommended) ← User selects this
631
+ ○ Multiple (custom selection)
632
+ ○ All at once
633
+
634
+ ───────────────────────────────────────────────
635
+ 🔨 UC-AUTH-001: User Login
636
+ ───────────────────────────────────────────────
637
+
638
+ Phase 1-6: Implement backend + frontend
639
+ Phase 7: Auto-test
640
+ ✓ Navigate to /login
641
+ ✓ Fill form and submit
642
+ ✓ No console errors
643
+ ✓ API returns 200
644
+ ✓ Redirect to /dashboard works
645
+
646
+ Phase 8: Complete
647
+ ✓ UC-AUTH-001 implemented and tested successfully!
648
+
649
+ Remaining: UC-AUTH-002, UC-AUTH-003
650
+
651
+ ? Continue with UC-AUTH-002? ← Prompt after testing passes
652
+ ◉ Yes (continue)
653
+ ○ No (stop here)
654
+ ○ Select different UCs
655
+
656
+ User selects: Yes
657
+
658
+ ───────────────────────────────────────────────
659
+ 🔨 UC-AUTH-002: User Signup
660
+ ───────────────────────────────────────────────
661
+
662
+ Phase 1-6: Implement backend + frontend
663
+ Phase 7: Auto-test
664
+ ✓ Navigate to /signup
665
+ ✓ Fill registration form
666
+ ✓ Submit and verify
667
+ ✗ Console error: "Email validation failed"
668
+
669
+ ⚠️ Tests failed. Fixing...
670
+ → Updated validation logic
671
+ → Re-testing...
672
+ ✓ All tests pass
673
+
674
+ Phase 8: Complete
675
+ ✓ UC-AUTH-002 implemented and tested successfully!
676
+
677
+ Remaining: UC-AUTH-003
678
+
679
+ ? Continue with UC-AUTH-003?
680
+ ◉ Yes
681
+ ○ No (stop here)
682
+ ○ Select different UCs
683
+
684
+ User selects: No
685
+
686
+ ───────────────────────────────────────────────
687
+ Summary
688
+ ───────────────────────────────────────────────
689
+ ✅ Completed:
690
+ - UC-AUTH-001: User Login ✓
691
+ - UC-AUTH-002: User Signup ✓
692
+
693
+ ⏸️ Pending:
694
+ - UC-AUTH-003: Password Reset
695
+
696
+ 💡 Next steps:
697
+ - Run /dev-review auth
698
+ - Resume later with: /dev-coding UC-AUTH-003
699
+ ```
700
+
701
+ **Key Points in "One by One" Mode:**
702
+ 1. Each UC is **fully implemented** (Phases 1-6)
703
+ 2. Each UC is **fully tested** (Phase 7) before prompting
704
+ 3. User gets a **checkpoint** to review/test manually if desired
705
+ 4. User **chooses** whether to continue or stop
706
+ 5. If tests fail, they're **fixed before** asking to continue
707
+ 6. Can **resume later** from any UC
708
+
709
+ ### Potential Issues with "One by One" Testing
710
+
711
+ While "one by one" is the safest mode, be aware of these considerations:
712
+
713
+ | Issue | Description | Mitigation |
714
+ |-------|-------------|------------|
715
+ | **Integration gaps** | UCs tested individually might miss cross-UC interactions | After all UCs complete, run full integration test |
716
+ | **Shared state** | Later UCs might depend on state from earlier UCs | Use cumulative testing (don't reset DB between UCs) |
717
+ | **Conflicting changes** | UC #3 might need different approach than UC #1 implemented | May need to refactor earlier UCs (acceptable tradeoff) |
718
+ | **Performance at scale** | Individual UCs work, but all together cause issues | Final integration test should include load testing |
719
+ | **Git commit strategy** | Should each UC be committed separately? | Depends on team workflow (see below) |
720
+
721
+ **Best Practice - Cumulative Testing:**
722
+ ```
723
+ UC #1: Test in isolation ✓
724
+ UC #2: Test UC #2 + verify UC #1 still works ✓
725
+ UC #3: Test UC #3 + verify UC #1, UC #2 still work ✓
726
+ ```
727
+
728
+ This ensures each UC works both **independently** and **together**.
729
+
730
+ **Implementation in Phase 7:**
731
+ ```javascript
732
+ // For UC #2 onwards, add regression checks
733
+ Phase 7: Auto-Test
734
+ 1. Test current UC (UC-AUTH-002: Signup) ✓
735
+ 2. Regression: Quick test of previous UCs
736
+ → UC-AUTH-001 (Login) still works? ✓
737
+ 3. All pass → Continue
738
+ ```
739
+
740
+ **Git Strategy for "One by One":**
741
+
742
+ | Strategy | When to Use | Commits |
743
+ |----------|-------------|---------|
744
+ | **Commit each UC** | When UCs are independent, team reviews incrementally | 1 commit per UC |
745
+ | **Commit all together** | When UCs are tightly coupled, want atomic feature | 1 commit after all UCs |
746
+ | **Hybrid** | Mix of both - commit stable UCs, batch dependent ones | Flexible |
747
+
748
+ **Recommended Git Flow:**
749
+ ```
750
+ One by One Mode:
751
+ UC #1 complete → Commit → Continue?
752
+ UC #2 complete → Commit → Continue?
753
+ UC #3 complete → Commit → Done
754
+
755
+ Multiple/All Mode:
756
+ UC #1 complete → Auto-continue (no commit)
757
+ UC #2 complete → Auto-continue (no commit)
758
+ UC #3 complete → Single commit for all → Done
759
+ ```
760
+
761
+ This gives "one by one" the advantage of **incremental commits** that are easier to review and revert.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: dev-coding-backend
3
3
  description: Backend implementation patterns and workflows
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  ---
6
6
 
7
7
  # /dev-coding-backend - Backend Implementation
@@ -11,6 +11,20 @@ version: 2.0.0
11
11
 
12
12
  Backend-specific workflow for API, schema, and data layer implementation.
13
13
 
14
+ ## Fundamentals (MUST READ FIRST)
15
+
16
+ **Before implementing, understand the principles:**
17
+
18
+ → Read `references/fundamentals.md`
19
+
20
+ This covers:
21
+ - **Core Mindset**: "Guardian of truth, trust nothing, enforce rules"
22
+ - **7 Principles**: Separation of Concerns, Single Source of Truth, Don't Repeat Work, Don't Make Users Wait, Don't Trust Anyone, Plan for Failure, Stateless Design
23
+ - **Pattern Recognition**: When to use Service Layer, Repository, Queue, Cache, Circuit Breaker, etc.
24
+ - **Architecture Layers**: Route → Service → Domain → Repository → Infrastructure
25
+
26
+ **Key Decision**: For each piece of code, ask "which principle applies?" Then choose the pattern that principle suggests.
27
+
14
28
  ## Knowledge Loading (CRITICAL)
15
29
 
16
30
  Before implementing, load relevant knowledge: