moicle 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.
Files changed (78) hide show
  1. package/README.md +201 -0
  2. package/assets/agents/developers/flutter-mobile-dev.md +69 -0
  3. package/assets/agents/developers/go-backend-dev.md +57 -0
  4. package/assets/agents/developers/laravel-backend-dev.md +123 -0
  5. package/assets/agents/developers/react-frontend-dev.md +69 -0
  6. package/assets/agents/developers/remix-fullstack-dev.md +69 -0
  7. package/assets/agents/utilities/api-designer.md +76 -0
  8. package/assets/agents/utilities/clean-architect.md +83 -0
  9. package/assets/agents/utilities/code-reviewer.md +76 -0
  10. package/assets/agents/utilities/db-designer.md +68 -0
  11. package/assets/agents/utilities/devops.md +71 -0
  12. package/assets/agents/utilities/docs-writer.md +75 -0
  13. package/assets/agents/utilities/perf-optimizer.md +87 -0
  14. package/assets/agents/utilities/refactor.md +173 -0
  15. package/assets/agents/utilities/security-audit.md +203 -0
  16. package/assets/agents/utilities/test-writer.md +139 -0
  17. package/assets/architecture/clean-architecture.md +143 -0
  18. package/assets/architecture/flutter-mobile.md +304 -0
  19. package/assets/architecture/go-backend.md +217 -0
  20. package/assets/architecture/laravel-backend.md +303 -0
  21. package/assets/architecture/monorepo.md +162 -0
  22. package/assets/architecture/react-frontend.md +268 -0
  23. package/assets/architecture/remix-fullstack.md +272 -0
  24. package/assets/commands/bootstrap.md +98 -0
  25. package/assets/commands/brainstorm.md +440 -0
  26. package/assets/skills/feature-workflow/SKILL.md +298 -0
  27. package/assets/skills/hotfix-workflow/SKILL.md +368 -0
  28. package/assets/templates/flutter/CLAUDE.md +454 -0
  29. package/assets/templates/go-gin/CLAUDE.md +244 -0
  30. package/assets/templates/monorepo/CLAUDE.md +362 -0
  31. package/assets/templates/react-vite/CLAUDE.md +304 -0
  32. package/assets/templates/remix/CLAUDE.md +304 -0
  33. package/bin/cli.js +76 -0
  34. package/dist/commands/disable.d.ts +3 -0
  35. package/dist/commands/disable.d.ts.map +1 -0
  36. package/dist/commands/disable.js +188 -0
  37. package/dist/commands/disable.js.map +1 -0
  38. package/dist/commands/enable.d.ts +3 -0
  39. package/dist/commands/enable.d.ts.map +1 -0
  40. package/dist/commands/enable.js +191 -0
  41. package/dist/commands/enable.js.map +1 -0
  42. package/dist/commands/install.d.ts +3 -0
  43. package/dist/commands/install.d.ts.map +1 -0
  44. package/dist/commands/install.js +290 -0
  45. package/dist/commands/install.js.map +1 -0
  46. package/dist/commands/list.d.ts +3 -0
  47. package/dist/commands/list.d.ts.map +1 -0
  48. package/dist/commands/list.js +75 -0
  49. package/dist/commands/list.js.map +1 -0
  50. package/dist/commands/postinstall.d.ts +2 -0
  51. package/dist/commands/postinstall.d.ts.map +1 -0
  52. package/dist/commands/postinstall.js +25 -0
  53. package/dist/commands/postinstall.js.map +1 -0
  54. package/dist/commands/status.d.ts +3 -0
  55. package/dist/commands/status.d.ts.map +1 -0
  56. package/dist/commands/status.js +118 -0
  57. package/dist/commands/status.js.map +1 -0
  58. package/dist/commands/uninstall.d.ts +3 -0
  59. package/dist/commands/uninstall.d.ts.map +1 -0
  60. package/dist/commands/uninstall.js +178 -0
  61. package/dist/commands/uninstall.js.map +1 -0
  62. package/dist/index.d.ts +11 -0
  63. package/dist/index.d.ts.map +1 -0
  64. package/dist/index.js +11 -0
  65. package/dist/index.js.map +1 -0
  66. package/dist/types.d.ts +47 -0
  67. package/dist/types.d.ts.map +1 -0
  68. package/dist/types.js +2 -0
  69. package/dist/types.js.map +1 -0
  70. package/dist/utils/config.d.ts +13 -0
  71. package/dist/utils/config.d.ts.map +1 -0
  72. package/dist/utils/config.js +95 -0
  73. package/dist/utils/config.js.map +1 -0
  74. package/dist/utils/symlink.d.ts +24 -0
  75. package/dist/utils/symlink.d.ts.map +1 -0
  76. package/dist/utils/symlink.js +313 -0
  77. package/dist/utils/symlink.js.map +1 -0
  78. package/package.json +55 -0
@@ -0,0 +1,440 @@
1
+ ---
2
+ name: brainstorm
3
+ description: Brainstorm ideas using proven frameworks (First Principles, SCAMPER, Design Thinking, Working Backwards)
4
+ ---
5
+
6
+ # Brainstorm Session
7
+
8
+ You are a brainstorming facilitator skilled in multiple thinking frameworks. Guide the user through structured ideation to generate innovative solutions.
9
+
10
+ ## Step 1: Understand the Challenge
11
+
12
+ Ask the user:
13
+
14
+ ```
15
+ What would you like to brainstorm?
16
+
17
+ Examples:
18
+ - A new feature for my app
19
+ - Solution to a technical problem
20
+ - Product idea validation
21
+ - Architecture decision
22
+ - Startup/business idea
23
+
24
+ Describe your challenge:
25
+ ```
26
+
27
+ ## Step 2: Select Framework
28
+
29
+ Based on the challenge type, recommend and let user choose:
30
+
31
+ ```
32
+ Select a brainstorming framework:
33
+
34
+ 1. First Principles - Break down to fundamentals, rebuild from scratch
35
+ Best for: Technical problems, cost optimization, innovation
36
+
37
+ 2. SCAMPER - Systematic creativity through 7 lenses
38
+ Best for: Improving existing products, feature ideation
39
+
40
+ 3. Design Thinking - User-centric problem solving (5 stages)
41
+ Best for: Product features, UX improvements
42
+
43
+ 4. Working Backwards - Start from customer outcome, work back to solution
44
+ Best for: New products, startup ideas, PRDs
45
+
46
+ 5. 5 Whys - Root cause analysis through iterative questioning
47
+ Best for: Bug analysis, system failures, process issues
48
+
49
+ 6. Rapid Fire - Quick generation of 10+ ideas without judgment
50
+ Best for: Early exploration, breaking creative blocks
51
+
52
+ Enter number (1-6):
53
+ ```
54
+
55
+ ---
56
+
57
+ ## Framework 1: First Principles Thinking
58
+
59
+ ### Process:
60
+ 1. **Identify the problem** - What are you trying to solve?
61
+ 2. **Break it down** - What are the fundamental truths/components?
62
+ 3. **Question assumptions** - Why do we do it this way? Is it necessary?
63
+ 4. **Rebuild from scratch** - If starting fresh, what would you build?
64
+
65
+ ### Template:
66
+ ```
67
+ PROBLEM: [User's challenge]
68
+
69
+ CURRENT APPROACH:
70
+ - How it's typically done: ...
71
+ - Assumptions baked in: ...
72
+
73
+ FUNDAMENTAL TRUTHS:
74
+ 1. [Core requirement that cannot be changed]
75
+ 2. [Physical/logical constraint]
76
+ 3. [User need at the deepest level]
77
+
78
+ QUESTIONED ASSUMPTIONS:
79
+ - "We need X" -> Do we really? What if we...
80
+ - "It must be Y" -> Why? Alternative: ...
81
+
82
+ REBUILT SOLUTION:
83
+ Starting from fundamentals, the optimal approach is...
84
+ ```
85
+
86
+ ### Example Questions:
87
+ - What would this look like if it were easy?
88
+ - If we had unlimited resources, what would we build?
89
+ - What would a competitor with no legacy do?
90
+ - What's the physics/logic of this problem?
91
+
92
+ ---
93
+
94
+ ## Framework 2: SCAMPER
95
+
96
+ Apply each lens to the challenge:
97
+
98
+ ### S - Substitute
99
+ - What components can be replaced?
100
+ - What other technology/approach could work?
101
+ - Who else could do this?
102
+
103
+ ### C - Combine
104
+ - What features can be merged?
105
+ - What ideas can be combined?
106
+ - What systems can be integrated?
107
+
108
+ ### A - Adapt
109
+ - What else is like this?
110
+ - What can we copy from other industries?
111
+ - What worked in the past that could work now?
112
+
113
+ ### M - Modify/Magnify/Minimize
114
+ - What can be made bigger/smaller?
115
+ - What can be exaggerated?
116
+ - What can be streamlined?
117
+
118
+ ### P - Put to Other Uses
119
+ - What else could this be used for?
120
+ - Who else could use this?
121
+ - What problems could this solve?
122
+
123
+ ### E - Eliminate
124
+ - What can be removed?
125
+ - What's unnecessary?
126
+ - What would happen if we removed X?
127
+
128
+ ### R - Reverse/Rearrange
129
+ - What if we did the opposite?
130
+ - What if we changed the order?
131
+ - What if roles were reversed?
132
+
133
+ ### Template:
134
+ ```
135
+ CHALLENGE: [User's challenge]
136
+
137
+ SCAMPER IDEAS:
138
+
139
+ [S] Substitute:
140
+ - Idea 1: ...
141
+ - Idea 2: ...
142
+
143
+ [C] Combine:
144
+ - Idea 1: ...
145
+ - Idea 2: ...
146
+
147
+ [A] Adapt:
148
+ - Idea 1: ...
149
+ - Idea 2: ...
150
+
151
+ [M] Modify:
152
+ - Idea 1: ...
153
+ - Idea 2: ...
154
+
155
+ [P] Put to Other Uses:
156
+ - Idea 1: ...
157
+ - Idea 2: ...
158
+
159
+ [E] Eliminate:
160
+ - Idea 1: ...
161
+ - Idea 2: ...
162
+
163
+ [R] Reverse:
164
+ - Idea 1: ...
165
+ - Idea 2: ...
166
+
167
+ TOP 3 IDEAS TO EXPLORE:
168
+ 1. ...
169
+ 2. ...
170
+ 3. ...
171
+ ```
172
+
173
+ ---
174
+
175
+ ## Framework 3: Design Thinking
176
+
177
+ ### 5 Stages:
178
+
179
+ #### 1. Empathize
180
+ - Who is the user?
181
+ - What are their pain points?
182
+ - What do they really need (not just want)?
183
+ - What's their current journey?
184
+
185
+ #### 2. Define
186
+ - What's the core problem statement?
187
+ - Format: "[User] needs [need] because [insight]"
188
+ - What's the "How Might We" question?
189
+
190
+ #### 3. Ideate
191
+ - Generate 10+ ideas without judgment
192
+ - Build on others' ideas
193
+ - Go for quantity first
194
+ - Include wild ideas
195
+
196
+ #### 4. Prototype
197
+ - What's the minimum viable test?
198
+ - How can we simulate the solution?
199
+ - What's the cheapest way to validate?
200
+
201
+ #### 5. Test
202
+ - How will we get feedback?
203
+ - What metrics indicate success?
204
+ - What questions do we need answered?
205
+
206
+ ### Template:
207
+ ```
208
+ DESIGN THINKING SESSION
209
+
210
+ EMPATHIZE:
211
+ - User: [Who]
212
+ - Pain Points: [List]
213
+ - Current Journey: [Steps]
214
+ - Unmet Needs: [List]
215
+
216
+ DEFINE:
217
+ - Problem Statement: [User] needs [need] because [insight]
218
+ - How Might We: HMW [question]?
219
+
220
+ IDEATE (10+ ideas):
221
+ 1. ...
222
+ 2. ...
223
+ 3. ...
224
+ [Continue to 10+]
225
+
226
+ PROTOTYPE:
227
+ - MVP Concept: ...
228
+ - Build Time: ...
229
+ - Resources Needed: ...
230
+
231
+ TEST:
232
+ - Validation Method: ...
233
+ - Success Metrics: ...
234
+ - Key Questions: ...
235
+ ```
236
+
237
+ ---
238
+
239
+ ## Framework 4: Working Backwards (Amazon Style)
240
+
241
+ Start from the end customer experience and work backwards.
242
+
243
+ ### Process:
244
+ 1. **Write the Press Release** - Announce the finished product
245
+ 2. **Write the FAQ** - Answer customer and internal questions
246
+ 3. **Define the Customer Experience** - Detail the user journey
247
+ 4. **Work Back to Requirements** - What do we need to build?
248
+
249
+ ### Press Release Template:
250
+ ```
251
+ PRESS RELEASE
252
+
253
+ Headline: [Product Name] Helps [Customer] [Benefit]
254
+
255
+ Subheadline: [One sentence expanding on the headline]
256
+
257
+ Problem: [2-3 sentences on the customer problem]
258
+
259
+ Solution: [2-3 sentences on how product solves it]
260
+
261
+ Quote from Leader: "[Why this matters]"
262
+
263
+ How It Works: [Simple explanation]
264
+
265
+ Customer Quote: "[Testimonial from imaginary satisfied customer]"
266
+
267
+ Call to Action: [How to get started]
268
+ ```
269
+
270
+ ### FAQ Template:
271
+ ```
272
+ CUSTOMER FAQ:
273
+ Q: What is this?
274
+ A: ...
275
+
276
+ Q: How is this different from [competitor]?
277
+ A: ...
278
+
279
+ Q: How much does it cost?
280
+ A: ...
281
+
282
+ Q: How do I get started?
283
+ A: ...
284
+
285
+ INTERNAL FAQ:
286
+ Q: Why are we building this?
287
+ A: ...
288
+
289
+ Q: What's the technical approach?
290
+ A: ...
291
+
292
+ Q: What are the risks?
293
+ A: ...
294
+
295
+ Q: What's the timeline?
296
+ A: ...
297
+ ```
298
+
299
+ ---
300
+
301
+ ## Framework 5: 5 Whys
302
+
303
+ Root cause analysis through iterative questioning.
304
+
305
+ ### Process:
306
+ 1. State the problem
307
+ 2. Ask "Why?" - Answer
308
+ 3. Ask "Why?" to the answer - Answer
309
+ 4. Repeat 5 times (or until root cause found)
310
+ 5. Identify actionable solution
311
+
312
+ ### Template:
313
+ ```
314
+ 5 WHYS ANALYSIS
315
+
316
+ PROBLEM: [Initial problem statement]
317
+
318
+ Why #1: Why is this happening?
319
+ -> Because: [Answer 1]
320
+
321
+ Why #2: Why [Answer 1]?
322
+ -> Because: [Answer 2]
323
+
324
+ Why #3: Why [Answer 2]?
325
+ -> Because: [Answer 3]
326
+
327
+ Why #4: Why [Answer 3]?
328
+ -> Because: [Answer 4]
329
+
330
+ Why #5: Why [Answer 4]?
331
+ -> Because: [Answer 5 - Root Cause]
332
+
333
+ ROOT CAUSE: [Summary]
334
+
335
+ SOLUTION: [Action to address root cause]
336
+ ```
337
+
338
+ ---
339
+
340
+ ## Framework 6: Rapid Fire
341
+
342
+ Generate maximum ideas in minimum time.
343
+
344
+ ### Rules:
345
+ - No judgment or criticism
346
+ - Quantity over quality
347
+ - Build on previous ideas
348
+ - Wild ideas welcome
349
+ - Stay focused on the topic
350
+
351
+ ### Process:
352
+ 1. Set timer for 5 minutes
353
+ 2. Generate as many ideas as possible
354
+ 3. Number each idea
355
+ 4. After time, categorize and prioritize
356
+
357
+ ### Template:
358
+ ```
359
+ RAPID FIRE SESSION
360
+
361
+ CHALLENGE: [User's challenge]
362
+
363
+ IDEAS (aim for 15+):
364
+ 1.
365
+ 2.
366
+ 3.
367
+ 4.
368
+ 5.
369
+ 6.
370
+ 7.
371
+ 8.
372
+ 9.
373
+ 10.
374
+ 11.
375
+ 12.
376
+ 13.
377
+ 14.
378
+ 15.
379
+
380
+ CATEGORIES:
381
+ - Quick Wins: [Ideas that are easy to implement]
382
+ - Big Bets: [High impact but more effort]
383
+ - Experiments: [Worth testing]
384
+ - Parking Lot: [Interesting but not now]
385
+
386
+ TOP 3 TO PURSUE:
387
+ 1. [Idea] - Because: [Reason]
388
+ 2. [Idea] - Because: [Reason]
389
+ 3. [Idea] - Because: [Reason]
390
+ ```
391
+
392
+ ---
393
+
394
+ ## Step 3: Execute Framework
395
+
396
+ Walk the user through the selected framework step by step.
397
+
398
+ - Ask clarifying questions as needed
399
+ - Provide examples when helpful
400
+ - Challenge assumptions constructively
401
+ - Synthesize ideas at the end
402
+
403
+ ## Step 4: Summarize and Next Steps
404
+
405
+ After brainstorming, provide:
406
+
407
+ ```
408
+ BRAINSTORM SUMMARY
409
+ ==================
410
+
411
+ Challenge: [Original challenge]
412
+ Framework Used: [Framework name]
413
+
414
+ KEY INSIGHTS:
415
+ 1. ...
416
+ 2. ...
417
+ 3. ...
418
+
419
+ TOP IDEAS:
420
+ 1. [Idea] - [Why promising]
421
+ 2. [Idea] - [Why promising]
422
+ 3. [Idea] - [Why promising]
423
+
424
+ RECOMMENDED NEXT STEPS:
425
+ 1. [ ] [Specific action]
426
+ 2. [ ] [Specific action]
427
+ 3. [ ] [Specific action]
428
+
429
+ QUESTIONS TO EXPLORE FURTHER:
430
+ - ...
431
+ - ...
432
+ ```
433
+
434
+ ## Guidelines
435
+
436
+ - Be curious and ask probing questions
437
+ - Encourage wild ideas before filtering
438
+ - Help user see blind spots
439
+ - Connect ideas to practical implementation
440
+ - End with actionable next steps
@@ -0,0 +1,298 @@
1
+ ---
2
+ name: feature-workflow
3
+ description: Complete feature development workflow from start to finish. Use when implementing new features, building functionality, or when user says "implement feature", "add feature", "build feature", "create feature".
4
+ ---
5
+
6
+ # Feature Development Workflow
7
+
8
+ End-to-end workflow for developing features with feedback loops and quality gates.
9
+
10
+ ## Recommended Agents
11
+
12
+ | Phase | Agent | Purpose |
13
+ |-------|-------|---------|
14
+ | DESIGN | `@clean-architect` | Design Clean Architecture + MVVM |
15
+ | IMPLEMENT | `@react-frontend-dev`, `@go-backend-dev`, `@laravel-backend-dev`, `@flutter-mobile-dev`, `@remix-fullstack-dev` | Stack-specific implementation |
16
+ | IMPLEMENT | `@db-designer` | Database schema design |
17
+ | IMPLEMENT | `@api-designer` | API design (REST/GraphQL) |
18
+ | REVIEW | `@code-reviewer` | Code quality review |
19
+ | REVIEW | `@security-audit` | Security vulnerabilities check |
20
+ | REVIEW | `@perf-optimizer` | Performance optimization |
21
+ | TEST | `@test-writer` | Unit/integration/e2e tests |
22
+ | COMPLETE | `@docs-writer` | Documentation (if needed) |
23
+
24
+ ## Workflow Overview
25
+
26
+ ```
27
+ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────┐
28
+ │ 1. PLAN │──▶│ 2. DESIGN│──▶│3. IMPLEMENT──▶│ 4. REVIEW│──▶│ 5. TEST │──▶│6. COMPLETE
29
+ └──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘ └──────────┘
30
+ │ │
31
+ └──────◀───────┘
32
+ Feedback Loop
33
+ ```
34
+
35
+ ## Phase 1: PLAN
36
+
37
+ **Goal**: Understand requirements and break down into tasks
38
+
39
+ ### Actions
40
+ 1. Clarify requirements with user
41
+ 2. Identify affected files/modules
42
+ 3. List acceptance criteria
43
+ 4. Create task breakdown using TodoWrite
44
+
45
+ ### Output
46
+ ```markdown
47
+ ## Feature: [Name]
48
+ ### Requirements
49
+ - [ ] Requirement 1
50
+ - [ ] Requirement 2
51
+
52
+ ### Affected Areas
53
+ - File/Module 1
54
+ - File/Module 2
55
+
56
+ ### Tasks
57
+ 1. Task 1
58
+ 2. Task 2
59
+ ```
60
+
61
+ ### Gate
62
+ - [ ] Requirements clear
63
+ - [ ] Scope defined
64
+ - [ ] Tasks broken down
65
+
66
+ ---
67
+
68
+ ## Phase 2: DESIGN
69
+
70
+ **Goal**: Design architecture following Clean Architecture + MVVM
71
+
72
+ ### Actions
73
+ 1. Apply Clean Architecture principles:
74
+ - Define Domain layer (entities, use cases, repository interfaces)
75
+ - Define Data layer (repository implementations, data sources)
76
+ - Define Presentation layer (ViewModels, Views)
77
+
78
+ 2. Design data flow:
79
+ ```
80
+ View ──▶ ViewModel ──▶ UseCase ──▶ Repository ──▶ DataSource
81
+ ```
82
+
83
+ 3. Identify dependencies and DI setup
84
+
85
+ ### Design Template
86
+ ```markdown
87
+ ## Architecture Design
88
+
89
+ ### Domain Layer
90
+ - Entities: [list]
91
+ - Use Cases: [list]
92
+ - Repository Interfaces: [list]
93
+
94
+ ### Data Layer
95
+ - Repository Implementations: [list]
96
+ - Data Sources: [list]
97
+ - Models/DTOs: [list]
98
+
99
+ ### Presentation Layer
100
+ - ViewModels: [list]
101
+ - Views/Screens: [list]
102
+ - States: [list]
103
+
104
+ ### Dependency Graph
105
+ [ASCII diagram]
106
+ ```
107
+
108
+ ### Gate
109
+ - [ ] Layers defined
110
+ - [ ] Dependencies flow inward only
111
+ - [ ] No domain layer external dependencies
112
+
113
+ ---
114
+
115
+ ## Phase 3: IMPLEMENT
116
+
117
+ **Goal**: Code the feature following the design
118
+
119
+ ### Actions
120
+ 1. Start from Domain layer (inside-out):
121
+ - Create entities
122
+ - Create use case interfaces
123
+ - Create repository interfaces
124
+
125
+ 2. Implement Data layer:
126
+ - Create DTOs/models
127
+ - Implement repositories
128
+ - Implement data sources
129
+
130
+ 3. Implement Presentation layer:
131
+ - Create ViewModels
132
+ - Create Views
133
+ - Wire up DI
134
+
135
+ ### Implementation Order
136
+ ```
137
+ 1. domain/entities/
138
+ 2. domain/usecases/
139
+ 3. domain/repositories/ (interfaces)
140
+ 4. data/models/
141
+ 5. data/datasources/
142
+ 6. data/repositories/ (implementations)
143
+ 7. presentation/viewmodels/
144
+ 8. presentation/views/
145
+ 9. di/modules/
146
+ ```
147
+
148
+ ### Gate
149
+ - [ ] All layers implemented
150
+ - [ ] Code compiles without errors
151
+ - [ ] Basic functionality works
152
+
153
+ ---
154
+
155
+ ## Phase 4: REVIEW
156
+
157
+ **Goal**: Review code quality, security, and best practices
158
+
159
+ ### Actions
160
+ 1. Self-review checklist:
161
+ - [ ] Clean Architecture rules followed
162
+ - [ ] SOLID principles applied
163
+ - [ ] No code smells
164
+ - [ ] Error handling in place
165
+ - [ ] No hardcoded values
166
+
167
+ 2. Security check:
168
+ - [ ] Input validation
169
+ - [ ] No sensitive data exposure
170
+ - [ ] Proper authentication/authorization
171
+
172
+ 3. Performance check:
173
+ - [ ] No N+1 queries
174
+ - [ ] Efficient algorithms
175
+ - [ ] Proper caching
176
+
177
+ ### Review Output
178
+ ```markdown
179
+ ## Code Review Summary
180
+
181
+ ### Quality: [Good/Needs Work]
182
+ - Issue 1: [description] -> Fix: [solution]
183
+
184
+ ### Security: [Pass/Fail]
185
+ - Issue 1: [description] -> Fix: [solution]
186
+
187
+ ### Performance: [Pass/Fail]
188
+ - Issue 1: [description] -> Fix: [solution]
189
+ ```
190
+
191
+ ### Gate
192
+ - [ ] No critical issues
193
+ - [ ] All security issues resolved
194
+ - [ ] Performance acceptable
195
+
196
+ ### Feedback Loop
197
+ If issues found:
198
+ 1. Note issues in review output
199
+ 2. Return to IMPLEMENT phase
200
+ 3. Fix issues
201
+ 4. Re-run REVIEW phase
202
+
203
+ ---
204
+
205
+ ## Phase 5: TEST
206
+
207
+ **Goal**: Ensure feature works correctly with tests
208
+
209
+ ### Actions
210
+ 1. Unit Tests:
211
+ - Test entities (pure logic)
212
+ - Test use cases (mock repositories)
213
+ - Test ViewModels (mock use cases)
214
+
215
+ 2. Integration Tests:
216
+ - Test repository + data sources
217
+ - Test use case flows
218
+
219
+ 3. Run all tests:
220
+ ```bash
221
+ # Example commands
222
+ flutter test # Flutter
223
+ go test ./... # Go
224
+ pnpm test # React/Remix
225
+ ```
226
+
227
+ ### Test Coverage Target
228
+ - Domain layer: 90%+
229
+ - Data layer: 80%+
230
+ - Presentation layer: 70%+
231
+
232
+ ### Gate
233
+ - [ ] All tests pass
234
+ - [ ] Coverage targets met
235
+ - [ ] Edge cases covered
236
+
237
+ ### Feedback Loop
238
+ If tests fail:
239
+ 1. Analyze failure
240
+ 2. Return to IMPLEMENT phase
241
+ 3. Fix code
242
+ 4. Re-run tests
243
+
244
+ ---
245
+
246
+ ## Phase 6: COMPLETE
247
+
248
+ **Goal**: Finalize and deliver the feature
249
+
250
+ ### Actions
251
+ 1. Final checks:
252
+ - [ ] All gates passed
253
+ - [ ] Code formatted
254
+ - [ ] No TODO comments left
255
+ - [ ] Documentation updated (if needed)
256
+
257
+ 2. Git operations:
258
+ ```bash
259
+ git add .
260
+ git commit -m "feat: [feature description]"
261
+ ```
262
+
263
+ 3. Create PR (if applicable):
264
+ ```bash
265
+ gh pr create --title "feat: [feature]" --body "[description]"
266
+ ```
267
+
268
+ ### Completion Checklist
269
+ - [ ] Feature implemented
270
+ - [ ] Tests passing
271
+ - [ ] Code reviewed
272
+ - [ ] Committed/PR created
273
+
274
+ ---
275
+
276
+ ## Quick Reference
277
+
278
+ ### Phase Commands
279
+ | Phase | Key Actions |
280
+ |-------|-------------|
281
+ | PLAN | Clarify, breakdown, TodoWrite |
282
+ | DESIGN | Clean Architecture, layer design |
283
+ | IMPLEMENT | Code inside-out |
284
+ | REVIEW | Quality, security, performance |
285
+ | TEST | Unit, integration, run tests |
286
+ | COMPLETE | Commit, PR |
287
+
288
+ ### When to Loop Back
289
+ - **REVIEW fails** → Return to IMPLEMENT
290
+ - **TEST fails** → Return to IMPLEMENT
291
+ - **Requirements change** → Return to PLAN
292
+
293
+ ### Success Criteria
294
+ Feature is complete when:
295
+ 1. All acceptance criteria met
296
+ 2. All tests passing
297
+ 3. Code review passed
298
+ 4. Committed/PR created