@champpaba/claude-agent-kit 1.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/LICENSE +21 -0
- package/README.md +561 -0
- package/bin/cli.js +61 -0
- package/lib/init.js +52 -0
- package/lib/update.js +73 -0
- package/package.json +47 -0
- package/template/.claude/CHANGELOG-v1.1.1.md +259 -0
- package/template/.claude/CLAUDE.md +329 -0
- package/template/.claude/agents/01-integration.md +797 -0
- package/template/.claude/agents/02-uxui-frontend.md +899 -0
- package/template/.claude/agents/03-test-debug.md +759 -0
- package/template/.claude/agents/04-frontend.md +1099 -0
- package/template/.claude/agents/05-backend.md +1217 -0
- package/template/.claude/agents/06-database.md +969 -0
- package/template/.claude/commands/agentsetup.md +1464 -0
- package/template/.claude/commands/cdev.md +327 -0
- package/template/.claude/commands/csetup.md +447 -0
- package/template/.claude/commands/cstatus.md +60 -0
- package/template/.claude/commands/cview.md +364 -0
- package/template/.claude/commands/psetup.md +101 -0
- package/template/.claude/contexts/design/accessibility.md +611 -0
- package/template/.claude/contexts/design/box-thinking.md +553 -0
- package/template/.claude/contexts/design/color-theory.md +498 -0
- package/template/.claude/contexts/design/index.md +247 -0
- package/template/.claude/contexts/design/layout.md +400 -0
- package/template/.claude/contexts/design/responsive.md +551 -0
- package/template/.claude/contexts/design/shadows.md +522 -0
- package/template/.claude/contexts/design/spacing.md +428 -0
- package/template/.claude/contexts/design/typography.md +465 -0
- package/template/.claude/contexts/domain/README.md +164 -0
- package/template/.claude/contexts/patterns/agent-coordination.md +388 -0
- package/template/.claude/contexts/patterns/agent-discovery.md +182 -0
- package/template/.claude/contexts/patterns/change-workflow.md +538 -0
- package/template/.claude/contexts/patterns/code-standards.md +515 -0
- package/template/.claude/contexts/patterns/development-principles.md +513 -0
- package/template/.claude/contexts/patterns/error-handling.md +478 -0
- package/template/.claude/contexts/patterns/error-recovery.md +365 -0
- package/template/.claude/contexts/patterns/frontend-component-strategy.md +365 -0
- package/template/.claude/contexts/patterns/git-workflow.md +207 -0
- package/template/.claude/contexts/patterns/logging.md +424 -0
- package/template/.claude/contexts/patterns/task-breakdown.md +452 -0
- package/template/.claude/contexts/patterns/task-classification.md +523 -0
- package/template/.claude/contexts/patterns/tdd-classification.md +516 -0
- package/template/.claude/contexts/patterns/testing.md +413 -0
- package/template/.claude/contexts/patterns/ui-component-consistency.md +304 -0
- package/template/.claude/contexts/patterns/validation-framework.md +776 -0
- package/template/.claude/lib/README.md +39 -0
- package/template/.claude/lib/agent-executor.md +258 -0
- package/template/.claude/lib/agent-router.md +572 -0
- package/template/.claude/lib/flags-updater.md +469 -0
- package/template/.claude/lib/tdd-classifier.md +345 -0
- package/template/.claude/lib/validation-gates.md +484 -0
- package/template/.claude/settings.local.json +42 -0
- package/template/.claude/templates/context-template.md +45 -0
- package/template/.claude/templates/flags-template.json +42 -0
- package/template/.claude/templates/phase-templates.json +124 -0
- package/template/.claude/templates/phases-sections/accessibility-test.md +17 -0
- package/template/.claude/templates/phases-sections/api-design.md +37 -0
- package/template/.claude/templates/phases-sections/backend-tests.md +16 -0
- package/template/.claude/templates/phases-sections/backend.md +37 -0
- package/template/.claude/templates/phases-sections/business-logic-validation.md +16 -0
- package/template/.claude/templates/phases-sections/component-tests.md +17 -0
- package/template/.claude/templates/phases-sections/contract-backend.md +16 -0
- package/template/.claude/templates/phases-sections/contract-frontend.md +16 -0
- package/template/.claude/templates/phases-sections/database.md +35 -0
- package/template/.claude/templates/phases-sections/documentation.md +17 -0
- package/template/.claude/templates/phases-sections/e2e-tests.md +16 -0
- package/template/.claude/templates/phases-sections/fix-implementation.md +17 -0
- package/template/.claude/templates/phases-sections/frontend-integration.md +18 -0
- package/template/.claude/templates/phases-sections/frontend-mockup.md +123 -0
- package/template/.claude/templates/phases-sections/manual-flow-test.md +15 -0
- package/template/.claude/templates/phases-sections/manual-ux-test.md +16 -0
- package/template/.claude/templates/phases-sections/refactor-implementation.md +17 -0
- package/template/.claude/templates/phases-sections/refactor.md +16 -0
- package/template/.claude/templates/phases-sections/regression-tests.md +15 -0
- package/template/.claude/templates/phases-sections/report.md +16 -0
- package/template/.claude/templates/phases-sections/responsive-test.md +16 -0
- package/template/.claude/templates/phases-sections/script-implementation.md +43 -0
- package/template/.claude/templates/phases-sections/test-coverage.md +16 -0
- package/template/.claude/templates/phases-sections/user-approval.md +14 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"templates": {
|
|
4
|
+
"full-stack": {
|
|
5
|
+
"name": "Full-Stack Feature",
|
|
6
|
+
"description": "Complete feature with frontend UI, backend API, and database",
|
|
7
|
+
"phases": [
|
|
8
|
+
"frontend-mockup",
|
|
9
|
+
"accessibility-test",
|
|
10
|
+
"manual-ux-test",
|
|
11
|
+
"business-logic-validation",
|
|
12
|
+
"user-approval",
|
|
13
|
+
"api-design",
|
|
14
|
+
"backend",
|
|
15
|
+
"database",
|
|
16
|
+
"backend-tests",
|
|
17
|
+
"contract-backend",
|
|
18
|
+
"frontend-integration",
|
|
19
|
+
"contract-frontend",
|
|
20
|
+
"e2e-tests",
|
|
21
|
+
"manual-flow-test",
|
|
22
|
+
"refactor",
|
|
23
|
+
"regression-tests",
|
|
24
|
+
"test-coverage",
|
|
25
|
+
"documentation",
|
|
26
|
+
"report"
|
|
27
|
+
],
|
|
28
|
+
"total_phases": 19,
|
|
29
|
+
"estimated_minutes": 420
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
"frontend-only": {
|
|
33
|
+
"name": "Frontend Only",
|
|
34
|
+
"description": "UI components with mockup data, no backend integration",
|
|
35
|
+
"phases": [
|
|
36
|
+
"frontend-mockup",
|
|
37
|
+
"accessibility-test",
|
|
38
|
+
"manual-ux-test",
|
|
39
|
+
"business-logic-validation",
|
|
40
|
+
"user-approval",
|
|
41
|
+
"component-tests",
|
|
42
|
+
"responsive-test",
|
|
43
|
+
"refactor",
|
|
44
|
+
"test-coverage",
|
|
45
|
+
"documentation",
|
|
46
|
+
"report"
|
|
47
|
+
],
|
|
48
|
+
"total_phases": 11,
|
|
49
|
+
"estimated_minutes": 195
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
"backend-only": {
|
|
53
|
+
"name": "Backend Only",
|
|
54
|
+
"description": "API endpoints and database without frontend",
|
|
55
|
+
"phases": [
|
|
56
|
+
"api-design",
|
|
57
|
+
"backend",
|
|
58
|
+
"database",
|
|
59
|
+
"backend-tests",
|
|
60
|
+
"contract-backend",
|
|
61
|
+
"e2e-api-tests",
|
|
62
|
+
"refactor",
|
|
63
|
+
"regression-tests",
|
|
64
|
+
"documentation",
|
|
65
|
+
"report"
|
|
66
|
+
],
|
|
67
|
+
"total_phases": 10,
|
|
68
|
+
"estimated_minutes": 210
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
"script-only": {
|
|
72
|
+
"name": "Script/CLI Tool",
|
|
73
|
+
"description": "Command-line tool or background script",
|
|
74
|
+
"phases": [
|
|
75
|
+
"script-implementation",
|
|
76
|
+
"automated-tests",
|
|
77
|
+
"manual-testing",
|
|
78
|
+
"business-logic-validation",
|
|
79
|
+
"refactor",
|
|
80
|
+
"test-coverage",
|
|
81
|
+
"documentation"
|
|
82
|
+
],
|
|
83
|
+
"total_phases": 7,
|
|
84
|
+
"estimated_minutes": 150
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
"bug-fix": {
|
|
88
|
+
"name": "Bug Fix",
|
|
89
|
+
"description": "Fix existing functionality",
|
|
90
|
+
"phases": [
|
|
91
|
+
"fix-implementation",
|
|
92
|
+
"unit-tests",
|
|
93
|
+
"manual-verification",
|
|
94
|
+
"regression-tests",
|
|
95
|
+
"report"
|
|
96
|
+
],
|
|
97
|
+
"total_phases": 5,
|
|
98
|
+
"estimated_minutes": 60
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
"refactor": {
|
|
102
|
+
"name": "Refactoring",
|
|
103
|
+
"description": "Improve code quality without changing functionality",
|
|
104
|
+
"phases": [
|
|
105
|
+
"refactor-implementation",
|
|
106
|
+
"regression-tests",
|
|
107
|
+
"documentation",
|
|
108
|
+
"report"
|
|
109
|
+
],
|
|
110
|
+
"total_phases": 4,
|
|
111
|
+
"estimated_minutes": 90
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
"detection_keywords": {
|
|
116
|
+
"frontend": ["component", "page", "ui", "form", "button", "layout", "responsive", "css", "style", "tsx", "jsx", "vue"],
|
|
117
|
+
"backend": ["api", "endpoint", "route", "handler", "server", "backend", "middleware", "controller"],
|
|
118
|
+
"database": ["database", "schema", "migration", "prisma", "model", "query", "sql", "table"],
|
|
119
|
+
"api_integration": ["fetch", "axios", "api call", "integration", "connect to", "http request"],
|
|
120
|
+
"script": ["cli", "command", "script", "automation", "batch", "cron", "job", "worker"],
|
|
121
|
+
"bug_fix": ["bug", "fix", "issue", "error", "broken", "crash"],
|
|
122
|
+
"refactor": ["refactor", "cleanup", "optimize", "improve", "restructure", "reorganize"]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Phase: Accessibility Test
|
|
2
|
+
|
|
3
|
+
**Agent:** `test-debug`
|
|
4
|
+
**Metadata:** `| automated | accessibility |`
|
|
5
|
+
**Estimated time:** 10 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Run automated accessibility tests (Lighthouse, axe-core).
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] Lighthouse score ≥ 95
|
|
12
|
+
- [ ] Contrast ratios pass WCAG AAA
|
|
13
|
+
- [ ] ARIA labels complete
|
|
14
|
+
|
|
15
|
+
## 📤 Output
|
|
16
|
+
- Test report
|
|
17
|
+
- Update flags.json
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Phase: API Specification
|
|
2
|
+
|
|
3
|
+
**Agent:** `integration`
|
|
4
|
+
**Metadata:** `| api-design |`
|
|
5
|
+
**Estimated time:** 30 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
|
|
9
|
+
Create OpenAPI 3.0 specification for all API endpoints. Define request/response schemas, validation rules, and error responses.
|
|
10
|
+
|
|
11
|
+
## 📚 Context Loading
|
|
12
|
+
|
|
13
|
+
- ✅ `../proposal.md` → Business requirements
|
|
14
|
+
- ✅ `../tasks.md` → API endpoints to implement
|
|
15
|
+
- ✅ Frontend mockup code → Data requirements
|
|
16
|
+
- ⚠️ `error-handling.md` → API error patterns
|
|
17
|
+
|
|
18
|
+
## 📝 Tasks
|
|
19
|
+
|
|
20
|
+
1. Analyze frontend mockup → Determine data needs
|
|
21
|
+
2. Design API endpoints (RESTful)
|
|
22
|
+
3. Define request/response schemas (JSON Schema)
|
|
23
|
+
4. Define error responses (4xx, 5xx)
|
|
24
|
+
5. Create OpenAPI 3.0 spec file
|
|
25
|
+
|
|
26
|
+
## ✅ Success Criteria
|
|
27
|
+
|
|
28
|
+
- [ ] OpenAPI 3.0 spec complete
|
|
29
|
+
- [ ] All endpoints documented
|
|
30
|
+
- [ ] Request/response schemas defined with examples
|
|
31
|
+
- [ ] Error responses defined
|
|
32
|
+
|
|
33
|
+
## 📤 Output
|
|
34
|
+
|
|
35
|
+
- `.claude/openapi.yaml` (OpenAPI 3.0 spec)
|
|
36
|
+
- API documentation (Swagger UI / Redoc)
|
|
37
|
+
- Update flags.json
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Phase: Backend Tests
|
|
2
|
+
|
|
3
|
+
**Agent:** `test-debug`
|
|
4
|
+
**Metadata:** `| automated | TDD |`
|
|
5
|
+
**Estimated time:** 15 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Run unit and integration tests for backend.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] All tests pass
|
|
12
|
+
- [ ] Coverage ≥ 80%
|
|
13
|
+
|
|
14
|
+
## 📤 Output
|
|
15
|
+
- Coverage report
|
|
16
|
+
- Update flags.json
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Phase: Backend Implementation
|
|
2
|
+
|
|
3
|
+
**Agent:** `backend`
|
|
4
|
+
**Metadata:** `| TDD | api-work | production |`
|
|
5
|
+
**Estimated time:** 120 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
|
|
9
|
+
Implement API endpoints following OpenAPI specification. Include business logic, validation, error handling, and logging.
|
|
10
|
+
|
|
11
|
+
## 📚 Context Loading
|
|
12
|
+
|
|
13
|
+
- ✅ `tech-stack.md` → Package manager, framework version
|
|
14
|
+
- ✅ `.claude/openapi.yaml` → API contract
|
|
15
|
+
- ✅ `testing.md` (RED-GREEN-REFACTOR section)
|
|
16
|
+
- ✅ `error-handling.md` → API error patterns
|
|
17
|
+
- ✅ `logging.md` → Production logging
|
|
18
|
+
|
|
19
|
+
## 📝 Follow TDD (RED → GREEN → REFACTOR)
|
|
20
|
+
|
|
21
|
+
1. **RED:** Write failing tests first
|
|
22
|
+
2. **GREEN:** Implement to pass tests
|
|
23
|
+
3. **REFACTOR:** Clean up code
|
|
24
|
+
|
|
25
|
+
## ✅ Success Criteria
|
|
26
|
+
|
|
27
|
+
- [ ] All endpoints implemented (match OpenAPI spec)
|
|
28
|
+
- [ ] All tests pass (TDD: RED → GREEN → REFACTOR)
|
|
29
|
+
- [ ] Error handling implemented
|
|
30
|
+
- [ ] Logging added
|
|
31
|
+
- [ ] Code coverage ≥ 80%
|
|
32
|
+
|
|
33
|
+
## 📤 Output
|
|
34
|
+
|
|
35
|
+
- API routes files
|
|
36
|
+
- Tests files
|
|
37
|
+
- Update flags.json
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Phase: Business Logic Validation
|
|
2
|
+
|
|
3
|
+
**Agent:** `integration`
|
|
4
|
+
**Metadata:** `| validation |`
|
|
5
|
+
**Estimated time:** 10 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Validate implementation matches business requirements from proposal.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] All requirements from proposal covered
|
|
12
|
+
- [ ] No discrepancies found
|
|
13
|
+
|
|
14
|
+
## 📤 Output
|
|
15
|
+
- Validation report
|
|
16
|
+
- Update flags.json
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Phase: Component Tests
|
|
2
|
+
|
|
3
|
+
**Agent:** `test-debug`
|
|
4
|
+
**Metadata:** `| unit-test | frontend |`
|
|
5
|
+
**Estimated time:** 20 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Write unit tests for frontend components.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] All component tests pass
|
|
12
|
+
- [ ] Coverage ≥ 70%
|
|
13
|
+
|
|
14
|
+
## 📤 Output
|
|
15
|
+
- Test files
|
|
16
|
+
- Coverage report
|
|
17
|
+
- Update flags.json
|
|
@@ -0,0 +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
|
|
@@ -0,0 +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
|
|
@@ -0,0 +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
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Phase: Documentation
|
|
2
|
+
|
|
3
|
+
**Agent:** `integration`
|
|
4
|
+
**Metadata:** `| documentation |`
|
|
5
|
+
**Estimated time:** 15 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Update documentation (README, JSDoc, API docs).
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] README updated
|
|
12
|
+
- [ ] JSDoc comments added
|
|
13
|
+
- [ ] API docs generated
|
|
14
|
+
|
|
15
|
+
## 📤 Output
|
|
16
|
+
- Documentation files
|
|
17
|
+
- Update flags.json
|
|
@@ -0,0 +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
|
|
@@ -0,0 +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
|
|
@@ -0,0 +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
|
|
@@ -0,0 +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
|
+
```
|
|
@@ -0,0 +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
|
|
@@ -0,0 +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
|
|
@@ -0,0 +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
|
|
@@ -0,0 +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
|
|
@@ -0,0 +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
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Phase: Final Report
|
|
2
|
+
|
|
3
|
+
**Agent:** `integration`
|
|
4
|
+
**Metadata:** `| report |`
|
|
5
|
+
**Estimated time:** 10 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Generate verbose report for archive.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] Report generated with all stats
|
|
12
|
+
- [ ] Ready to archive
|
|
13
|
+
|
|
14
|
+
## 📤 Output
|
|
15
|
+
- .claude/report.md
|
|
16
|
+
- Update flags.json
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Phase: Responsive Test
|
|
2
|
+
|
|
3
|
+
**Agent:** `user`
|
|
4
|
+
**Metadata:** `| manual-test | responsive |`
|
|
5
|
+
**Estimated time:** 15 minutes
|
|
6
|
+
|
|
7
|
+
## 🎯 Purpose
|
|
8
|
+
Manual testing of responsive design across breakpoints.
|
|
9
|
+
|
|
10
|
+
## ✅ Success Criteria
|
|
11
|
+
- [ ] Desktop layout works
|
|
12
|
+
- [ ] Tablet layout works
|
|
13
|
+
- [ ] Mobile layout works
|
|
14
|
+
|
|
15
|
+
## 📤 Output
|
|
16
|
+
- Update flags.json with test results
|