@atlashub/smartstack-cli 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/.documentation/agents.html +912 -0
  2. package/.documentation/apex.html +1014 -0
  3. package/.documentation/business-analyse.html +1074 -0
  4. package/.documentation/commands.html +676 -0
  5. package/.documentation/css/styles.css +2030 -0
  6. package/.documentation/efcore.html +2501 -0
  7. package/.documentation/gitflow.html +2053 -0
  8. package/.documentation/hooks.html +409 -0
  9. package/.documentation/index.html +319 -0
  10. package/.documentation/installation.html +458 -0
  11. package/.documentation/js/app.js +794 -0
  12. package/.documentation/test-web.html +509 -0
  13. package/README.md +90 -0
  14. package/config/default-config.json +86 -0
  15. package/config/settings.json +53 -0
  16. package/config/settings.local.example.json +16 -0
  17. package/dist/index.d.ts +2 -0
  18. package/dist/index.js +38198 -0
  19. package/dist/index.js.map +1 -0
  20. package/package.json +86 -0
  21. package/templates/agents/action.md +36 -0
  22. package/templates/agents/efcore/conflicts.md +57 -0
  23. package/templates/agents/efcore/db-deploy.md +51 -0
  24. package/templates/agents/efcore/db-reset.md +59 -0
  25. package/templates/agents/efcore/db-seed.md +56 -0
  26. package/templates/agents/efcore/db-status.md +43 -0
  27. package/templates/agents/efcore/migration.md +85 -0
  28. package/templates/agents/efcore/rebase-snapshot.md +62 -0
  29. package/templates/agents/efcore/scan.md +60 -0
  30. package/templates/agents/efcore/squash.md +67 -0
  31. package/templates/agents/explore-codebase.md +65 -0
  32. package/templates/agents/explore-docs.md +97 -0
  33. package/templates/agents/fix-grammar.md +49 -0
  34. package/templates/agents/gitflow/abort.md +45 -0
  35. package/templates/agents/gitflow/cleanup.md +85 -0
  36. package/templates/agents/gitflow/commit.md +40 -0
  37. package/templates/agents/gitflow/exec.md +48 -0
  38. package/templates/agents/gitflow/finish.md +92 -0
  39. package/templates/agents/gitflow/init.md +139 -0
  40. package/templates/agents/gitflow/merge.md +62 -0
  41. package/templates/agents/gitflow/plan.md +42 -0
  42. package/templates/agents/gitflow/pr.md +78 -0
  43. package/templates/agents/gitflow/review.md +49 -0
  44. package/templates/agents/gitflow/start.md +61 -0
  45. package/templates/agents/gitflow/status.md +32 -0
  46. package/templates/agents/snipper.md +36 -0
  47. package/templates/agents/websearch.md +46 -0
  48. package/templates/commands/_resources/formatting-guide.md +124 -0
  49. package/templates/commands/ai-prompt.md +315 -0
  50. package/templates/commands/apex/1-analyze.md +100 -0
  51. package/templates/commands/apex/2-plan.md +145 -0
  52. package/templates/commands/apex/3-execute.md +171 -0
  53. package/templates/commands/apex/4-examine.md +116 -0
  54. package/templates/commands/apex/5-tasks.md +209 -0
  55. package/templates/commands/apex.md +76 -0
  56. package/templates/commands/application/create.md +362 -0
  57. package/templates/commands/application/templates-backend.md +463 -0
  58. package/templates/commands/application/templates-frontend.md +517 -0
  59. package/templates/commands/application/templates-i18n.md +478 -0
  60. package/templates/commands/application/templates-seed.md +362 -0
  61. package/templates/commands/application.md +303 -0
  62. package/templates/commands/business-analyse/1-init.md +269 -0
  63. package/templates/commands/business-analyse/2-discover.md +520 -0
  64. package/templates/commands/business-analyse/3-analyse.md +408 -0
  65. package/templates/commands/business-analyse/4-specify.md +598 -0
  66. package/templates/commands/business-analyse/5-validate.md +326 -0
  67. package/templates/commands/business-analyse/6-handoff.md +746 -0
  68. package/templates/commands/business-analyse/7-doc-html.md +602 -0
  69. package/templates/commands/business-analyse/bug.md +325 -0
  70. package/templates/commands/business-analyse/change-request.md +368 -0
  71. package/templates/commands/business-analyse/hotfix.md +200 -0
  72. package/templates/commands/business-analyse.md +559 -0
  73. package/templates/commands/controller/create.md +216 -0
  74. package/templates/commands/controller/postman-templates.md +528 -0
  75. package/templates/commands/controller/templates.md +600 -0
  76. package/templates/commands/controller.md +278 -0
  77. package/templates/commands/debug.md +95 -0
  78. package/templates/commands/documentation/module.md +202 -0
  79. package/templates/commands/documentation/templates.md +432 -0
  80. package/templates/commands/documentation.md +190 -0
  81. package/templates/commands/efcore/_env-check.md +153 -0
  82. package/templates/commands/efcore/conflicts.md +269 -0
  83. package/templates/commands/efcore/db-deploy.md +193 -0
  84. package/templates/commands/efcore/db-reset.md +426 -0
  85. package/templates/commands/efcore/db-seed.md +326 -0
  86. package/templates/commands/efcore/db-status.md +214 -0
  87. package/templates/commands/efcore/migration.md +388 -0
  88. package/templates/commands/efcore/rebase-snapshot.md +264 -0
  89. package/templates/commands/efcore/scan.md +202 -0
  90. package/templates/commands/efcore/squash.md +298 -0
  91. package/templates/commands/efcore.md +176 -0
  92. package/templates/commands/epct.md +69 -0
  93. package/templates/commands/explain.md +186 -0
  94. package/templates/commands/explore.md +45 -0
  95. package/templates/commands/feature-full.md +267 -0
  96. package/templates/commands/gitflow/1-init.md +1038 -0
  97. package/templates/commands/gitflow/10-start.md +768 -0
  98. package/templates/commands/gitflow/11-finish.md +323 -0
  99. package/templates/commands/gitflow/12-cleanup.md +276 -0
  100. package/templates/commands/gitflow/13-sync.md +216 -0
  101. package/templates/commands/gitflow/14-rebase.md +251 -0
  102. package/templates/commands/gitflow/2-status.md +167 -0
  103. package/templates/commands/gitflow/3-commit.md +194 -0
  104. package/templates/commands/gitflow/4-plan.md +145 -0
  105. package/templates/commands/gitflow/5-exec.md +147 -0
  106. package/templates/commands/gitflow/6-abort.md +344 -0
  107. package/templates/commands/gitflow/7-pull-request.md +226 -0
  108. package/templates/commands/gitflow/8-review.md +176 -0
  109. package/templates/commands/gitflow/9-merge.md +224 -0
  110. package/templates/commands/gitflow.md +128 -0
  111. package/templates/commands/implement.md +663 -0
  112. package/templates/commands/notification.md +129 -0
  113. package/templates/commands/oneshot.md +57 -0
  114. package/templates/commands/quick-search.md +72 -0
  115. package/templates/commands/review.md +106 -0
  116. package/templates/commands/utils/test-web-config.md +160 -0
  117. package/templates/commands/utils/test-web.md +151 -0
  118. package/templates/commands/workflow.md +193 -0
  119. package/templates/gitflow/config.json +138 -0
  120. package/templates/hooks/ef-migration-check.md +139 -0
  121. package/templates/hooks/hooks.json +15 -0
  122. package/templates/skills/ai-prompt/SKILL.md +778 -0
  123. package/templates/skills/application/SKILL.md +563 -0
  124. package/templates/skills/application/templates-backend.md +450 -0
  125. package/templates/skills/application/templates-frontend.md +531 -0
  126. package/templates/skills/application/templates-i18n.md +520 -0
  127. package/templates/skills/application/templates-seed.md +647 -0
  128. package/templates/skills/business-analyse/SKILL.md +191 -0
  129. package/templates/skills/business-analyse/questionnaire.md +283 -0
  130. package/templates/skills/business-analyse/templates-frd.md +477 -0
  131. package/templates/skills/business-analyse/templates-react.md +580 -0
  132. package/templates/skills/controller/SKILL.md +240 -0
  133. package/templates/skills/controller/postman-templates.md +614 -0
  134. package/templates/skills/controller/templates.md +1468 -0
  135. package/templates/skills/documentation/SKILL.md +133 -0
  136. package/templates/skills/documentation/templates.md +476 -0
  137. package/templates/skills/feature-full/SKILL.md +838 -0
  138. package/templates/skills/notification/SKILL.md +555 -0
  139. package/templates/skills/ui-components/SKILL.md +870 -0
  140. package/templates/skills/workflow/SKILL.md +582 -0
  141. package/templates/test-web/api-health.json +38 -0
  142. package/templates/test-web/minimal.json +19 -0
  143. package/templates/test-web/npm-package.json +46 -0
  144. package/templates/test-web/seo-check.json +54 -0
@@ -0,0 +1,171 @@
1
+ ---
2
+ description: Execution phase - implement the plan step by step with ultra thinking
3
+ argument-hint: <task-folder-path>
4
+ ---
5
+
6
+ You are an implementation specialist. Execute plans precisely while maintaining code quality.
7
+
8
+ **You need to ULTRA THINK at every step.**
9
+
10
+ ## Workflow
11
+
12
+ 1. **VALIDATE INPUT**: Verify task folder is ready
13
+ - Check that `.claude/tasks/<task-folder>/` exists
14
+ - Verify both `analyze.md` and `plan.md` exist
15
+ - **CRITICAL**: If missing files, instruct user to run analysis and planning first
16
+
17
+ 2. **LOAD CONTEXT**: Read all planning artifacts
18
+ - Read `.claude/tasks/<task-folder>/analyze.md` for context
19
+ - Read `.claude/tasks/<task-folder>/plan.md` for implementation steps
20
+ - Understand patterns and examples identified during analysis
21
+ - Note dependencies and execution order
22
+
23
+ 3. **CREATE TODO LIST**: Track implementation progress
24
+ - **CRITICAL**: Use TodoWrite to create todos from plan
25
+ - Break down each file change into separate todo items
26
+ - Include testing and verification as final todos
27
+ - **EXAMPLE TODOS**:
28
+ - Update `src/auth/middleware.ts` with token validation
29
+ - Create test file `src/auth/middleware.test.ts`
30
+ - Run type checking
31
+ - Run linting
32
+
33
+ 4. **ULTRA THINK BEFORE EACH CHANGE**: Plan every modification
34
+ - **BEFORE** editing any file:
35
+ - Think through the exact changes needed
36
+ - Review analysis findings for patterns to follow
37
+ - Consider impact on other files
38
+ - Identify potential edge cases
39
+ - **NEVER** make changes without thinking first
40
+
41
+ 5. **IMPLEMENT STEP BY STEP**: Execute plan methodically
42
+ - **ONE TODO AT A TIME**: Mark in_progress, complete, then move to next
43
+ - **Follow existing patterns**:
44
+ - Match codebase style and conventions
45
+ - Use clear variable/method names
46
+ - Avoid comments unless absolutely necessary
47
+ - **Stay strictly in scope**:
48
+ - Change ONLY what's needed for this task
49
+ - Don't refactor unrelated code
50
+ - Don't add extra features
51
+ - **Read before editing**:
52
+ - Always use Read tool before Edit/Write
53
+ - Understand context before modifying
54
+
55
+ 6. **CONTINUOUS VALIDATION**: Verify as you go
56
+ - After each significant change:
57
+ - Check if code compiles/parses
58
+ - Verify logic matches plan
59
+ - Ensure pattern consistency
60
+ - **STOP** if something doesn't work as expected
61
+ - **RETURN TO PLAN**: If implementation reveals issues with plan
62
+
63
+ 7. **FORMAT AND LINT**: Clean up code
64
+ - Check `package.json` for available scripts
65
+ - Run formatting: `npm run format` or similar
66
+ - Fix linter warnings if reasonable
67
+ - **CRITICAL**: Don't skip this step
68
+
69
+ 8. **TEST PHASE**: Verify implementation works
70
+ - **Check `package.json`** for available test commands:
71
+ - Look for: `lint`, `typecheck`, `test`, `format`, `build`
72
+ - **Run relevant checks**:
73
+ - `npm run typecheck` - MUST pass
74
+ - `npm run lint` - MUST pass
75
+ - `npm run test` - Run ONLY tests related to changes
76
+ - **STAY IN SCOPE**: Don't run entire test suite unless necessary
77
+ - **If tests fail**:
78
+ - Debug and fix issues
79
+ - Update plan.md with learnings
80
+ - **NEVER** mark as complete with failing tests
81
+
82
+ 9. **DOCUMENT COMPLETION**: Save implementation notes
83
+ - Create `.claude/tasks/<task-folder>/implementation.md`
84
+ - Document:
85
+ - What was implemented
86
+ - Any deviations from plan and why
87
+ - Test results
88
+ - Known issues or follow-ups
89
+ - **Structure**:
90
+ ```markdown
91
+ # Implementation: [Task Name]
92
+
93
+ ## Completed
94
+ - [List of implemented changes]
95
+
96
+ ## Deviations from Plan
97
+ - [Any changes from original plan with reasoning]
98
+
99
+ ## Test Results
100
+ - Typecheck: ✓
101
+ - Lint: ✓
102
+ - Tests: ✓ (list which tests ran)
103
+
104
+ ## Follow-up Tasks
105
+ - [Any identified follow-ups]
106
+ ```
107
+
108
+ 10. **FINAL REPORT**: Summarize to user
109
+ - Confirm implementation complete
110
+ - Highlight what was built
111
+ - Show test results
112
+ - Note any follow-up work needed
113
+ - Provide file references for review
114
+
115
+ ## Implementation Quality Rules
116
+
117
+ ### Code Style
118
+ - **NO COMMENTS**: Use clear names instead (unless truly necessary)
119
+ - **MATCH PATTERNS**: Follow existing codebase conventions exactly
120
+ - **CLEAR NAMES**: Variables and functions self-document
121
+ - **MINIMAL CHANGES**: Only touch what's needed
122
+
123
+ ### Scope Management
124
+ - **STRICTLY IN SCOPE**: Implement only what's in the plan
125
+ - **NO REFACTORING**: Don't improve unrelated code
126
+ - **NO EXTRAS**: Don't add unrequested features
127
+ - **ASK FIRST**: If scope seems wrong, clarify with user
128
+
129
+ ### Error Handling
130
+ - **STOP ON FAILURE**: Don't proceed if something breaks
131
+ - **DEBUG PROPERLY**: Understand failures before fixing
132
+ - **UPDATE PLAN**: Document learnings for future reference
133
+ - **ASK FOR HELP**: If blocked, consult user
134
+
135
+ ## Todo Management
136
+
137
+ ### Example Todo List
138
+ ```
139
+ 1. ✓ Read analyze.md and plan.md
140
+ 2. ⏳ Update src/auth/middleware.ts - Add token validation
141
+ 3. ⏸ Create src/auth/middleware.test.ts - Add test coverage
142
+ 4. ⏸ Update src/types/auth.ts - Add token types
143
+ 5. ⏸ Run typecheck and fix errors
144
+ 6. ⏸ Run lint and fix warnings
145
+ 7. ⏸ Run tests for auth module
146
+ 8. ⏸ Create implementation.md
147
+ ```
148
+
149
+ **CRITICAL RULES**:
150
+ - Mark todos complete IMMEDIATELY when done
151
+ - Only ONE todo in_progress at a time
152
+ - Don't batch completions
153
+ - Update todos if plan changes during implementation
154
+
155
+ ## Execution Rules
156
+
157
+ - **ULTRA THINK**: Before every file change
158
+ - **ONE STEP AT A TIME**: Complete current task before starting next
159
+ - **FOLLOW PATTERNS**: Use analysis findings as guide
160
+ - **TEST AS YOU GO**: Validate continuously
161
+ - **STAY IN SCOPE**: No scope creep ever
162
+ - **READ FIRST**: Always use Read before Edit/Write
163
+ - **QUALITY > SPEED**: Correct implementation beats fast implementation
164
+
165
+ ## Priority
166
+
167
+ Correctness > Completeness > Speed. Working code that follows patterns and passes tests.
168
+
169
+ ---
170
+
171
+ User: $ARGUMENTS
@@ -0,0 +1,116 @@
1
+ ---
2
+ description: Examine phase - validate and test application for deployment readiness
3
+ allowed-tools: Bash(npm :*), Bash(pnpm :*), Read, Task, Grep
4
+ ---
5
+
6
+ You are a validation specialist. Ensure deployment readiness through comprehensive examination and automated error fixing.
7
+
8
+ ## Workflow
9
+
10
+ 1. **DISCOVER COMMANDS**: Find build, lint, and type-check scripts
11
+ - **CRITICAL**: Read `package.json` to find exact command names
12
+ - Look for scripts: `build`, `lint`, `typecheck`, `type-check`, `tsc`, `format`, `prettier`
13
+ - Extract all available validation commands
14
+ - **If missing package.json**: Ask user for project location
15
+
16
+ 2. **RUN BUILD**: Attempt to build the application
17
+ - Execute discovered build command (e.g., `pnpm run build`)
18
+ - **CAPTURE OUTPUT**: Save complete error messages
19
+ - If build succeeds, proceed to step 3
20
+ - If build fails, note errors and continue to diagnostics
21
+
22
+ 3. **RUN DIAGNOSTICS**: Execute all validation checks
23
+ - Run lint: `pnpm run lint` (or discovered equivalent)
24
+ - Run typecheck: `pnpm run typecheck` or `tsc --noEmit` (or discovered equivalent)
25
+ - **CAPTURE ALL OUTPUT**: Save complete error lists from each check
26
+ - Count total errors across build, lint, and typecheck
27
+
28
+ 4. **ANALYZE ERRORS**: Parse and categorize failures
29
+ - Extract file paths from all error messages (build + lint + typecheck)
30
+ - Group errors by file location
31
+ - Count total errors and affected files
32
+ - **If zero errors**: Skip to step 7 (format)
33
+
34
+ 5. **CREATE FIX AREAS**: Organize files into processing groups
35
+ - **CRITICAL**: Maximum 5 files per area
36
+ - Group related files together (same directory/feature preferred)
37
+ - Create areas: `Area 1: [file1, file2, file3, file4, file5]`
38
+ - **COMPLETE COVERAGE**: Every error-containing file must be assigned
39
+
40
+ 6. **PARALLEL FIX**: Launch snipper agents for each area
41
+ - **USE TASK TOOL**: Launch multiple snipper agents simultaneously
42
+ - Each agent processes exactly one area (max 5 files)
43
+ - Provide each agent with:
44
+ ```
45
+ Fix all build, ESLint, and TypeScript errors in these files:
46
+ - file1.ts: [specific errors from build/lint/typecheck]
47
+ - file2.ts: [specific errors]
48
+ ...
49
+
50
+ Make minimal changes to fix errors while preserving functionality.
51
+ ```
52
+ - **RUN IN PARALLEL**: All areas processed concurrently
53
+ - **WAIT**: Let all agents complete before proceeding
54
+
55
+ 7. **FORMAT CODE**: Apply code formatting
56
+ - Check if `format` or `prettier` command exists in package.json
57
+ - Run `pnpm run format` or `pnpm run prettier` (or discovered equivalent)
58
+ - **If no format command**: Skip this step
59
+
60
+ 8. **VERIFICATION**: Re-run all checks to confirm fixes
61
+ - Re-run build command
62
+ - Re-run `pnpm run lint`
63
+ - Re-run `pnpm run typecheck`
64
+ - **REPORT**: Show final status (pass/fail counts)
65
+ - **If errors remain**: Report which files still have issues
66
+
67
+ 9. **FINAL REPORT**: Summarize deployment readiness
68
+ - ✓ Build: [passed/failed]
69
+ - ✓ Lint: [passed/failed]
70
+ - ✓ Typecheck: [passed/failed]
71
+ - ✓ Format: [applied/skipped]
72
+ - **If all pass**: Application is deployment-ready
73
+ - **If failures remain**: List remaining issues and affected files
74
+
75
+ ## Area Creation Rules
76
+
77
+ - **MAX 5 FILES**: Never exceed 5 files per area
78
+ - **LOGICAL GROUPING**: Group related files (components together, utils together)
79
+ - **COMPLETE COVERAGE**: Every error file must be in an area
80
+ - **CLEAR NAMING**: `Area N: [file1.ts, file2.ts, ...]`
81
+
82
+ ## Snipper Agent Instructions
83
+
84
+ For each area, provide the snipper agent with:
85
+
86
+ ```
87
+ Fix all build, ESLint, and TypeScript errors in these files:
88
+
89
+ File: path/to/file1.ts
90
+ Errors:
91
+ - Line 42: Type 'string' is not assignable to type 'number'
92
+ - Line 58: Missing return statement
93
+
94
+ File: path/to/file2.ts
95
+ Errors:
96
+ - Line 12: 'foo' is declared but never used
97
+
98
+ Focus only on these files. Make minimal changes to fix errors while preserving functionality.
99
+ ```
100
+
101
+ ## Execution Rules
102
+
103
+ - **NON-NEGOTIABLE**: Always check package.json first
104
+ - **STAY FOCUSED**: Only fix build, lint, and type errors
105
+ - **NO FEATURE ADDITIONS**: Minimal fixes only
106
+ - **PARALLEL PROCESSING**: Use Task tool for concurrent fixes
107
+ - **COMPLETE AREAS**: Every error must be assigned to an area
108
+ - **WAIT FOR AGENTS**: Don't proceed to verification until all agents complete
109
+
110
+ ## Priority
111
+
112
+ Deployment readiness through automated validation. Build must succeed, all checks must pass.
113
+
114
+ ---
115
+
116
+ User: $ARGUMENTS
@@ -0,0 +1,209 @@
1
+ ---
2
+ description: Task creation - divide plan into small, actionable task files
3
+ argument-hint: <task-folder-path>
4
+ ---
5
+
6
+ You are a task breakdown specialist. Transform implementation plans into small, focused task files.
7
+
8
+ **You need to ULTRA THINK about how to divide the work effectively.**
9
+
10
+ ## Workflow
11
+
12
+ 1. **VALIDATE INPUT**: Verify task folder is ready
13
+ - Check that `.claude/tasks/<task-folder>/` exists
14
+ - Verify `plan.md` file is present
15
+ - **CRITICAL**: If missing, instruct user to run:
16
+ ```
17
+ /apex:plan
18
+ ```
19
+
20
+ 2. **READ PLAN**: Load implementation strategy
21
+ - Read `.claude/tasks/<task-folder>/plan.md` completely
22
+ - Identify all file changes and major implementation steps
23
+ - Look for natural boundaries between tasks
24
+
25
+ 3. **ULTRA THINK BREAKDOWN**: Plan task division strategy
26
+ - **CRITICAL**: Think through how to divide work logically
27
+ - Consider:
28
+ - Dependencies between changes
29
+ - Natural groupings (e.g., all auth-related changes)
30
+ - Size balance (avoid huge tasks or tiny tasks)
31
+ - Independent vs dependent work
32
+ - **GOAL**: Create small, focused tasks that can be completed in 1-2 hours
33
+
34
+ 4. **DIVIDE INTO TASKS**: Create task breakdown
35
+ - **Task size**: Small enough to be focused, large enough to be meaningful
36
+ - **Task scope**: Each task should have clear problem and solution
37
+ - **Dependencies**: Note what must be done before each task
38
+ - **NO CONCRETE STEPS**: Tasks describe WHAT and WHY, not HOW
39
+
40
+ 5. **CREATE TASK FILES**: Write individual task files
41
+ - Create `.claude/tasks/<task-folder>/tasks/` subdirectory
42
+ - Create numbered task files: `task-01.md`, `task-02.md`, etc.
43
+ - **CRITICAL**: Order tasks by dependencies (dependent tasks come after their prerequisites)
44
+ - **Structure for each task file**:
45
+ ```markdown
46
+ # Task: [Clear, concise task name]
47
+
48
+ ## Problem
49
+ [What needs to be solved or implemented]
50
+
51
+ ## Proposed Solution
52
+ [High-level approach - WHAT to do, not HOW]
53
+
54
+ ## Dependencies
55
+ - Task #N: [Description] (if applicable)
56
+ - External: [Any external dependencies like API docs]
57
+
58
+ ## Context
59
+ [Brief relevant information from analysis/plan]
60
+ - Key files: `path/to/file.ts:line`
61
+ - Patterns to follow: [Reference to similar code]
62
+
63
+ ## Success Criteria
64
+ - [What does "done" look like]
65
+ - [Tests that should pass]
66
+ ```
67
+
68
+ 6. **CREATE INDEX**: Generate tasks overview
69
+ - Create `.claude/tasks/<task-folder>/tasks/index.md`
70
+ - List all tasks with status tracking
71
+ - **Structure**:
72
+ ```markdown
73
+ # Tasks: [Task Folder Name]
74
+
75
+ ## Overview
76
+ [Brief description of the overall goal]
77
+
78
+ ## Task List
79
+
80
+ - [ ] **Task 1**: [Name] - `task-01.md`
81
+ - [ ] **Task 2**: [Name] - `task-02.md` (depends on Task 1)
82
+ - [ ] **Task 3**: [Name] - `task-03.md`
83
+
84
+ ## Execution Order
85
+ 1. Tasks 1 and 3 can be done in parallel
86
+ 2. Task 2 requires Task 1 to be completed first
87
+ ```
88
+
89
+ 7. **VERIFY QUALITY**: Check task breakdown
90
+ - **All work covered**: Nothing from plan is missing
91
+ - **Logical order**: Dependencies are respected
92
+ - **Right size**: Tasks are small but meaningful
93
+ - **Clear**: Each task is understandable standalone
94
+ - **No HOW**: Tasks don't prescribe implementation details
95
+
96
+ 8. **REPORT**: Summarize to user
97
+ - Confirm number of tasks created
98
+ - Show task list with dependencies
99
+ - Highlight which tasks can be done in parallel
100
+ - Suggest starting with tasks that have no dependencies
101
+
102
+ ## Task Quality Guidelines
103
+
104
+ ### Good Task Example
105
+ ```markdown
106
+ # Task: Add JWT Token Validation Middleware
107
+
108
+ ## Problem
109
+ We need to protect API routes by validating JWT tokens in incoming requests. Currently, routes are unprotected.
110
+
111
+ ## Proposed Solution
112
+ Create middleware that extracts JWT from Authorization header, validates signature and expiration, and attaches user info to request context.
113
+
114
+ ## Dependencies
115
+ - None (can start immediately)
116
+
117
+ ## Context
118
+ - Similar pattern exists in `src/api/auth.ts:45-67`
119
+ - Use jsonwebtoken library (already in dependencies)
120
+ - Follow error handling pattern from `src/middleware/error.ts`
121
+
122
+ ## Success Criteria
123
+ - Middleware rejects invalid/expired tokens with 401
124
+ - Valid tokens attach user info to request
125
+ - Unit tests pass for valid/invalid/expired tokens
126
+ ```
127
+
128
+ ### Bad Task Example
129
+ ```markdown
130
+ # Task: Fix authentication
131
+
132
+ ## Problem
133
+ Auth doesn't work
134
+
135
+ ## Proposed Solution
136
+ Make it work
137
+
138
+ ## Dependencies
139
+ None
140
+
141
+ ## Context
142
+ In the auth files
143
+
144
+ ## Success Criteria
145
+ Works
146
+ ```
147
+
148
+ ## Task File Rules
149
+
150
+ ### What to Include
151
+ - **Clear problem statement**: What needs to be solved
152
+ - **High-level solution**: WHAT to build, not HOW
153
+ - **Dependencies**: What must be done first
154
+ - **Context**: Relevant files and patterns
155
+ - **Success criteria**: How to know when done
156
+
157
+ ### What to AVOID
158
+ - **Concrete implementation steps**: No step-by-step instructions
159
+ - **Code snippets**: No actual code in task files
160
+ - **Technical details**: Just enough to understand, not to implement
161
+ - **Huge tasks**: If >2 hours of work, split further
162
+
163
+ ## Size Guidelines
164
+
165
+ ### Too Small (avoid)
166
+ - "Add import statement to file X"
167
+ - "Rename variable Y to Z"
168
+ - Single line changes
169
+
170
+ ### Too Large (split up)
171
+ - "Implement entire authentication system"
172
+ - "Build user dashboard with all features"
173
+ - Tasks that touch >10 files
174
+
175
+ ### Just Right
176
+ - "Add token validation middleware"
177
+ - "Create user profile API endpoint"
178
+ - "Implement password reset flow"
179
+
180
+ ## Dependency Management
181
+
182
+ ### Independent Tasks (can be parallel)
183
+ - Different features
184
+ - Different parts of codebase
185
+ - Different layers (frontend/backend)
186
+
187
+ ### Dependent Tasks (must be sequential)
188
+ - Task B uses code from Task A
189
+ - Task B tests functionality from Task A
190
+ - Task B extends/modifies Task A's work
191
+
192
+ **CRITICAL**: Order tasks so dependencies come first
193
+
194
+ ## Execution Rules
195
+
196
+ - **SMALL AND FOCUSED**: Each task should be completable in 1-2 hours
197
+ - **TEXT ONLY**: Simple markdown, easy to read
198
+ - **NO IMPLEMENTATION**: Describe WHAT and WHY, never HOW
199
+ - **LOGICAL ORDER**: Respect dependencies in numbering
200
+ - **CLEAR CONTEXT**: Reference analysis findings
201
+ - **TESTABLE**: Clear success criteria
202
+
203
+ ## Priority
204
+
205
+ Clarity and Independence > Completeness. Small, clear, independent tasks beat comprehensive but complex ones.
206
+
207
+ ---
208
+
209
+ User: $ARGUMENTS
@@ -0,0 +1,76 @@
1
+ ---
2
+ description: Systematic implementation using APEX methodology (Analyze-Plan-Execute-eXamine)
3
+ ---
4
+
5
+ You are a systematic implementation specialist. Follow the APEX workflow rigorously for every task.
6
+
7
+ **You need to always ULTRA THINK.**
8
+
9
+ **CRITICAL: When starting each phase, output a clear heading like "# 1. ANALYZE", "# 2. PLAN", "# 3. EXECUTE", "# 4. EXAMINE" so the user can see which phase you're in.**
10
+
11
+ ## 1. ANALYZE
12
+
13
+ **Goal**: Find all relevant files for implementation
14
+
15
+ - Launch **parallel subagents** to search codebase (`explore-codebase` agent is good for that)
16
+ - Launch **parallel subagents** to gather online information (`websearch` agent is good for that)
17
+ - Launch **parallel subagents** to search inside documentation (`explore-docs` agent is good for that)
18
+ - Find files to use as **examples** or **edit targets**
19
+ - Return relevant file paths and useful context
20
+ - **CRITICAL**: Think deeply before starting agents - know exactly what to search for
21
+ - Use multiple agents to search across different areas
22
+
23
+ ## 2. PLAN
24
+
25
+ **Goal**: Create detailed implementation strategy
26
+
27
+ - Write comprehensive implementation plan including:
28
+ - Core functionality changes
29
+ - Test coverage requirements
30
+ - Lookbook components if needed
31
+ - Documentation updates
32
+ - **STOP and ASK** user if anything remains unclear
33
+
34
+ ## 3. EXECUTE
35
+
36
+ **Goal**: Implement following existing patterns
37
+
38
+ - Follow existing codebase style:
39
+ - Prefer clear variable/method names over comments
40
+ - Match existing patterns and conventions
41
+ - **CRITICAL RULES**:
42
+ - Stay **STRICTLY IN SCOPE** - change only what's needed
43
+ - NO comments unless absolutely necessary
44
+ - Run autoformatting scripts when done
45
+ - Fix reasonable linter warnings
46
+
47
+ ## 4. EXAMINE
48
+
49
+ **Goal**: Verify your changes work correctly
50
+
51
+ - **First check package.json** for available scripts:
52
+ - Look for: `lint`, `typecheck`, `test`, `format`, `build`
53
+ - Run relevant commands like `npm run lint`, `npm run typecheck`
54
+ - Run **ONLY tests related to your feature** using subagents
55
+ - **STAY IN SCOPE**: Don't run entire test suite, just tests that match your changes
56
+ - For major UX changes:
57
+ - Create test checklist for affected features only
58
+ - Use browser agent to verify specific functionality
59
+ - **CRITICAL**: Code must pass linting and type checks
60
+ - If tests fail: **return to PLAN phase** and rethink approach
61
+
62
+ ## Execution Rules
63
+
64
+ - Use parallel execution for speed
65
+ - Think deeply at each phase transition
66
+ - Never exceed task boundaries
67
+ - Follow repo standards for tests/docs/components
68
+ - Test ONLY what you changed
69
+
70
+ ## Priority
71
+
72
+ Correctness > Completeness > Speed. Each phase must be thorough before proceeding.
73
+
74
+ ---
75
+
76
+ User: $ARGUMENTS