@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,957 @@
|
|
|
1
|
+
# Phase 1: Planning
|
|
2
|
+
|
|
3
|
+
This document describes the planning phase workflow.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
<!-- markdownlint-disable MD051 -->
|
|
10
|
+
|
|
11
|
+
1. [Critical Agent Delegation Policy](#critical-agent-delegation-policy)
|
|
12
|
+
2. [Overview](#overview)
|
|
13
|
+
3. [Goals](#goals)
|
|
14
|
+
4. [Process](#process)
|
|
15
|
+
5. [Deliverables](#deliverables)
|
|
16
|
+
6. [Quality Criteria](#quality-criteria)
|
|
17
|
+
7. [Common Pitfalls](#common-pitfalls)
|
|
18
|
+
|
|
19
|
+
<!-- markdownlint-enable MD051 -->
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## ⚠️ CRITICAL: Agent Delegation Policy
|
|
24
|
+
|
|
25
|
+
### 🚫 THE COORDINATING AGENT MUST NEVER DO THE WORK DIRECTLY
|
|
26
|
+
|
|
27
|
+
#### Mandatory Rules
|
|
28
|
+
|
|
29
|
+
1. **ALWAYS Analyze First**: Before starting ANY step, identify which specialized agents are needed
|
|
30
|
+
2. **ALWAYS Use Task Tool**: Delegate ALL work to specialized agents using Task tool
|
|
31
|
+
3. **NEVER Create Documents**: The coordinating agent NEVER creates PDR.md, tech-analysis.md, or TODOs.md
|
|
32
|
+
4. **NEVER Assume Capability**: Never assume you can do the work because "you understand it"
|
|
33
|
+
|
|
34
|
+
### Required Agent Mapping
|
|
35
|
+
|
|
36
|
+
| Task | Required Agent | Tool to Use |
|
|
37
|
+
|------|---------------|-------------|
|
|
38
|
+
| Create PDR.md | `product-functional` | Task tool with subagent_type="product-functional" |
|
|
39
|
+
| Create UI mockups | `ui-ux-designer` | Task tool with subagent_type="ui-ux-designer" |
|
|
40
|
+
| Create tech-analysis.md | `product-technical` | Task tool with subagent_type="product-technical" |
|
|
41
|
+
| Create TODOs.md | `product-technical` | Task tool with subagent_type="product-technical" |
|
|
42
|
+
| Final review | `tech-lead` | Task tool with subagent_type="tech-lead" |
|
|
43
|
+
|
|
44
|
+
### Anti-Patterns to Avoid
|
|
45
|
+
|
|
46
|
+
❌ **WRONG:**
|
|
47
|
+
|
|
48
|
+
```text
|
|
49
|
+
"I'll create the PDR since the requirements are clear..."
|
|
50
|
+
"Let me write the technical analysis directly..."
|
|
51
|
+
"I can break this down into tasks myself..."
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
✅ **CORRECT:**
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
"Analyzing requirements... I will invoke the following agents:
|
|
58
|
+
1. product-functional for PDR creation
|
|
59
|
+
2. product-technical for tech-analysis
|
|
60
|
+
3. product-technical for task breakdown
|
|
61
|
+
|
|
62
|
+
Starting with Task tool to invoke product-functional agent..."
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Workflow Start Template
|
|
66
|
+
|
|
67
|
+
Every Phase 1 planning session MUST start with:
|
|
68
|
+
|
|
69
|
+
```text
|
|
70
|
+
📋 Feature Planning: [Feature Name]
|
|
71
|
+
|
|
72
|
+
Step 0: Agent Analysis
|
|
73
|
+
I will coordinate the following specialized agents:
|
|
74
|
+
|
|
75
|
+
1. 🤖 product-functional
|
|
76
|
+
- Create PDR with user stories and acceptance criteria
|
|
77
|
+
- Duration: 1-2 hours
|
|
78
|
+
|
|
79
|
+
2. 🎨 ui-ux-designer [if UI-heavy]
|
|
80
|
+
- Create mockups and wireframes
|
|
81
|
+
- Duration: 30min-1h
|
|
82
|
+
|
|
83
|
+
3. 🔧 product-technical
|
|
84
|
+
- Create tech-analysis with architecture design
|
|
85
|
+
- Duration: 1-2 hours
|
|
86
|
+
|
|
87
|
+
4. 🔧 product-technical
|
|
88
|
+
- Create TODOs with atomic task breakdown
|
|
89
|
+
- Duration: 1-2 hours
|
|
90
|
+
|
|
91
|
+
5. 👨💼 tech-lead
|
|
92
|
+
- Final review and approval
|
|
93
|
+
- Duration: 30min
|
|
94
|
+
|
|
95
|
+
Total estimated time: 4-8 hours (with user interaction)
|
|
96
|
+
|
|
97
|
+
Proceeding with Step 1: Initialize Context...
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## Overview
|
|
103
|
+
|
|
104
|
+
**Phase 1** is the planning and design phase where we create a comprehensive, atomic plan ready for implementation.
|
|
105
|
+
|
|
106
|
+
**Duration:** 2-6 hours (depending on feature complexity)
|
|
107
|
+
|
|
108
|
+
**Key Principle:** Plan thoroughly before coding. Good planning saves time in implementation.
|
|
109
|
+
|
|
110
|
+
**Key Principle:** ALWAYS delegate to specialized agents. NEVER do the work directly.
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Goals
|
|
115
|
+
|
|
116
|
+
### Primary Goals
|
|
117
|
+
|
|
118
|
+
1. **Define Requirements**: Clear user stories with acceptance criteria
|
|
119
|
+
2. **Design Solution**: Technical approach and architecture
|
|
120
|
+
3. **Break Down Work**: Atomic tasks with estimates
|
|
121
|
+
4. **Identify Risks**: Technical and business risks with mitigations
|
|
122
|
+
5. **Get Approval**: User approval before implementation begins
|
|
123
|
+
|
|
124
|
+
### Success Metrics
|
|
125
|
+
|
|
126
|
+
- ✅ All acceptance criteria defined and testable
|
|
127
|
+
- ✅ All tasks are atomic (1-2 hours each)
|
|
128
|
+
- ✅ Dependencies identified and documented
|
|
129
|
+
- ✅ Technical approach validated
|
|
130
|
+
- ✅ User approves plan
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## Process
|
|
135
|
+
|
|
136
|
+
### Step 1: Initialize Context
|
|
137
|
+
|
|
138
|
+
**Duration:** 5 minutes
|
|
139
|
+
|
|
140
|
+
**Action:**
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
mkdir -p .claude/sessions/planning/{feature_name}
|
|
144
|
+
cd .claude/sessions/planning/{feature_name}
|
|
145
|
+
```text
|
|
146
|
+
|
|
147
|
+
**Files to Create:**
|
|
148
|
+
|
|
149
|
+
- `PDR.md` (from template)
|
|
150
|
+
- `tech-analysis.md` (from template)
|
|
151
|
+
- `TODOs.md` (from template)
|
|
152
|
+
|
|
153
|
+
**Command:**
|
|
154
|
+
|
|
155
|
+
```text
|
|
156
|
+
/start-feature-plan
|
|
157
|
+
```text
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
### Step 2: Functional Specification (PDR Generation)
|
|
162
|
+
|
|
163
|
+
**Duration:** 1-2 hours
|
|
164
|
+
|
|
165
|
+
**Agent:** `product-functional`
|
|
166
|
+
|
|
167
|
+
**Activities:**
|
|
168
|
+
|
|
169
|
+
1. **Understand the Problem**
|
|
170
|
+
- What problem are we solving?
|
|
171
|
+
- Who is affected?
|
|
172
|
+
- Why does this matter?
|
|
173
|
+
|
|
174
|
+
2. **Create User Stories**
|
|
175
|
+
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
As a [user type]
|
|
179
|
+
I want to [action]
|
|
180
|
+
So that [benefit]
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
3. **Define Acceptance Criteria**
|
|
185
|
+
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
Given [precondition]
|
|
189
|
+
When [action]
|
|
190
|
+
Then [expected result]
|
|
191
|
+
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**Rules:**
|
|
195
|
+
|
|
196
|
+
- Each criterion must be testable
|
|
197
|
+
- Use specific, measurable language
|
|
198
|
+
- Cover happy path AND edge cases
|
|
199
|
+
|
|
200
|
+
4. **Create Mockups/Wireframes**
|
|
201
|
+
- Low fidelity for simple features
|
|
202
|
+
- High fidelity for complex UI
|
|
203
|
+
- Show all states (default, loading, error, success)
|
|
204
|
+
- Mobile + Desktop views
|
|
205
|
+
|
|
206
|
+
5. **Define Constraints**
|
|
207
|
+
- Performance requirements
|
|
208
|
+
- Security requirements
|
|
209
|
+
- Accessibility requirements (WCAG AA)
|
|
210
|
+
- Browser support
|
|
211
|
+
|
|
212
|
+
**Deliverable:** Complete `PDR.md` sections 1-4
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
### 🔴 CHECKPOINT 1: PDR Review & Approval
|
|
217
|
+
|
|
218
|
+
**⚠️ MANDATORY USER INTERACTION - DO NOT SKIP**
|
|
219
|
+
|
|
220
|
+
**Agent Responsibilities:**
|
|
221
|
+
|
|
222
|
+
1. **Present PDR** to user with clear summary:
|
|
223
|
+
```text
|
|
224
|
+
PDR Generation Complete!
|
|
225
|
+
|
|
226
|
+
I've created the Product Design Requirements with:
|
|
227
|
+
- {n} user stories covering {key areas}
|
|
228
|
+
- {n} acceptance criteria (all testable)
|
|
229
|
+
- Mockups/wireframes for {pages/components}
|
|
230
|
+
- Business rules and technical constraints
|
|
231
|
+
|
|
232
|
+
Key highlights:
|
|
233
|
+
- {Major requirement 1}
|
|
234
|
+
- {Major requirement 2}
|
|
235
|
+
- {Major requirement 3}
|
|
236
|
+
|
|
237
|
+
Please review PDR.md. I'm ready to:
|
|
238
|
+
- Clarify any section
|
|
239
|
+
- Add more details
|
|
240
|
+
- Modify requirements
|
|
241
|
+
- Answer questions
|
|
242
|
+
- Create additional mockups
|
|
243
|
+
|
|
244
|
+
What would you like to review or change?
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
2. **Iterate with User:**
|
|
248
|
+
- Answer all questions
|
|
249
|
+
- Make requested changes
|
|
250
|
+
- Add missing details
|
|
251
|
+
- Refine unclear sections
|
|
252
|
+
- Continue iterating until user is satisfied
|
|
253
|
+
|
|
254
|
+
3. **Request Approval:**
|
|
255
|
+
|
|
256
|
+
```text
|
|
257
|
+
Are you satisfied with the PDR?
|
|
258
|
+
|
|
259
|
+
Reply "approve" to proceed to technical analysis
|
|
260
|
+
Reply "changes needed" to continue refining
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
4. **Wait for Explicit Approval:**
|
|
264
|
+
- **DO NOT proceed to Step 3** without approval
|
|
265
|
+
- **DO NOT generate tech-analysis.md** yet
|
|
266
|
+
- User must explicitly say "approve" or equivalent
|
|
267
|
+
|
|
268
|
+
**User Controls Flow:**
|
|
269
|
+
|
|
270
|
+
- User can request as many iterations as needed
|
|
271
|
+
- User decides when PDR is ready
|
|
272
|
+
- Planning pace controlled by user satisfaction
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
### Step 3: Technical Analysis (Only After PDR Approval)
|
|
277
|
+
|
|
278
|
+
**Duration:** 1-2 hours
|
|
279
|
+
|
|
280
|
+
**Agent:** `product-technical`
|
|
281
|
+
|
|
282
|
+
**Prerequisites:**
|
|
283
|
+
|
|
284
|
+
- ✅ PDR approved by user
|
|
285
|
+
- ✅ Functional requirements clear
|
|
286
|
+
- ✅ UI/UX designs finalized
|
|
287
|
+
|
|
288
|
+
**Activities:**
|
|
289
|
+
|
|
290
|
+
1. **Architecture Design**
|
|
291
|
+
- Which layers are affected?
|
|
292
|
+
- New entities needed?
|
|
293
|
+
- Existing entities to modify?
|
|
294
|
+
- Integration points?
|
|
295
|
+
|
|
296
|
+
2. **Technology Stack**
|
|
297
|
+
- New dependencies needed?
|
|
298
|
+
- Why chosen over alternatives?
|
|
299
|
+
- Bundle size impact?
|
|
300
|
+
|
|
301
|
+
3. **Database Design**
|
|
302
|
+
|
|
303
|
+
```mermaid
|
|
304
|
+
erDiagram
|
|
305
|
+
ENTITY_A ||--o{ ENTITY_B : relationship
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
- Schema changes
|
|
309
|
+
- Relationships
|
|
310
|
+
- Indexes needed
|
|
311
|
+
- Migration strategy
|
|
312
|
+
|
|
313
|
+
4. **API Design**
|
|
314
|
+
|
|
315
|
+
- Endpoints needed
|
|
316
|
+
- Request/response formats
|
|
317
|
+
- Authentication required?
|
|
318
|
+
- Rate limiting?
|
|
319
|
+
|
|
320
|
+
5. **Service Design**
|
|
321
|
+
|
|
322
|
+
- Business logic flow
|
|
323
|
+
- Validation rules
|
|
324
|
+
- Transaction boundaries
|
|
325
|
+
- Error handling
|
|
326
|
+
|
|
327
|
+
6. **Frontend Design**
|
|
328
|
+
|
|
329
|
+
- Components needed
|
|
330
|
+
- State management approach
|
|
331
|
+
- Routing changes
|
|
332
|
+
- Performance considerations
|
|
333
|
+
|
|
334
|
+
7. **Risk Analysis**
|
|
335
|
+
|
|
336
|
+
| Risk | Impact | Probability | Mitigation |
|
|
337
|
+
|------|--------|-------------|------------|
|
|
338
|
+
| {Risk} | High/Med/Low | High/Med/Low | {How to handle} |
|
|
339
|
+
|
|
340
|
+
**Deliverable:** Complete `tech-analysis.md`
|
|
341
|
+
|
|
342
|
+
---
|
|
343
|
+
|
|
344
|
+
### 🔴 CHECKPOINT 2: Technical Analysis Review & Approval
|
|
345
|
+
|
|
346
|
+
#### ⚠️ MANDATORY USER INTERACTION - DO NOT SKIP
|
|
347
|
+
|
|
348
|
+
**Agent Responsibilities:**
|
|
349
|
+
|
|
350
|
+
1. **Present Technical Analysis** to user:
|
|
351
|
+
|
|
352
|
+
```text
|
|
353
|
+
Technical Analysis Complete!
|
|
354
|
+
|
|
355
|
+
I've documented the technical approach:
|
|
356
|
+
|
|
357
|
+
Architecture:
|
|
358
|
+
- {Layer 1}: {Approach}
|
|
359
|
+
- {Layer 2}: {Approach}
|
|
360
|
+
- {Layer 3}: {Approach}
|
|
361
|
+
|
|
362
|
+
Key Technical Decisions:
|
|
363
|
+
- {Decision 1}: {Rationale}
|
|
364
|
+
- {Decision 2}: {Rationale}
|
|
365
|
+
- {Decision 3}: {Rationale}
|
|
366
|
+
|
|
367
|
+
Database Changes:
|
|
368
|
+
- {n} new tables
|
|
369
|
+
- {n} schema modifications
|
|
370
|
+
- {Migration strategy}
|
|
371
|
+
|
|
372
|
+
API Design:
|
|
373
|
+
- {n} new endpoints
|
|
374
|
+
- {Authentication approach}
|
|
375
|
+
- {Performance strategy}
|
|
376
|
+
|
|
377
|
+
Risks Identified:
|
|
378
|
+
- {Risk 1}: {Mitigation}
|
|
379
|
+
- {Risk 2}: {Mitigation}
|
|
380
|
+
|
|
381
|
+
Please review tech-analysis.md. I'm ready to:
|
|
382
|
+
- Explain any technical decision
|
|
383
|
+
- Discuss alternative approaches
|
|
384
|
+
- Refine the architecture
|
|
385
|
+
- Address any concerns
|
|
386
|
+
|
|
387
|
+
What would you like to discuss?
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
2. **Iterate with User:**
|
|
391
|
+
- Explain technical decisions
|
|
392
|
+
- Discuss alternatives if requested
|
|
393
|
+
- Refine architecture based on feedback
|
|
394
|
+
- Address technical concerns
|
|
395
|
+
- Continue until user is satisfied
|
|
396
|
+
|
|
397
|
+
3. **Request Approval:**
|
|
398
|
+
|
|
399
|
+
```text
|
|
400
|
+
Are you satisfied with the technical approach?
|
|
401
|
+
|
|
402
|
+
Reply "approve" to proceed to task breakdown
|
|
403
|
+
Reply "changes needed" to continue refining
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
4. **Wait for Explicit Approval:**
|
|
407
|
+
- **DO NOT proceed to Step 4** without approval
|
|
408
|
+
- **DO NOT generate TODOs.md** yet
|
|
409
|
+
- User must explicitly say "approve" or equivalent
|
|
410
|
+
|
|
411
|
+
**User Controls Flow:**
|
|
412
|
+
|
|
413
|
+
- User can request technical alternatives
|
|
414
|
+
- User can challenge decisions
|
|
415
|
+
- User decides when technical approach is solid
|
|
416
|
+
|
|
417
|
+
---
|
|
418
|
+
|
|
419
|
+
### Step 4: Task Breakdown (Only After Tech Analysis Approval)
|
|
420
|
+
|
|
421
|
+
**Duration:** 1-2 hours
|
|
422
|
+
|
|
423
|
+
**Agent:** `product-technical`
|
|
424
|
+
|
|
425
|
+
**Prerequisites:**
|
|
426
|
+
|
|
427
|
+
- ✅ PDR approved by user
|
|
428
|
+
- ✅ Tech analysis approved by user
|
|
429
|
+
- ✅ Architecture decisions finalized
|
|
430
|
+
|
|
431
|
+
**Activities:**
|
|
432
|
+
|
|
433
|
+
1. **Identify Phases**
|
|
434
|
+
- Phase 1: Planning (already done)
|
|
435
|
+
- Phase 2: Implementation
|
|
436
|
+
- Phase 3: Validation
|
|
437
|
+
- Phase 4: Finalization
|
|
438
|
+
|
|
439
|
+
2. **Break Down Phase 2 by Layer**
|
|
440
|
+
|
|
441
|
+
```
|
|
442
|
+
Phase 2: Implementation
|
|
443
|
+
├── Database Layer
|
|
444
|
+
├── Service Layer
|
|
445
|
+
├── API Layer
|
|
446
|
+
└── Frontend Layer
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
3. **Create Tasks per Layer**
|
|
450
|
+
|
|
451
|
+
Follow **entity creation order**:
|
|
452
|
+
|
|
453
|
+
- Zod schemas
|
|
454
|
+
- Types (z.infer)
|
|
455
|
+
- Drizzle schema
|
|
456
|
+
- Model
|
|
457
|
+
- Service
|
|
458
|
+
- API routes
|
|
459
|
+
- Frontend
|
|
460
|
+
|
|
461
|
+
4. **Subdivide into Atomic Tasks**
|
|
462
|
+
|
|
463
|
+
Each task should be:
|
|
464
|
+
|
|
465
|
+
- 1-2 hours duration
|
|
466
|
+
- Single responsibility
|
|
467
|
+
- Independently testable
|
|
468
|
+
- Clear definition of done
|
|
469
|
+
|
|
470
|
+
5. **Estimate Each Task**
|
|
471
|
+
|
|
472
|
+
Consider:
|
|
473
|
+
|
|
474
|
+
- Complexity
|
|
475
|
+
- Similar past work
|
|
476
|
+
- Testing time
|
|
477
|
+
- Buffer (20%)
|
|
478
|
+
|
|
479
|
+
6. **Identify Dependencies**
|
|
480
|
+
|
|
481
|
+
```
|
|
482
|
+
Task A (no dependencies)
|
|
483
|
+
Task B (depends on Task A)
|
|
484
|
+
Task C (depends on Task B)
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
7. **Assign Priorities**
|
|
488
|
+
- P0: Critical (must have)
|
|
489
|
+
- P1: High (should have)
|
|
490
|
+
- P2: Medium (nice to have)
|
|
491
|
+
- P3: Low (could have)
|
|
492
|
+
|
|
493
|
+
**Deliverable:** Complete `TODOs.md` with task breakdown
|
|
494
|
+
|
|
495
|
+
---
|
|
496
|
+
|
|
497
|
+
### ⚪ OPTIONAL CHECKPOINT 3: Task Breakdown Review
|
|
498
|
+
|
|
499
|
+
#### Optional User Interaction (Recommended)
|
|
500
|
+
|
|
501
|
+
**Agent Responsibilities:**
|
|
502
|
+
|
|
503
|
+
1. **Present Task Breakdown** to user:
|
|
504
|
+
|
|
505
|
+
```text
|
|
506
|
+
Task Breakdown Complete!
|
|
507
|
+
|
|
508
|
+
I've created {n} atomic tasks organized in {m} phases:
|
|
509
|
+
|
|
510
|
+
Summary:
|
|
511
|
+
- Total tasks: {n}
|
|
512
|
+
- P0 (Critical): {x} tasks
|
|
513
|
+
- P1 (High): {y} tasks
|
|
514
|
+
- P2+ (Nice to have): {z} tasks
|
|
515
|
+
- Estimated total: {hours}h ({days} days)
|
|
516
|
+
|
|
517
|
+
Key phases:
|
|
518
|
+
- Phase 2.1 - Database Layer: {n} tasks ({h}h)
|
|
519
|
+
- Phase 2.2 - Service Layer: {n} tasks ({h}h)
|
|
520
|
+
- Phase 2.3 - API Layer: {n} tasks ({h}h)
|
|
521
|
+
- Phase 2.4 - Frontend Layer: {n} tasks ({h}h)
|
|
522
|
+
|
|
523
|
+
All tasks are atomic (1-2 hours each) and dependencies are mapped.
|
|
524
|
+
|
|
525
|
+
Would you like to review the task breakdown before we proceed to Phase 2?
|
|
526
|
+
(yes/no/let's start)
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
2. **If User Wants to Review:**
|
|
530
|
+
- Discuss task estimates
|
|
531
|
+
- Adjust priorities if needed
|
|
532
|
+
- Clarify task descriptions
|
|
533
|
+
- Address concerns about scope
|
|
534
|
+
|
|
535
|
+
3. **If User Approves or Skips:**
|
|
536
|
+
- Proceed to Phase 2 Implementation
|
|
537
|
+
- Start with first P0 task
|
|
538
|
+
|
|
539
|
+
**Note:** This checkpoint is optional because user has already approved the technical approach, which defines the task scope
|
|
540
|
+
|
|
541
|
+
---
|
|
542
|
+
|
|
543
|
+
### Step 5: Iterative Refinement
|
|
544
|
+
|
|
545
|
+
**Duration:** 30 minutes - 1 hour
|
|
546
|
+
|
|
547
|
+
**Thinking Modes:**
|
|
548
|
+
|
|
549
|
+
1. **System 2 Thinking** (Deep Analysis)
|
|
550
|
+
- Review each task carefully
|
|
551
|
+
- Is it truly atomic (1-2 hours)?
|
|
552
|
+
- Does it have clear acceptance criteria?
|
|
553
|
+
- Can it be tested independently?
|
|
554
|
+
|
|
555
|
+
2. **Tree of Thoughts** (Multiple Approaches)
|
|
556
|
+
- Consider alternative breakdowns
|
|
557
|
+
- Evaluate tradeoffs
|
|
558
|
+
- Choose optimal approach
|
|
559
|
+
- Document why chosen
|
|
560
|
+
|
|
561
|
+
3. **Iterative Refinement** (Polish)
|
|
562
|
+
- Look for edge cases
|
|
563
|
+
- Check for missed tasks
|
|
564
|
+
- Verify dependencies
|
|
565
|
+
- Ensure consistency
|
|
566
|
+
|
|
567
|
+
**Process:**
|
|
568
|
+
|
|
569
|
+
1. **Review All Tasks**
|
|
570
|
+
- Are any > 2 hours? → Break down further
|
|
571
|
+
- Are any < 30 minutes? → Consider combining
|
|
572
|
+
- Missing tests? → Add test tasks
|
|
573
|
+
- Clear descriptions? → Improve wording
|
|
574
|
+
|
|
575
|
+
2. **Check Dependencies**
|
|
576
|
+
- All dependencies identified?
|
|
577
|
+
- Any circular dependencies? → Fix
|
|
578
|
+
- Can tasks be parallelized? → Mark as parallel
|
|
579
|
+
|
|
580
|
+
3. **Verify Completeness**
|
|
581
|
+
- All layers covered?
|
|
582
|
+
- All entity creation steps?
|
|
583
|
+
- Documentation tasks?
|
|
584
|
+
- Testing tasks?
|
|
585
|
+
- QA tasks?
|
|
586
|
+
|
|
587
|
+
4. **Validate Estimates**
|
|
588
|
+
- Sum of tasks = reasonable total?
|
|
589
|
+
- Matches complexity estimate?
|
|
590
|
+
- Buffer included?
|
|
591
|
+
|
|
592
|
+
5. **Re-analyze Entire Plan**
|
|
593
|
+
- Read through from start
|
|
594
|
+
- Look for gaps
|
|
595
|
+
- Check for problems
|
|
596
|
+
- Repeat until 100% confident
|
|
597
|
+
|
|
598
|
+
**Goal:** Be completely confident that the plan is:
|
|
599
|
+
|
|
600
|
+
- Complete
|
|
601
|
+
- Accurate
|
|
602
|
+
- Actionable
|
|
603
|
+
- Realistic
|
|
604
|
+
|
|
605
|
+
---
|
|
606
|
+
|
|
607
|
+
### Step 6: Create TODO List
|
|
608
|
+
|
|
609
|
+
**Duration:** 30 minutes
|
|
610
|
+
|
|
611
|
+
**Agent:** `product-technical`
|
|
612
|
+
|
|
613
|
+
**Format:**
|
|
614
|
+
|
|
615
|
+
```markdown
|
|
616
|
+
|
|
617
|
+
# TODO List: {Feature Name}
|
|
618
|
+
|
|
619
|
+
## Progress Summary
|
|
620
|
+
|
|
621
|
+
- Total: {n} tasks
|
|
622
|
+
- Completed: 0
|
|
623
|
+
- In Progress: 0
|
|
624
|
+
|
|
625
|
+
## Phase 2: Implementation
|
|
626
|
+
|
|
627
|
+
### P0 - Critical
|
|
628
|
+
|
|
629
|
+
#### Database Layer
|
|
630
|
+
|
|
631
|
+
- [ ] **[30m]** Create Zod schemas
|
|
632
|
+
- Dependencies: None
|
|
633
|
+
- Assignee: @db-engineer
|
|
634
|
+
|
|
635
|
+
- [ ] **[30m]** Create Drizzle schema
|
|
636
|
+
- Dependencies: Zod schemas
|
|
637
|
+
- Assignee: @db-engineer
|
|
638
|
+
|
|
639
|
+
#### Service Layer
|
|
640
|
+
|
|
641
|
+
...
|
|
642
|
+
|
|
643
|
+
### P1 - High
|
|
644
|
+
|
|
645
|
+
...
|
|
646
|
+
|
|
647
|
+
## Phase 3: Validation
|
|
648
|
+
|
|
649
|
+
...
|
|
650
|
+
```text
|
|
651
|
+
|
|
652
|
+
**Include:**
|
|
653
|
+
|
|
654
|
+
- Progress tracking
|
|
655
|
+
- Time estimates
|
|
656
|
+
- Dependencies
|
|
657
|
+
- Assignees (agents)
|
|
658
|
+
- Priority levels
|
|
659
|
+
- Status tracking
|
|
660
|
+
|
|
661
|
+
**Deliverable:** Complete `TODOs.md`
|
|
662
|
+
|
|
663
|
+
---
|
|
664
|
+
|
|
665
|
+
### Step 7: Update PDR
|
|
666
|
+
|
|
667
|
+
**Duration:** 15 minutes
|
|
668
|
+
|
|
669
|
+
**Activities:**
|
|
670
|
+
|
|
671
|
+
1. **Add Links**
|
|
672
|
+
|
|
673
|
+
```markdown
|
|
674
|
+
## Related Documents
|
|
675
|
+
|
|
676
|
+
- [Technical Analysis](./tech-analysis.md)
|
|
677
|
+
- [TODOs & Progress](./TODOs.md)
|
|
678
|
+
```
|
|
679
|
+
|
|
680
|
+
2. **Document Changes**
|
|
681
|
+
|
|
682
|
+
- Any changes from initial requirements?
|
|
683
|
+
- Why were changes made?
|
|
684
|
+
- Update changelog
|
|
685
|
+
|
|
686
|
+
3. **Final Review**
|
|
687
|
+
- All sections complete?
|
|
688
|
+
- Acceptance criteria clear?
|
|
689
|
+
- Constraints documented?
|
|
690
|
+
|
|
691
|
+
**Deliverable:** Final `PDR.md` with all links
|
|
692
|
+
|
|
693
|
+
---
|
|
694
|
+
|
|
695
|
+
### Step 8: User Approval
|
|
696
|
+
|
|
697
|
+
**Duration:** Variable (wait for user)
|
|
698
|
+
|
|
699
|
+
**Present to User:**
|
|
700
|
+
|
|
701
|
+
```text
|
|
702
|
+
Planning complete for {Feature Name}!
|
|
703
|
+
|
|
704
|
+
I've created a comprehensive plan:
|
|
705
|
+
|
|
706
|
+
📄 PDR.md (Product Design Requirements)
|
|
707
|
+
|
|
708
|
+
- {n} user stories
|
|
709
|
+
- {n} acceptance criteria
|
|
710
|
+
- Mockups and wireframes
|
|
711
|
+
- Technical constraints
|
|
712
|
+
|
|
713
|
+
🔧 tech-analysis.md (Technical Analysis)
|
|
714
|
+
|
|
715
|
+
- Architecture decisions
|
|
716
|
+
- Database design
|
|
717
|
+
- API design
|
|
718
|
+
- Risk analysis
|
|
719
|
+
|
|
720
|
+
✅ TODOs.md (Task Breakdown)
|
|
721
|
+
|
|
722
|
+
- {n} total tasks
|
|
723
|
+
- All tasks 1-2 hours (atomic)
|
|
724
|
+
- Dependencies mapped
|
|
725
|
+
- Estimated total: {n} hours
|
|
726
|
+
|
|
727
|
+
Key decisions:
|
|
728
|
+
|
|
729
|
+
1. {Decision 1}
|
|
730
|
+
2. {Decision 2}
|
|
731
|
+
3. {Decision 3}
|
|
732
|
+
|
|
733
|
+
Do you approve this plan?
|
|
734
|
+
```text
|
|
735
|
+
|
|
736
|
+
**Wait for Approval:**
|
|
737
|
+
|
|
738
|
+
- If approved → Proceed to Phase 2
|
|
739
|
+
- If changes needed → Iterate on plan
|
|
740
|
+
- If rejected → Re-analyze approach
|
|
741
|
+
|
|
742
|
+
**Never proceed without explicit user approval**
|
|
743
|
+
|
|
744
|
+
---
|
|
745
|
+
|
|
746
|
+
### Step 9: Sync to GitHub (Optional)
|
|
747
|
+
|
|
748
|
+
**Duration:** 2-5 minutes
|
|
749
|
+
|
|
750
|
+
**After user approves the plan**, offer to sync with GitHub:
|
|
751
|
+
|
|
752
|
+
```text
|
|
753
|
+
Great! The plan is approved.
|
|
754
|
+
|
|
755
|
+
Would you like me to sync this planning to GitHub?
|
|
756
|
+
|
|
757
|
+
This will:
|
|
758
|
+
✅ Create a parent issue: [Planning] {Feature Name}
|
|
759
|
+
✅ Create sub-issues for all {n} tasks
|
|
760
|
+
✅ Allow you to track progress from any device
|
|
761
|
+
✅ Update status automatically as you complete tasks
|
|
762
|
+
|
|
763
|
+
Sync to GitHub? (yes/no)
|
|
764
|
+
```
|
|
765
|
+
|
|
766
|
+
**If User Says Yes:**
|
|
767
|
+
|
|
768
|
+
1. Run `/sync-planning` command
|
|
769
|
+
2. Present sync results with URLs
|
|
770
|
+
3. Remind user to commit `.github-workflow/tracking.json`
|
|
771
|
+
|
|
772
|
+
**If User Says No:**
|
|
773
|
+
|
|
774
|
+
1. Skip sync
|
|
775
|
+
2. Continue to Phase 2
|
|
776
|
+
|
|
777
|
+
**Note:** User can always run `/sync-planning` manually later.
|
|
778
|
+
|
|
779
|
+
**See**: [Sync Planning Command](./../commands/sync-planning.md) for details
|
|
780
|
+
|
|
781
|
+
---
|
|
782
|
+
|
|
783
|
+
## Deliverables
|
|
784
|
+
|
|
785
|
+
### Required Files
|
|
786
|
+
|
|
787
|
+
1. **PDR.md**
|
|
788
|
+
- Problem statement
|
|
789
|
+
- User stories with acceptance criteria
|
|
790
|
+
- Mockups/wireframes
|
|
791
|
+
- Technical constraints
|
|
792
|
+
- Dependencies and integrations
|
|
793
|
+
- Risks and mitigations
|
|
794
|
+
- Links to other documents
|
|
795
|
+
|
|
796
|
+
2. **tech-analysis.md**
|
|
797
|
+
- Architecture overview
|
|
798
|
+
- Technology stack
|
|
799
|
+
- Database design
|
|
800
|
+
- API design
|
|
801
|
+
- Service design
|
|
802
|
+
- Frontend design
|
|
803
|
+
- Security considerations
|
|
804
|
+
- Performance considerations
|
|
805
|
+
- Technical risks
|
|
806
|
+
|
|
807
|
+
3. **TODOs.md**
|
|
808
|
+
- All tasks broken down (atomic)
|
|
809
|
+
- Time estimates
|
|
810
|
+
- Dependencies
|
|
811
|
+
- Priorities
|
|
812
|
+
- Assignees
|
|
813
|
+
- Progress tracking structure
|
|
814
|
+
|
|
815
|
+
### File Location
|
|
816
|
+
|
|
817
|
+
All files in: `.claude/sessions/planning/{feature_name}/`
|
|
818
|
+
|
|
819
|
+
---
|
|
820
|
+
|
|
821
|
+
## Quality Criteria
|
|
822
|
+
|
|
823
|
+
### Plan is Ready When
|
|
824
|
+
|
|
825
|
+
- [ ] All user stories have acceptance criteria
|
|
826
|
+
- [ ] All acceptance criteria are testable
|
|
827
|
+
- [ ] All mockups/wireframes complete
|
|
828
|
+
- [ ] Technical approach documented
|
|
829
|
+
- [ ] All tasks are atomic (1-2 hours)
|
|
830
|
+
- [ ] All dependencies identified
|
|
831
|
+
- [ ] All estimates include buffer
|
|
832
|
+
- [ ] Risks identified and mitigated
|
|
833
|
+
- [ ] User approved plan
|
|
834
|
+
|
|
835
|
+
### Red Flags (Plan NOT Ready)
|
|
836
|
+
|
|
837
|
+
- ❌ Vague acceptance criteria ("should work well")
|
|
838
|
+
- ❌ Tasks larger than 2 hours
|
|
839
|
+
- ❌ Missing test tasks
|
|
840
|
+
- ❌ No mockups for UI features
|
|
841
|
+
- ❌ Unclear technical approach
|
|
842
|
+
- ❌ Missing dependencies
|
|
843
|
+
- ❌ No risk analysis
|
|
844
|
+
- ❌ User approval not obtained
|
|
845
|
+
|
|
846
|
+
---
|
|
847
|
+
|
|
848
|
+
## Common Pitfalls
|
|
849
|
+
|
|
850
|
+
### Pitfall 1: Rushing Planning
|
|
851
|
+
|
|
852
|
+
**Problem:** Skipping planning to "start coding faster"
|
|
853
|
+
|
|
854
|
+
**Consequence:** Rework, missed requirements, technical debt
|
|
855
|
+
|
|
856
|
+
**Solution:** Invest time in thorough planning
|
|
857
|
+
|
|
858
|
+
---
|
|
859
|
+
|
|
860
|
+
### Pitfall 2: Vague Requirements
|
|
861
|
+
|
|
862
|
+
**Problem:**
|
|
863
|
+
|
|
864
|
+
```text
|
|
865
|
+
User Story: User should be able to book entity
|
|
866
|
+
Acceptance Criteria: It should work
|
|
867
|
+
```text
|
|
868
|
+
|
|
869
|
+
**Solution:**
|
|
870
|
+
|
|
871
|
+
```text
|
|
872
|
+
User Story: As a guest, I want to book an entity
|
|
873
|
+
for specific dates so that I can plan my trip
|
|
874
|
+
|
|
875
|
+
Acceptance Criteria:
|
|
876
|
+
|
|
877
|
+
- Given entity is available for selected dates
|
|
878
|
+
|
|
879
|
+
When I select check-in and check-out dates
|
|
880
|
+
Then I can proceed to booking
|
|
881
|
+
|
|
882
|
+
- Given entity is NOT available
|
|
883
|
+
|
|
884
|
+
When I try to book
|
|
885
|
+
Then I see "Not available" message with alternative dates
|
|
886
|
+
```text
|
|
887
|
+
|
|
888
|
+
---
|
|
889
|
+
|
|
890
|
+
### Pitfall 3: Large Tasks
|
|
891
|
+
|
|
892
|
+
**Problem:**
|
|
893
|
+
|
|
894
|
+
```text
|
|
895
|
+
Task: Build frontend [8h]
|
|
896
|
+
```text
|
|
897
|
+
|
|
898
|
+
**Solution:**
|
|
899
|
+
|
|
900
|
+
```text
|
|
901
|
+
Task: Create EntityList component [1h]
|
|
902
|
+
Task: Create EntityCard component [1h]
|
|
903
|
+
Task: Create EntityForm component [1.5h]
|
|
904
|
+
Task: Setup TanStack Query [1h]
|
|
905
|
+
Task: Integrate with API [1h]
|
|
906
|
+
Task: Write component tests [1.5h]
|
|
907
|
+
```text
|
|
908
|
+
|
|
909
|
+
---
|
|
910
|
+
|
|
911
|
+
### Pitfall 4: Missing Dependencies
|
|
912
|
+
|
|
913
|
+
**Problem:** Starting Task B before Task A is done
|
|
914
|
+
|
|
915
|
+
**Solution:** Map all dependencies explicitly
|
|
916
|
+
|
|
917
|
+
```text
|
|
918
|
+
Task A: Create model [1h]
|
|
919
|
+
Dependencies: None
|
|
920
|
+
|
|
921
|
+
Task B: Create service [1h]
|
|
922
|
+
Dependencies: Task A complete
|
|
923
|
+
|
|
924
|
+
Task C: Create API route [1h]
|
|
925
|
+
Dependencies: Task B complete
|
|
926
|
+
```text
|
|
927
|
+
|
|
928
|
+
---
|
|
929
|
+
|
|
930
|
+
### Pitfall 5: No User Approval
|
|
931
|
+
|
|
932
|
+
**Problem:** Starting implementation without user approval
|
|
933
|
+
|
|
934
|
+
**Consequence:** Building wrong thing, wasted effort
|
|
935
|
+
|
|
936
|
+
**Solution:** Always get explicit approval before Phase 2
|
|
937
|
+
|
|
938
|
+
---
|
|
939
|
+
|
|
940
|
+
## Summary Checklist
|
|
941
|
+
|
|
942
|
+
Before moving to Phase 2:
|
|
943
|
+
|
|
944
|
+
- [ ] PDR.md complete and approved
|
|
945
|
+
- [ ] tech-analysis.md complete and reviewed
|
|
946
|
+
- [ ] TODOs.md with atomic tasks
|
|
947
|
+
- [ ] All tasks 1-2 hours
|
|
948
|
+
- [ ] Dependencies mapped
|
|
949
|
+
- [ ] Estimates realistic
|
|
950
|
+
- [ ] Risks identified
|
|
951
|
+
- [ ] User explicitly approved plan
|
|
952
|
+
- [ ] 100% confident plan is complete
|
|
953
|
+
|
|
954
|
+
---
|
|
955
|
+
|
|
956
|
+
**Remember: Time spent planning is NOT wasted. It prevents wasted time in implementation.**
|
|
957
|
+
|