@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,519 @@
|
|
|
1
|
+
# Workflow System Documentation
|
|
2
|
+
|
|
3
|
+
Complete workflow system from quick fixes to complex feature planning.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Overview
|
|
8
|
+
|
|
9
|
+
The workflow system provides **3 levels of workflows** to handle tasks of varying complexity:
|
|
10
|
+
|
|
11
|
+
- **Level 1: Quick Fix** - Trivial changes (< 30min, 1-2 files)
|
|
12
|
+
- **Level 2: Atomic Task** - Bugfixes and small features (30min-3h, 2-10 files)
|
|
13
|
+
- **Level 3: Feature Planning** - Complex features (Multi-day, architecture changes)
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
|
|
19
|
+
### 1. Choose Your Workflow Level
|
|
20
|
+
|
|
21
|
+
**Start here:** [decision-tree.md](decision-tree.md)
|
|
22
|
+
|
|
23
|
+
Use the decision tree to determine which workflow level fits your task:
|
|
24
|
+
|
|
25
|
+
```mermaid
|
|
26
|
+
# See decision-tree.md for interactive diagram
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Visual guide:** [../diagrams/workflow-decision-tree.mmd](../diagrams/workflow-decision-tree.mmd)
|
|
30
|
+
|
|
31
|
+
### 2. Follow the Appropriate Protocol
|
|
32
|
+
|
|
33
|
+
**Level 1?** → [quick-fix-protocol.md](quick-fix-protocol.md)
|
|
34
|
+
**Level 2?** → [atomic-task-protocol.md](atomic-task-protocol.md)
|
|
35
|
+
**Level 3?** → Phase guides (see below)
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Level 1: Quick Fix Protocol
|
|
40
|
+
|
|
41
|
+
**File:** [quick-fix-protocol.md](quick-fix-protocol.md)
|
|
42
|
+
|
|
43
|
+
### When to Use
|
|
44
|
+
|
|
45
|
+
- Estimated time: **< 30 minutes**
|
|
46
|
+
- Files affected: **1-2 files**
|
|
47
|
+
- Risk level: **Very low**
|
|
48
|
+
- No architecture changes
|
|
49
|
+
- No database changes
|
|
50
|
+
|
|
51
|
+
### Examples
|
|
52
|
+
|
|
53
|
+
- Fix typo in code comment
|
|
54
|
+
- Format markdown file
|
|
55
|
+
- Update environment variable
|
|
56
|
+
- Organize imports
|
|
57
|
+
- Fix linting error
|
|
58
|
+
|
|
59
|
+
### 6-Step Workflow
|
|
60
|
+
|
|
61
|
+
1. ✓ Verify Quick Fix Criteria
|
|
62
|
+
2. 🔧 Make the Change
|
|
63
|
+
3. ✅ Quick Validation (typecheck, lint)
|
|
64
|
+
4. 📝 Commit with Conventional Message
|
|
65
|
+
5. 🚀 Push or Create PR
|
|
66
|
+
6. ✓ Done
|
|
67
|
+
|
|
68
|
+
**Estimated time:** 5-30 minutes
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Level 2: Atomic Task Protocol
|
|
73
|
+
|
|
74
|
+
**File:** [atomic-task-protocol.md](atomic-task-protocol.md)
|
|
75
|
+
|
|
76
|
+
### When to Use
|
|
77
|
+
|
|
78
|
+
- Estimated time: **30 minutes to 3 hours**
|
|
79
|
+
- Files affected: **2-10 files**
|
|
80
|
+
- Risk level: **Low to medium**
|
|
81
|
+
- Bugfixes or small features
|
|
82
|
+
- No major architecture changes
|
|
83
|
+
|
|
84
|
+
### Examples
|
|
85
|
+
|
|
86
|
+
- Fix booking validation bug
|
|
87
|
+
- Add new API endpoint
|
|
88
|
+
- Implement form validation
|
|
89
|
+
- Update database query
|
|
90
|
+
- Add new UI component
|
|
91
|
+
|
|
92
|
+
### 11-Step TDD Workflow
|
|
93
|
+
|
|
94
|
+
1. 📁 Create Atomic Task Session (PB-XXX)
|
|
95
|
+
2. 📋 Create Simplified Tech Analysis
|
|
96
|
+
3. 👀 Review & Approve Plan
|
|
97
|
+
4. 🔴 Write Tests First (TDD RED)
|
|
98
|
+
5. 🟢 Implement Solution (GREEN)
|
|
99
|
+
6. ♻️ Refactor (keep tests green)
|
|
100
|
+
7. 📚 Add Documentation
|
|
101
|
+
8. 📊 Test Coverage Check (>= 90%)
|
|
102
|
+
9. ✅ Quality Checks
|
|
103
|
+
10. 📝 Commit with Conventional Message
|
|
104
|
+
11. 🗂️ Update Registry & Close Task
|
|
105
|
+
|
|
106
|
+
**Includes:**
|
|
107
|
+
|
|
108
|
+
- **PB-XXX code system** - Atomic task tracking
|
|
109
|
+
- **Task registry** - REGISTRY.md in atomic-tasks/
|
|
110
|
+
- **Tech analysis template** - Simplified planning
|
|
111
|
+
- **3 detailed examples** - Real-world scenarios
|
|
112
|
+
|
|
113
|
+
**Estimated time:** 0.5-3 hours
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Level 3: Feature Planning
|
|
118
|
+
|
|
119
|
+
### When to Use
|
|
120
|
+
|
|
121
|
+
- Estimated time: **Multi-day** (1-40 hours)
|
|
122
|
+
- Complexity: **High**
|
|
123
|
+
- Architecture changes required
|
|
124
|
+
- Database schema changes
|
|
125
|
+
- Multiple team members involved
|
|
126
|
+
- High risk or complexity
|
|
127
|
+
|
|
128
|
+
### Examples
|
|
129
|
+
|
|
130
|
+
- Implement booking system
|
|
131
|
+
- Add payment processing
|
|
132
|
+
- Build admin dashboard
|
|
133
|
+
- Create user authentication
|
|
134
|
+
- Redesign database schema
|
|
135
|
+
|
|
136
|
+
### 4-Phase Workflow
|
|
137
|
+
|
|
138
|
+
Each phase has a dedicated guide with detailed steps:
|
|
139
|
+
|
|
140
|
+
#### Phase 1: Planning
|
|
141
|
+
|
|
142
|
+
**File:** [phase-1-planning.md](phase-1-planning.md)
|
|
143
|
+
|
|
144
|
+
**Goal:** Create comprehensive, atomic plan
|
|
145
|
+
|
|
146
|
+
**Key outputs:**
|
|
147
|
+
|
|
148
|
+
- PDR.md (Product Design Requirements)
|
|
149
|
+
- tech-analysis.md (Technical Analysis)
|
|
150
|
+
- TODOs.md (Atomic task breakdown)
|
|
151
|
+
|
|
152
|
+
**Process:**
|
|
153
|
+
|
|
154
|
+
1. Initialize planning session
|
|
155
|
+
2. Invoke product-functional → Create PDR
|
|
156
|
+
3. 🔴 **CHECKPOINT:** Get user approval on PDR
|
|
157
|
+
4. Invoke product-technical → Create tech-analysis
|
|
158
|
+
5. 🔴 **CHECKPOINT:** Get user approval on tech-analysis
|
|
159
|
+
6. Break down into atomic tasks (0.5-4h each)
|
|
160
|
+
7. ⚪ **OPTIONAL:** Review task breakdown
|
|
161
|
+
|
|
162
|
+
**Estimated time:** 2-8 hours (with user interaction)
|
|
163
|
+
|
|
164
|
+
#### Phase 2: Implementation
|
|
165
|
+
|
|
166
|
+
**File:** [phase-2-implementation.md](phase-2-implementation.md)
|
|
167
|
+
|
|
168
|
+
**Goal:** Implement feature following TDD
|
|
169
|
+
|
|
170
|
+
**Process:**
|
|
171
|
+
|
|
172
|
+
1. Review PDR and tech-analysis
|
|
173
|
+
2. For each task:
|
|
174
|
+
- 🔴 RED: Write failing test
|
|
175
|
+
- 🟢 GREEN: Implement minimum code
|
|
176
|
+
- ♻️ REFACTOR: Improve while tests green
|
|
177
|
+
3. Continuous validation
|
|
178
|
+
4. Update TODOs.md progress
|
|
179
|
+
|
|
180
|
+
**Key principles:**
|
|
181
|
+
|
|
182
|
+
- Files max 500 lines
|
|
183
|
+
- Comprehensive JSDoc
|
|
184
|
+
- Follow existing patterns exactly
|
|
185
|
+
- Strict code style consistency
|
|
186
|
+
|
|
187
|
+
**Estimated time:** Varies by feature (4-30 hours)
|
|
188
|
+
|
|
189
|
+
#### Phase 3: Validation
|
|
190
|
+
|
|
191
|
+
**File:** [phase-3-validation.md](phase-3-validation.md)
|
|
192
|
+
|
|
193
|
+
**Goal:** Ensure quality standards
|
|
194
|
+
|
|
195
|
+
**Process:**
|
|
196
|
+
|
|
197
|
+
1. Invoke qa-engineer with qa-criteria-validator
|
|
198
|
+
2. Validate against acceptance criteria
|
|
199
|
+
3. Run /quality-check:
|
|
200
|
+
- Lint (stop on error)
|
|
201
|
+
- TypeCheck (stop on error)
|
|
202
|
+
- Tests (stop on error)
|
|
203
|
+
- Code Review
|
|
204
|
+
- Security Review
|
|
205
|
+
- Performance Review
|
|
206
|
+
4. Invoke tech-lead for global review
|
|
207
|
+
5. Get user approval
|
|
208
|
+
|
|
209
|
+
**Estimated time:** 1-4 hours
|
|
210
|
+
|
|
211
|
+
#### Phase 4: Finalization
|
|
212
|
+
|
|
213
|
+
**File:** [phase-4-finalization.md](phase-4-finalization.md)
|
|
214
|
+
|
|
215
|
+
**Goal:** Document and prepare commits
|
|
216
|
+
|
|
217
|
+
**Process:**
|
|
218
|
+
|
|
219
|
+
1. Invoke tech-writer → Update /docs
|
|
220
|
+
2. Run /commit → Generate conventional commits
|
|
221
|
+
3. Present commits to user
|
|
222
|
+
4. Final checklist verification
|
|
223
|
+
|
|
224
|
+
**Estimated time:** 0.5-2 hours
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## Supporting Documentation
|
|
229
|
+
|
|
230
|
+
### Task Atomization
|
|
231
|
+
|
|
232
|
+
**File:** [task-atomization.md](task-atomization.md)
|
|
233
|
+
|
|
234
|
+
**Purpose:** Guidelines for breaking down complex features into atomic tasks
|
|
235
|
+
|
|
236
|
+
**Key concepts:**
|
|
237
|
+
|
|
238
|
+
- **0.5-4 hour rule** - Ideal task size
|
|
239
|
+
- **Dependency mapping** - Task relationships
|
|
240
|
+
- **Granularity guidelines** - When to split/merge
|
|
241
|
+
|
|
242
|
+
**Use when:** Planning Phase 1 or complex Level 2 tasks
|
|
243
|
+
|
|
244
|
+
### Task Completion Protocol
|
|
245
|
+
|
|
246
|
+
**File:** [task-completion-protocol.md](task-completion-protocol.md)
|
|
247
|
+
|
|
248
|
+
**Purpose:** Standardized process for completing and tracking tasks
|
|
249
|
+
|
|
250
|
+
**Covers:**
|
|
251
|
+
|
|
252
|
+
- Commit requirements
|
|
253
|
+
- GitHub issue synchronization
|
|
254
|
+
- Registry updates
|
|
255
|
+
- Planning session updates
|
|
256
|
+
|
|
257
|
+
**Use when:** Completing any tracked task (Level 2 or 3)
|
|
258
|
+
|
|
259
|
+
---
|
|
260
|
+
|
|
261
|
+
## Workflow Selection Decision Factors
|
|
262
|
+
|
|
263
|
+
| Factor | Level 1 | Level 2 | Level 3 |
|
|
264
|
+
|--------|---------|---------|---------|
|
|
265
|
+
| **Time** | < 30min | 30min - 3h | Multi-day |
|
|
266
|
+
| **Files** | 1-2 | 2-10 | 10+ |
|
|
267
|
+
| **Risk** | Very low | Low-Medium | Medium-High |
|
|
268
|
+
| **Planning** | None | Simplified | Comprehensive |
|
|
269
|
+
| **Documentation** | Commit msg | Tech analysis | PDR + Tech analysis |
|
|
270
|
+
| **Tests** | Optional | Required (TDD) | Required (TDD) |
|
|
271
|
+
| **Review** | Quick check | Quality checks | Full validation |
|
|
272
|
+
| **Examples** | Typos, format | Bugfix, endpoint | Feature, system |
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## Workflow Comparison
|
|
277
|
+
|
|
278
|
+
### Level 1: Quick Fix
|
|
279
|
+
|
|
280
|
+
✅ **Pros:**
|
|
281
|
+
|
|
282
|
+
- Very fast (5-30 minutes)
|
|
283
|
+
- Minimal overhead
|
|
284
|
+
- Immediate impact
|
|
285
|
+
- No planning required
|
|
286
|
+
|
|
287
|
+
⚠️ **Cons:**
|
|
288
|
+
|
|
289
|
+
- Only for trivial changes
|
|
290
|
+
- No formal validation
|
|
291
|
+
- Limited scope
|
|
292
|
+
|
|
293
|
+
🎯 **Best for:** Typos, formatting, config tweaks, minor fixes
|
|
294
|
+
|
|
295
|
+
### Level 2: Atomic Task
|
|
296
|
+
|
|
297
|
+
✅ **Pros:**
|
|
298
|
+
|
|
299
|
+
- Structured but lightweight
|
|
300
|
+
- Full TDD coverage
|
|
301
|
+
- Quality validation
|
|
302
|
+
- Tracked in registry
|
|
303
|
+
|
|
304
|
+
⚠️ **Cons:**
|
|
305
|
+
|
|
306
|
+
- Requires planning (15-30 min)
|
|
307
|
+
- Must stay within scope
|
|
308
|
+
- Not for complex features
|
|
309
|
+
|
|
310
|
+
🎯 **Best for:** Bugfixes, small features, most daily work
|
|
311
|
+
|
|
312
|
+
### Level 3: Feature Planning
|
|
313
|
+
|
|
314
|
+
✅ **Pros:**
|
|
315
|
+
|
|
316
|
+
- Comprehensive planning
|
|
317
|
+
- Cross-team coordination
|
|
318
|
+
- Full documentation
|
|
319
|
+
- Validated at every phase
|
|
320
|
+
|
|
321
|
+
⚠️ **Cons:**
|
|
322
|
+
|
|
323
|
+
- Significant planning overhead
|
|
324
|
+
- Multi-day commitment
|
|
325
|
+
- Requires stakeholder alignment
|
|
326
|
+
|
|
327
|
+
🎯 **Best for:** Major features, architecture changes, complex systems
|
|
328
|
+
|
|
329
|
+
---
|
|
330
|
+
|
|
331
|
+
## Common Scenarios
|
|
332
|
+
|
|
333
|
+
### "I found a typo in a comment"
|
|
334
|
+
|
|
335
|
+
→ **Level 1: Quick Fix**
|
|
336
|
+
📄 [quick-fix-protocol.md](quick-fix-protocol.md)
|
|
337
|
+
|
|
338
|
+
### "Authentication endpoint returns 500 on invalid input"
|
|
339
|
+
|
|
340
|
+
→ **Level 2: Atomic Task**
|
|
341
|
+
📄 [atomic-task-protocol.md](atomic-task-protocol.md)
|
|
342
|
+
|
|
343
|
+
### "We need to add payment processing with Mercado Pago"
|
|
344
|
+
|
|
345
|
+
→ **Level 3: Feature Planning**
|
|
346
|
+
📄 Start with [phase-1-planning.md](phase-1-planning.md)
|
|
347
|
+
|
|
348
|
+
### "Need to refactor service layer to use new pattern"
|
|
349
|
+
|
|
350
|
+
→ **Level 3: Feature Planning** (if complex) or **Level 2** (if simple)
|
|
351
|
+
📄 Use [decision-tree.md](decision-tree.md) to decide
|
|
352
|
+
|
|
353
|
+
### "User reported form validation not working"
|
|
354
|
+
|
|
355
|
+
→ **Level 2: Atomic Task**
|
|
356
|
+
📄 [atomic-task-protocol.md](atomic-task-protocol.md)
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
## Visual Guides
|
|
361
|
+
|
|
362
|
+
### Diagrams
|
|
363
|
+
|
|
364
|
+
All workflow diagrams are available in [../diagrams/](../diagrams/):
|
|
365
|
+
|
|
366
|
+
1. **[workflow-decision-tree.mmd](../diagrams/workflow-decision-tree.mmd)** - Which workflow to use?
|
|
367
|
+
2. **[agent-hierarchy.mmd](../diagrams/agent-hierarchy.mmd)** - Who does what?
|
|
368
|
+
3. **[tools-relationship.mmd](../diagrams/tools-relationship.mmd)** - How do tools interact?
|
|
369
|
+
4. **[documentation-map.mmd](../diagrams/documentation-map.mmd)** - Where is everything?
|
|
370
|
+
|
|
371
|
+
### How to View
|
|
372
|
+
|
|
373
|
+
- **GitHub:** Click on `.mmd` file (auto-rendered)
|
|
374
|
+
- **VSCode:** Install "Mermaid Preview" extension
|
|
375
|
+
- **Interactive:** Copy to [mermaid.live](https://mermaid.live)
|
|
376
|
+
|
|
377
|
+
---
|
|
378
|
+
|
|
379
|
+
## Best Practices
|
|
380
|
+
|
|
381
|
+
### For All Workflows
|
|
382
|
+
|
|
383
|
+
1. ✅ **Always start with decision tree** - Choose the right level
|
|
384
|
+
2. 📋 **Follow the protocol exactly** - Don't skip steps
|
|
385
|
+
3. ✅ **Quality first** - Run validations early and often
|
|
386
|
+
4. 📝 **Document as you go** - Don't leave it for the end
|
|
387
|
+
5. 🔍 **Review before committing** - Double-check everything
|
|
388
|
+
|
|
389
|
+
### For Level 1
|
|
390
|
+
|
|
391
|
+
- ⚡ Keep it simple - If it gets complex, upgrade to Level 2
|
|
392
|
+
- ⏱️ Set a timer - If > 30min, stop and reassess
|
|
393
|
+
- ✅ Quick validation - At minimum: typecheck + lint
|
|
394
|
+
|
|
395
|
+
### For Level 2
|
|
396
|
+
|
|
397
|
+
- 🔴 **TDD is mandatory** - Red → Green → Refactor
|
|
398
|
+
- 📊 **90% coverage minimum** - No exceptions
|
|
399
|
+
- 🗂️ **Update registry** - Keep REGISTRY.md current
|
|
400
|
+
- ⚖️ **Stay atomic** - If task grows, split it
|
|
401
|
+
|
|
402
|
+
### For Level 3
|
|
403
|
+
|
|
404
|
+
- 📋 **Plan thoroughly** - Saves time in implementation
|
|
405
|
+
- 👥 **Get stakeholder buy-in** - Before implementation
|
|
406
|
+
- 🔄 **Regular checkpoints** - Update .checkpoint.json
|
|
407
|
+
- 🔗 **Sync with GitHub** - Keep issues updated
|
|
408
|
+
|
|
409
|
+
---
|
|
410
|
+
|
|
411
|
+
## Tools & Commands
|
|
412
|
+
|
|
413
|
+
### Quality Checks
|
|
414
|
+
|
|
415
|
+
```bash
|
|
416
|
+
# Quick validation (Level 1)
|
|
417
|
+
pnpm typecheck
|
|
418
|
+
pnpm lint
|
|
419
|
+
|
|
420
|
+
# Full quality check (Level 2, 3)
|
|
421
|
+
/quality-check
|
|
422
|
+
|
|
423
|
+
# Individual checks
|
|
424
|
+
/code-check
|
|
425
|
+
/run-tests
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
### Commits
|
|
429
|
+
|
|
430
|
+
```bash
|
|
431
|
+
# Generate conventional commits
|
|
432
|
+
/commit
|
|
433
|
+
|
|
434
|
+
# Never stage files yourself - let /commit handle it
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
### Planning
|
|
438
|
+
|
|
439
|
+
```bash
|
|
440
|
+
# Start feature planning
|
|
441
|
+
/start-feature-plan
|
|
442
|
+
|
|
443
|
+
# Sync to GitHub
|
|
444
|
+
pnpm planning:sync <session-path>
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
---
|
|
448
|
+
|
|
449
|
+
## FAQ
|
|
450
|
+
|
|
451
|
+
### Q: How do I know if I should use Level 2 or Level 3?
|
|
452
|
+
|
|
453
|
+
**A:** Ask yourself:
|
|
454
|
+
|
|
455
|
+
- Will this take > 3 hours? → Level 3
|
|
456
|
+
- Does this change architecture? → Level 3
|
|
457
|
+
- Does this affect database schema? → Level 3
|
|
458
|
+
- Does this require stakeholder approval? → Level 3
|
|
459
|
+
- Otherwise → Level 2
|
|
460
|
+
|
|
461
|
+
### Q: Can I skip TDD for simple changes?
|
|
462
|
+
|
|
463
|
+
**A:** No. TDD is required for Level 2 and Level 3. For truly trivial changes, use Level 1 instead.
|
|
464
|
+
|
|
465
|
+
### Q: What if my Level 2 task is taking longer than expected?
|
|
466
|
+
|
|
467
|
+
**A:**
|
|
468
|
+
|
|
469
|
+
1. Stop implementation
|
|
470
|
+
2. Assess remaining work
|
|
471
|
+
3. If > 1h remaining, split into new PB-XXX tasks
|
|
472
|
+
4. Complete what you can in current task
|
|
473
|
+
5. Create new tasks for remainder
|
|
474
|
+
|
|
475
|
+
### Q: Do I need to create a PDR for every feature?
|
|
476
|
+
|
|
477
|
+
**A:** Only for Level 3 (Feature Planning). Level 2 uses simplified tech-analysis.md instead.
|
|
478
|
+
|
|
479
|
+
### Q: Can I use multiple workflow levels in one PR?
|
|
480
|
+
|
|
481
|
+
**A:** Yes, but group logically:
|
|
482
|
+
|
|
483
|
+
- Multiple Level 1 fixes → One commit
|
|
484
|
+
- Level 2 task → One commit
|
|
485
|
+
- Level 3 feature → Multiple commits (one per phase/task)
|
|
486
|
+
|
|
487
|
+
---
|
|
488
|
+
|
|
489
|
+
## Related Documentation
|
|
490
|
+
|
|
491
|
+
- **[../INDEX.md](../INDEX.md)** - Master documentation index
|
|
492
|
+
- **[../standards/code-standards.md](../standards/code-standards.md)** - Code quality guidelines
|
|
493
|
+
- **[../standards/architecture-patterns.md](../standards/architecture-patterns.md)** - Design patterns
|
|
494
|
+
- **[../standards/testing-standards.md](../standards/testing-standards.md)** - Testing requirements
|
|
495
|
+
- **[../diagrams/README.md](../diagrams/README.md)** - Visual guide to diagrams
|
|
496
|
+
|
|
497
|
+
---
|
|
498
|
+
|
|
499
|
+
## Changelog
|
|
500
|
+
|
|
501
|
+
### 2025-10-31
|
|
502
|
+
|
|
503
|
+
- ✨ Added Quick Fix Protocol (Level 1)
|
|
504
|
+
- ✨ Added Atomic Task Protocol (Level 2)
|
|
505
|
+
- ✨ Created workflow decision tree diagram
|
|
506
|
+
- 📝 Reorganized workflow documentation
|
|
507
|
+
- 🔄 Updated decision criteria
|
|
508
|
+
- 📊 Added comparison tables
|
|
509
|
+
|
|
510
|
+
### 2025-10-28
|
|
511
|
+
|
|
512
|
+
- 📝 Created initial workflow documentation
|
|
513
|
+
- ✨ Added 4-phase guides (Planning, Implementation, Validation, Finalization)
|
|
514
|
+
- ✨ Added task atomization guide
|
|
515
|
+
- ✨ Added task completion protocol
|
|
516
|
+
|
|
517
|
+
---
|
|
518
|
+
|
|
519
|
+
*Last updated: 2025-10-31*
|