@champpaba/claude-agent-kit 2.6.0 → 2.7.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.
Files changed (72) hide show
  1. package/.claude/CLAUDE.md +103 -58
  2. package/.claude/agents/02-uxui-frontend.md +5 -6
  3. package/.claude/agents/07-ux-tester.md +407 -0
  4. package/.claude/commands/cdev.md +113 -8
  5. package/.claude/commands/csetup.md +13 -13
  6. package/.claude/commands/cview.md +364 -364
  7. package/.claude/commands/designsetup.md +171 -48
  8. package/.claude/commands/extract.md +382 -668
  9. package/.claude/commands/pageplan.md +25 -27
  10. package/.claude/contexts/design/accessibility.md +611 -611
  11. package/.claude/contexts/design/box-thinking.md +4 -4
  12. package/.claude/contexts/design/color-theory.md +5 -5
  13. package/.claude/contexts/design/index.md +9 -9
  14. package/.claude/contexts/design/layout.md +400 -400
  15. package/.claude/contexts/design/responsive.md +551 -551
  16. package/.claude/contexts/design/shadows.md +522 -522
  17. package/.claude/contexts/design/spacing.md +4 -4
  18. package/.claude/contexts/design/typography.md +465 -465
  19. package/.claude/contexts/domain/README.md +164 -164
  20. package/.claude/contexts/patterns/agent-coordination.md +388 -388
  21. package/.claude/contexts/patterns/agent-discovery.md +1 -1
  22. package/.claude/contexts/patterns/animation-patterns.md +3 -3
  23. package/.claude/contexts/patterns/development-principles.md +513 -513
  24. package/.claude/contexts/patterns/error-handling.md +478 -478
  25. package/.claude/contexts/patterns/logging.md +424 -424
  26. package/.claude/contexts/patterns/tdd-classification.md +516 -516
  27. package/.claude/contexts/patterns/testing.md +413 -413
  28. package/.claude/contexts/patterns/ui-component-consistency.md +3 -3
  29. package/.claude/lib/README.md +1 -1
  30. package/.claude/lib/agent-executor.md +223 -0
  31. package/.claude/lib/context-loading-protocol.md +5 -6
  32. package/.claude/lib/detailed-guides/agent-system.md +4 -4
  33. package/.claude/lib/detailed-guides/best-practices-system.md +5 -4
  34. package/.claude/lib/detailed-guides/context-optimization.md +21 -22
  35. package/.claude/lib/detailed-guides/design-system.md +6 -5
  36. package/.claude/lib/detailed-guides/page-planning.md +6 -6
  37. package/.claude/lib/document-loader.md +32 -47
  38. package/.claude/lib/task-analyzer.md +194 -1
  39. package/.claude/lib/tdd-classifier.md +345 -345
  40. package/.claude/lib/validation-gates.md +484 -484
  41. package/.claude/settings.local.json +42 -42
  42. package/.claude/templates/PROJECT_STATUS.template.yml +1 -1
  43. package/.claude/templates/STYLE_GUIDE.template.md +7 -7
  44. package/.claude/templates/context-template.md +45 -45
  45. package/.claude/templates/design-context-template.md +22 -29
  46. package/.claude/templates/flags-template.json +42 -42
  47. package/.claude/templates/page-plan-example.md +9 -9
  48. package/.claude/templates/phases-sections/accessibility-test.md +17 -17
  49. package/.claude/templates/phases-sections/api-design.md +37 -37
  50. package/.claude/templates/phases-sections/backend-tests.md +16 -16
  51. package/.claude/templates/phases-sections/backend.md +37 -37
  52. package/.claude/templates/phases-sections/business-logic-validation.md +16 -16
  53. package/.claude/templates/phases-sections/component-tests.md +17 -17
  54. package/.claude/templates/phases-sections/contract-backend.md +16 -16
  55. package/.claude/templates/phases-sections/contract-frontend.md +16 -16
  56. package/.claude/templates/phases-sections/database.md +35 -35
  57. package/.claude/templates/phases-sections/e2e-tests.md +16 -16
  58. package/.claude/templates/phases-sections/fix-implementation.md +17 -17
  59. package/.claude/templates/phases-sections/frontend-integration.md +18 -18
  60. package/.claude/templates/phases-sections/manual-flow-test.md +15 -15
  61. package/.claude/templates/phases-sections/manual-ux-test.md +16 -16
  62. package/.claude/templates/phases-sections/refactor-implementation.md +17 -17
  63. package/.claude/templates/phases-sections/refactor.md +16 -16
  64. package/.claude/templates/phases-sections/regression-tests.md +15 -15
  65. package/.claude/templates/phases-sections/responsive-test.md +16 -16
  66. package/.claude/templates/phases-sections/script-implementation.md +43 -43
  67. package/.claude/templates/phases-sections/test-coverage.md +16 -16
  68. package/.claude/templates/phases-sections/user-approval.md +14 -14
  69. package/.claude/templates/phases-sections/ux-testing.md +164 -0
  70. package/LICENSE +21 -21
  71. package/README.md +3 -1
  72. package/package.json +1 -1
@@ -1,37 +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
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
@@ -1,16 +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
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
@@ -1,17 +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
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
@@ -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,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
@@ -1,16 +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
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
@@ -1,43 +1,43 @@
1
- # Phase: Script Implementation
2
-
3
- **Agent:** `backend` (reused for scripts)
4
- **Metadata:** `| TDD | script | cli |`
5
- **Estimated time:** 60 minutes
6
-
7
- ## 🎯 Purpose
8
-
9
- Implement CLI tool or background script with proper error handling, logging, and user-friendly output.
10
-
11
- ## 📚 Context Loading
12
-
13
- - ✅ `tech-stack.md` → Python/Node.js version, package manager
14
- - ✅ `testing.md` (TDD: RED-GREEN-REFACTOR)
15
- - ✅ `error-handling.md` → Network/file errors
16
- - ✅ `logging.md` → CLI logging patterns
17
- - ❌ Skip: API-specific contexts
18
-
19
- ## 📝 Follow TDD
20
-
21
- This is a **CLI script**, not an API.
22
-
23
- Focus on:
24
- - CLI argument parsing (Click/argparse/yargs)
25
- - Progress indicators (tqdm/ora)
26
- - Exit codes (0 = success, 1 = error)
27
- - User-friendly error messages
28
- - File I/O operations
29
- - Network requests (if applicable)
30
-
31
- ## ✅ Success Criteria
32
-
33
- - [ ] Script functionality implemented
34
- - [ ] CLI arguments working
35
- - [ ] Progress indicators shown
36
- - [ ] Error handling implemented
37
- - [ ] Tests pass (≥80% coverage)
38
-
39
- ## 📤 Output
40
-
41
- - Script files
42
- - Test files
43
- - Update flags.json
1
+ # Phase: Script Implementation
2
+
3
+ **Agent:** `backend` (reused for scripts)
4
+ **Metadata:** `| TDD | script | cli |`
5
+ **Estimated time:** 60 minutes
6
+
7
+ ## 🎯 Purpose
8
+
9
+ Implement CLI tool or background script with proper error handling, logging, and user-friendly output.
10
+
11
+ ## 📚 Context Loading
12
+
13
+ - ✅ `tech-stack.md` → Python/Node.js version, package manager
14
+ - ✅ `testing.md` (TDD: RED-GREEN-REFACTOR)
15
+ - ✅ `error-handling.md` → Network/file errors
16
+ - ✅ `logging.md` → CLI logging patterns
17
+ - ❌ Skip: API-specific contexts
18
+
19
+ ## 📝 Follow TDD
20
+
21
+ This is a **CLI script**, not an API.
22
+
23
+ Focus on:
24
+ - CLI argument parsing (Click/argparse/yargs)
25
+ - Progress indicators (tqdm/ora)
26
+ - Exit codes (0 = success, 1 = error)
27
+ - User-friendly error messages
28
+ - File I/O operations
29
+ - Network requests (if applicable)
30
+
31
+ ## ✅ Success Criteria
32
+
33
+ - [ ] Script functionality implemented
34
+ - [ ] CLI arguments working
35
+ - [ ] Progress indicators shown
36
+ - [ ] Error handling implemented
37
+ - [ ] Tests pass (≥80% coverage)
38
+
39
+ ## 📤 Output
40
+
41
+ - Script files
42
+ - Test files
43
+ - Update flags.json