@qazuor/claude-code-config 0.1.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 (171) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1248 -0
  3. package/dist/bin.cjs +11886 -0
  4. package/dist/bin.cjs.map +1 -0
  5. package/dist/bin.d.cts +1 -0
  6. package/dist/bin.d.ts +1 -0
  7. package/dist/bin.js +11869 -0
  8. package/dist/bin.js.map +1 -0
  9. package/dist/index.cjs +3887 -0
  10. package/dist/index.cjs.map +1 -0
  11. package/dist/index.d.cts +1325 -0
  12. package/dist/index.d.ts +1325 -0
  13. package/dist/index.js +3835 -0
  14. package/dist/index.js.map +1 -0
  15. package/package.json +86 -0
  16. package/templates/.log/notifications.log +1775 -0
  17. package/templates/agents/README.md +164 -0
  18. package/templates/agents/_registry.json +443 -0
  19. package/templates/agents/design/content-writer.md +353 -0
  20. package/templates/agents/design/ux-ui-designer.md +382 -0
  21. package/templates/agents/engineering/astro-engineer.md +293 -0
  22. package/templates/agents/engineering/db-drizzle-engineer.md +360 -0
  23. package/templates/agents/engineering/express-engineer.md +316 -0
  24. package/templates/agents/engineering/fastify-engineer.md +399 -0
  25. package/templates/agents/engineering/hono-engineer.md +263 -0
  26. package/templates/agents/engineering/mongoose-engineer.md +473 -0
  27. package/templates/agents/engineering/nestjs-engineer.md +429 -0
  28. package/templates/agents/engineering/nextjs-engineer.md +451 -0
  29. package/templates/agents/engineering/node-typescript-engineer.md +347 -0
  30. package/templates/agents/engineering/prisma-engineer.md +432 -0
  31. package/templates/agents/engineering/react-senior-dev.md +394 -0
  32. package/templates/agents/engineering/tanstack-start-engineer.md +447 -0
  33. package/templates/agents/engineering/tech-lead.md +269 -0
  34. package/templates/agents/product/product-functional.md +329 -0
  35. package/templates/agents/product/product-technical.md +578 -0
  36. package/templates/agents/quality/debugger.md +514 -0
  37. package/templates/agents/quality/qa-engineer.md +390 -0
  38. package/templates/agents/specialized/enrichment-agent.md +277 -0
  39. package/templates/agents/specialized/i18n-specialist.md +322 -0
  40. package/templates/agents/specialized/seo-ai-specialist.md +387 -0
  41. package/templates/agents/specialized/tech-writer.md +300 -0
  42. package/templates/code-style/.editorconfig +27 -0
  43. package/templates/code-style/.prettierignore +25 -0
  44. package/templates/code-style/.prettierrc +12 -0
  45. package/templates/code-style/biome.json +78 -0
  46. package/templates/code-style/commitlint.config.js +44 -0
  47. package/templates/commands/README.md +175 -0
  48. package/templates/commands/_registry.json +420 -0
  49. package/templates/commands/add-new-entity.md +211 -0
  50. package/templates/commands/audit/accessibility-audit.md +360 -0
  51. package/templates/commands/audit/performance-audit.md +290 -0
  52. package/templates/commands/audit/security-audit.md +231 -0
  53. package/templates/commands/code-check.md +127 -0
  54. package/templates/commands/five-why.md +225 -0
  55. package/templates/commands/formatting/format-markdown.md +197 -0
  56. package/templates/commands/git/commit.md +247 -0
  57. package/templates/commands/meta/create-agent.md +257 -0
  58. package/templates/commands/meta/create-command.md +312 -0
  59. package/templates/commands/meta/create-skill.md +321 -0
  60. package/templates/commands/meta/help.md +318 -0
  61. package/templates/commands/planning/check-completed-tasks.md +224 -0
  62. package/templates/commands/planning/cleanup-issues.md +248 -0
  63. package/templates/commands/planning/planning-cleanup.md +251 -0
  64. package/templates/commands/planning/sync-planning-github.md +133 -0
  65. package/templates/commands/planning/sync-todos-github.md +203 -0
  66. package/templates/commands/quality-check.md +211 -0
  67. package/templates/commands/run-tests.md +159 -0
  68. package/templates/commands/start-feature-plan.md +232 -0
  69. package/templates/commands/start-refactor-plan.md +244 -0
  70. package/templates/commands/sync-planning.md +176 -0
  71. package/templates/commands/update-docs.md +242 -0
  72. package/templates/docs/CHECKPOINT-SYSTEM.md +504 -0
  73. package/templates/docs/INDEX.md +677 -0
  74. package/templates/docs/RECOMMENDED-HOOKS.md +415 -0
  75. package/templates/docs/_registry.json +329 -0
  76. package/templates/docs/diagrams/README.md +220 -0
  77. package/templates/docs/diagrams/agent-hierarchy.mmd +55 -0
  78. package/templates/docs/diagrams/documentation-map.mmd +61 -0
  79. package/templates/docs/diagrams/tools-relationship.mmd +55 -0
  80. package/templates/docs/diagrams/workflow-decision-tree.mmd +38 -0
  81. package/templates/docs/doc-sync.md +533 -0
  82. package/templates/docs/examples/end-to-end-workflow.md +1505 -0
  83. package/templates/docs/glossary.md +495 -0
  84. package/templates/docs/guides/mockup-prompt-engineering.md +644 -0
  85. package/templates/docs/guides/mockup-setup.md +737 -0
  86. package/templates/docs/learnings/README.md +250 -0
  87. package/templates/docs/learnings/common-architectural-patterns.md +123 -0
  88. package/templates/docs/learnings/common-mistakes-to-avoid.md +149 -0
  89. package/templates/docs/learnings/markdown-formatting-standards.md +104 -0
  90. package/templates/docs/learnings/monorepo-command-execution.md +64 -0
  91. package/templates/docs/learnings/optimization-tips.md +146 -0
  92. package/templates/docs/learnings/planning-linear-sync-workflow.md +70 -0
  93. package/templates/docs/learnings/shell-compatibility-fish.md +46 -0
  94. package/templates/docs/learnings/test-organization-structure.md +68 -0
  95. package/templates/docs/mcp-installation.md +613 -0
  96. package/templates/docs/mcp-servers.md +989 -0
  97. package/templates/docs/notification-installation.md +570 -0
  98. package/templates/docs/quick-start.md +354 -0
  99. package/templates/docs/standards/architecture-patterns.md +1064 -0
  100. package/templates/docs/standards/atomic-commits.md +513 -0
  101. package/templates/docs/standards/code-standards.md +993 -0
  102. package/templates/docs/standards/design-standards.md +656 -0
  103. package/templates/docs/standards/documentation-standards.md +1160 -0
  104. package/templates/docs/standards/testing-standards.md +969 -0
  105. package/templates/docs/system-maintenance.md +604 -0
  106. package/templates/docs/templates/PDR-template.md +561 -0
  107. package/templates/docs/templates/TODOs-template.md +534 -0
  108. package/templates/docs/templates/tech-analysis-template.md +800 -0
  109. package/templates/docs/workflows/README.md +519 -0
  110. package/templates/docs/workflows/atomic-task-protocol.md +955 -0
  111. package/templates/docs/workflows/decision-tree.md +482 -0
  112. package/templates/docs/workflows/edge-cases.md +856 -0
  113. package/templates/docs/workflows/phase-1-planning.md +957 -0
  114. package/templates/docs/workflows/phase-2-implementation.md +896 -0
  115. package/templates/docs/workflows/phase-3-validation.md +792 -0
  116. package/templates/docs/workflows/phase-4-finalization.md +927 -0
  117. package/templates/docs/workflows/quick-fix-protocol.md +505 -0
  118. package/templates/docs/workflows/task-atomization.md +537 -0
  119. package/templates/docs/workflows/task-completion-protocol.md +448 -0
  120. package/templates/hooks/on-notification.sh +28 -0
  121. package/templates/schemas/checkpoint.schema.json +97 -0
  122. package/templates/schemas/code-registry.schema.json +84 -0
  123. package/templates/schemas/pdr.schema.json +314 -0
  124. package/templates/schemas/problems.schema.json +55 -0
  125. package/templates/schemas/tech-analysis.schema.json +404 -0
  126. package/templates/schemas/telemetry.schema.json +298 -0
  127. package/templates/schemas/todos.schema.json +234 -0
  128. package/templates/schemas/workflows.schema.json +69 -0
  129. package/templates/scripts/add-changelogs.sh +105 -0
  130. package/templates/scripts/generate-code-registry.ts +270 -0
  131. package/templates/scripts/health-check.sh +343 -0
  132. package/templates/scripts/sync-registry.sh +40 -0
  133. package/templates/scripts/telemetry-report.ts +36 -0
  134. package/templates/scripts/validate-docs.sh +224 -0
  135. package/templates/scripts/validate-registry.sh +225 -0
  136. package/templates/scripts/validate-schemas.ts +283 -0
  137. package/templates/scripts/validate-structure.sh +165 -0
  138. package/templates/scripts/worktree-cleanup.sh +81 -0
  139. package/templates/scripts/worktree-create.sh +63 -0
  140. package/templates/sessions/planning/.gitkeep +0 -0
  141. package/templates/sessions/planning/archived/.gitkeep +0 -0
  142. package/templates/settings.json +202 -0
  143. package/templates/settings.local.json +138 -0
  144. package/templates/skills/README.md +197 -0
  145. package/templates/skills/_registry.json +473 -0
  146. package/templates/skills/audit/accessibility-audit.md +309 -0
  147. package/templates/skills/audit/performance-audit.md +257 -0
  148. package/templates/skills/audit/security-audit.md +217 -0
  149. package/templates/skills/auth/nextauth-patterns.md +308 -0
  150. package/templates/skills/brand-guidelines.md +240 -0
  151. package/templates/skills/documentation/markdown-formatter.md +302 -0
  152. package/templates/skills/git/git-commit-helper.md +321 -0
  153. package/templates/skills/i18n/i18n-patterns.md +251 -0
  154. package/templates/skills/patterns/error-handling-patterns.md +242 -0
  155. package/templates/skills/patterns/tdd-methodology.md +342 -0
  156. package/templates/skills/qa/qa-criteria-validator.md +383 -0
  157. package/templates/skills/qa/web-app-testing.md +398 -0
  158. package/templates/skills/react/react-hook-form-patterns.md +359 -0
  159. package/templates/skills/state/redux-toolkit-patterns.md +272 -0
  160. package/templates/skills/state/tanstack-query-patterns.md +299 -0
  161. package/templates/skills/state/zustand-patterns.md +301 -0
  162. package/templates/skills/tech/mermaid-diagram-specialist.md +195 -0
  163. package/templates/skills/tech/shadcn-specialist.md +252 -0
  164. package/templates/skills/tech/vercel-specialist.md +297 -0
  165. package/templates/skills/testing/api-app-testing.md +254 -0
  166. package/templates/skills/testing/performance-testing.md +275 -0
  167. package/templates/skills/testing/security-testing.md +348 -0
  168. package/templates/skills/utils/add-memory.md +295 -0
  169. package/templates/skills/utils/json-data-auditor.md +283 -0
  170. package/templates/skills/utils/pdf-creator-editor.md +342 -0
  171. package/templates/tools/format-markdown.sh +185 -0
@@ -0,0 +1,404 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://example.com/schemas/tech-analysis.schema.json",
4
+ "title": "Technical Analysis",
5
+ "description": "JSON Schema for validating Technical Analysis documents",
6
+ "type": "object",
7
+ "required": ["metadata", "architecture", "implementation", "taskBreakdown"],
8
+ "properties": {
9
+ "metadata": {
10
+ "type": "object",
11
+ "required": ["planningCode", "relatedPDR", "version", "createdAt"],
12
+ "properties": {
13
+ "planningCode": {
14
+ "type": "string",
15
+ "pattern": "^P(F|R|B)?-\\d{3,4}$"
16
+ },
17
+ "relatedPDR": {
18
+ "type": "string",
19
+ "description": "Reference to related PDR document"
20
+ },
21
+ "version": {
22
+ "type": "string",
23
+ "pattern": "^\\d+\\.\\d+(\\.\\d+)?$"
24
+ },
25
+ "createdAt": {
26
+ "type": "string",
27
+ "format": "date-time"
28
+ },
29
+ "updatedAt": {
30
+ "type": "string",
31
+ "format": "date-time"
32
+ },
33
+ "author": {
34
+ "type": "string"
35
+ }
36
+ }
37
+ },
38
+ "architecture": {
39
+ "type": "object",
40
+ "required": ["overview", "components"],
41
+ "properties": {
42
+ "overview": {
43
+ "type": "string",
44
+ "minLength": 50,
45
+ "description": "High-level architecture overview"
46
+ },
47
+ "components": {
48
+ "type": "array",
49
+ "minItems": 1,
50
+ "items": {
51
+ "type": "object",
52
+ "required": ["name", "type", "description"],
53
+ "properties": {
54
+ "name": {
55
+ "type": "string"
56
+ },
57
+ "type": {
58
+ "type": "string",
59
+ "enum": ["frontend", "backend", "database", "api", "service", "package", "infrastructure"]
60
+ },
61
+ "description": {
62
+ "type": "string"
63
+ },
64
+ "technologies": {
65
+ "type": "array",
66
+ "items": {
67
+ "type": "string"
68
+ }
69
+ },
70
+ "dependencies": {
71
+ "type": "array",
72
+ "items": {
73
+ "type": "string"
74
+ }
75
+ }
76
+ }
77
+ }
78
+ },
79
+ "dataFlow": {
80
+ "type": "string",
81
+ "description": "Description of data flow through the system"
82
+ },
83
+ "diagrams": {
84
+ "type": "array",
85
+ "items": {
86
+ "type": "object",
87
+ "required": ["name", "path"],
88
+ "properties": {
89
+ "name": {
90
+ "type": "string"
91
+ },
92
+ "path": {
93
+ "type": "string"
94
+ },
95
+ "type": {
96
+ "type": "string",
97
+ "enum": ["architecture", "sequence", "class", "entity-relationship", "flowchart"]
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+ },
104
+ "implementation": {
105
+ "type": "object",
106
+ "required": ["strategy", "phases"],
107
+ "properties": {
108
+ "strategy": {
109
+ "type": "string",
110
+ "minLength": 30,
111
+ "description": "Implementation strategy and approach"
112
+ },
113
+ "phases": {
114
+ "type": "array",
115
+ "minItems": 1,
116
+ "items": {
117
+ "type": "object",
118
+ "required": ["id", "name", "description", "estimatedHours"],
119
+ "properties": {
120
+ "id": {
121
+ "type": "integer",
122
+ "minimum": 1
123
+ },
124
+ "name": {
125
+ "type": "string"
126
+ },
127
+ "description": {
128
+ "type": "string"
129
+ },
130
+ "estimatedHours": {
131
+ "type": "number",
132
+ "minimum": 0.5
133
+ },
134
+ "dependencies": {
135
+ "type": "array",
136
+ "items": {
137
+ "type": "integer"
138
+ },
139
+ "description": "IDs of phases that must complete first"
140
+ }
141
+ }
142
+ }
143
+ },
144
+ "techStack": {
145
+ "type": "object",
146
+ "properties": {
147
+ "languages": {
148
+ "type": "array",
149
+ "items": {
150
+ "type": "string"
151
+ }
152
+ },
153
+ "frameworks": {
154
+ "type": "array",
155
+ "items": {
156
+ "type": "string"
157
+ }
158
+ },
159
+ "libraries": {
160
+ "type": "array",
161
+ "items": {
162
+ "type": "object",
163
+ "required": ["name", "version"],
164
+ "properties": {
165
+ "name": {
166
+ "type": "string"
167
+ },
168
+ "version": {
169
+ "type": "string"
170
+ },
171
+ "purpose": {
172
+ "type": "string"
173
+ }
174
+ }
175
+ }
176
+ },
177
+ "tools": {
178
+ "type": "array",
179
+ "items": {
180
+ "type": "string"
181
+ }
182
+ }
183
+ }
184
+ },
185
+ "patterns": {
186
+ "type": "array",
187
+ "items": {
188
+ "type": "object",
189
+ "required": ["name", "rationale"],
190
+ "properties": {
191
+ "name": {
192
+ "type": "string"
193
+ },
194
+ "rationale": {
195
+ "type": "string"
196
+ },
197
+ "examples": {
198
+ "type": "array",
199
+ "items": {
200
+ "type": "string"
201
+ }
202
+ }
203
+ }
204
+ }
205
+ }
206
+ }
207
+ },
208
+ "taskBreakdown": {
209
+ "type": "object",
210
+ "required": ["totalTasks", "totalHours", "tasks"],
211
+ "properties": {
212
+ "totalTasks": {
213
+ "type": "integer",
214
+ "minimum": 1
215
+ },
216
+ "totalHours": {
217
+ "type": "number",
218
+ "minimum": 0.5
219
+ },
220
+ "tasks": {
221
+ "type": "array",
222
+ "minItems": 1,
223
+ "items": {
224
+ "type": "object",
225
+ "required": ["code", "title", "estimatedHours", "priority"],
226
+ "properties": {
227
+ "code": {
228
+ "type": "string",
229
+ "pattern": "^P(F|R|B)\\d{3,4}-\\d+(\\.\\d+)?$"
230
+ },
231
+ "title": {
232
+ "type": "string",
233
+ "minLength": 5
234
+ },
235
+ "description": {
236
+ "type": "string"
237
+ },
238
+ "estimatedHours": {
239
+ "type": "number",
240
+ "minimum": 0.5,
241
+ "maximum": 4,
242
+ "description": "Tasks should be 0.5-4 hours (atomized)"
243
+ },
244
+ "priority": {
245
+ "type": "string",
246
+ "enum": ["P0", "P1", "P2", "P3"]
247
+ },
248
+ "dependencies": {
249
+ "type": "array",
250
+ "items": {
251
+ "type": "string",
252
+ "pattern": "^P(F|R|B)\\d{3,4}-\\d+(\\.\\d+)?$"
253
+ }
254
+ },
255
+ "phase": {
256
+ "type": "integer",
257
+ "minimum": 1
258
+ },
259
+ "canParallelize": {
260
+ "type": "boolean",
261
+ "description": "Can be done in parallel with other tasks"
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }
267
+ },
268
+ "risks": {
269
+ "type": "array",
270
+ "items": {
271
+ "type": "object",
272
+ "required": ["risk", "impact", "probability", "mitigation"],
273
+ "properties": {
274
+ "risk": {
275
+ "type": "string"
276
+ },
277
+ "impact": {
278
+ "type": "string",
279
+ "enum": ["high", "medium", "low"]
280
+ },
281
+ "probability": {
282
+ "type": "string",
283
+ "enum": ["high", "medium", "low"]
284
+ },
285
+ "mitigation": {
286
+ "type": "string"
287
+ },
288
+ "contingency": {
289
+ "type": "string"
290
+ }
291
+ }
292
+ }
293
+ },
294
+ "testing": {
295
+ "type": "object",
296
+ "properties": {
297
+ "strategy": {
298
+ "type": "string"
299
+ },
300
+ "coverage": {
301
+ "type": "object",
302
+ "properties": {
303
+ "target": {
304
+ "type": "number",
305
+ "minimum": 0,
306
+ "maximum": 100
307
+ },
308
+ "minimum": {
309
+ "type": "number",
310
+ "minimum": 0,
311
+ "maximum": 100
312
+ }
313
+ }
314
+ },
315
+ "types": {
316
+ "type": "array",
317
+ "items": {
318
+ "type": "string",
319
+ "enum": ["unit", "integration", "e2e", "performance", "security"]
320
+ }
321
+ }
322
+ }
323
+ },
324
+ "deployment": {
325
+ "type": "object",
326
+ "properties": {
327
+ "strategy": {
328
+ "type": "string",
329
+ "enum": ["blue-green", "rolling", "canary", "recreate"]
330
+ },
331
+ "environments": {
332
+ "type": "array",
333
+ "items": {
334
+ "type": "string",
335
+ "enum": ["development", "staging", "production"]
336
+ }
337
+ },
338
+ "cicd": {
339
+ "type": "object",
340
+ "properties": {
341
+ "platform": {
342
+ "type": "string"
343
+ },
344
+ "steps": {
345
+ "type": "array",
346
+ "items": {
347
+ "type": "string"
348
+ }
349
+ }
350
+ }
351
+ }
352
+ }
353
+ },
354
+ "performance": {
355
+ "type": "object",
356
+ "properties": {
357
+ "targets": {
358
+ "type": "array",
359
+ "items": {
360
+ "type": "object",
361
+ "required": ["metric", "target"],
362
+ "properties": {
363
+ "metric": {
364
+ "type": "string"
365
+ },
366
+ "target": {
367
+ "type": "string"
368
+ },
369
+ "measurement": {
370
+ "type": "string"
371
+ }
372
+ }
373
+ }
374
+ },
375
+ "optimizations": {
376
+ "type": "array",
377
+ "items": {
378
+ "type": "string"
379
+ }
380
+ }
381
+ }
382
+ },
383
+ "security": {
384
+ "type": "object",
385
+ "properties": {
386
+ "considerations": {
387
+ "type": "array",
388
+ "items": {
389
+ "type": "string"
390
+ }
391
+ },
392
+ "authentication": {
393
+ "type": "string"
394
+ },
395
+ "authorization": {
396
+ "type": "string"
397
+ },
398
+ "dataProtection": {
399
+ "type": "string"
400
+ }
401
+ }
402
+ }
403
+ }
404
+ }
@@ -0,0 +1,298 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://example.com/schemas/telemetry.schema.json",
4
+ "title": "Telemetry Data",
5
+ "description": "JSON Schema for local telemetry tracking (privacy-first, gitignored)",
6
+ "type": "object",
7
+ "required": ["version", "createdAt", "lastUpdated"],
8
+ "properties": {
9
+ "version": {
10
+ "type": "string",
11
+ "const": "1.0",
12
+ "description": "Telemetry schema version"
13
+ },
14
+ "createdAt": {
15
+ "type": "string",
16
+ "format": "date-time",
17
+ "description": "When telemetry tracking started"
18
+ },
19
+ "lastUpdated": {
20
+ "type": "string",
21
+ "format": "date-time",
22
+ "description": "Last telemetry update timestamp"
23
+ },
24
+ "agents": {
25
+ "type": "object",
26
+ "description": "Agent usage statistics",
27
+ "additionalProperties": {
28
+ "type": "object",
29
+ "required": ["name", "invocations", "lastUsed"],
30
+ "properties": {
31
+ "name": {
32
+ "type": "string",
33
+ "description": "Agent name"
34
+ },
35
+ "category": {
36
+ "type": "string",
37
+ "description": "Agent category (product, engineering, quality, etc.)"
38
+ },
39
+ "invocations": {
40
+ "type": "integer",
41
+ "minimum": 0,
42
+ "description": "Number of times invoked"
43
+ },
44
+ "lastUsed": {
45
+ "type": "string",
46
+ "format": "date-time",
47
+ "description": "Last invocation timestamp"
48
+ },
49
+ "averageDuration": {
50
+ "type": "number",
51
+ "minimum": 0,
52
+ "description": "Average execution time in seconds"
53
+ },
54
+ "successRate": {
55
+ "type": "number",
56
+ "minimum": 0,
57
+ "maximum": 100,
58
+ "description": "Success rate percentage"
59
+ }
60
+ }
61
+ }
62
+ },
63
+ "commands": {
64
+ "type": "object",
65
+ "description": "Command usage statistics",
66
+ "additionalProperties": {
67
+ "type": "object",
68
+ "required": ["name", "invocations", "lastUsed"],
69
+ "properties": {
70
+ "name": {
71
+ "type": "string",
72
+ "description": "Command name (without slash)"
73
+ },
74
+ "invocations": {
75
+ "type": "integer",
76
+ "minimum": 0,
77
+ "description": "Number of times executed"
78
+ },
79
+ "lastUsed": {
80
+ "type": "string",
81
+ "format": "date-time",
82
+ "description": "Last execution timestamp"
83
+ },
84
+ "averageDuration": {
85
+ "type": "number",
86
+ "minimum": 0,
87
+ "description": "Average execution time in seconds"
88
+ },
89
+ "successRate": {
90
+ "type": "number",
91
+ "minimum": 0,
92
+ "maximum": 100,
93
+ "description": "Success rate percentage"
94
+ }
95
+ }
96
+ }
97
+ },
98
+ "skills": {
99
+ "type": "object",
100
+ "description": "Skill usage statistics",
101
+ "additionalProperties": {
102
+ "type": "object",
103
+ "required": ["name", "invocations", "lastUsed"],
104
+ "properties": {
105
+ "name": {
106
+ "type": "string",
107
+ "description": "Skill name"
108
+ },
109
+ "category": {
110
+ "type": "string",
111
+ "description": "Skill category (git, qa, documentation, etc.)"
112
+ },
113
+ "invocations": {
114
+ "type": "integer",
115
+ "minimum": 0,
116
+ "description": "Number of times invoked"
117
+ },
118
+ "lastUsed": {
119
+ "type": "string",
120
+ "format": "date-time",
121
+ "description": "Last invocation timestamp"
122
+ }
123
+ }
124
+ }
125
+ },
126
+ "workflows": {
127
+ "type": "object",
128
+ "description": "Workflow execution statistics",
129
+ "properties": {
130
+ "level1": {
131
+ "type": "object",
132
+ "description": "Quick Fix (< 1 hour)",
133
+ "properties": {
134
+ "total": {
135
+ "type": "integer",
136
+ "minimum": 0,
137
+ "description": "Total Level 1 workflows"
138
+ },
139
+ "averageDuration": {
140
+ "type": "number",
141
+ "minimum": 0,
142
+ "description": "Average duration in minutes"
143
+ }
144
+ }
145
+ },
146
+ "level2": {
147
+ "type": "object",
148
+ "description": "Feature/Refactor (1-40 hours)",
149
+ "properties": {
150
+ "total": {
151
+ "type": "integer",
152
+ "minimum": 0,
153
+ "description": "Total Level 2 workflows"
154
+ },
155
+ "byPhase": {
156
+ "type": "object",
157
+ "description": "Time spent per phase",
158
+ "properties": {
159
+ "planning": {
160
+ "type": "number",
161
+ "minimum": 0,
162
+ "description": "Hours in Phase 1"
163
+ },
164
+ "implementation": {
165
+ "type": "number",
166
+ "minimum": 0,
167
+ "description": "Hours in Phase 2"
168
+ },
169
+ "validation": {
170
+ "type": "number",
171
+ "minimum": 0,
172
+ "description": "Hours in Phase 3"
173
+ },
174
+ "finalization": {
175
+ "type": "number",
176
+ "minimum": 0,
177
+ "description": "Hours in Phase 4"
178
+ }
179
+ }
180
+ },
181
+ "averageDuration": {
182
+ "type": "number",
183
+ "minimum": 0,
184
+ "description": "Average duration in hours"
185
+ }
186
+ }
187
+ },
188
+ "level3": {
189
+ "type": "object",
190
+ "description": "Major Initiative (> 40 hours)",
191
+ "properties": {
192
+ "total": {
193
+ "type": "integer",
194
+ "minimum": 0,
195
+ "description": "Total Level 3 workflows"
196
+ },
197
+ "sessions": {
198
+ "type": "integer",
199
+ "minimum": 0,
200
+ "description": "Total planning sessions"
201
+ },
202
+ "averageDuration": {
203
+ "type": "number",
204
+ "minimum": 0,
205
+ "description": "Average duration in hours"
206
+ }
207
+ }
208
+ }
209
+ }
210
+ },
211
+ "sessions": {
212
+ "type": "array",
213
+ "description": "Planning session history",
214
+ "items": {
215
+ "type": "object",
216
+ "required": ["code", "startedAt", "status"],
217
+ "properties": {
218
+ "code": {
219
+ "type": "string",
220
+ "pattern": "^P(F|R|B)?-\\d{3,4}[^/]*$",
221
+ "description": "Planning session code"
222
+ },
223
+ "title": {
224
+ "type": "string",
225
+ "description": "Session title/name"
226
+ },
227
+ "workflowLevel": {
228
+ "type": "integer",
229
+ "enum": [1, 2, 3],
230
+ "description": "Workflow level used"
231
+ },
232
+ "startedAt": {
233
+ "type": "string",
234
+ "format": "date-time",
235
+ "description": "Session start timestamp"
236
+ },
237
+ "completedAt": {
238
+ "type": "string",
239
+ "format": "date-time",
240
+ "description": "Session completion timestamp"
241
+ },
242
+ "status": {
243
+ "type": "string",
244
+ "enum": ["in-progress", "completed", "archived", "cancelled"],
245
+ "description": "Current session status"
246
+ },
247
+ "tasksTotal": {
248
+ "type": "integer",
249
+ "minimum": 0,
250
+ "description": "Total tasks in session"
251
+ },
252
+ "tasksCompleted": {
253
+ "type": "integer",
254
+ "minimum": 0,
255
+ "description": "Completed tasks"
256
+ },
257
+ "hoursEstimated": {
258
+ "type": "number",
259
+ "minimum": 0,
260
+ "description": "Estimated hours"
261
+ },
262
+ "hoursActual": {
263
+ "type": "number",
264
+ "minimum": 0,
265
+ "description": "Actual hours spent"
266
+ }
267
+ }
268
+ }
269
+ },
270
+ "tools": {
271
+ "type": "object",
272
+ "description": "Tool usage statistics",
273
+ "properties": {
274
+ "validations": {
275
+ "type": "object",
276
+ "properties": {
277
+ "docs": {
278
+ "type": "integer",
279
+ "minimum": 0,
280
+ "description": "Times validate-docs.sh run"
281
+ },
282
+ "schemas": {
283
+ "type": "integer",
284
+ "minimum": 0,
285
+ "description": "Times validate-schemas.ts run"
286
+ },
287
+ "registry": {
288
+ "type": "integer",
289
+ "minimum": 0,
290
+ "description": "Times sync-registry.sh run"
291
+ }
292
+ }
293
+ }
294
+ }
295
+ }
296
+ },
297
+ "additionalProperties": false
298
+ }