@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,482 @@
1
+ # Workflow Decision Tree
2
+
3
+ Decision framework for selecting the appropriate workflow level based on task characteristics.
4
+
5
+ ---
6
+
7
+ ## Decision Diagram
8
+
9
+ ```mermaid
10
+ flowchart TD
11
+ Start([New Task]) --> Q1{Estimated time?}
12
+
13
+ Q1 -->|< 1 hour| Q2{Single file?}
14
+ Q1 -->|1-40 hours| Level2[Level 2: Feature/Refactor]
15
+ Q1 -->|> 40 hours| Level3[Level 3: Major Initiative]
16
+
17
+ Q2 -->|Yes| Q3{Requires tests?}
18
+ Q2 -->|No| Level2
19
+
20
+ Q3 -->|No| Level1[Level 1: Quick Fix]
21
+ Q3 -->|Yes| Level2
22
+
23
+ Level1 --> L1Process[Process:<br/>1. Edit file<br/>2. Manual verification<br/>3. Commit]
24
+ Level2 --> L2Process[Process:<br/>1. Planning Phase<br/>2. Implementation Phase<br/>3. Validation Phase<br/>4. Finalization Phase]
25
+ Level3 --> L3Process[Process:<br/>1. Multi-session planning<br/>2. Coordinated implementation<br/>3. Cross-session validation<br/>4. Incremental delivery]
26
+
27
+ L1Process --> Complete([Done])
28
+ L2Process --> Complete
29
+ L3Process --> Complete
30
+
31
+ style Level1 fill:#90EE90
32
+ style Level2 fill:#87CEEB
33
+ style Level3 fill:#DDA0DD
34
+ style Complete fill:#FFD700
35
+ ```
36
+
37
+ ---
38
+
39
+ ## Level 1: Quick Fix
40
+
41
+ ### When to Use
42
+
43
+ **Time estimate:** < 1 hour
44
+
45
+ **Characteristics:**
46
+
47
+ - Single file modification
48
+ - No new tests required (or trivial test update)
49
+ - Minimal risk
50
+ - No architectural impact
51
+ - Isolated change
52
+
53
+ ### Examples
54
+
55
+ ✅ **Good candidates:**
56
+
57
+ - Fix typo in documentation
58
+ - Update dependency version in package.json
59
+ - Adjust CSS styling
60
+ - Correct variable name
61
+ - Fix broken link
62
+
63
+ ❌ **Not suitable:**
64
+
65
+ - Changes requiring new tests
66
+ - Multi-file modifications
67
+ - Database schema changes
68
+ - API contract modifications
69
+
70
+ ### Process
71
+
72
+ ```
73
+ 1. Make change directly
74
+ 2. Manual verification
75
+ 3. Commit with conventional message
76
+ ```
77
+
78
+ **Commands:** None required (direct editing)
79
+
80
+ **Duration:** 5-60 minutes
81
+
82
+ ---
83
+
84
+ ## Level 2: Feature/Refactor
85
+
86
+ ### When to Use
87
+
88
+ **Time estimate:** 1-40 hours
89
+
90
+ **Characteristics:**
91
+
92
+ - Requires planning and design
93
+ - Multiple files affected
94
+ - New tests required
95
+ - Moderate complexity
96
+ - Clear scope and requirements
97
+
98
+ ### Examples
99
+
100
+ ✅ **Good candidates:**
101
+
102
+ - New API endpoint with CRUD operations
103
+ - Refactor service layer to use dependency injection
104
+ - Add authentication to existing feature
105
+ - Create new UI component with tests
106
+ - Database schema migration
107
+
108
+ ❌ **Not suitable:**
109
+
110
+ - Simple one-line fixes (use Level 1)
111
+ - Massive refactoring spanning 50+ files (use Level 3)
112
+ - Changes without clear requirements
113
+
114
+ ### Process
115
+
116
+ #### Phase 1: Planning (20% of time)
117
+
118
+ **Goal:** Create comprehensive plan
119
+
120
+ **Steps:**
121
+
122
+ 1. Run `/start-feature-plan` or `/start-refactor-plan`
123
+ 2. `product-functional` agent creates PDR.md
124
+ - User stories
125
+ - Mockups (if applicable)
126
+ - Acceptance criteria
127
+ 3. `product-technical` agent creates tech-analysis.md
128
+ - Architecture decisions
129
+ - Tech stack choices
130
+ - Implementation approach
131
+ - Task breakdown
132
+ 4. Create TODOs.md with atomized tasks (≤ 4h each)
133
+ 5. User approval
134
+
135
+ **Deliverables:**
136
+
137
+ - PDR.md
138
+ - tech-analysis.md
139
+ - TODOs.md
140
+ - .checkpoint.json
141
+
142
+ #### Phase 2: Implementation (60% of time)
143
+
144
+ **Goal:** Build feature following TDD
145
+
146
+ **Steps:**
147
+
148
+ 1. For each task in TODOs.md:
149
+ - **RED:** Write failing test
150
+ - **GREEN:** Implement minimum code
151
+ - **REFACTOR:** Improve while tests pass
152
+ 2. Update .checkpoint.json after each task
153
+ 3. Commit incrementally (1 commit per task or logical group)
154
+
155
+ **Key practices:**
156
+
157
+ - Follow existing patterns exactly
158
+ - Maintain 90% test coverage
159
+ - Document with JSDoc (English)
160
+ - Run lint/typecheck frequently
161
+
162
+ #### Phase 3: Validation (15% of time)
163
+
164
+ **Goal:** Ensure quality standards
165
+
166
+ **Steps:**
167
+
168
+ 1. Run `/quality-check`:
169
+ - Lint (Biome) - stops on error
170
+ - Type check - stops on error
171
+ - Tests - stops on error
172
+ - Code review - reports all
173
+ - Security review - reports all
174
+ - Performance review - reports all
175
+ 2. Invoke `qa-engineer` with acceptance criteria
176
+ 3. Fix any issues
177
+ 4. Invoke `tech-lead` for global review
178
+
179
+ #### Phase 4: Finalization (5% of time)
180
+
181
+ **Goal:** Document and prepare for merge
182
+
183
+ **Steps:**
184
+
185
+ 1. Invoke `tech-writer` to update documentation
186
+ 2. Run `/commit` to generate conventional commits
187
+ 3. Review and approve commits
188
+ 4. Optionally create PR with `/create-pr`
189
+
190
+ **Deliverables:**
191
+
192
+ - Tested, documented code
193
+ - Conventional commits
194
+ - Updated docs
195
+ - PR (optional)
196
+
197
+ **Commands:**
198
+
199
+ - `/start-feature-plan` or `/start-refactor-plan`
200
+ - `/quality-check`
201
+ - `/commit`
202
+
203
+ **Duration:** 1-40 hours (typically 4-24 hours)
204
+
205
+ ---
206
+
207
+ ## Level 3: Major Initiative
208
+
209
+ ### When to Use
210
+
211
+ **Time estimate:** > 40 hours
212
+
213
+ **Characteristics:**
214
+
215
+ - Large, multi-faceted effort
216
+ - Multiple planning sessions
217
+ - Cross-cutting concerns
218
+ - Architectural significance
219
+ - Requires coordination
220
+ - Phased delivery
221
+
222
+ ### Examples
223
+
224
+ ✅ **Good candidates:**
225
+
226
+ - Complete authentication system (OAuth, JWT, permissions)
227
+ - Migrate database from PostgreSQL to different provider
228
+ - Rewrite frontend from React to Vue
229
+ - Implement multi-tenancy
230
+ - Build admin dashboard from scratch
231
+
232
+ ❌ **Not suitable:**
233
+
234
+ - Tasks that can be completed in one session (use Level 2)
235
+ - Poorly defined initiatives without clear goals
236
+
237
+ ### Process
238
+
239
+ #### Planning Stage
240
+
241
+ **Goal:** Define scope, phases, and dependencies
242
+
243
+ **Steps:**
244
+
245
+ 1. Break initiative into multiple planning sessions
246
+ 2. For each session:
247
+ - Create separate planning session (PF-XXX)
248
+ - Define clear scope and boundaries
249
+ - Identify dependencies on other sessions
250
+ 3. Establish delivery milestones
251
+ 4. Coordinate order of execution
252
+
253
+ **Example breakdown:**
254
+
255
+ ```
256
+ Initiative: Complete Auth System (80 hours)
257
+
258
+ Session 1: PF-010 - Core Auth (15h)
259
+ ├── User registration
260
+ ├── Login/logout
261
+ └── Session management
262
+
263
+ Session 2: PF-011 - OAuth Integration (20h)
264
+ ├── Google OAuth
265
+ ├── GitHub OAuth
266
+ └── Token management
267
+
268
+ Session 3: PF-012 - Permissions System (25h)
269
+ ├── Role-based access control
270
+ ├── Resource permissions
271
+ └── Permission middleware
272
+
273
+ Session 4: PF-013 - Admin Interface (20h)
274
+ ├── User management UI
275
+ ├── Role assignment
276
+ └── Audit logs
277
+ ```
278
+
279
+ #### Execution Stage
280
+
281
+ **Goal:** Implement each session using Level 2 workflow
282
+
283
+ **Steps:**
284
+
285
+ 1. Execute each planning session in order
286
+ 2. Use Level 2 (4-phase) workflow for each session
287
+ 3. Maintain cross-session references in PDR.md
288
+ 4. Update global progress tracking
289
+
290
+ #### Integration Stage
291
+
292
+ **Goal:** Ensure all parts work together
293
+
294
+ **Steps:**
295
+
296
+ 1. Run integration tests across sessions
297
+ 2. Validate cross-session dependencies
298
+ 3. Perform end-to-end testing
299
+ 4. Document complete system
300
+
301
+ **Commands:** Same as Level 2, repeated for each session
302
+
303
+ **Duration:** 40+ hours (typically 40-200 hours)
304
+
305
+ ---
306
+
307
+ ## Decision Factors Reference
308
+
309
+ ### Time Estimation
310
+
311
+ | Duration | Level | Notes |
312
+ |----------|-------|-------|
313
+ | < 1 hour | Level 1 | Quick fixes only |
314
+ | 1-4 hours | Level 2 | Single planning session, 2-3 tasks |
315
+ | 4-16 hours | Level 2 | Standard feature, 4-8 tasks |
316
+ | 16-40 hours | Level 2 | Complex feature, 8-20 tasks |
317
+ | 40-80 hours | Level 3 | 2-3 planning sessions |
318
+ | 80-200 hours | Level 3 | 4-10 planning sessions |
319
+ | > 200 hours | Level 3 | Major initiative, careful planning |
320
+
321
+ ### Complexity Indicators
322
+
323
+ **Low complexity** (→ Level 1):
324
+
325
+ - Single file
326
+ - No tests needed
327
+ - No dependencies
328
+ - Trivial change
329
+
330
+ **Medium complexity** (→ Level 2):
331
+
332
+ - 2-10 files
333
+ - New tests required
334
+ - Some dependencies
335
+ - Clear requirements
336
+
337
+ **High complexity** (→ Level 3):
338
+
339
+ - 20+ files
340
+ - Complex test scenarios
341
+ - Many dependencies
342
+ - Architectural impact
343
+
344
+ ### Risk Assessment
345
+
346
+ **Low risk** (→ Level 1):
347
+
348
+ - No production impact
349
+ - Easy to rollback
350
+ - Isolated change
351
+ - No breaking changes
352
+
353
+ **Medium risk** (→ Level 2):
354
+
355
+ - Controlled production impact
356
+ - Reversible with effort
357
+ - Localized changes
358
+ - Backward compatible
359
+
360
+ **High risk** (→ Level 3):
361
+
362
+ - Significant production impact
363
+ - Difficult to rollback
364
+ - System-wide changes
365
+ - Potential breaking changes
366
+
367
+ ---
368
+
369
+ ## Common Scenarios
370
+
371
+ ### Scenario 1: Documentation Update
372
+
373
+ **Task:** Update README with new API endpoint documentation
374
+
375
+ **Analysis:**
376
+
377
+ - Time: 15 minutes
378
+ - Files: 1 (README.md)
379
+ - Tests: None needed
380
+ - Risk: Low
381
+
382
+ **Decision:** Level 1 (Quick Fix)
383
+
384
+ ### Scenario 2: New API Endpoint
385
+
386
+ **Task:** Create /api/users/:id/profile endpoint with tests
387
+
388
+ **Analysis:**
389
+
390
+ - Time: 6 hours
391
+ - Files: 5 (route, service, model, test, schema)
392
+ - Tests: Unit + Integration required
393
+ - Risk: Medium
394
+
395
+ **Decision:** Level 2 (Feature)
396
+
397
+ ### Scenario 3: Authentication System
398
+
399
+ **Task:** Implement complete auth with OAuth, JWT, permissions
400
+
401
+ **Analysis:**
402
+
403
+ - Time: 80 hours
404
+ - Files: 50+
405
+ - Tests: Comprehensive suite
406
+ - Risk: High
407
+
408
+ **Decision:** Level 3 (Major Initiative)
409
+
410
+ - Break into 4 sessions
411
+ - Each session uses Level 2 workflow
412
+ - Coordinate dependencies
413
+
414
+ ---
415
+
416
+ ## Special Cases
417
+
418
+ ### Uncertain Scope
419
+
420
+ **If you're unsure of the time estimate:**
421
+
422
+ 1. Start with Level 2 planning phase
423
+ 2. Create PDR and tech analysis
424
+ 3. Do task breakdown
425
+ 4. Re-evaluate based on task count and hours
426
+ 5. If > 40 hours, convert to Level 3
427
+
428
+ ### Emergency Fixes
429
+
430
+ **For critical production issues:**
431
+
432
+ 1. Use Level 1 for immediate hotfix
433
+ 2. Follow up with Level 2 for comprehensive fix
434
+ 3. Document in separate planning session
435
+
436
+ ### Experimental Work
437
+
438
+ **For proof-of-concept or spikes:**
439
+
440
+ 1. Time-box to 4-8 hours
441
+ 2. Use Level 2 with minimal planning
442
+ 3. Decision point after POC:
443
+ - Discard (learning captured)
444
+ - Formalize with full Level 2
445
+ - Expand to Level 3
446
+
447
+ ---
448
+
449
+ ## Decision Checklist
450
+
451
+ Before starting, answer these questions:
452
+
453
+ - [ ] What is the estimated time? (< 1h, 1-40h, > 40h)
454
+ - [ ] How many files will be modified? (1, 2-10, 20+)
455
+ - [ ] Are new tests required? (None, Some, Extensive)
456
+ - [ ] What is the risk level? (Low, Medium, High)
457
+ - [ ] Is the scope clear? (Yes, Mostly, No)
458
+ - [ ] Are there dependencies on other work? (None, Few, Many)
459
+
460
+ Based on answers:
461
+
462
+ - **Mostly Low/None/Yes/1:** Level 1
463
+ - **Mostly Medium/Some/2-10:** Level 2
464
+ - **Mostly High/Extensive/20+:** Level 3
465
+
466
+ ---
467
+
468
+ ## Visual Summary
469
+
470
+ | Criteria | Level 1 | Level 2 | Level 3 |
471
+ |----------|---------|---------|---------|
472
+ | **Time** | < 1h | 1-40h | > 40h |
473
+ | **Files** | 1 | 2-10 | 20+ |
474
+ | **Tests** | None/Trivial | Required | Comprehensive |
475
+ | **Planning** | None | PDR + Tech Analysis | Multi-session |
476
+ | **Risk** | Low | Medium | High |
477
+ | **Phases** | 1 | 4 | 4 × N sessions |
478
+ | **Commands** | None | `/start-*-plan`, `/quality-check` | Coordinated Level 2 |
479
+
480
+ ---
481
+
482
+ Last updated: 2025-10-31