@atlashub/smartstack-cli 1.5.1 → 1.5.3
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/.documentation/css/styles.css +2168 -2168
- package/.documentation/js/app.js +794 -794
- package/config/default-config.json +86 -86
- package/config/settings.json +53 -53
- package/config/settings.local.example.json +16 -16
- package/dist/index.js +0 -0
- package/dist/index.js.map +1 -1
- package/package.json +88 -88
- package/templates/agents/action.md +36 -36
- package/templates/agents/efcore/conflicts.md +84 -84
- package/templates/agents/efcore/db-deploy.md +51 -51
- package/templates/agents/efcore/db-reset.md +59 -59
- package/templates/agents/efcore/db-seed.md +56 -56
- package/templates/agents/efcore/db-status.md +64 -64
- package/templates/agents/efcore/migration.md +85 -85
- package/templates/agents/efcore/rebase-snapshot.md +62 -62
- package/templates/agents/efcore/scan.md +90 -90
- package/templates/agents/efcore/squash.md +67 -67
- package/templates/agents/explore-codebase.md +65 -65
- package/templates/agents/explore-docs.md +97 -97
- package/templates/agents/fix-grammar.md +49 -49
- package/templates/agents/gitflow/abort.md +45 -45
- package/templates/agents/gitflow/cleanup.md +85 -85
- package/templates/agents/gitflow/commit.md +40 -40
- package/templates/agents/gitflow/exec.md +48 -48
- package/templates/agents/gitflow/finish.md +92 -92
- package/templates/agents/gitflow/init.md +139 -139
- package/templates/agents/gitflow/merge.md +62 -62
- package/templates/agents/gitflow/plan.md +42 -42
- package/templates/agents/gitflow/pr.md +78 -78
- package/templates/agents/gitflow/review.md +49 -49
- package/templates/agents/gitflow/start.md +61 -61
- package/templates/agents/gitflow/status.md +32 -32
- package/templates/agents/snipper.md +36 -36
- package/templates/agents/websearch.md +46 -46
- package/templates/commands/_resources/formatting-guide.md +124 -124
- package/templates/commands/ai-prompt.md +315 -315
- package/templates/commands/apex/1-analyze.md +100 -100
- package/templates/commands/apex/2-plan.md +145 -145
- package/templates/commands/apex/3-execute.md +171 -171
- package/templates/commands/apex/4-examine.md +116 -116
- package/templates/commands/apex/5-tasks.md +209 -209
- package/templates/commands/apex.md +76 -76
- package/templates/commands/application/create.md +362 -362
- package/templates/commands/application/templates-backend.md +463 -463
- package/templates/commands/application/templates-frontend.md +517 -517
- package/templates/commands/application/templates-i18n.md +478 -478
- package/templates/commands/application/templates-seed.md +362 -362
- package/templates/commands/application.md +303 -303
- package/templates/commands/business-analyse/0-orchestrate.md +640 -640
- package/templates/commands/business-analyse/1-init.md +269 -269
- package/templates/commands/business-analyse/2-discover.md +520 -520
- package/templates/commands/business-analyse/3-analyse.md +408 -408
- package/templates/commands/business-analyse/4-specify.md +598 -598
- package/templates/commands/business-analyse/5-validate.md +326 -326
- package/templates/commands/business-analyse/6-handoff.md +746 -746
- package/templates/commands/business-analyse/7-doc-html.md +602 -602
- package/templates/commands/business-analyse/bug.md +325 -325
- package/templates/commands/business-analyse/change-request.md +368 -368
- package/templates/commands/business-analyse/hotfix.md +200 -200
- package/templates/commands/business-analyse.md +640 -640
- package/templates/commands/controller/create.md +216 -216
- package/templates/commands/controller/postman-templates.md +528 -528
- package/templates/commands/controller/templates.md +600 -600
- package/templates/commands/controller.md +337 -337
- package/templates/commands/create/agent.md +138 -138
- package/templates/commands/create/command.md +166 -166
- package/templates/commands/create/hook.md +234 -234
- package/templates/commands/create/plugin.md +329 -329
- package/templates/commands/create/project.md +507 -507
- package/templates/commands/create/skill.md +199 -199
- package/templates/commands/create.md +220 -220
- package/templates/commands/debug.md +95 -95
- package/templates/commands/documentation/module.md +202 -202
- package/templates/commands/documentation/templates.md +432 -432
- package/templates/commands/documentation.md +190 -190
- package/templates/commands/efcore/_env-check.md +153 -153
- package/templates/commands/efcore/conflicts.md +186 -186
- package/templates/commands/efcore/db-deploy.md +193 -193
- package/templates/commands/efcore/db-reset.md +426 -426
- package/templates/commands/efcore/db-seed.md +326 -326
- package/templates/commands/efcore/db-status.md +226 -226
- package/templates/commands/efcore/migration.md +400 -400
- package/templates/commands/efcore/rebase-snapshot.md +264 -264
- package/templates/commands/efcore/scan.md +198 -198
- package/templates/commands/efcore/squash.md +298 -298
- package/templates/commands/efcore.md +224 -224
- package/templates/commands/epct.md +69 -69
- package/templates/commands/explain.md +186 -186
- package/templates/commands/explore.md +45 -45
- package/templates/commands/feature-full.md +267 -267
- package/templates/commands/gitflow/1-init.md +1038 -1038
- package/templates/commands/gitflow/10-start.md +768 -768
- package/templates/commands/gitflow/11-finish.md +457 -457
- package/templates/commands/gitflow/12-cleanup.md +276 -276
- package/templates/commands/gitflow/13-sync.md +216 -216
- package/templates/commands/gitflow/14-rebase.md +251 -251
- package/templates/commands/gitflow/2-status.md +277 -277
- package/templates/commands/gitflow/3-commit.md +344 -344
- package/templates/commands/gitflow/4-plan.md +145 -145
- package/templates/commands/gitflow/5-exec.md +147 -147
- package/templates/commands/gitflow/6-abort.md +344 -344
- package/templates/commands/gitflow/7-pull-request.md +453 -355
- package/templates/commands/gitflow/8-review.md +240 -176
- package/templates/commands/gitflow/9-merge.md +451 -365
- package/templates/commands/gitflow.md +128 -128
- package/templates/commands/implement.md +663 -663
- package/templates/commands/init.md +567 -567
- package/templates/commands/mcp-integration.md +330 -330
- package/templates/commands/notification.md +129 -129
- package/templates/commands/oneshot.md +57 -57
- package/templates/commands/quick-search.md +72 -72
- package/templates/commands/ralph-loop/cancel-ralph.md +18 -18
- package/templates/commands/ralph-loop/help.md +126 -126
- package/templates/commands/ralph-loop/ralph-loop.md +18 -18
- package/templates/commands/review.md +106 -106
- package/templates/commands/utils/test-web-config.md +160 -160
- package/templates/commands/utils/test-web.md +151 -151
- package/templates/commands/validate.md +233 -233
- package/templates/commands/workflow.md +193 -193
- package/templates/gitflow/config.json +138 -138
- package/templates/hooks/ef-migration-check.md +139 -139
- package/templates/hooks/hooks.json +25 -25
- package/templates/hooks/stop-hook.sh +177 -177
- package/templates/skills/ai-prompt/SKILL.md +778 -778
- package/templates/skills/application/SKILL.md +563 -563
- package/templates/skills/application/templates-backend.md +450 -450
- package/templates/skills/application/templates-frontend.md +531 -531
- package/templates/skills/application/templates-i18n.md +520 -520
- package/templates/skills/application/templates-seed.md +647 -647
- package/templates/skills/business-analyse/SKILL.md +191 -191
- package/templates/skills/business-analyse/questionnaire.md +283 -283
- package/templates/skills/business-analyse/templates-frd.md +477 -477
- package/templates/skills/business-analyse/templates-react.md +580 -580
- package/templates/skills/controller/SKILL.md +240 -240
- package/templates/skills/controller/postman-templates.md +614 -614
- package/templates/skills/controller/templates.md +1468 -1468
- package/templates/skills/documentation/SKILL.md +133 -133
- package/templates/skills/documentation/templates.md +476 -476
- package/templates/skills/feature-full/SKILL.md +838 -838
- package/templates/skills/notification/SKILL.md +555 -555
- package/templates/skills/ui-components/SKILL.md +870 -870
- package/templates/skills/workflow/SKILL.md +582 -582
- package/templates/test-web/api-health.json +38 -38
- package/templates/test-web/minimal.json +19 -19
- package/templates/test-web/npm-package.json +46 -46
- package/templates/test-web/seo-check.json +54 -54
|
@@ -1,209 +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
|
|
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
|
|
@@ -1,76 +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
|
|
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
|