@codihaus/claude-skills 1.0.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 (46) hide show
  1. package/README.md +167 -0
  2. package/bin/cli.js +58 -0
  3. package/package.json +46 -0
  4. package/skills/_quality-attributes.md +392 -0
  5. package/skills/_registry.md +189 -0
  6. package/skills/debrief/SKILL.md +647 -0
  7. package/skills/debrief/references/change-request-template.md +124 -0
  8. package/skills/debrief/references/file-patterns.md +173 -0
  9. package/skills/debrief/references/group-codes.md +72 -0
  10. package/skills/debrief/references/research-queries.md +106 -0
  11. package/skills/debrief/references/use-case-template.md +141 -0
  12. package/skills/debrief/scripts/generate_questionnaire.py +195 -0
  13. package/skills/dev-arch/SKILL.md +747 -0
  14. package/skills/dev-changelog/SKILL.md +378 -0
  15. package/skills/dev-coding/SKILL.md +470 -0
  16. package/skills/dev-coding-backend/SKILL.md +361 -0
  17. package/skills/dev-coding-frontend/SKILL.md +534 -0
  18. package/skills/dev-coding-frontend/references/nextjs.md +477 -0
  19. package/skills/dev-review/SKILL.md +548 -0
  20. package/skills/dev-scout/SKILL.md +723 -0
  21. package/skills/dev-scout/references/feature-patterns.md +210 -0
  22. package/skills/dev-scout/references/file-patterns.md +252 -0
  23. package/skills/dev-scout/references/tech-detection.md +211 -0
  24. package/skills/dev-scout/scripts/scout-analyze.sh +280 -0
  25. package/skills/dev-specs/SKILL.md +577 -0
  26. package/skills/dev-specs/references/checklist.md +176 -0
  27. package/skills/dev-specs/references/spec-templates.md +460 -0
  28. package/skills/dev-test/SKILL.md +364 -0
  29. package/skills/utils/diagram/SKILL.md +205 -0
  30. package/skills/utils/diagram/references/common-errors.md +305 -0
  31. package/skills/utils/diagram/references/diagram-types.md +636 -0
  32. package/skills/utils/docs-graph/SKILL.md +204 -0
  33. package/skills/utils/gemini/SKILL.md +292 -0
  34. package/skills/utils/gemini/scripts/gemini-scan.py +340 -0
  35. package/skills/utils/gemini/scripts/setup.sh +169 -0
  36. package/src/commands/add.js +64 -0
  37. package/src/commands/doctor.js +179 -0
  38. package/src/commands/init.js +251 -0
  39. package/src/commands/list.js +88 -0
  40. package/src/commands/remove.js +60 -0
  41. package/src/commands/update.js +72 -0
  42. package/src/index.js +26 -0
  43. package/src/utils/config.js +272 -0
  44. package/src/utils/deps.js +599 -0
  45. package/src/utils/skills.js +253 -0
  46. package/templates/CLAUDE.md.template +58 -0
@@ -0,0 +1,378 @@
1
+ ---
2
+ name: dev-changelog
3
+ description: Capture implementation summary, track progress, identify docs updates
4
+ version: 1.0.0
5
+ ---
6
+
7
+ # /dev-changelog - Implementation Summary
8
+
9
+ > **Skill Awareness**: See `skills/_registry.md` for all available skills.
10
+ > - **Before**: `/dev-review` passes (code is good)
11
+ > - **Reads**: Git changes, specs, use cases
12
+ > - **Outputs**: Summary of what was built, what's left, docs to update
13
+
14
+ Capture what was implemented after review passes. Creates actionable documentation.
15
+
16
+ ## When to Use
17
+
18
+ - After `/dev-review` passes
19
+ - End of sprint/milestone
20
+ - Before handoff to another developer
21
+ - When you need to resume work later
22
+
23
+ ## Usage
24
+
25
+ ```
26
+ /dev-changelog billing # Summarize billing feature work
27
+ /dev-changelog --since=v1.0.0 # Changes since tag
28
+ /dev-changelog --since=2024-01-01 # Changes since date
29
+ /dev-changelog --pr=123 # Changes in specific PR
30
+ ```
31
+
32
+ ## Output
33
+
34
+ ```
35
+ plans/features/{feature}/
36
+ ├── summary.md # What was built (this session/PR)
37
+ ├── implementation.md # Cumulative implementation status
38
+ ├── tech-debt.md # Known issues, TODOs
39
+ └── docs-updates.md # Documentation tasks
40
+ ```
41
+
42
+ ## Workflow
43
+
44
+ ### Phase 0: Verify Review Passed
45
+
46
+ ```
47
+ 1. Check: Did /dev-review pass?
48
+ → Look for review output
49
+ → Check git for recent review commits
50
+
51
+ 2. If review not done or failed:
52
+ → "Run /dev-review first"
53
+ → Exit
54
+ ```
55
+
56
+ ### Phase 1: Gather Sources
57
+
58
+ ```
59
+ 1. Git changes (source of truth)
60
+ git log --oneline {since}
61
+ git diff --stat {since}
62
+
63
+ 2. PR/MR info (if available)
64
+ gh pr view {number}
65
+
66
+ 3. Specs (intent)
67
+ plans/features/{feature}/specs/*.md
68
+
69
+ 4. Use cases (context)
70
+ plans/brd/use-cases/{feature}/*.md
71
+
72
+ 5. Previous implementation status
73
+ plans/features/{feature}/implementation.md
74
+ ```
75
+
76
+ ### Phase 2: Analyze Changes
77
+
78
+ Map git changes to specs and use cases:
79
+
80
+ ```
81
+ For each changed file:
82
+ 1. What component is this? (API, UI, model, etc.)
83
+ 2. Which spec item does it fulfill?
84
+ 3. Which use case does it support?
85
+ 4. Is it complete or partial?
86
+ ```
87
+
88
+ **Mapping table:**
89
+
90
+ | File Changed | Type | Spec Item | Use Case | Status |
91
+ |--------------|------|-----------|----------|--------|
92
+ | `api/billing/checkout.ts` | API | SPEC-PAY-001 | UC-PAY-001 | Complete |
93
+ | `components/CheckoutForm.tsx` | UI | SPEC-PAY-001 | UC-PAY-001 | Complete |
94
+ | `api/billing/subscription.ts` | API | SPEC-PAY-004 | UC-PAY-002 | Partial |
95
+
96
+ ### Phase 3: Extract Tech Debt
97
+
98
+ Scan for incomplete items:
99
+
100
+ ```
101
+ 1. TODOs in changed files
102
+ grep -r "TODO\|FIXME\|HACK\|XXX" {changed_files}
103
+
104
+ 2. Incomplete spec items
105
+ → Spec says X, implementation does Y
106
+
107
+ 3. Known issues from commits
108
+ → "WIP:", "temporary", "workaround"
109
+
110
+ 4. Review comments not addressed
111
+ → From /dev-review output
112
+ ```
113
+
114
+ ### Phase 4: Identify Documentation Updates
115
+
116
+ Based on what changed:
117
+
118
+ | Change Type | Doc Update Needed |
119
+ |-------------|-------------------|
120
+ | New API endpoint | API Reference |
121
+ | New UI feature | User Guide |
122
+ | New config option | Configuration docs |
123
+ | Breaking change | Migration guide |
124
+ | New component | Component docs |
125
+
126
+ ### Phase 5: Generate Outputs
127
+
128
+ #### summary.md (per session/PR)
129
+
130
+ ```markdown
131
+ # Summary: {Feature} - {Date/PR}
132
+
133
+ > **PR**: #{number} or commit range
134
+ > **Author**: {who}
135
+ > **Review**: Passed
136
+
137
+ ## What Was Built
138
+
139
+ ### API Changes
140
+ - `POST /api/billing/checkout` - Process payment
141
+ - `GET /api/billing/invoices` - List invoices
142
+
143
+ ### UI Changes
144
+ - CheckoutForm component
145
+ - InvoiceList component
146
+ - PaymentSuccess page
147
+
148
+ ### Data Changes
149
+ - Added Invoice model
150
+ - Added Payment model
151
+ - Migration: 20240118_add_billing_tables
152
+
153
+ ## Spec Items Completed
154
+
155
+ | Spec | Title | Status |
156
+ |------|-------|--------|
157
+ | SPEC-PAY-001 | Checkout Flow | ✅ Complete |
158
+ | SPEC-PAY-002 | Payment Processing | ✅ Complete |
159
+ | SPEC-PAY-004 | Subscription Mgmt | ⚠️ Partial |
160
+
161
+ ## Use Cases Addressed
162
+
163
+ | UC | Title | Coverage |
164
+ |----|-------|----------|
165
+ | UC-PAY-001 | Checkout | Full |
166
+ | UC-PAY-002 | Subscribe | Create only |
167
+
168
+ ## Commits
169
+
170
+ - `abc1234` feat(billing): add checkout endpoint
171
+ - `def5678` feat(billing): add CheckoutForm component
172
+ - `ghi9012` feat(billing): add invoice model
173
+
174
+ ## Next Steps
175
+
176
+ 1. Complete subscription upgrade/downgrade (SPEC-PAY-004)
177
+ 2. Add refund functionality (SPEC-PAY-005)
178
+ 3. Update API documentation
179
+ ```
180
+
181
+ #### implementation.md (cumulative status)
182
+
183
+ ```markdown
184
+ # Implementation Status: {Feature}
185
+
186
+ > **Last Updated**: {date}
187
+ > **Overall Progress**: 60% (3/5 specs complete)
188
+
189
+ ## Completed ✅
190
+
191
+ | Item | Spec | UC | Implemented In |
192
+ |------|------|----|----------------|
193
+ | Checkout | SPEC-PAY-001 | UC-PAY-001 | PR #123 |
194
+ | Payments | SPEC-PAY-002 | UC-PAY-001 | PR #123 |
195
+ | Invoices | SPEC-PAY-003 | UC-PAY-003 | PR #125 |
196
+
197
+ ## In Progress ⚠️
198
+
199
+ | Item | Spec | UC | Done | Remaining |
200
+ |------|------|----|------|-----------|
201
+ | Subscriptions | SPEC-PAY-004 | UC-PAY-002 | Create/cancel | Upgrade/downgrade |
202
+
203
+ ## Not Started ❌
204
+
205
+ | Item | Spec | UC | Blocked By |
206
+ |------|------|----|------------|
207
+ | Refunds | SPEC-PAY-005 | UC-PAY-004 | - |
208
+ | Usage billing | SPEC-PAY-006 | UC-PAY-005 | Phase 2 |
209
+
210
+ ## History
211
+
212
+ | Date | PR | Summary |
213
+ |------|----|---------|
214
+ | 2024-01-18 | #123 | Checkout + payments |
215
+ | 2024-01-20 | #125 | Invoice generation |
216
+ ```
217
+
218
+ #### tech-debt.md
219
+
220
+ ```markdown
221
+ # Tech Debt: {Feature}
222
+
223
+ > **Last Updated**: {date}
224
+
225
+ ## High Priority
226
+
227
+ | Issue | Location | Impact | Notes |
228
+ |-------|----------|--------|-------|
229
+ | No retry on payment failure | `billing/stripe.ts:45` | Users see errors | Add exponential backoff |
230
+
231
+ ## Medium Priority
232
+
233
+ | Issue | Location | Impact | Notes |
234
+ |-------|----------|--------|-------|
235
+ | Hardcoded tax rate | `billing/invoice.ts:23` | Wrong tax for some regions | Make configurable |
236
+ | No pagination | `api/invoices.ts:12` | Slow for many invoices | Add cursor pagination |
237
+
238
+ ## Low Priority
239
+
240
+ | Issue | Location | Impact | Notes |
241
+ |-------|----------|--------|-------|
242
+ | TODO: Add logging | `billing/checkout.ts:78` | Hard to debug | Add structured logging |
243
+
244
+ ## Code TODOs
245
+
246
+ ```
247
+ billing/stripe.ts:45: TODO: Add retry logic for failed payments
248
+ billing/invoice.ts:23: TODO: Make tax rate configurable
249
+ billing/checkout.ts:78: TODO: Add logging
250
+ ```
251
+ ```
252
+
253
+ #### docs-updates.md
254
+
255
+ ```markdown
256
+ # Documentation Updates: {Feature}
257
+
258
+ > **Last Updated**: {date}
259
+
260
+ ## Required Updates
261
+
262
+ ### API Reference
263
+ - [ ] Add `POST /api/billing/checkout` endpoint
264
+ - [ ] Add `GET /api/billing/invoices` endpoint
265
+ - [ ] Add `POST /api/billing/subscriptions` endpoint
266
+
267
+ ### User Guide
268
+ - [ ] Add "Making a Purchase" section
269
+ - [ ] Add "Managing Your Subscription" section
270
+ - [ ] Add "Viewing Invoices" section
271
+
272
+ ### Configuration
273
+ - [ ] Document `STRIPE_SECRET_KEY` env var
274
+ - [ ] Document `STRIPE_WEBHOOK_SECRET` env var
275
+
276
+ ## Examples to Add
277
+
278
+ ### API Examples
279
+ ```bash
280
+ # Checkout
281
+ curl -X POST /api/billing/checkout \
282
+ -H "Authorization: Bearer {token}" \
283
+ -d '{"planId": "pro", "paymentMethodId": "pm_xxx"}'
284
+ ```
285
+
286
+ ### UI Screenshots Needed
287
+ - [ ] Checkout form
288
+ - [ ] Payment success page
289
+ - [ ] Invoice list
290
+ ```
291
+
292
+ ## Integration with /dev-review
293
+
294
+ When `/dev-review` completes successfully:
295
+
296
+ ```
297
+ /dev-review output:
298
+ ├── quality-report.md (existing)
299
+ └── Suggests: "Run /dev-changelog to document what was built"
300
+
301
+ Then:
302
+ /dev-changelog
303
+ ├── Reads review output
304
+ ├── Reads git changes
305
+ ├── Generates summary.md, implementation.md, etc.
306
+ ```
307
+
308
+ ## Resume Flow
309
+
310
+ When returning to work later:
311
+
312
+ ```
313
+ 1. Read implementation.md
314
+ → See what's done, what's remaining
315
+
316
+ 2. Read tech-debt.md
317
+ → See known issues
318
+
319
+ 3. Read summary.md (latest)
320
+ → See where you left off
321
+
322
+ 4. Continue with /dev-specs or /dev-coding
323
+ ```
324
+
325
+ ## Tools Used
326
+
327
+ | Tool | Purpose |
328
+ |------|---------|
329
+ | `Bash` | Git log, diff, grep for TODOs |
330
+ | `Read` | Specs, use cases, previous status |
331
+ | `Write` | Output files |
332
+ | `Grep` | Find TODOs in code |
333
+
334
+ ## Example Flow
335
+
336
+ ```
337
+ User: /dev-changelog billing
338
+
339
+ 1. Verify review
340
+ → Found: plans/features/billing/review-report.md (passed)
341
+
342
+ 2. Gather sources
343
+ → Git: 5 commits since last changelog
344
+ → Specs: SPEC-PAY-001 to 006
345
+ → UCs: UC-PAY-001 to 005
346
+
347
+ 3. Analyze changes
348
+ → 3 API files changed
349
+ → 4 UI files changed
350
+ → 2 new models
351
+
352
+ 4. Map to specs
353
+ → SPEC-PAY-001: Complete (checkout)
354
+ → SPEC-PAY-002: Complete (payments)
355
+ → SPEC-PAY-004: Partial (subscriptions)
356
+
357
+ 5. Extract tech debt
358
+ → 3 TODOs found
359
+ → 1 incomplete spec item
360
+
361
+ 6. Identify doc updates
362
+ → 3 new endpoints need docs
363
+ → 2 new UI features need guide
364
+
365
+ 7. Generate outputs
366
+ → summary.md
367
+ → implementation.md (updated)
368
+ → tech-debt.md (updated)
369
+ → docs-updates.md
370
+
371
+ Output:
372
+ "Documented billing implementation:
373
+ - 2 specs complete, 1 partial
374
+ - 3 tech debt items
375
+ - 6 doc updates needed
376
+
377
+ See: plans/features/billing/summary.md"
378
+ ```