@atlashub/smartstack-cli 1.5.0 → 1.5.2
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/agents.html +920 -916
- package/.documentation/apex.html +1022 -1018
- package/.documentation/business-analyse.html +1505 -1501
- package/.documentation/commands.html +684 -680
- package/.documentation/css/styles.css +2168 -2168
- package/.documentation/efcore.html +2509 -2505
- package/.documentation/gitflow.html +2622 -2618
- package/.documentation/hooks.html +417 -413
- package/.documentation/index.html +327 -323
- package/.documentation/init.html +565 -0
- package/.documentation/installation.html +548 -462
- package/.documentation/js/app.js +794 -794
- package/.documentation/ralph-loop.html +534 -530
- package/.documentation/test-web.html +517 -513
- 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 +18 -8
- 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 -562
- 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,171 +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
|
|
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
|
|
@@ -1,116 +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
|
|
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
|