@champpaba/claude-agent-kit 1.7.1 → 2.0.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/.claude/CHANGELOG-v1.1.1.md +259 -259
- package/.claude/CLAUDE.md +79 -90
- package/.claude/agents/01-integration.md +11 -7
- package/.claude/agents/02-uxui-frontend.md +11 -6
- package/.claude/agents/03-test-debug.md +11 -7
- package/.claude/agents/04-frontend.md +11 -7
- package/.claude/agents/05-backend.md +11 -6
- package/.claude/agents/06-database.md +11 -7
- package/.claude/commands/cdev.md +110 -7
- package/.claude/commands/csetup.md +306 -39
- package/.claude/commands/cstatus.md +60 -60
- package/.claude/commands/cview.md +364 -364
- package/.claude/commands/designsetup.md +1401 -336
- package/.claude/commands/extract.md +520 -245
- package/.claude/commands/pageplan.md +171 -47
- package/.claude/contexts/design/accessibility.md +611 -611
- package/.claude/contexts/design/layout.md +400 -400
- package/.claude/contexts/design/responsive.md +551 -551
- package/.claude/contexts/design/shadows.md +522 -522
- package/.claude/contexts/design/typography.md +465 -465
- package/.claude/contexts/domain/README.md +164 -164
- package/.claude/contexts/patterns/agent-coordination.md +388 -388
- package/.claude/contexts/patterns/agent-discovery.md +3 -2
- package/.claude/contexts/patterns/change-workflow.md +538 -538
- package/.claude/contexts/patterns/code-standards.md +39 -0
- package/.claude/contexts/patterns/development-principles.md +513 -513
- package/.claude/contexts/patterns/error-handling.md +478 -478
- package/.claude/contexts/patterns/error-recovery.md +365 -365
- package/.claude/contexts/patterns/logging.md +424 -424
- package/.claude/contexts/patterns/task-breakdown.md +452 -452
- package/.claude/contexts/patterns/task-classification.md +523 -523
- package/.claude/contexts/patterns/tdd-classification.md +516 -516
- package/.claude/contexts/patterns/testing.md +413 -413
- package/.claude/contexts/patterns/validation-framework.md +776 -776
- package/.claude/lib/agent-executor.md +76 -1
- package/.claude/lib/agent-router.md +572 -572
- package/.claude/lib/flags-updater.md +469 -469
- package/.claude/lib/tdd-classifier.md +345 -345
- package/.claude/lib/validation-gates.md +484 -484
- package/.claude/settings.local.json +42 -42
- package/.claude/templates/context-template.md +45 -45
- package/.claude/templates/flags-template.json +42 -42
- package/.claude/templates/phase-templates.json +19 -29
- package/.claude/templates/phases-sections/accessibility-test.md +17 -17
- package/.claude/templates/phases-sections/api-design.md +37 -37
- package/.claude/templates/phases-sections/backend-tests.md +16 -16
- package/.claude/templates/phases-sections/backend.md +37 -37
- package/.claude/templates/phases-sections/business-logic-validation.md +16 -16
- package/.claude/templates/phases-sections/component-tests.md +17 -17
- package/.claude/templates/phases-sections/contract-backend.md +16 -16
- package/.claude/templates/phases-sections/contract-frontend.md +16 -16
- package/.claude/templates/phases-sections/database.md +35 -35
- package/.claude/templates/phases-sections/e2e-tests.md +16 -16
- package/.claude/templates/phases-sections/fix-implementation.md +17 -17
- package/.claude/templates/phases-sections/frontend-integration.md +18 -18
- package/.claude/templates/phases-sections/frontend-mockup.md +123 -123
- package/.claude/templates/phases-sections/manual-flow-test.md +15 -15
- package/.claude/templates/phases-sections/manual-ux-test.md +16 -16
- package/.claude/templates/phases-sections/refactor-implementation.md +17 -17
- package/.claude/templates/phases-sections/refactor.md +16 -16
- package/.claude/templates/phases-sections/regression-tests.md +15 -15
- package/.claude/templates/phases-sections/responsive-test.md +16 -16
- package/.claude/templates/phases-sections/script-implementation.md +43 -43
- package/.claude/templates/phases-sections/test-coverage.md +16 -16
- package/.claude/templates/phases-sections/user-approval.md +14 -14
- package/LICENSE +21 -21
- package/README.md +103 -351
- package/package.json +1 -1
- package/.claude/commands/agentsetup.md +0 -1464
- package/.claude/commands/psetup.md +0 -101
- package/.claude/templates/phases-sections/documentation.md +0 -17
- package/.claude/templates/phases-sections/report.md +0 -16
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# Phase: Contract Test (Backend)
|
|
2
|
-
|
|
3
|
-
**Agent:** `integration`
|
|
4
|
-
**Metadata:** `| contract | validation |`
|
|
5
|
-
**Estimated time:** 10 minutes
|
|
6
|
-
|
|
7
|
-
## 🎯 Purpose
|
|
8
|
-
Validate backend implementation matches OpenAPI spec.
|
|
9
|
-
|
|
10
|
-
## ✅ Success Criteria
|
|
11
|
-
- [ ] All endpoints match spec
|
|
12
|
-
- [ ] No schema violations
|
|
13
|
-
|
|
14
|
-
## 📤 Output
|
|
15
|
-
- Contract test report
|
|
16
|
-
- Update flags.json
|
|
1
|
+
# Phase: Contract Test (Backend)
|
|
2
|
+
|
|
3
|
+
**Agent:** `integration`
|
|
4
|
+
**Metadata:** `| contract | validation |`
|
|
5
|
+
**Estimated time:** 10 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Validate backend implementation matches OpenAPI spec.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] All endpoints match spec
|
|
12
|
+
- [ ] No schema violations
|
|
13
|
+
|
|
14
|
+
## 📤 Output
|
|
15
|
+
- Contract test report
|
|
16
|
+
- Update flags.json
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# Phase: Contract Test (Frontend)
|
|
2
|
-
|
|
3
|
-
**Agent:** `integration`
|
|
4
|
-
**Metadata:** `| contract | validation |`
|
|
5
|
-
**Estimated time:** 10 minutes
|
|
6
|
-
|
|
7
|
-
## 🎯 Purpose
|
|
8
|
-
Validate frontend API calls match backend responses.
|
|
9
|
-
|
|
10
|
-
## ✅ Success Criteria
|
|
11
|
-
- [ ] All API calls match backend contract
|
|
12
|
-
- [ ] No contract violations
|
|
13
|
-
|
|
14
|
-
## 📤 Output
|
|
15
|
-
- Contract test report
|
|
16
|
-
- Update flags.json
|
|
1
|
+
# Phase: Contract Test (Frontend)
|
|
2
|
+
|
|
3
|
+
**Agent:** `integration`
|
|
4
|
+
**Metadata:** `| contract | validation |`
|
|
5
|
+
**Estimated time:** 10 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Validate frontend API calls match backend responses.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] All API calls match backend contract
|
|
12
|
+
- [ ] No contract violations
|
|
13
|
+
|
|
14
|
+
## 📤 Output
|
|
15
|
+
- Contract test report
|
|
16
|
+
- Update flags.json
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
# Phase: Database Schema
|
|
2
|
-
|
|
3
|
-
**Agent:** `database`
|
|
4
|
-
**Metadata:** `| prisma | migration |`
|
|
5
|
-
**Estimated time:** 30 minutes
|
|
6
|
-
|
|
7
|
-
## 🎯 Purpose
|
|
8
|
-
|
|
9
|
-
Design database schema, create migrations, add indexes for performance.
|
|
10
|
-
|
|
11
|
-
## 📚 Context Loading
|
|
12
|
-
|
|
13
|
-
- ✅ `tech-stack.md` → Database ORM (Prisma, SQLAlchemy, etc.)
|
|
14
|
-
- ✅ `../proposal.md` → Data requirements
|
|
15
|
-
- ✅ Best practices for ORM
|
|
16
|
-
|
|
17
|
-
## 📝 Tasks
|
|
18
|
-
|
|
19
|
-
1. Design Prisma/SQLAlchemy schema
|
|
20
|
-
2. Create migration
|
|
21
|
-
3. Add indexes for frequently queried fields
|
|
22
|
-
4. Add foreign keys and constraints
|
|
23
|
-
|
|
24
|
-
## ✅ Success Criteria
|
|
25
|
-
|
|
26
|
-
- [ ] Schema designed and created
|
|
27
|
-
- [ ] Migration created and applied
|
|
28
|
-
- [ ] Indexes added for performance
|
|
29
|
-
- [ ] No migration conflicts
|
|
30
|
-
|
|
31
|
-
## 📤 Output
|
|
32
|
-
|
|
33
|
-
- Schema file (schema.prisma / models.py)
|
|
34
|
-
- Migration files
|
|
35
|
-
- Update flags.json
|
|
1
|
+
# Phase: Database Schema
|
|
2
|
+
|
|
3
|
+
**Agent:** `database`
|
|
4
|
+
**Metadata:** `| prisma | migration |`
|
|
5
|
+
**Estimated time:** 30 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
|
|
9
|
+
Design database schema, create migrations, add indexes for performance.
|
|
10
|
+
|
|
11
|
+
## 📚 Context Loading
|
|
12
|
+
|
|
13
|
+
- ✅ `tech-stack.md` → Database ORM (Prisma, SQLAlchemy, etc.)
|
|
14
|
+
- ✅ `../proposal.md` → Data requirements
|
|
15
|
+
- ✅ Best practices for ORM
|
|
16
|
+
|
|
17
|
+
## 📝 Tasks
|
|
18
|
+
|
|
19
|
+
1. Design Prisma/SQLAlchemy schema
|
|
20
|
+
2. Create migration
|
|
21
|
+
3. Add indexes for frequently queried fields
|
|
22
|
+
4. Add foreign keys and constraints
|
|
23
|
+
|
|
24
|
+
## ✅ Success Criteria
|
|
25
|
+
|
|
26
|
+
- [ ] Schema designed and created
|
|
27
|
+
- [ ] Migration created and applied
|
|
28
|
+
- [ ] Indexes added for performance
|
|
29
|
+
- [ ] No migration conflicts
|
|
30
|
+
|
|
31
|
+
## 📤 Output
|
|
32
|
+
|
|
33
|
+
- Schema file (schema.prisma / models.py)
|
|
34
|
+
- Migration files
|
|
35
|
+
- Update flags.json
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# Phase: E2E Tests
|
|
2
|
-
|
|
3
|
-
**Agent:** `test-debug`
|
|
4
|
-
**Metadata:** `| e2e | playwright |`
|
|
5
|
-
**Estimated time:** 30 minutes
|
|
6
|
-
|
|
7
|
-
## 🎯 Purpose
|
|
8
|
-
End-to-end testing of complete user journeys.
|
|
9
|
-
|
|
10
|
-
## ✅ Success Criteria
|
|
11
|
-
- [ ] E2E tests pass
|
|
12
|
-
- [ ] Complete user journey tested
|
|
13
|
-
|
|
14
|
-
## 📤 Output
|
|
15
|
-
- E2E test files
|
|
16
|
-
- Update flags.json
|
|
1
|
+
# Phase: E2E Tests
|
|
2
|
+
|
|
3
|
+
**Agent:** `test-debug`
|
|
4
|
+
**Metadata:** `| e2e | playwright |`
|
|
5
|
+
**Estimated time:** 30 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
End-to-end testing of complete user journeys.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] E2E tests pass
|
|
12
|
+
- [ ] Complete user journey tested
|
|
13
|
+
|
|
14
|
+
## 📤 Output
|
|
15
|
+
- E2E test files
|
|
16
|
+
- Update flags.json
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# Phase: Fix Implementation
|
|
2
|
-
|
|
3
|
-
**Agent:** (varies based on bug location)
|
|
4
|
-
**Metadata:** `| bug-fix |`
|
|
5
|
-
**Estimated time:** 30 minutes
|
|
6
|
-
|
|
7
|
-
## 🎯 Purpose
|
|
8
|
-
Fix bug and restore intended functionality.
|
|
9
|
-
|
|
10
|
-
## ✅ Success Criteria
|
|
11
|
-
- [ ] Bug fixed
|
|
12
|
-
- [ ] Tests added to prevent regression
|
|
13
|
-
|
|
14
|
-
## 📤 Output
|
|
15
|
-
- Fixed code
|
|
16
|
-
- Tests
|
|
17
|
-
- Update flags.json
|
|
1
|
+
# Phase: Fix Implementation
|
|
2
|
+
|
|
3
|
+
**Agent:** (varies based on bug location)
|
|
4
|
+
**Metadata:** `| bug-fix |`
|
|
5
|
+
**Estimated time:** 30 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Fix bug and restore intended functionality.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] Bug fixed
|
|
12
|
+
- [ ] Tests added to prevent regression
|
|
13
|
+
|
|
14
|
+
## 📤 Output
|
|
15
|
+
- Fixed code
|
|
16
|
+
- Tests
|
|
17
|
+
- Update flags.json
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
# Phase: Frontend Integration
|
|
2
|
-
|
|
3
|
-
**Agent:** `frontend`
|
|
4
|
-
**Metadata:** `| api-work | TDD |`
|
|
5
|
-
**Estimated time:** 60 minutes
|
|
6
|
-
|
|
7
|
-
## 🎯 Purpose
|
|
8
|
-
Replace mockup data with real API calls using TanStack Query.
|
|
9
|
-
|
|
10
|
-
## ✅ Success Criteria
|
|
11
|
-
- [ ] Mockup replaced with real API
|
|
12
|
-
- [ ] Loading states working
|
|
13
|
-
- [ ] Error handling implemented
|
|
14
|
-
|
|
15
|
-
## 📤 Output
|
|
16
|
-
- Updated components
|
|
17
|
-
- Hooks for API calls
|
|
18
|
-
- Update flags.json
|
|
1
|
+
# Phase: Frontend Integration
|
|
2
|
+
|
|
3
|
+
**Agent:** `frontend`
|
|
4
|
+
**Metadata:** `| api-work | TDD |`
|
|
5
|
+
**Estimated time:** 60 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Replace mockup data with real API calls using TanStack Query.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] Mockup replaced with real API
|
|
12
|
+
- [ ] Loading states working
|
|
13
|
+
- [ ] Error handling implemented
|
|
14
|
+
|
|
15
|
+
## 📤 Output
|
|
16
|
+
- Updated components
|
|
17
|
+
- Hooks for API calls
|
|
18
|
+
- Update flags.json
|
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
# Phase: Frontend Mockup
|
|
2
|
-
|
|
3
|
-
**Agent:** `uxui-frontend`
|
|
4
|
-
**Metadata:** `| design-work | TDD | mockup |`
|
|
5
|
-
**Estimated time:** 90 minutes
|
|
6
|
-
|
|
7
|
-
## 📚 Context Loading Strategy
|
|
8
|
-
|
|
9
|
-
**Tier 1 - Critical (Always Load):**
|
|
10
|
-
- ✅ `tech-stack.md` → Package manager, React/Next.js versions
|
|
11
|
-
- ✅ `project.md` (Code Conventions, Testing Strategy sections)
|
|
12
|
-
- ✅ `ui-component-consistency.md` → Visual consistency patterns
|
|
13
|
-
|
|
14
|
-
**Tier 2 - Conditional (Metadata: design-work):**
|
|
15
|
-
- ✅ `design/index.md` → Design system overview
|
|
16
|
-
- ✅ `design/box-thinking.md` → Layout analysis
|
|
17
|
-
- ✅ `design/color-theory.md` → Color usage
|
|
18
|
-
- ✅ `design/spacing.md` → Spacing scale (8, 16, 24, 32, 40, 48px)
|
|
19
|
-
|
|
20
|
-
**Tier 3 - Skip (Not Needed):**
|
|
21
|
-
- ❌ `error-handling.md` → Not needed for mockup (no real API)
|
|
22
|
-
- ❌ `logging.md` → Not production code yet
|
|
23
|
-
|
|
24
|
-
**Token estimate:** ~7,000 tokens (vs 15,000 without filtering)
|
|
25
|
-
|
|
26
|
-
## 🎯 Purpose
|
|
27
|
-
|
|
28
|
-
Create UI components with mockup data. Focus on visual design, layout, and user experience without backend integration.
|
|
29
|
-
|
|
30
|
-
## 📝 Agent-Specific Instructions
|
|
31
|
-
|
|
32
|
-
**MANDATORY PRE-WORK (STEP 0-5 from CLAUDE.md):**
|
|
33
|
-
|
|
34
|
-
1. **Project Discovery:**
|
|
35
|
-
- Read: `domain/index.md` → Get project name
|
|
36
|
-
- Read: `domain/project/README.md` → Get core stack
|
|
37
|
-
- Read: `domain/project/best-practices/index.md` → Get relevant practices
|
|
38
|
-
- Read relevant best practices files
|
|
39
|
-
|
|
40
|
-
2. **Change Context:**
|
|
41
|
-
- Read: `../proposal.md` → Business requirements
|
|
42
|
-
- Read: `../.claude/context.md` → Change-specific tech
|
|
43
|
-
|
|
44
|
-
3. **Design Contexts (design-work flag):**
|
|
45
|
-
- Read ALL design contexts (listed in Tier 2 above)
|
|
46
|
-
|
|
47
|
-
4. **Box Thinking Analysis:**
|
|
48
|
-
- Identify boxes: containers, children, siblings
|
|
49
|
-
- Document relationships: nested, adjacent
|
|
50
|
-
- Plan space flow: spacing scale
|
|
51
|
-
- Plan responsive: stack/merge/compress
|
|
52
|
-
|
|
53
|
-
5. **Search for Existing Components:**
|
|
54
|
-
```bash
|
|
55
|
-
Glob: "**/*{Keyword}*.{tsx,jsx,vue}"
|
|
56
|
-
Grep: "[similar-pattern]"
|
|
57
|
-
```
|
|
58
|
-
- Decision: Reuse > Compose > Extend > Create New
|
|
59
|
-
- Extract design tokens from similar components
|
|
60
|
-
|
|
61
|
-
6. **Report Pre-Implementation:**
|
|
62
|
-
Provide detailed report covering steps 1-5 BEFORE writing code.
|
|
63
|
-
|
|
64
|
-
**IMPLEMENTATION:**
|
|
65
|
-
|
|
66
|
-
- Use **mockup data** for all dynamic content
|
|
67
|
-
- Follow TDD if applicable (see testing.md)
|
|
68
|
-
- Visual consistency: match existing components
|
|
69
|
-
- Loading states: skeleton loaders
|
|
70
|
-
- Error states: user-friendly messages (mockup errors)
|
|
71
|
-
- Responsive design: test 3 breakpoints minimum
|
|
72
|
-
|
|
73
|
-
**CRITICAL RULES:**
|
|
74
|
-
- ❌ NO hardcoded colors → ✅ Use theme tokens
|
|
75
|
-
- ❌ NO arbitrary spacing → ✅ Use spacing scale
|
|
76
|
-
- ❌ NO inconsistent icons → ✅ Match reference components
|
|
77
|
-
- ❌ NO creating duplicate components → ✅ Search and reuse first
|
|
78
|
-
|
|
79
|
-
## ✅ Success Criteria
|
|
80
|
-
|
|
81
|
-
- [ ] UI components created with mockup data
|
|
82
|
-
- [ ] Responsive design implemented (3 breakpoints)
|
|
83
|
-
- [ ] Visual consistency matches design system
|
|
84
|
-
- [ ] Component reuses existing UI primitives
|
|
85
|
-
- [ ] No hardcoded colors or spacing values
|
|
86
|
-
- [ ] Pre-implementation analysis completed
|
|
87
|
-
|
|
88
|
-
## 📤 Output
|
|
89
|
-
|
|
90
|
-
**Files created/modified:**
|
|
91
|
-
- List all component files created
|
|
92
|
-
- List all files modified
|
|
93
|
-
|
|
94
|
-
**Update flags.json:**
|
|
95
|
-
```json
|
|
96
|
-
{
|
|
97
|
-
"phases": {
|
|
98
|
-
"frontend_mockup": {
|
|
99
|
-
"status": "completed",
|
|
100
|
-
"completed_at": "{ISO-timestamp}",
|
|
101
|
-
"actual_minutes": {duration},
|
|
102
|
-
"tasks_completed": ["{task-ids}"],
|
|
103
|
-
"files_created": ["{file-paths}"],
|
|
104
|
-
"notes": "Summary of work done"
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
**Report to user:**
|
|
111
|
-
```
|
|
112
|
-
✅ Phase 1: Frontend Mockup completed!
|
|
113
|
-
|
|
114
|
-
⏱️ Time: {actual} minutes (estimated: 90)
|
|
115
|
-
|
|
116
|
-
📁 Files created:
|
|
117
|
-
{list-of-files}
|
|
118
|
-
|
|
119
|
-
✓ Tasks completed:
|
|
120
|
-
{list-of-task-ids}
|
|
121
|
-
|
|
122
|
-
📍 Next phase: #2 Accessibility Test (test-debug agent)
|
|
123
|
-
```
|
|
1
|
+
# Phase: Frontend Mockup
|
|
2
|
+
|
|
3
|
+
**Agent:** `uxui-frontend`
|
|
4
|
+
**Metadata:** `| design-work | TDD | mockup |`
|
|
5
|
+
**Estimated time:** 90 minutes
|
|
6
|
+
|
|
7
|
+
## 📚 Context Loading Strategy
|
|
8
|
+
|
|
9
|
+
**Tier 1 - Critical (Always Load):**
|
|
10
|
+
- ✅ `tech-stack.md` → Package manager, React/Next.js versions
|
|
11
|
+
- ✅ `project.md` (Code Conventions, Testing Strategy sections)
|
|
12
|
+
- ✅ `ui-component-consistency.md` → Visual consistency patterns
|
|
13
|
+
|
|
14
|
+
**Tier 2 - Conditional (Metadata: design-work):**
|
|
15
|
+
- ✅ `design/index.md` → Design system overview
|
|
16
|
+
- ✅ `design/box-thinking.md` → Layout analysis
|
|
17
|
+
- ✅ `design/color-theory.md` → Color usage
|
|
18
|
+
- ✅ `design/spacing.md` → Spacing scale (8, 16, 24, 32, 40, 48px)
|
|
19
|
+
|
|
20
|
+
**Tier 3 - Skip (Not Needed):**
|
|
21
|
+
- ❌ `error-handling.md` → Not needed for mockup (no real API)
|
|
22
|
+
- ❌ `logging.md` → Not production code yet
|
|
23
|
+
|
|
24
|
+
**Token estimate:** ~7,000 tokens (vs 15,000 without filtering)
|
|
25
|
+
|
|
26
|
+
## 🎯 Purpose
|
|
27
|
+
|
|
28
|
+
Create UI components with mockup data. Focus on visual design, layout, and user experience without backend integration.
|
|
29
|
+
|
|
30
|
+
## 📝 Agent-Specific Instructions
|
|
31
|
+
|
|
32
|
+
**MANDATORY PRE-WORK (STEP 0-5 from CLAUDE.md):**
|
|
33
|
+
|
|
34
|
+
1. **Project Discovery:**
|
|
35
|
+
- Read: `domain/index.md` → Get project name
|
|
36
|
+
- Read: `domain/project/README.md` → Get core stack
|
|
37
|
+
- Read: `domain/project/best-practices/index.md` → Get relevant practices
|
|
38
|
+
- Read relevant best practices files
|
|
39
|
+
|
|
40
|
+
2. **Change Context:**
|
|
41
|
+
- Read: `../proposal.md` → Business requirements
|
|
42
|
+
- Read: `../.claude/context.md` → Change-specific tech
|
|
43
|
+
|
|
44
|
+
3. **Design Contexts (design-work flag):**
|
|
45
|
+
- Read ALL design contexts (listed in Tier 2 above)
|
|
46
|
+
|
|
47
|
+
4. **Box Thinking Analysis:**
|
|
48
|
+
- Identify boxes: containers, children, siblings
|
|
49
|
+
- Document relationships: nested, adjacent
|
|
50
|
+
- Plan space flow: spacing scale
|
|
51
|
+
- Plan responsive: stack/merge/compress
|
|
52
|
+
|
|
53
|
+
5. **Search for Existing Components:**
|
|
54
|
+
```bash
|
|
55
|
+
Glob: "**/*{Keyword}*.{tsx,jsx,vue}"
|
|
56
|
+
Grep: "[similar-pattern]"
|
|
57
|
+
```
|
|
58
|
+
- Decision: Reuse > Compose > Extend > Create New
|
|
59
|
+
- Extract design tokens from similar components
|
|
60
|
+
|
|
61
|
+
6. **Report Pre-Implementation:**
|
|
62
|
+
Provide detailed report covering steps 1-5 BEFORE writing code.
|
|
63
|
+
|
|
64
|
+
**IMPLEMENTATION:**
|
|
65
|
+
|
|
66
|
+
- Use **mockup data** for all dynamic content
|
|
67
|
+
- Follow TDD if applicable (see testing.md)
|
|
68
|
+
- Visual consistency: match existing components
|
|
69
|
+
- Loading states: skeleton loaders
|
|
70
|
+
- Error states: user-friendly messages (mockup errors)
|
|
71
|
+
- Responsive design: test 3 breakpoints minimum
|
|
72
|
+
|
|
73
|
+
**CRITICAL RULES:**
|
|
74
|
+
- ❌ NO hardcoded colors → ✅ Use theme tokens
|
|
75
|
+
- ❌ NO arbitrary spacing → ✅ Use spacing scale
|
|
76
|
+
- ❌ NO inconsistent icons → ✅ Match reference components
|
|
77
|
+
- ❌ NO creating duplicate components → ✅ Search and reuse first
|
|
78
|
+
|
|
79
|
+
## ✅ Success Criteria
|
|
80
|
+
|
|
81
|
+
- [ ] UI components created with mockup data
|
|
82
|
+
- [ ] Responsive design implemented (3 breakpoints)
|
|
83
|
+
- [ ] Visual consistency matches design system
|
|
84
|
+
- [ ] Component reuses existing UI primitives
|
|
85
|
+
- [ ] No hardcoded colors or spacing values
|
|
86
|
+
- [ ] Pre-implementation analysis completed
|
|
87
|
+
|
|
88
|
+
## 📤 Output
|
|
89
|
+
|
|
90
|
+
**Files created/modified:**
|
|
91
|
+
- List all component files created
|
|
92
|
+
- List all files modified
|
|
93
|
+
|
|
94
|
+
**Update flags.json:**
|
|
95
|
+
```json
|
|
96
|
+
{
|
|
97
|
+
"phases": {
|
|
98
|
+
"frontend_mockup": {
|
|
99
|
+
"status": "completed",
|
|
100
|
+
"completed_at": "{ISO-timestamp}",
|
|
101
|
+
"actual_minutes": {duration},
|
|
102
|
+
"tasks_completed": ["{task-ids}"],
|
|
103
|
+
"files_created": ["{file-paths}"],
|
|
104
|
+
"notes": "Summary of work done"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Report to user:**
|
|
111
|
+
```
|
|
112
|
+
✅ Phase 1: Frontend Mockup completed!
|
|
113
|
+
|
|
114
|
+
⏱️ Time: {actual} minutes (estimated: 90)
|
|
115
|
+
|
|
116
|
+
📁 Files created:
|
|
117
|
+
{list-of-files}
|
|
118
|
+
|
|
119
|
+
✓ Tasks completed:
|
|
120
|
+
{list-of-task-ids}
|
|
121
|
+
|
|
122
|
+
📍 Next phase: #2 Accessibility Test (test-debug agent)
|
|
123
|
+
```
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# Phase: Manual Flow Test
|
|
2
|
-
|
|
3
|
-
**Agent:** `user`
|
|
4
|
-
**Metadata:** `| manual-test | flow |`
|
|
5
|
-
**Estimated time:** 20 minutes
|
|
6
|
-
|
|
7
|
-
## 🎯 Purpose
|
|
8
|
-
Manual testing of complete data flow (frontend → backend → database).
|
|
9
|
-
|
|
10
|
-
## ✅ Success Criteria
|
|
11
|
-
- [ ] Complete flow works
|
|
12
|
-
- [ ] Edge cases handled
|
|
13
|
-
|
|
14
|
-
## 📤 Output
|
|
15
|
-
- Update flags.json with results
|
|
1
|
+
# Phase: Manual Flow Test
|
|
2
|
+
|
|
3
|
+
**Agent:** `user`
|
|
4
|
+
**Metadata:** `| manual-test | flow |`
|
|
5
|
+
**Estimated time:** 20 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Manual testing of complete data flow (frontend → backend → database).
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] Complete flow works
|
|
12
|
+
- [ ] Edge cases handled
|
|
13
|
+
|
|
14
|
+
## 📤 Output
|
|
15
|
+
- Update flags.json with results
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# Phase: Manual UX Test
|
|
2
|
-
|
|
3
|
-
**Agent:** `user`
|
|
4
|
-
**Metadata:** `| manual-test | ux |`
|
|
5
|
-
**Estimated time:** 15 minutes
|
|
6
|
-
|
|
7
|
-
## 🎯 Purpose
|
|
8
|
-
Manual testing of UX, visual consistency, and responsive design.
|
|
9
|
-
|
|
10
|
-
## ✅ Success Criteria
|
|
11
|
-
- [ ] Visual consistency verified
|
|
12
|
-
- [ ] Responsive design tested (3 breakpoints)
|
|
13
|
-
- [ ] User journey works smoothly
|
|
14
|
-
|
|
15
|
-
## 📤 Output
|
|
16
|
-
- Update flags.json with issues found/fixed
|
|
1
|
+
# Phase: Manual UX Test
|
|
2
|
+
|
|
3
|
+
**Agent:** `user`
|
|
4
|
+
**Metadata:** `| manual-test | ux |`
|
|
5
|
+
**Estimated time:** 15 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Manual testing of UX, visual consistency, and responsive design.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] Visual consistency verified
|
|
12
|
+
- [ ] Responsive design tested (3 breakpoints)
|
|
13
|
+
- [ ] User journey works smoothly
|
|
14
|
+
|
|
15
|
+
## 📤 Output
|
|
16
|
+
- Update flags.json with issues found/fixed
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# Phase: Refactor Implementation
|
|
2
|
-
|
|
3
|
-
**Agent:** `test-debug`
|
|
4
|
-
**Metadata:** `| refactor |`
|
|
5
|
-
**Estimated time:** 60 minutes
|
|
6
|
-
|
|
7
|
-
## 🎯 Purpose
|
|
8
|
-
Refactor code to improve quality.
|
|
9
|
-
|
|
10
|
-
## ✅ Success Criteria
|
|
11
|
-
- [ ] Code improved
|
|
12
|
-
- [ ] All tests pass
|
|
13
|
-
- [ ] No functionality changes
|
|
14
|
-
|
|
15
|
-
## 📤 Output
|
|
16
|
-
- Refactored code
|
|
17
|
-
- Update flags.json
|
|
1
|
+
# Phase: Refactor Implementation
|
|
2
|
+
|
|
3
|
+
**Agent:** `test-debug`
|
|
4
|
+
**Metadata:** `| refactor |`
|
|
5
|
+
**Estimated time:** 60 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Refactor code to improve quality.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] Code improved
|
|
12
|
+
- [ ] All tests pass
|
|
13
|
+
- [ ] No functionality changes
|
|
14
|
+
|
|
15
|
+
## 📤 Output
|
|
16
|
+
- Refactored code
|
|
17
|
+
- Update flags.json
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
# Phase: Refactor
|
|
2
|
-
|
|
3
|
-
**Agent:** `test-debug`
|
|
4
|
-
**Metadata:** `| refactor |`
|
|
5
|
-
**Estimated time:** 20 minutes
|
|
6
|
-
|
|
7
|
-
## 🎯 Purpose
|
|
8
|
-
Improve code quality without changing functionality.
|
|
9
|
-
|
|
10
|
-
## ✅ Success Criteria
|
|
11
|
-
- [ ] Code refactored
|
|
12
|
-
- [ ] All tests still pass
|
|
13
|
-
|
|
14
|
-
## 📤 Output
|
|
15
|
-
- Refactored code
|
|
16
|
-
- Update flags.json
|
|
1
|
+
# Phase: Refactor
|
|
2
|
+
|
|
3
|
+
**Agent:** `test-debug`
|
|
4
|
+
**Metadata:** `| refactor |`
|
|
5
|
+
**Estimated time:** 20 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Improve code quality without changing functionality.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] Code refactored
|
|
12
|
+
- [ ] All tests still pass
|
|
13
|
+
|
|
14
|
+
## 📤 Output
|
|
15
|
+
- Refactored code
|
|
16
|
+
- Update flags.json
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# Phase: Regression Tests
|
|
2
|
-
|
|
3
|
-
**Agent:** `test-debug`
|
|
4
|
-
**Metadata:** `| automated | regression |`
|
|
5
|
-
**Estimated time:** 10 minutes
|
|
6
|
-
|
|
7
|
-
## 🎯 Purpose
|
|
8
|
-
Ensure refactoring didn't break anything.
|
|
9
|
-
|
|
10
|
-
## ✅ Success Criteria
|
|
11
|
-
- [ ] All regression tests pass
|
|
12
|
-
|
|
13
|
-
## 📤 Output
|
|
14
|
-
- Test report
|
|
15
|
-
- Update flags.json
|
|
1
|
+
# Phase: Regression Tests
|
|
2
|
+
|
|
3
|
+
**Agent:** `test-debug`
|
|
4
|
+
**Metadata:** `| automated | regression |`
|
|
5
|
+
**Estimated time:** 10 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Ensure refactoring didn't break anything.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] All regression tests pass
|
|
12
|
+
|
|
13
|
+
## 📤 Output
|
|
14
|
+
- Test report
|
|
15
|
+
- Update flags.json
|