@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,505 @@
|
|
|
1
|
+
# Quick Fix Protocol (Level 1 Workflow)
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
**Purpose**: Streamlined workflow for trivial changes that require minimal overhead
|
|
6
|
+
|
|
7
|
+
**Scope**: < 30 minutes, 1-2 files, very low risk
|
|
8
|
+
**Overhead**: Minimal (no planning documents required)
|
|
9
|
+
**Risk Level**: Very Low
|
|
10
|
+
|
|
11
|
+
## When to Use Level 1 (Quick Fix)
|
|
12
|
+
|
|
13
|
+
Use this workflow for changes that meet **ALL** criteria:
|
|
14
|
+
|
|
15
|
+
### Qualifying Criteria ✅
|
|
16
|
+
|
|
17
|
+
- **Time**: < 30 minutes to complete
|
|
18
|
+
- **Scope**: 1-2 files maximum
|
|
19
|
+
- **Risk**: Very low (typos, formatting, doc updates)
|
|
20
|
+
- **Impact**: No functional changes to business logic
|
|
21
|
+
- **Testing**: No new tests required
|
|
22
|
+
- **Planning**: No design decisions needed
|
|
23
|
+
|
|
24
|
+
### Qualifying Examples
|
|
25
|
+
|
|
26
|
+
- ✅ **Typo fixes** in code comments, strings, or documentation
|
|
27
|
+
- ✅ **Style tweaks** (formatting, whitespace, linting fixes)
|
|
28
|
+
- ✅ **Documentation updates** (README, comments, JSDoc)
|
|
29
|
+
- ✅ **Import organization** (unused imports, alphabetizing)
|
|
30
|
+
- ✅ **Config adjustments** (environment variables, build settings)
|
|
31
|
+
- ✅ **Markdown formatting** (running `pnpm format:md`)
|
|
32
|
+
- ✅ **Dependency version bumps** (patch updates only)
|
|
33
|
+
- ✅ **Log message improvements**
|
|
34
|
+
- ✅ **Error message clarifications**
|
|
35
|
+
- ✅ **Variable/function renames** (single file, no breaking changes)
|
|
36
|
+
|
|
37
|
+
### Non-Qualifying Examples (Use Higher Level)
|
|
38
|
+
|
|
39
|
+
- ❌ Bug fixes that change logic
|
|
40
|
+
- ❌ New features (even small ones)
|
|
41
|
+
- ❌ Database schema changes
|
|
42
|
+
- ❌ API contract changes
|
|
43
|
+
- ❌ Performance optimizations
|
|
44
|
+
- ❌ Security fixes
|
|
45
|
+
- ❌ Refactoring multiple files
|
|
46
|
+
- ❌ Breaking changes
|
|
47
|
+
- ❌ Dependency major/minor updates
|
|
48
|
+
- ❌ Anything requiring testing
|
|
49
|
+
|
|
50
|
+
## 6-Step Workflow
|
|
51
|
+
|
|
52
|
+
### Step 1: Verify Quick Fix Criteria ✅
|
|
53
|
+
|
|
54
|
+
**Objective**: Confirm change qualifies for Level 1
|
|
55
|
+
|
|
56
|
+
**Actions:**
|
|
57
|
+
|
|
58
|
+
1. Review qualifying criteria above
|
|
59
|
+
2. Estimate time to complete (must be < 30 min)
|
|
60
|
+
3. Count affected files (must be 1-2)
|
|
61
|
+
4. Assess risk (must be very low)
|
|
62
|
+
5. Check if tests needed (must be no)
|
|
63
|
+
|
|
64
|
+
**Decision:**
|
|
65
|
+
|
|
66
|
+
- ✅ **All criteria met** → Proceed with Quick Fix
|
|
67
|
+
- ❌ **Any criterion not met** → Use Level 2 or higher
|
|
68
|
+
|
|
69
|
+
**Output**: Confirmed as Quick Fix
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
### Step 2: Make the Change 🛠️
|
|
74
|
+
|
|
75
|
+
**Objective**: Implement the trivial change
|
|
76
|
+
|
|
77
|
+
**Actions:**
|
|
78
|
+
|
|
79
|
+
1. Open file(s) in editor
|
|
80
|
+
2. Make the change
|
|
81
|
+
3. Save file(s)
|
|
82
|
+
4. **No need for**:
|
|
83
|
+
- Planning documents
|
|
84
|
+
- Design discussions
|
|
85
|
+
- Test creation
|
|
86
|
+
- Complex analysis
|
|
87
|
+
|
|
88
|
+
**Best Practices:**
|
|
89
|
+
|
|
90
|
+
- Keep change minimal and focused
|
|
91
|
+
- Don't expand scope during implementation
|
|
92
|
+
- If you discover more issues, handle separately
|
|
93
|
+
|
|
94
|
+
**Output**: Changed file(s)
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
### Step 3: Quick Validation ✔️
|
|
99
|
+
|
|
100
|
+
**Objective**: Verify change doesn't break anything
|
|
101
|
+
|
|
102
|
+
**Actions:**
|
|
103
|
+
|
|
104
|
+
1. **For code changes:**
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
pnpm typecheck # TypeScript validation
|
|
108
|
+
pnpm lint # Linting check
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
2. **For markdown changes:**
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
pnpm format:md # Auto-format markdown
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
3. **Visual check:**
|
|
118
|
+
- Review diff
|
|
119
|
+
- Confirm no unintended changes
|
|
120
|
+
- Verify formatting looks good
|
|
121
|
+
|
|
122
|
+
**Validation:**
|
|
123
|
+
|
|
124
|
+
- [ ] TypeCheck passes (if code)
|
|
125
|
+
- [ ] Lint passes (if code)
|
|
126
|
+
- [ ] Markdown formatted (if docs)
|
|
127
|
+
- [ ] Diff looks correct
|
|
128
|
+
- [ ] No unintended changes
|
|
129
|
+
|
|
130
|
+
**Output**: Validated change
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
### Step 4: Commit with Conventional Message 📝
|
|
135
|
+
|
|
136
|
+
**Objective**: Create clean, descriptive commit
|
|
137
|
+
|
|
138
|
+
**Commit Format:**
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
<type>(<scope>): <description>
|
|
142
|
+
|
|
143
|
+
[optional body]
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Common Types for Quick Fixes:**
|
|
147
|
+
|
|
148
|
+
- `docs` - Documentation changes
|
|
149
|
+
- `style` - Code formatting, whitespace
|
|
150
|
+
- `chore` - Dependency updates, config tweaks
|
|
151
|
+
- `fix` - Typo fixes in code/strings
|
|
152
|
+
|
|
153
|
+
**Examples:**
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
# Typo fix in comment
|
|
157
|
+
git commit -m "docs: fix typo in BookingService comment"
|
|
158
|
+
|
|
159
|
+
# Formatting fix
|
|
160
|
+
git commit -m "style: fix indentation in booking.model.ts"
|
|
161
|
+
|
|
162
|
+
# Documentation update
|
|
163
|
+
git commit -m "docs: update installation instructions in README"
|
|
164
|
+
|
|
165
|
+
# Config tweak
|
|
166
|
+
git commit -m "chore: update NODE_ENV in .env.example"
|
|
167
|
+
|
|
168
|
+
# Import cleanup
|
|
169
|
+
git commit -m "style: remove unused imports from api routes"
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
#### 🔥 CRITICAL: Only Commit Quick Fix Files
|
|
173
|
+
|
|
174
|
+
Before committing, verify which files to include:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
git status --short
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**Rule:** ONLY include the file(s) modified for THIS quick fix.
|
|
181
|
+
|
|
182
|
+
If other files are modified:
|
|
183
|
+
|
|
184
|
+
- ❌ **DO NOT** use `git add .` or `git add -A`
|
|
185
|
+
- ✅ **ONLY** add the specific quick fix file(s)
|
|
186
|
+
- ⚠️ **WARN** user if unrelated files exist
|
|
187
|
+
|
|
188
|
+
**Example:**
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
# Quick Fix: Fix typo in comment
|
|
192
|
+
# git status shows:
|
|
193
|
+
M packages/db/src/booking.model.ts ← INCLUDE (typo fix)
|
|
194
|
+
M packages/api/routes/user.ts ← EXCLUDE (different work)
|
|
195
|
+
M .env.local ← EXCLUDE (local config)
|
|
196
|
+
|
|
197
|
+
# CORRECT:
|
|
198
|
+
git add packages/db/src/booking.model.ts
|
|
199
|
+
git commit -m "docs: fix typo in BookingModel comment"
|
|
200
|
+
|
|
201
|
+
# WRONG:
|
|
202
|
+
git add . # ❌ Would include unrelated files!
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
**If unrelated files detected:**
|
|
206
|
+
|
|
207
|
+
```text
|
|
208
|
+
⚠️ Warning: Other modified files detected:
|
|
209
|
+
- packages/api/routes/user.ts
|
|
210
|
+
- .env.local
|
|
211
|
+
|
|
212
|
+
I will ONLY commit the quick fix file.
|
|
213
|
+
Continue? (yes/no)
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
**Actions:**
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
# Stage ONLY quick fix files (specific paths)
|
|
222
|
+
git add <file-with-quick-fix>
|
|
223
|
+
|
|
224
|
+
# Commit with message
|
|
225
|
+
git commit -m "<type>(<scope>): <description>"
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
**Validation:**
|
|
229
|
+
|
|
230
|
+
- [ ] Message follows conventional commits
|
|
231
|
+
- [ ] Type appropriate for change
|
|
232
|
+
- [ ] Description clear and concise
|
|
233
|
+
- [ ] Scope specified if applicable
|
|
234
|
+
|
|
235
|
+
**Output**: Clean commit
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
### Step 5: Push (if working alone) or Create PR (if team) 🚀
|
|
240
|
+
|
|
241
|
+
**Objective**: Share change with team or deploy
|
|
242
|
+
|
|
243
|
+
**If Working Alone:**
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
# Push directly to main (if permitted)
|
|
247
|
+
git push origin main
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
**Push to Repository:**
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
# Push directly to main (current workflow)
|
|
254
|
+
git push origin main
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
**Documentation Template for Quick Fixes:**
|
|
258
|
+
|
|
259
|
+
```markdown
|
|
260
|
+
## Quick Fix
|
|
261
|
+
|
|
262
|
+
**What**: <Brief description>
|
|
263
|
+
**Why**: <Reason for change>
|
|
264
|
+
**Files**: <List of 1-2 files>
|
|
265
|
+
|
|
266
|
+
**Validation**:
|
|
267
|
+
- [x] TypeCheck passing
|
|
268
|
+
- [x] Lint passing
|
|
269
|
+
- [x] Markdown formatted (if applicable)
|
|
270
|
+
|
|
271
|
+
**Risk**: Very Low
|
|
272
|
+
**Time**: < 30 minutes
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
**Output**: Change pushed/PR created
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
### Step 6: Done ✅
|
|
280
|
+
|
|
281
|
+
**Objective**: Close the loop
|
|
282
|
+
|
|
283
|
+
**Actions:**
|
|
284
|
+
|
|
285
|
+
- Mark task as complete
|
|
286
|
+
- No retrospective needed
|
|
287
|
+
- No design review needed
|
|
288
|
+
|
|
289
|
+
**⚠️ If Part of Planning Session:**
|
|
290
|
+
|
|
291
|
+
If this quick fix is part of a larger feature planning session (rare):
|
|
292
|
+
|
|
293
|
+
1. **Update TODOs.md** - Mark subtask as `[x]`
|
|
294
|
+
2. **Update .checkpoint.json** - Update progress counter
|
|
295
|
+
3. **Update .github-workflow/tracking.json** - Sync with GitHub if applicable
|
|
296
|
+
|
|
297
|
+
**Example:**
|
|
298
|
+
|
|
299
|
+
```markdown
|
|
300
|
+
- [x] **[10min]** Fix typo in BookingService JSDoc
|
|
301
|
+
- Completed: 2024-01-15
|
|
302
|
+
- Actual time: 5min
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
**Most Quick Fixes:** Standalone changes, no planning docs to update
|
|
306
|
+
|
|
307
|
+
**Celebration**: 🎉 Quick fix completed!
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
## Workflow Summary
|
|
312
|
+
|
|
313
|
+
```mermaid
|
|
314
|
+
flowchart TD
|
|
315
|
+
Start([Quick Fix Needed]) --> Verify{Meets Quick<br/>Fix Criteria?}
|
|
316
|
+
|
|
317
|
+
Verify -->|No| Higher[Use Level 2+]
|
|
318
|
+
Higher --> End1([Use Different Workflow])
|
|
319
|
+
|
|
320
|
+
Verify -->|Yes| Change[Make the Change]
|
|
321
|
+
Change --> Validate[Quick Validation]
|
|
322
|
+
Validate --> Pass{Validation<br/>Pass?}
|
|
323
|
+
|
|
324
|
+
Pass -->|No| Fix[Fix Issues]
|
|
325
|
+
Fix --> Validate
|
|
326
|
+
|
|
327
|
+
Pass -->|Yes| Commit[Commit with<br/>Conventional Message]
|
|
328
|
+
Commit --> Push[Push or PR]
|
|
329
|
+
Push --> Done([Done!])
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
## Time Breakdown
|
|
333
|
+
|
|
334
|
+
Total: **< 30 minutes**
|
|
335
|
+
|
|
336
|
+
1. Verify criteria: **1-2 min**
|
|
337
|
+
2. Make change: **5-15 min**
|
|
338
|
+
3. Quick validation: **2-5 min**
|
|
339
|
+
4. Commit: **1-2 min**
|
|
340
|
+
5. Push/PR: **1-2 min**
|
|
341
|
+
6. Done: **instant**
|
|
342
|
+
|
|
343
|
+
## Examples
|
|
344
|
+
|
|
345
|
+
### Example 1: Typo Fix in Code Comment
|
|
346
|
+
|
|
347
|
+
**Change:**
|
|
348
|
+
|
|
349
|
+
```typescript
|
|
350
|
+
// Before
|
|
351
|
+
// Retrun the user's bookings
|
|
352
|
+
export function getUserBookings(userId: string) {
|
|
353
|
+
// ...
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
// After
|
|
357
|
+
// Return the user's bookings
|
|
358
|
+
export function getUserBookings(userId: string) {
|
|
359
|
+
// ...
|
|
360
|
+
}
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
**Workflow:**
|
|
364
|
+
|
|
365
|
+
1. ✅ Criteria: Typo, 1 file, < 1 min, no tests
|
|
366
|
+
2. 🛠️ Fix: Change "Retrun" → "Return"
|
|
367
|
+
3. ✔️ Validate: No typecheck/lint needed (comment only)
|
|
368
|
+
4. 📝 Commit: `docs: fix typo in getUserBookings comment`
|
|
369
|
+
5. 🚀 Push: Direct push
|
|
370
|
+
6. ✅ Done!
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
374
|
+
### Example 2: Markdown Formatting
|
|
375
|
+
|
|
376
|
+
**Change:**
|
|
377
|
+
|
|
378
|
+
```bash
|
|
379
|
+
pnpm format:md
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
**Workflow:**
|
|
383
|
+
|
|
384
|
+
1. ✅ Criteria: Formatting, multiple docs, < 5 min, automated
|
|
385
|
+
2. 🛠️ Fix: Run formatter
|
|
386
|
+
3. ✔️ Validate: Review diff
|
|
387
|
+
4. 📝 Commit: `style: format markdown files with prettier`
|
|
388
|
+
5. 🚀 Push: Direct push
|
|
389
|
+
6. ✅ Done!
|
|
390
|
+
|
|
391
|
+
---
|
|
392
|
+
|
|
393
|
+
### Example 3: Environment Variable Update
|
|
394
|
+
|
|
395
|
+
**Change:**
|
|
396
|
+
|
|
397
|
+
```env
|
|
398
|
+
# Before
|
|
399
|
+
DATABASE_URL=postgres://localhost:5432/project
|
|
400
|
+
|
|
401
|
+
# After
|
|
402
|
+
DATABASE_URL=postgres://localhost:5432/project_dev
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
**Workflow:**
|
|
406
|
+
|
|
407
|
+
1. ✅ Criteria: Config, 1 file, < 2 min, no code change
|
|
408
|
+
2. 🛠️ Fix: Update DB name
|
|
409
|
+
3. ✔️ Validate: Visual check
|
|
410
|
+
4. 📝 Commit: `chore: update DATABASE_URL in .env.example`
|
|
411
|
+
5. 🚀 Push: Direct push
|
|
412
|
+
6. ✅ Done!
|
|
413
|
+
|
|
414
|
+
---
|
|
415
|
+
|
|
416
|
+
### Example 4: Import Organization
|
|
417
|
+
|
|
418
|
+
**Change:**
|
|
419
|
+
|
|
420
|
+
```typescript
|
|
421
|
+
// Before
|
|
422
|
+
import { z } from 'zod';
|
|
423
|
+
import { BookingService } from './booking.service';
|
|
424
|
+
import { User } from '@repo/db';
|
|
425
|
+
import { validateBooking } from './validators';
|
|
426
|
+
|
|
427
|
+
// After
|
|
428
|
+
import { z } from 'zod';
|
|
429
|
+
import { User } from '@repo/db';
|
|
430
|
+
import { BookingService } from './booking.service';
|
|
431
|
+
import { validateBooking } from './validators';
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
**Workflow:**
|
|
435
|
+
|
|
436
|
+
1. ✅ Criteria: Style, 1 file, < 5 min, auto-sorted
|
|
437
|
+
2. 🛠️ Fix: Alphabetize imports
|
|
438
|
+
3. ✔️ Validate: `pnpm typecheck && pnpm lint`
|
|
439
|
+
4. 📝 Commit: `style: alphabetize imports in booking.controller.ts`
|
|
440
|
+
5. 🚀 Push: Direct push
|
|
441
|
+
6. ✅ Done!
|
|
442
|
+
|
|
443
|
+
---
|
|
444
|
+
|
|
445
|
+
## When Quick Fix Becomes Something Bigger
|
|
446
|
+
|
|
447
|
+
**Signs you need a higher level workflow:**
|
|
448
|
+
|
|
449
|
+
- ⚠️ Change taking > 30 minutes
|
|
450
|
+
- ⚠️ More than 2 files affected
|
|
451
|
+
- ⚠️ Need to write tests
|
|
452
|
+
- ⚠️ Requires design decisions
|
|
453
|
+
- ⚠️ Logic changes needed
|
|
454
|
+
- ⚠️ Breaking changes discovered
|
|
455
|
+
- ⚠️ Multiple related issues found
|
|
456
|
+
|
|
457
|
+
**Action**: Stop and switch to appropriate workflow level
|
|
458
|
+
|
|
459
|
+
## Best Practices
|
|
460
|
+
|
|
461
|
+
1. **Stay Focused**: Don't expand scope during quick fix
|
|
462
|
+
2. **Time Box**: If > 30 min, stop and reassess
|
|
463
|
+
3. **File Limit**: If > 2 files, it's not a quick fix
|
|
464
|
+
4. **No Feature Creep**: Resist urge to "fix other things"
|
|
465
|
+
5. **Commit Often**: One quick fix per commit
|
|
466
|
+
6. **Clear Messages**: Descriptive commit messages
|
|
467
|
+
7. **Validate Always**: Even trivial changes get validated
|
|
468
|
+
8. **Know When to Stop**: Recognize when level changes needed
|
|
469
|
+
|
|
470
|
+
## Anti-Patterns ❌
|
|
471
|
+
|
|
472
|
+
- ❌ **Scope Creep**: "While I'm here, I'll also..."
|
|
473
|
+
- ❌ **Bundling**: Multiple unrelated fixes in one commit
|
|
474
|
+
- ❌ **Skipping Validation**: "It's just a typo, no need to check"
|
|
475
|
+
- ❌ **Vague Commits**: "fix: updates"
|
|
476
|
+
- ❌ **Continuing Beyond 30 Min**: "Almost done..."
|
|
477
|
+
- ❌ **Breaking Changes**: "Just a small API tweak..."
|
|
478
|
+
- ❌ **Testing Avoidance**: "Don't need tests for this..."
|
|
479
|
+
|
|
480
|
+
## Decision Tree Integration
|
|
481
|
+
|
|
482
|
+
When in doubt, use the [Workflow Decision Tree](./decision-tree.md):
|
|
483
|
+
|
|
484
|
+
```
|
|
485
|
+
Is it < 30 min, 1-2 files, very low risk?
|
|
486
|
+
├─ Yes → Level 1 (Quick Fix) ✅
|
|
487
|
+
└─ No → Check Level 2 criteria
|
|
488
|
+
```
|
|
489
|
+
|
|
490
|
+
## Related Documentation
|
|
491
|
+
|
|
492
|
+
- [Workflow Decision Tree](./decision-tree.md) - Choose correct workflow level
|
|
493
|
+
- [Atomic Task Protocol](./atomic-task-protocol.md) - Level 2 workflow
|
|
494
|
+
- [Git Commit Helper Skill](../../skills/git/git-commit-helper.md) - Conventional commits
|
|
495
|
+
|
|
496
|
+
## Notes
|
|
497
|
+
|
|
498
|
+
- **No Planning Required**: Quick fixes bypass planning phase
|
|
499
|
+
- **No Design Review**: Changes too trivial for review
|
|
500
|
+
- **No Testing**: Changes don't affect functionality
|
|
501
|
+
- **Direct Push OK**: If working alone and permitted
|
|
502
|
+
- **Always Validate**: Even trivial changes get typecheck/lint
|
|
503
|
+
- **When Uncertain**: Use higher level workflow
|
|
504
|
+
|
|
505
|
+
**Remember**: When in doubt, it's not a quick fix. Use Level 2 or higher.
|