@sylix/coworker 2.0.11 → 2.0.12

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 (169) hide show
  1. package/dist/commands/slash/config.d.ts.map +1 -1
  2. package/dist/commands/slash/config.js +22 -4
  3. package/dist/commands/slash/config.js.map +1 -1
  4. package/dist/core/CoWorkerAgent.d.ts.map +1 -1
  5. package/dist/core/CoWorkerAgent.js +6 -3
  6. package/dist/core/CoWorkerAgent.js.map +1 -1
  7. package/dist/skills/defaults/accessibility/screen-reader-testing.md +545 -0
  8. package/dist/skills/defaults/accessibility/wcag-audit-patterns.md +555 -0
  9. package/dist/skills/defaults/ai-ml/rag.md +276 -0
  10. package/dist/skills/defaults/backend-development/api-design-principles.md +528 -0
  11. package/dist/skills/defaults/backend-development/api-design.md +285 -0
  12. package/dist/skills/defaults/backend-development/architecture-patterns.md +494 -0
  13. package/dist/skills/defaults/backend-development/async-python.md +237 -0
  14. package/dist/skills/defaults/backend-development/auth-implementation-patterns.md +638 -0
  15. package/dist/skills/defaults/backend-development/bazel-build-optimization.md +387 -0
  16. package/dist/skills/defaults/backend-development/billing-automation/SKILL.md +566 -0
  17. package/dist/skills/defaults/backend-development/code-review-excellence.md +538 -0
  18. package/dist/skills/defaults/backend-development/cqrs-implementation.md +554 -0
  19. package/dist/skills/defaults/backend-development/database-design.md +305 -0
  20. package/dist/skills/defaults/backend-development/debugging-strategies.md +536 -0
  21. package/dist/skills/defaults/backend-development/e2e-testing-patterns.md +544 -0
  22. package/dist/skills/defaults/backend-development/error-handling-patterns.md +641 -0
  23. package/dist/skills/defaults/backend-development/fastapi-templates.md +559 -0
  24. package/dist/skills/defaults/backend-development/fastapi.md +309 -0
  25. package/dist/skills/defaults/backend-development/git-advanced-workflows.md +405 -0
  26. package/dist/skills/defaults/backend-development/microservices-patterns.md +595 -0
  27. package/dist/skills/defaults/backend-development/microservices.md +284 -0
  28. package/dist/skills/defaults/backend-development/monorepo-management.md +623 -0
  29. package/dist/skills/defaults/backend-development/nodejs-backend-patterns.md +1048 -0
  30. package/dist/skills/defaults/backend-development/nx-workspace-patterns.md +457 -0
  31. package/dist/skills/defaults/backend-development/paypal-integration/SKILL.md +478 -0
  32. package/dist/skills/defaults/backend-development/pci-compliance/SKILL.md +480 -0
  33. package/dist/skills/defaults/backend-development/python-anti-patterns.md +349 -0
  34. package/dist/skills/defaults/backend-development/python-background-jobs.md +364 -0
  35. package/dist/skills/defaults/backend-development/python-code-style.md +360 -0
  36. package/dist/skills/defaults/backend-development/python-configuration.md +368 -0
  37. package/dist/skills/defaults/backend-development/python-design-patterns.md +296 -0
  38. package/dist/skills/defaults/backend-development/python-error-handling.md +323 -0
  39. package/dist/skills/defaults/backend-development/python-packaging.md +887 -0
  40. package/dist/skills/defaults/backend-development/python-performance-optimization.md +874 -0
  41. package/dist/skills/defaults/backend-development/python-project-structure.md +252 -0
  42. package/dist/skills/defaults/backend-development/python-resilience.md +376 -0
  43. package/dist/skills/defaults/backend-development/python-resource-management.md +421 -0
  44. package/dist/skills/defaults/backend-development/python-type-safety.md +428 -0
  45. package/dist/skills/defaults/backend-development/sql-optimization-patterns.md +509 -0
  46. package/dist/skills/defaults/backend-development/stripe-integration/SKILL.md +522 -0
  47. package/dist/skills/defaults/backend-development/turborepo-caching.md +376 -0
  48. package/dist/skills/defaults/blockchain/defi-protocol-templates.md +430 -0
  49. package/dist/skills/defaults/blockchain/nft-standards.md +364 -0
  50. package/dist/skills/defaults/blockchain/solidity-security.md +514 -0
  51. package/dist/skills/defaults/blockchain/web3-testing.md +360 -0
  52. package/dist/skills/defaults/business/competitive-landscape/SKILL.md +527 -0
  53. package/dist/skills/defaults/business/market-sizing-analysis/SKILL.md +451 -0
  54. package/dist/skills/defaults/business/startup-financial-modeling/SKILL.md +494 -0
  55. package/dist/skills/defaults/business/startup-metrics-framework/SKILL.md +564 -0
  56. package/dist/skills/defaults/business/team-composition-analysis.md +437 -0
  57. package/dist/skills/defaults/compliance/employment-contract-templates/SKILL.md +527 -0
  58. package/dist/skills/defaults/compliance/gdpr-data-handling/SKILL.md +630 -0
  59. package/dist/skills/defaults/data-engineering/airflow-dag-patterns.md +436 -0
  60. package/dist/skills/defaults/data-engineering/airflow.md +519 -0
  61. package/dist/skills/defaults/data-engineering/data-quality.md +583 -0
  62. package/dist/skills/defaults/data-engineering/dbt-transformation-patterns.md +482 -0
  63. package/dist/skills/defaults/data-engineering/dbt.md +556 -0
  64. package/dist/skills/defaults/data-engineering/ml-pipeline-workflow/SKILL.md +247 -0
  65. package/dist/skills/defaults/data-engineering/spark-optimization.md +348 -0
  66. package/dist/skills/defaults/data-engineering/spark.md +411 -0
  67. package/dist/skills/defaults/database/postgresql.md +202 -0
  68. package/dist/skills/defaults/debugging/systematic-debugging.md +249 -0
  69. package/dist/skills/defaults/devops/architecture-decision-records.md +448 -0
  70. package/dist/skills/defaults/devops/changelog-automation.md +580 -0
  71. package/dist/skills/defaults/devops/cicd.md +314 -0
  72. package/dist/skills/defaults/devops/cloud.md +263 -0
  73. package/dist/skills/defaults/devops/code-review-excellence.md +299 -0
  74. package/dist/skills/defaults/devops/cost-optimization.md +295 -0
  75. package/dist/skills/defaults/devops/deployment-pipeline-design.md +356 -0
  76. package/dist/skills/defaults/devops/docker.md +281 -0
  77. package/dist/skills/defaults/devops/git-workflows.md +205 -0
  78. package/dist/skills/defaults/devops/github-actions.md +311 -0
  79. package/dist/skills/defaults/devops/gitlab-ci-patterns.md +266 -0
  80. package/dist/skills/defaults/devops/hybrid-cloud-networking.md +241 -0
  81. package/dist/skills/defaults/devops/istio-traffic-management.md +327 -0
  82. package/dist/skills/defaults/devops/kubernetes.md +339 -0
  83. package/dist/skills/defaults/devops/linkerd-patterns.md +311 -0
  84. package/dist/skills/defaults/devops/multi-cloud-architecture.md +181 -0
  85. package/dist/skills/defaults/devops/observability.md +243 -0
  86. package/dist/skills/defaults/devops/openapi-spec-generation.md +1024 -0
  87. package/dist/skills/defaults/devops/postmortem-writing.md +396 -0
  88. package/dist/skills/defaults/devops/prometheus-configuration.md +265 -0
  89. package/dist/skills/defaults/devops/secrets-management.md +341 -0
  90. package/dist/skills/defaults/devops/service-mesh-observability.md +385 -0
  91. package/dist/skills/defaults/devops/terraform-module-library.md +244 -0
  92. package/dist/skills/defaults/finance/backtesting-frameworks/SKILL.md +663 -0
  93. package/dist/skills/defaults/finance/risk-metrics-calculation/SKILL.md +557 -0
  94. package/dist/skills/defaults/frontend/accessibility-compliance.md +420 -0
  95. package/dist/skills/defaults/frontend/design-system-patterns.md +337 -0
  96. package/dist/skills/defaults/frontend/interaction-design.md +327 -0
  97. package/dist/skills/defaults/frontend/javascript.md +311 -0
  98. package/dist/skills/defaults/frontend/modern-javascript-patterns.md +927 -0
  99. package/dist/skills/defaults/frontend/react-native-design.md +440 -0
  100. package/dist/skills/defaults/frontend/react.md +345 -0
  101. package/dist/skills/defaults/frontend/responsive-design.md +472 -0
  102. package/dist/skills/defaults/frontend/tailwind-design-system.md +337 -0
  103. package/dist/skills/defaults/frontend/typescript-advanced-types.md +724 -0
  104. package/dist/skills/defaults/frontend/typescript.md +334 -0
  105. package/dist/skills/defaults/frontend/visual-design-foundations.md +326 -0
  106. package/dist/skills/defaults/frontend/web-component-design.md +279 -0
  107. package/dist/skills/defaults/game-development/godot-gdscript-patterns.md +188 -0
  108. package/dist/skills/defaults/game-development/unity-ecs-patterns.md +594 -0
  109. package/dist/skills/defaults/kubernetes/gitops-workflow.md +285 -0
  110. package/dist/skills/defaults/kubernetes/gitops.md +280 -0
  111. package/dist/skills/defaults/kubernetes/helm-chart-scaffolding.md +553 -0
  112. package/dist/skills/defaults/kubernetes/helm.md +343 -0
  113. package/dist/skills/defaults/kubernetes/k8s-manifest-generator.md +501 -0
  114. package/dist/skills/defaults/kubernetes/k8s-security-policies.md +342 -0
  115. package/dist/skills/defaults/kubernetes/manifests.md +330 -0
  116. package/dist/skills/defaults/kubernetes/security.md +337 -0
  117. package/dist/skills/defaults/llm-application/embedding-strategies.md +608 -0
  118. package/dist/skills/defaults/llm-application/hybrid-search-implementation.md +570 -0
  119. package/dist/skills/defaults/llm-application/hybrid-search.md +570 -0
  120. package/dist/skills/defaults/llm-application/langchain-architecture.md +666 -0
  121. package/dist/skills/defaults/llm-application/langchain.md +259 -0
  122. package/dist/skills/defaults/llm-application/llm-evaluation.md +695 -0
  123. package/dist/skills/defaults/llm-application/prompt-engineering-patterns.md +449 -0
  124. package/dist/skills/defaults/llm-application/prompt-engineering.md +219 -0
  125. package/dist/skills/defaults/llm-application/rag-implementation.md +434 -0
  126. package/dist/skills/defaults/llm-application/similarity-search-patterns.md +560 -0
  127. package/dist/skills/defaults/llm-application/similarity-search.md +560 -0
  128. package/dist/skills/defaults/llm-application/vector-index-tuning.md +523 -0
  129. package/dist/skills/defaults/mobile/mobile-android-design.md +440 -0
  130. package/dist/skills/defaults/mobile/mobile-ios-design.md +266 -0
  131. package/dist/skills/defaults/monitoring/distributed-tracing.md +436 -0
  132. package/dist/skills/defaults/monitoring/grafana-dashboards.md +370 -0
  133. package/dist/skills/defaults/monitoring/prometheus-configuration.md +379 -0
  134. package/dist/skills/defaults/monitoring/slo-implementation.md +323 -0
  135. package/dist/skills/defaults/refactoring/code-refactoring.md +349 -0
  136. package/dist/skills/defaults/security/anti-reversing-techniques/SKILL.md +559 -0
  137. package/dist/skills/defaults/security/auditor.md +168 -0
  138. package/dist/skills/defaults/security/binary-analysis-patterns/SKILL.md +438 -0
  139. package/dist/skills/defaults/security/memory-forensics/SKILL.md +483 -0
  140. package/dist/skills/defaults/security/mtls-configuration.md +349 -0
  141. package/dist/skills/defaults/security/protocol-reverse-engineering/SKILL.md +520 -0
  142. package/dist/skills/defaults/security/sast-configuration.md +182 -0
  143. package/dist/skills/defaults/security/security.md +313 -0
  144. package/dist/skills/defaults/security/stride-analysis.md +273 -0
  145. package/dist/skills/defaults/security/threat-mitigation-mapping.md +290 -0
  146. package/dist/skills/defaults/systems/bash-defensive-patterns/SKILL.md +539 -0
  147. package/dist/skills/defaults/systems/bats-testing-patterns/SKILL.md +631 -0
  148. package/dist/skills/defaults/systems/go-concurrency-patterns.md +657 -0
  149. package/dist/skills/defaults/systems/memory-safety-patterns.md +605 -0
  150. package/dist/skills/defaults/systems/rust-async-patterns.md +519 -0
  151. package/dist/skills/defaults/systems/shellcheck-configuration/SKILL.md +456 -0
  152. package/dist/skills/defaults/team-collaboration/multi-reviewer-patterns.md +126 -0
  153. package/dist/skills/defaults/team-collaboration/parallel-feature-development.md +151 -0
  154. package/dist/skills/defaults/testing/javascript-testing-patterns.md +1021 -0
  155. package/dist/skills/defaults/testing/python-testing-patterns.md +351 -0
  156. package/dist/skills/defaults/testing/testing.md +332 -0
  157. package/dist/skills/defaults/workflows/context-driven-development.md +384 -0
  158. package/dist/skills/defaults/workflows/track-management.md +592 -0
  159. package/dist/skills/defaults/workflows/workflow-patterns.md +622 -0
  160. package/dist/skills/index.d.ts +11 -0
  161. package/dist/skills/index.d.ts.map +1 -0
  162. package/dist/skills/index.js +129 -0
  163. package/dist/skills/index.js.map +1 -0
  164. package/dist/utils/character.js +4 -4
  165. package/dist/utils/character.js.map +1 -1
  166. package/dist/utils/inputbar.d.ts.map +1 -1
  167. package/dist/utils/inputbar.js +7 -0
  168. package/dist/utils/inputbar.js.map +1 -1
  169. package/package.json +1 -1
@@ -0,0 +1,622 @@
1
+ ---
2
+ name: workflow-patterns
3
+ description: Use this skill when implementing tasks according to Conductor's TDD workflow, handling phase checkpoints, managing git commits for tasks, or understanding the verification protocol.
4
+ ---
5
+
6
+ # Workflow Patterns
7
+
8
+ Guide for implementing tasks using Conductor's TDD workflow, managing phase checkpoints, handling git commits, and executing the verification protocol that ensures quality throughout implementation.
9
+
10
+ ## When to Use This Skill
11
+
12
+ - Implementing tasks from a track's plan.md
13
+ - Following TDD red-green-refactor cycle
14
+ - Completing phase checkpoints
15
+ - Managing git commits and notes
16
+ - Understanding quality assurance gates
17
+ - Handling verification protocols
18
+ - Recording progress in plan files
19
+
20
+ ## TDD Task Lifecycle
21
+
22
+ Follow these 11 steps for each task:
23
+
24
+ ### Step 1: Select Next Task
25
+
26
+ Read plan.md and identify the next pending `[ ]` task. Select tasks in order within the current phase. Do not skip ahead to later phases.
27
+
28
+ ### Step 2: Mark as In Progress
29
+
30
+ Update plan.md to mark the task as `[~]`:
31
+
32
+ ```markdown
33
+ - [~] **Task 2.1**: Implement user validation
34
+ ```
35
+
36
+ Commit this status change separately from implementation.
37
+
38
+ ### Step 3: RED - Write Failing Tests
39
+
40
+ Write tests that define the expected behavior before writing implementation:
41
+
42
+ - Create test file if needed
43
+ - Write test cases covering happy path
44
+ - Write test cases covering edge cases
45
+ - Write test cases covering error conditions
46
+ - Run tests - they should FAIL
47
+
48
+ Example:
49
+
50
+ ```python
51
+ def test_validate_user_email_valid():
52
+ user = User(email="test@example.com")
53
+ assert user.validate_email() is True
54
+
55
+ def test_validate_user_email_invalid():
56
+ user = User(email="invalid")
57
+ assert user.validate_email() is False
58
+ ```
59
+
60
+ ### Step 4: GREEN - Implement Minimum Code
61
+
62
+ Write the minimum code necessary to make tests pass:
63
+
64
+ - Focus on making tests green, not perfection
65
+ - Avoid premature optimization
66
+ - Keep implementation simple
67
+ - Run tests - they should PASS
68
+
69
+ ### Step 5: REFACTOR - Improve Clarity
70
+
71
+ With green tests, improve the code:
72
+
73
+ - Extract common patterns
74
+ - Improve naming
75
+ - Remove duplication
76
+ - Simplify logic
77
+ - Run tests after each change - they should remain GREEN
78
+
79
+ ### Step 6: Verify Coverage
80
+
81
+ Check test coverage meets the 80% target:
82
+
83
+ ```bash
84
+ pytest --cov=module --cov-report=term-missing
85
+ ```
86
+
87
+ If coverage is below 80%:
88
+
89
+ - Identify uncovered lines
90
+ - Add tests for missing paths
91
+ - Re-run coverage check
92
+
93
+ ### Step 7: Document Deviations
94
+
95
+ If implementation deviated from plan or introduced new dependencies:
96
+
97
+ - Update tech-stack.md with new dependencies
98
+ - Note deviations in plan.md task comments
99
+ - Update spec.md if requirements changed
100
+
101
+ ### Step 8: Commit Implementation
102
+
103
+ Create a focused commit for the task:
104
+
105
+ ```bash
106
+ git add -A
107
+ git commit -m "feat(user): implement email validation
108
+
109
+ - Add validate_email method to User class
110
+ - Handle empty and malformed emails
111
+ - Add comprehensive test coverage
112
+
113
+ Task: 2.1
114
+ Track: user-auth_20250115"
115
+ ```
116
+
117
+ Commit message format:
118
+
119
+ - Type: feat, fix, refactor, test, docs, chore
120
+ - Scope: affected module or component
121
+ - Summary: imperative, present tense
122
+ - Body: bullet points of changes
123
+ - Footer: task and track references
124
+
125
+ ### Step 9: Attach Git Notes
126
+
127
+ Add rich task summary as git note:
128
+
129
+ ```bash
130
+ git notes add -m "Task 2.1: Implement user validation
131
+
132
+ Summary:
133
+ - Added email validation using regex pattern
134
+ - Handles edge cases: empty, no @, no domain
135
+ - Coverage: 94% on validation module
136
+
137
+ Files changed:
138
+ - src/models/user.py (modified)
139
+ - tests/test_user.py (modified)
140
+
141
+ Decisions:
142
+ - Used simple regex over email-validator library
143
+ - Reason: No external dependency for basic validation"
144
+ ```
145
+
146
+ ### Step 10: Update Plan with SHA
147
+
148
+ Update plan.md to mark task complete with commit SHA:
149
+
150
+ ```markdown
151
+ - [x] **Task 2.1**: Implement user validation `abc1234`
152
+ ```
153
+
154
+ ### Step 11: Commit Plan Update
155
+
156
+ Commit the plan status update:
157
+
158
+ ```bash
159
+ git add conductor/tracks/*/plan.md
160
+ git commit -m "docs: update plan - task 2.1 complete
161
+
162
+ Track: user-auth_20250115"
163
+ ```
164
+
165
+ ## Phase Completion Protocol
166
+
167
+ When all tasks in a phase are complete, execute the verification protocol:
168
+
169
+ ### Identify Changed Files
170
+
171
+ List all files modified since the last checkpoint:
172
+
173
+ ```bash
174
+ git diff --name-only <last-checkpoint-sha>..HEAD
175
+ ```
176
+
177
+ ### Ensure Test Coverage
178
+
179
+ For each modified file:
180
+
181
+ 1. Identify corresponding test file
182
+ 2. Verify tests exist for new/changed code
183
+ 3. Run coverage for modified modules
184
+ 4. Add tests if coverage < 80%
185
+
186
+ ### Run Full Test Suite
187
+
188
+ Execute complete test suite:
189
+
190
+ ```bash
191
+ pytest -v --tb=short
192
+ ```
193
+
194
+ All tests must pass before proceeding.
195
+
196
+ ### Generate Manual Verification Steps
197
+
198
+ Create checklist of manual verifications:
199
+
200
+ ```markdown
201
+ ## Phase 1 Verification Checklist
202
+
203
+ - [ ] User can register with valid email
204
+ - [ ] Invalid email shows appropriate error
205
+ - [ ] Database stores user correctly
206
+ - [ ] API returns expected response codes
207
+ ```
208
+
209
+ ### WAIT for User Approval
210
+
211
+ Present verification checklist to user:
212
+
213
+ ```
214
+ Phase 1 complete. Please verify:
215
+ 1. [ ] Test suite passes (automated)
216
+ 2. [ ] Coverage meets target (automated)
217
+ 3. [ ] Manual verification items (requires human)
218
+
219
+ Respond with 'approved' to continue, or note issues.
220
+ ```
221
+
222
+ Do NOT proceed without explicit approval.
223
+
224
+ ### Create Checkpoint Commit
225
+
226
+ After approval, create checkpoint commit:
227
+
228
+ ```bash
229
+ git add -A
230
+ git commit -m "checkpoint: phase 1 complete - user-auth_20250115
231
+
232
+ Verified:
233
+ - All tests passing
234
+ - Coverage: 87%
235
+ - Manual verification approved
236
+
237
+ Phase 1 tasks:
238
+ - [x] Task 1.1: Setup database schema
239
+ - [x] Task 1.2: Implement user model
240
+ - [x] Task 1.3: Add validation logic"
241
+ ```
242
+
243
+ ### Record Checkpoint SHA
244
+
245
+ Update plan.md checkpoints table:
246
+
247
+ ```markdown
248
+ ## Checkpoints
249
+
250
+ | Phase | Checkpoint SHA | Date | Status |
251
+ | ------- | -------------- | ---------- | -------- |
252
+ | Phase 1 | def5678 | 2025-01-15 | verified |
253
+ | Phase 2 | | | pending |
254
+ ```
255
+
256
+ ## Quality Assurance Gates
257
+
258
+ Before marking any task complete, verify these gates:
259
+
260
+ ### Passing Tests
261
+
262
+ - All existing tests pass
263
+ - New tests pass
264
+ - No test regressions
265
+
266
+ ### Coverage >= 80%
267
+
268
+ - New code has 80%+ coverage
269
+ - Overall project coverage maintained
270
+ - Critical paths fully covered
271
+
272
+ ### Style Compliance
273
+
274
+ - Code follows style guides
275
+ - Linting passes
276
+ - Formatting correct
277
+
278
+ ### Documentation
279
+
280
+ - Public APIs documented
281
+ - Complex logic explained
282
+ - README updated if needed
283
+
284
+ ### Type Safety
285
+
286
+ - Type hints present (if applicable)
287
+ - Type checker passes
288
+ - No type: ignore without reason
289
+
290
+ ### No Linting Errors
291
+
292
+ - Zero linter errors
293
+ - Warnings addressed or justified
294
+ - Static analysis clean
295
+
296
+ ### Mobile Compatibility
297
+
298
+ If applicable:
299
+
300
+ - Responsive design verified
301
+ - Touch interactions work
302
+ - Performance acceptable
303
+
304
+ ### Security Audit
305
+
306
+ - No secrets in code
307
+ - Input validation present
308
+ - Authentication/authorization correct
309
+ - Dependencies vulnerability-free
310
+
311
+ ## Git Integration
312
+
313
+ ### Commit Message Format
314
+
315
+ ```
316
+ <type>(<scope>): <subject>
317
+
318
+ <body>
319
+
320
+ <footer>
321
+ ```
322
+
323
+ Types:
324
+
325
+ - `feat`: New feature
326
+ - `fix`: Bug fix
327
+ - `refactor`: Code change without feature/fix
328
+ - `test`: Adding tests
329
+ - `docs`: Documentation
330
+ - `chore`: Maintenance
331
+
332
+ ### Git Notes for Rich Summaries
333
+
334
+ Attach detailed notes to commits:
335
+
336
+ ```bash
337
+ git notes add -m "<detailed summary>"
338
+ ```
339
+
340
+ View notes:
341
+
342
+ ```bash
343
+ git log --show-notes
344
+ ```
345
+
346
+ Benefits:
347
+
348
+ - Preserves context without cluttering commit message
349
+ - Enables semantic queries across commits
350
+ - Supports track-based operations
351
+
352
+ ### SHA Recording in plan.md
353
+
354
+ Always record the commit SHA when completing tasks:
355
+
356
+ ```markdown
357
+ - [x] **Task 1.1**: Setup schema `abc1234`
358
+ - [x] **Task 1.2**: Add model `def5678`
359
+ ```
360
+
361
+ This enables:
362
+
363
+ - Traceability from plan to code
364
+ - Semantic revert operations
365
+ - Progress auditing
366
+
367
+ ## Verification Checkpoints
368
+
369
+ ### Why Checkpoints Matter
370
+
371
+ Checkpoints create restore points for semantic reversion:
372
+
373
+ - Revert to end of any phase
374
+ - Maintain logical code state
375
+ - Enable safe experimentation
376
+
377
+ ### When to Create Checkpoints
378
+
379
+ Create checkpoint after:
380
+
381
+ - All phase tasks complete
382
+ - All phase verifications pass
383
+ - User approval received
384
+
385
+ ### Checkpoint Commit Content
386
+
387
+ Include in checkpoint commit:
388
+
389
+ - All uncommitted changes
390
+ - Updated plan.md
391
+ - Updated metadata.json
392
+ - Any documentation updates
393
+
394
+ ### How to Use Checkpoints
395
+
396
+ For reverting:
397
+
398
+ ```bash
399
+ # Revert to end of Phase 1
400
+ git revert --no-commit <phase-2-commits>...
401
+ git commit -m "revert: rollback to phase 1 checkpoint"
402
+ ```
403
+
404
+ For review:
405
+
406
+ ```bash
407
+ # See what changed in Phase 2
408
+ git diff <phase-1-sha>..<phase-2-sha>
409
+ ```
410
+
411
+ ## Handling Deviations
412
+
413
+ During implementation, deviations from the plan may occur. Handle them systematically:
414
+
415
+ ### Types of Deviations
416
+
417
+ **Scope Addition**
418
+ Discovered requirement not in original spec.
419
+
420
+ - Document in spec.md as new requirement
421
+ - Add tasks to plan.md
422
+ - Note addition in task comments
423
+
424
+ **Scope Reduction**
425
+ Feature deemed unnecessary during implementation.
426
+
427
+ - Mark tasks as `[-]` (skipped) with reason
428
+ - Update spec.md scope section
429
+ - Document decision rationale
430
+
431
+ **Technical Deviation**
432
+ Different implementation approach than planned.
433
+
434
+ - Note deviation in task completion comment
435
+ - Update tech-stack.md if dependencies changed
436
+ - Document why original approach was unsuitable
437
+
438
+ **Requirement Change**
439
+ Understanding of requirement changes during work.
440
+
441
+ - Update spec.md with corrected requirement
442
+ - Adjust plan.md tasks if needed
443
+ - Re-verify acceptance criteria
444
+
445
+ ### Deviation Documentation Format
446
+
447
+ When completing a task with deviation:
448
+
449
+ ```markdown
450
+ - [x] **Task 2.1**: Implement validation `abc1234`
451
+ - DEVIATION: Used library instead of custom code
452
+ - Reason: Better edge case handling
453
+ - Impact: Added email-validator to dependencies
454
+ ```
455
+
456
+ ## Error Recovery
457
+
458
+ ### Failed Tests After GREEN
459
+
460
+ If tests fail after reaching GREEN:
461
+
462
+ 1. Do NOT proceed to REFACTOR
463
+ 2. Identify which test started failing
464
+ 3. Check if refactoring broke something
465
+ 4. Revert to last known GREEN state
466
+ 5. Re-approach the implementation
467
+
468
+ ### Checkpoint Rejection
469
+
470
+ If user rejects a checkpoint:
471
+
472
+ 1. Note rejection reason in plan.md
473
+ 2. Create tasks to address issues
474
+ 3. Complete remediation tasks
475
+ 4. Request checkpoint approval again
476
+
477
+ ### Blocked by Dependency
478
+
479
+ If task cannot proceed:
480
+
481
+ 1. Mark task as `[!]` with blocker description
482
+ 2. Check if other tasks can proceed
483
+ 3. Document expected resolution timeline
484
+ 4. Consider creating dependency resolution track
485
+
486
+ ## TDD Variations by Task Type
487
+
488
+ ### Data Model Tasks
489
+
490
+ ```
491
+ RED: Write test for model creation and validation
492
+ GREEN: Implement model class with fields
493
+ REFACTOR: Add computed properties, improve types
494
+ ```
495
+
496
+ ### API Endpoint Tasks
497
+
498
+ ```
499
+ RED: Write test for request/response contract
500
+ GREEN: Implement endpoint handler
501
+ REFACTOR: Extract validation, improve error handling
502
+ ```
503
+
504
+ ### Integration Tasks
505
+
506
+ ```
507
+ RED: Write test for component interaction
508
+ GREEN: Wire components together
509
+ REFACTOR: Improve error propagation, add logging
510
+ ```
511
+
512
+ ### Refactoring Tasks
513
+
514
+ ```
515
+ RED: Add characterization tests for current behavior
516
+ GREEN: Apply refactoring (tests should stay green)
517
+ REFACTOR: Clean up any introduced complexity
518
+ ```
519
+
520
+ ## Working with Existing Tests
521
+
522
+ When modifying code with existing tests:
523
+
524
+ ### Extend, Don't Replace
525
+
526
+ - Keep existing tests passing
527
+ - Add new tests for new behavior
528
+ - Update tests only when requirements change
529
+
530
+ ### Test Migration
531
+
532
+ When refactoring changes test structure:
533
+
534
+ 1. Run existing tests (should pass)
535
+ 2. Add new tests for refactored code
536
+ 3. Migrate test cases to new structure
537
+ 4. Remove old tests only after new tests pass
538
+
539
+ ### Regression Prevention
540
+
541
+ After any change:
542
+
543
+ 1. Run full test suite
544
+ 2. Check for unexpected failures
545
+ 3. Investigate any new failures
546
+ 4. Fix regressions before proceeding
547
+
548
+ ## Checkpoint Verification Details
549
+
550
+ ### Automated Verification
551
+
552
+ Run before requesting approval:
553
+
554
+ ```bash
555
+ # Test suite
556
+ pytest -v --tb=short
557
+
558
+ # Coverage
559
+ pytest --cov=src --cov-report=term-missing
560
+
561
+ # Linting
562
+ ruff check src/ tests/
563
+
564
+ # Type checking (if applicable)
565
+ mypy src/
566
+ ```
567
+
568
+ ### Manual Verification Guidance
569
+
570
+ For manual items, provide specific instructions:
571
+
572
+ ```markdown
573
+ ## Manual Verification Steps
574
+
575
+ ### User Registration
576
+
577
+ 1. Navigate to /register
578
+ 2. Enter valid email: test@example.com
579
+ 3. Enter password meeting requirements
580
+ 4. Click Submit
581
+ 5. Verify success message appears
582
+ 6. Verify user appears in database
583
+
584
+ ### Error Handling
585
+
586
+ 1. Enter invalid email: "notanemail"
587
+ 2. Verify error message shows
588
+ 3. Verify form retains other entered data
589
+ ```
590
+
591
+ ## Performance Considerations
592
+
593
+ ### Test Suite Performance
594
+
595
+ Keep test suite fast:
596
+
597
+ - Use fixtures to avoid redundant setup
598
+ - Mock slow external calls
599
+ - Run subset during development, full suite at checkpoints
600
+
601
+ ### Commit Performance
602
+
603
+ Keep commits atomic:
604
+
605
+ - One logical change per commit
606
+ - Complete thought, not work-in-progress
607
+ - Tests should pass after every commit
608
+
609
+ ## Best Practices
610
+
611
+ 1. **Never skip RED**: Always write failing tests first
612
+ 2. **Small commits**: One logical change per commit
613
+ 3. **Immediate updates**: Update plan.md right after task completion
614
+ 4. **Wait for approval**: Never skip checkpoint verification
615
+ 5. **Rich git notes**: Include context that helps future understanding
616
+ 6. **Coverage discipline**: Don't accept coverage below target
617
+ 7. **Quality gates**: Check all gates before marking complete
618
+ 8. **Sequential phases**: Complete phases in order
619
+ 9. **Document deviations**: Note any changes from original plan
620
+ 10. **Clean state**: Each commit should leave code in working state
621
+ 11. **Fast feedback**: Run relevant tests frequently during development
622
+ 12. **Clear blockers**: Address blockers promptly, don't work around them
@@ -0,0 +1,11 @@
1
+ import { SlashCommand } from '../commands/slash/registry';
2
+ export interface SkillInfo {
3
+ name: string;
4
+ description: string;
5
+ category: string;
6
+ }
7
+ export declare function getSkillByName(name: string): SkillInfo | undefined;
8
+ export declare function listAllSkills(): SkillInfo[];
9
+ export declare function listSkillsByCategory(category: string): SkillInfo[];
10
+ export declare const skillCommands: SlashCommand[];
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/skills/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAK1D,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AA0CD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAElE;AAED,wBAAgB,aAAa,IAAI,SAAS,EAAE,CAE3C;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,CAIlE;AAED,eAAO,MAAM,aAAa,EAAE,YAAY,EA4CvC,CAAC"}