@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.
- package/LICENSE +21 -0
- package/README.md +1248 -0
- package/dist/bin.cjs +11886 -0
- package/dist/bin.cjs.map +1 -0
- package/dist/bin.d.cts +1 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +11869 -0
- package/dist/bin.js.map +1 -0
- package/dist/index.cjs +3887 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1325 -0
- package/dist/index.d.ts +1325 -0
- package/dist/index.js +3835 -0
- package/dist/index.js.map +1 -0
- package/package.json +86 -0
- package/templates/.log/notifications.log +1775 -0
- package/templates/agents/README.md +164 -0
- package/templates/agents/_registry.json +443 -0
- package/templates/agents/design/content-writer.md +353 -0
- package/templates/agents/design/ux-ui-designer.md +382 -0
- package/templates/agents/engineering/astro-engineer.md +293 -0
- package/templates/agents/engineering/db-drizzle-engineer.md +360 -0
- package/templates/agents/engineering/express-engineer.md +316 -0
- package/templates/agents/engineering/fastify-engineer.md +399 -0
- package/templates/agents/engineering/hono-engineer.md +263 -0
- package/templates/agents/engineering/mongoose-engineer.md +473 -0
- package/templates/agents/engineering/nestjs-engineer.md +429 -0
- package/templates/agents/engineering/nextjs-engineer.md +451 -0
- package/templates/agents/engineering/node-typescript-engineer.md +347 -0
- package/templates/agents/engineering/prisma-engineer.md +432 -0
- package/templates/agents/engineering/react-senior-dev.md +394 -0
- package/templates/agents/engineering/tanstack-start-engineer.md +447 -0
- package/templates/agents/engineering/tech-lead.md +269 -0
- package/templates/agents/product/product-functional.md +329 -0
- package/templates/agents/product/product-technical.md +578 -0
- package/templates/agents/quality/debugger.md +514 -0
- package/templates/agents/quality/qa-engineer.md +390 -0
- package/templates/agents/specialized/enrichment-agent.md +277 -0
- package/templates/agents/specialized/i18n-specialist.md +322 -0
- package/templates/agents/specialized/seo-ai-specialist.md +387 -0
- package/templates/agents/specialized/tech-writer.md +300 -0
- package/templates/code-style/.editorconfig +27 -0
- package/templates/code-style/.prettierignore +25 -0
- package/templates/code-style/.prettierrc +12 -0
- package/templates/code-style/biome.json +78 -0
- package/templates/code-style/commitlint.config.js +44 -0
- package/templates/commands/README.md +175 -0
- package/templates/commands/_registry.json +420 -0
- package/templates/commands/add-new-entity.md +211 -0
- package/templates/commands/audit/accessibility-audit.md +360 -0
- package/templates/commands/audit/performance-audit.md +290 -0
- package/templates/commands/audit/security-audit.md +231 -0
- package/templates/commands/code-check.md +127 -0
- package/templates/commands/five-why.md +225 -0
- package/templates/commands/formatting/format-markdown.md +197 -0
- package/templates/commands/git/commit.md +247 -0
- package/templates/commands/meta/create-agent.md +257 -0
- package/templates/commands/meta/create-command.md +312 -0
- package/templates/commands/meta/create-skill.md +321 -0
- package/templates/commands/meta/help.md +318 -0
- package/templates/commands/planning/check-completed-tasks.md +224 -0
- package/templates/commands/planning/cleanup-issues.md +248 -0
- package/templates/commands/planning/planning-cleanup.md +251 -0
- package/templates/commands/planning/sync-planning-github.md +133 -0
- package/templates/commands/planning/sync-todos-github.md +203 -0
- package/templates/commands/quality-check.md +211 -0
- package/templates/commands/run-tests.md +159 -0
- package/templates/commands/start-feature-plan.md +232 -0
- package/templates/commands/start-refactor-plan.md +244 -0
- package/templates/commands/sync-planning.md +176 -0
- package/templates/commands/update-docs.md +242 -0
- package/templates/docs/CHECKPOINT-SYSTEM.md +504 -0
- package/templates/docs/INDEX.md +677 -0
- package/templates/docs/RECOMMENDED-HOOKS.md +415 -0
- package/templates/docs/_registry.json +329 -0
- package/templates/docs/diagrams/README.md +220 -0
- package/templates/docs/diagrams/agent-hierarchy.mmd +55 -0
- package/templates/docs/diagrams/documentation-map.mmd +61 -0
- package/templates/docs/diagrams/tools-relationship.mmd +55 -0
- package/templates/docs/diagrams/workflow-decision-tree.mmd +38 -0
- package/templates/docs/doc-sync.md +533 -0
- package/templates/docs/examples/end-to-end-workflow.md +1505 -0
- package/templates/docs/glossary.md +495 -0
- package/templates/docs/guides/mockup-prompt-engineering.md +644 -0
- package/templates/docs/guides/mockup-setup.md +737 -0
- package/templates/docs/learnings/README.md +250 -0
- package/templates/docs/learnings/common-architectural-patterns.md +123 -0
- package/templates/docs/learnings/common-mistakes-to-avoid.md +149 -0
- package/templates/docs/learnings/markdown-formatting-standards.md +104 -0
- package/templates/docs/learnings/monorepo-command-execution.md +64 -0
- package/templates/docs/learnings/optimization-tips.md +146 -0
- package/templates/docs/learnings/planning-linear-sync-workflow.md +70 -0
- package/templates/docs/learnings/shell-compatibility-fish.md +46 -0
- package/templates/docs/learnings/test-organization-structure.md +68 -0
- package/templates/docs/mcp-installation.md +613 -0
- package/templates/docs/mcp-servers.md +989 -0
- package/templates/docs/notification-installation.md +570 -0
- package/templates/docs/quick-start.md +354 -0
- package/templates/docs/standards/architecture-patterns.md +1064 -0
- package/templates/docs/standards/atomic-commits.md +513 -0
- package/templates/docs/standards/code-standards.md +993 -0
- package/templates/docs/standards/design-standards.md +656 -0
- package/templates/docs/standards/documentation-standards.md +1160 -0
- package/templates/docs/standards/testing-standards.md +969 -0
- package/templates/docs/system-maintenance.md +604 -0
- package/templates/docs/templates/PDR-template.md +561 -0
- package/templates/docs/templates/TODOs-template.md +534 -0
- package/templates/docs/templates/tech-analysis-template.md +800 -0
- package/templates/docs/workflows/README.md +519 -0
- package/templates/docs/workflows/atomic-task-protocol.md +955 -0
- package/templates/docs/workflows/decision-tree.md +482 -0
- package/templates/docs/workflows/edge-cases.md +856 -0
- package/templates/docs/workflows/phase-1-planning.md +957 -0
- package/templates/docs/workflows/phase-2-implementation.md +896 -0
- package/templates/docs/workflows/phase-3-validation.md +792 -0
- package/templates/docs/workflows/phase-4-finalization.md +927 -0
- package/templates/docs/workflows/quick-fix-protocol.md +505 -0
- package/templates/docs/workflows/task-atomization.md +537 -0
- package/templates/docs/workflows/task-completion-protocol.md +448 -0
- package/templates/hooks/on-notification.sh +28 -0
- package/templates/schemas/checkpoint.schema.json +97 -0
- package/templates/schemas/code-registry.schema.json +84 -0
- package/templates/schemas/pdr.schema.json +314 -0
- package/templates/schemas/problems.schema.json +55 -0
- package/templates/schemas/tech-analysis.schema.json +404 -0
- package/templates/schemas/telemetry.schema.json +298 -0
- package/templates/schemas/todos.schema.json +234 -0
- package/templates/schemas/workflows.schema.json +69 -0
- package/templates/scripts/add-changelogs.sh +105 -0
- package/templates/scripts/generate-code-registry.ts +270 -0
- package/templates/scripts/health-check.sh +343 -0
- package/templates/scripts/sync-registry.sh +40 -0
- package/templates/scripts/telemetry-report.ts +36 -0
- package/templates/scripts/validate-docs.sh +224 -0
- package/templates/scripts/validate-registry.sh +225 -0
- package/templates/scripts/validate-schemas.ts +283 -0
- package/templates/scripts/validate-structure.sh +165 -0
- package/templates/scripts/worktree-cleanup.sh +81 -0
- package/templates/scripts/worktree-create.sh +63 -0
- package/templates/sessions/planning/.gitkeep +0 -0
- package/templates/sessions/planning/archived/.gitkeep +0 -0
- package/templates/settings.json +202 -0
- package/templates/settings.local.json +138 -0
- package/templates/skills/README.md +197 -0
- package/templates/skills/_registry.json +473 -0
- package/templates/skills/audit/accessibility-audit.md +309 -0
- package/templates/skills/audit/performance-audit.md +257 -0
- package/templates/skills/audit/security-audit.md +217 -0
- package/templates/skills/auth/nextauth-patterns.md +308 -0
- package/templates/skills/brand-guidelines.md +240 -0
- package/templates/skills/documentation/markdown-formatter.md +302 -0
- package/templates/skills/git/git-commit-helper.md +321 -0
- package/templates/skills/i18n/i18n-patterns.md +251 -0
- package/templates/skills/patterns/error-handling-patterns.md +242 -0
- package/templates/skills/patterns/tdd-methodology.md +342 -0
- package/templates/skills/qa/qa-criteria-validator.md +383 -0
- package/templates/skills/qa/web-app-testing.md +398 -0
- package/templates/skills/react/react-hook-form-patterns.md +359 -0
- package/templates/skills/state/redux-toolkit-patterns.md +272 -0
- package/templates/skills/state/tanstack-query-patterns.md +299 -0
- package/templates/skills/state/zustand-patterns.md +301 -0
- package/templates/skills/tech/mermaid-diagram-specialist.md +195 -0
- package/templates/skills/tech/shadcn-specialist.md +252 -0
- package/templates/skills/tech/vercel-specialist.md +297 -0
- package/templates/skills/testing/api-app-testing.md +254 -0
- package/templates/skills/testing/performance-testing.md +275 -0
- package/templates/skills/testing/security-testing.md +348 -0
- package/templates/skills/utils/add-memory.md +295 -0
- package/templates/skills/utils/json-data-auditor.md +283 -0
- package/templates/skills/utils/pdf-creator-editor.md +342 -0
- 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
|