@atlashub/smartstack-cli 1.5.1 → 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/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,220 +1,220 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Create SmartStack projects and extensions
|
|
3
|
-
argument-hint: <type> <name> [description]
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# SmartStack Creator
|
|
7
|
-
|
|
8
|
-
Create complete project structures for SmartStack applications and extensions.
|
|
9
|
-
|
|
10
|
-
## Supported Types
|
|
11
|
-
|
|
12
|
-
| Type | Command | Description |
|
|
13
|
-
|------|---------|-------------|
|
|
14
|
-
| **project** | `/create:project` | Full-stack app (.NET + React + Vite + Tailwind) |
|
|
15
|
-
| **command** | `/create:command` | Slash command (like /apex, /gitflow) |
|
|
16
|
-
| **agent** | `/create:agent` | Specialized execution agent |
|
|
17
|
-
| **skill** | `/create:skill` | Multi-phase workflow orchestrator |
|
|
18
|
-
| **hook** | `/create:hook` | Git operation validator |
|
|
19
|
-
| **plugin** | `/create:plugin` | Full CLI extension with all types |
|
|
20
|
-
|
|
21
|
-
## Quick Usage
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
/create project MyApp "My awesome full-stack application"
|
|
25
|
-
/create command my-feature "Description of my feature command"
|
|
26
|
-
/create agent code-reviewer "Agent for reviewing code quality"
|
|
27
|
-
/create skill deployment "Multi-phase deployment workflow"
|
|
28
|
-
/create hook security-check "Pre-commit security validation"
|
|
29
|
-
/create plugin my-toolkit "Complete CLI toolkit extension"
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Workflow
|
|
33
|
-
|
|
34
|
-
### 1. PARSE ARGUMENTS
|
|
35
|
-
|
|
36
|
-
Extract from `$ARGUMENTS`:
|
|
37
|
-
- **type**: command | agent | skill | hook | plugin
|
|
38
|
-
- **name**: Extension name (kebab-case)
|
|
39
|
-
- **description**: Optional description
|
|
40
|
-
|
|
41
|
-
If arguments missing, use AskUserQuestion to gather:
|
|
42
|
-
- Type of extension
|
|
43
|
-
- Name (validate kebab-case)
|
|
44
|
-
- Description
|
|
45
|
-
|
|
46
|
-
### 2. VALIDATE
|
|
47
|
-
|
|
48
|
-
Check:
|
|
49
|
-
- Name is valid kebab-case: `^[a-z][a-z0-9-]*$`
|
|
50
|
-
- Type is supported
|
|
51
|
-
- Target directory doesn't already exist
|
|
52
|
-
|
|
53
|
-
### 3. CREATE PROJECT STRUCTURE
|
|
54
|
-
|
|
55
|
-
Create the following structure:
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
smartstack-{name}/
|
|
59
|
-
├── package.json # npm package configuration
|
|
60
|
-
├── tsconfig.json # TypeScript configuration
|
|
61
|
-
├── tsup.config.ts # Build configuration
|
|
62
|
-
├── README.md # Documentation
|
|
63
|
-
├── .gitignore # Git ignore rules
|
|
64
|
-
├── src/
|
|
65
|
-
│ └── index.ts # Main entry point
|
|
66
|
-
└── templates/
|
|
67
|
-
├── commands/ # Command templates
|
|
68
|
-
│ └── {name}.md
|
|
69
|
-
├── agents/ # Agent templates
|
|
70
|
-
│ └── {name}.md
|
|
71
|
-
├── skills/ # Skill templates
|
|
72
|
-
│ └── {name}/
|
|
73
|
-
│ ├── SKILL.md
|
|
74
|
-
│ └── 1-*.md (phases)
|
|
75
|
-
└── hooks/ # Hook templates
|
|
76
|
-
└── {name}.md
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### 4. GENERATE FILES
|
|
80
|
-
|
|
81
|
-
Use the Write tool to create each file with proper content.
|
|
82
|
-
|
|
83
|
-
**File Generation Order:**
|
|
84
|
-
1. Create root directory
|
|
85
|
-
2. Create package.json
|
|
86
|
-
3. Create tsconfig.json
|
|
87
|
-
4. Create tsup.config.ts
|
|
88
|
-
5. Create src/index.ts
|
|
89
|
-
6. Create README.md
|
|
90
|
-
7. Create .gitignore
|
|
91
|
-
8. Create templates based on type
|
|
92
|
-
|
|
93
|
-
### 5. SHOW NEXT STEPS
|
|
94
|
-
|
|
95
|
-
Display instructions for:
|
|
96
|
-
- Installing dependencies
|
|
97
|
-
- Editing templates
|
|
98
|
-
- Building the extension
|
|
99
|
-
- Publishing
|
|
100
|
-
|
|
101
|
-
## Type-Specific Templates
|
|
102
|
-
|
|
103
|
-
### Command Template Structure
|
|
104
|
-
|
|
105
|
-
```yaml
|
|
106
|
-
---
|
|
107
|
-
description: {description}
|
|
108
|
-
argument-hint: <task-description>
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
# {PascalCaseName}
|
|
112
|
-
|
|
113
|
-
{description}
|
|
114
|
-
|
|
115
|
-
## Workflow
|
|
116
|
-
[phases]
|
|
117
|
-
|
|
118
|
-
## Execution Rules
|
|
119
|
-
[rules]
|
|
120
|
-
|
|
121
|
-
## Priority
|
|
122
|
-
[priority statement]
|
|
123
|
-
|
|
124
|
-
---
|
|
125
|
-
User: $ARGUMENTS
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
### Agent Template Structure
|
|
129
|
-
|
|
130
|
-
```yaml
|
|
131
|
-
---
|
|
132
|
-
name: {kebab-case-name}
|
|
133
|
-
description: {description}
|
|
134
|
-
color: yellow
|
|
135
|
-
model: haiku
|
|
136
|
-
---
|
|
137
|
-
|
|
138
|
-
# {PascalCaseName} Agent
|
|
139
|
-
|
|
140
|
-
## Search Strategy
|
|
141
|
-
[strategy]
|
|
142
|
-
|
|
143
|
-
## Output Format
|
|
144
|
-
[format]
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
### Skill Template Structure
|
|
148
|
-
|
|
149
|
-
```yaml
|
|
150
|
-
---
|
|
151
|
-
name: {kebab-case-name}
|
|
152
|
-
description: {description}
|
|
153
|
-
---
|
|
154
|
-
|
|
155
|
-
# {PascalCaseName} Skill
|
|
156
|
-
|
|
157
|
-
## Phases
|
|
158
|
-
[phase table]
|
|
159
|
-
|
|
160
|
-
## Workflow Diagram
|
|
161
|
-
[ASCII diagram]
|
|
162
|
-
|
|
163
|
-
## Model Strategy
|
|
164
|
-
[cost table]
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
### Hook Template Structure
|
|
168
|
-
|
|
169
|
-
```yaml
|
|
170
|
-
---
|
|
171
|
-
description: {description}
|
|
172
|
-
trigger: pre-commit
|
|
173
|
-
blocking: true
|
|
174
|
-
---
|
|
175
|
-
|
|
176
|
-
# {PascalCaseName} Hook
|
|
177
|
-
|
|
178
|
-
## Patterns to Detect
|
|
179
|
-
[patterns]
|
|
180
|
-
|
|
181
|
-
## Detection Script
|
|
182
|
-
[bash script]
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
## Execution Rules
|
|
186
|
-
|
|
187
|
-
1. **ALWAYS** validate name format before creating files
|
|
188
|
-
2. **NEVER** overwrite existing directories
|
|
189
|
-
3. Use Write tool for all file creation
|
|
190
|
-
4. Generate complete, working templates
|
|
191
|
-
5. Include practical examples in generated code
|
|
192
|
-
|
|
193
|
-
## Output Format
|
|
194
|
-
|
|
195
|
-
After creation, display:
|
|
196
|
-
|
|
197
|
-
```
|
|
198
|
-
╔═══════════════════════════════════════════════════════════╗
|
|
199
|
-
║ SMARTSTACK EXTENSION CREATED ║
|
|
200
|
-
╠═══════════════════════════════════════════════════════════╣
|
|
201
|
-
║ Name: smartstack-{name} ║
|
|
202
|
-
║ Type: {type} ║
|
|
203
|
-
║ Location: {full-path} ║
|
|
204
|
-
╠═══════════════════════════════════════════════════════════╣
|
|
205
|
-
║ Next steps: ║
|
|
206
|
-
║ 1. cd smartstack-{name} ║
|
|
207
|
-
║ 2. npm install ║
|
|
208
|
-
║ 3. Edit templates in templates/ folder ║
|
|
209
|
-
║ 4. npm run build ║
|
|
210
|
-
║ 5. npm publish (when ready) ║
|
|
211
|
-
╚═══════════════════════════════════════════════════════════╝
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
## Priority
|
|
215
|
-
|
|
216
|
-
Completeness > Correctness > Speed
|
|
217
|
-
|
|
218
|
-
---
|
|
219
|
-
|
|
220
|
-
User: $ARGUMENTS
|
|
1
|
+
---
|
|
2
|
+
description: Create SmartStack projects and extensions
|
|
3
|
+
argument-hint: <type> <name> [description]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# SmartStack Creator
|
|
7
|
+
|
|
8
|
+
Create complete project structures for SmartStack applications and extensions.
|
|
9
|
+
|
|
10
|
+
## Supported Types
|
|
11
|
+
|
|
12
|
+
| Type | Command | Description |
|
|
13
|
+
|------|---------|-------------|
|
|
14
|
+
| **project** | `/create:project` | Full-stack app (.NET + React + Vite + Tailwind) |
|
|
15
|
+
| **command** | `/create:command` | Slash command (like /apex, /gitflow) |
|
|
16
|
+
| **agent** | `/create:agent` | Specialized execution agent |
|
|
17
|
+
| **skill** | `/create:skill` | Multi-phase workflow orchestrator |
|
|
18
|
+
| **hook** | `/create:hook` | Git operation validator |
|
|
19
|
+
| **plugin** | `/create:plugin` | Full CLI extension with all types |
|
|
20
|
+
|
|
21
|
+
## Quick Usage
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
/create project MyApp "My awesome full-stack application"
|
|
25
|
+
/create command my-feature "Description of my feature command"
|
|
26
|
+
/create agent code-reviewer "Agent for reviewing code quality"
|
|
27
|
+
/create skill deployment "Multi-phase deployment workflow"
|
|
28
|
+
/create hook security-check "Pre-commit security validation"
|
|
29
|
+
/create plugin my-toolkit "Complete CLI toolkit extension"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Workflow
|
|
33
|
+
|
|
34
|
+
### 1. PARSE ARGUMENTS
|
|
35
|
+
|
|
36
|
+
Extract from `$ARGUMENTS`:
|
|
37
|
+
- **type**: command | agent | skill | hook | plugin
|
|
38
|
+
- **name**: Extension name (kebab-case)
|
|
39
|
+
- **description**: Optional description
|
|
40
|
+
|
|
41
|
+
If arguments missing, use AskUserQuestion to gather:
|
|
42
|
+
- Type of extension
|
|
43
|
+
- Name (validate kebab-case)
|
|
44
|
+
- Description
|
|
45
|
+
|
|
46
|
+
### 2. VALIDATE
|
|
47
|
+
|
|
48
|
+
Check:
|
|
49
|
+
- Name is valid kebab-case: `^[a-z][a-z0-9-]*$`
|
|
50
|
+
- Type is supported
|
|
51
|
+
- Target directory doesn't already exist
|
|
52
|
+
|
|
53
|
+
### 3. CREATE PROJECT STRUCTURE
|
|
54
|
+
|
|
55
|
+
Create the following structure:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
smartstack-{name}/
|
|
59
|
+
├── package.json # npm package configuration
|
|
60
|
+
├── tsconfig.json # TypeScript configuration
|
|
61
|
+
├── tsup.config.ts # Build configuration
|
|
62
|
+
├── README.md # Documentation
|
|
63
|
+
├── .gitignore # Git ignore rules
|
|
64
|
+
├── src/
|
|
65
|
+
│ └── index.ts # Main entry point
|
|
66
|
+
└── templates/
|
|
67
|
+
├── commands/ # Command templates
|
|
68
|
+
│ └── {name}.md
|
|
69
|
+
├── agents/ # Agent templates
|
|
70
|
+
│ └── {name}.md
|
|
71
|
+
├── skills/ # Skill templates
|
|
72
|
+
│ └── {name}/
|
|
73
|
+
│ ├── SKILL.md
|
|
74
|
+
│ └── 1-*.md (phases)
|
|
75
|
+
└── hooks/ # Hook templates
|
|
76
|
+
└── {name}.md
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### 4. GENERATE FILES
|
|
80
|
+
|
|
81
|
+
Use the Write tool to create each file with proper content.
|
|
82
|
+
|
|
83
|
+
**File Generation Order:**
|
|
84
|
+
1. Create root directory
|
|
85
|
+
2. Create package.json
|
|
86
|
+
3. Create tsconfig.json
|
|
87
|
+
4. Create tsup.config.ts
|
|
88
|
+
5. Create src/index.ts
|
|
89
|
+
6. Create README.md
|
|
90
|
+
7. Create .gitignore
|
|
91
|
+
8. Create templates based on type
|
|
92
|
+
|
|
93
|
+
### 5. SHOW NEXT STEPS
|
|
94
|
+
|
|
95
|
+
Display instructions for:
|
|
96
|
+
- Installing dependencies
|
|
97
|
+
- Editing templates
|
|
98
|
+
- Building the extension
|
|
99
|
+
- Publishing
|
|
100
|
+
|
|
101
|
+
## Type-Specific Templates
|
|
102
|
+
|
|
103
|
+
### Command Template Structure
|
|
104
|
+
|
|
105
|
+
```yaml
|
|
106
|
+
---
|
|
107
|
+
description: {description}
|
|
108
|
+
argument-hint: <task-description>
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
# {PascalCaseName}
|
|
112
|
+
|
|
113
|
+
{description}
|
|
114
|
+
|
|
115
|
+
## Workflow
|
|
116
|
+
[phases]
|
|
117
|
+
|
|
118
|
+
## Execution Rules
|
|
119
|
+
[rules]
|
|
120
|
+
|
|
121
|
+
## Priority
|
|
122
|
+
[priority statement]
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
User: $ARGUMENTS
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Agent Template Structure
|
|
129
|
+
|
|
130
|
+
```yaml
|
|
131
|
+
---
|
|
132
|
+
name: {kebab-case-name}
|
|
133
|
+
description: {description}
|
|
134
|
+
color: yellow
|
|
135
|
+
model: haiku
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
# {PascalCaseName} Agent
|
|
139
|
+
|
|
140
|
+
## Search Strategy
|
|
141
|
+
[strategy]
|
|
142
|
+
|
|
143
|
+
## Output Format
|
|
144
|
+
[format]
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Skill Template Structure
|
|
148
|
+
|
|
149
|
+
```yaml
|
|
150
|
+
---
|
|
151
|
+
name: {kebab-case-name}
|
|
152
|
+
description: {description}
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
# {PascalCaseName} Skill
|
|
156
|
+
|
|
157
|
+
## Phases
|
|
158
|
+
[phase table]
|
|
159
|
+
|
|
160
|
+
## Workflow Diagram
|
|
161
|
+
[ASCII diagram]
|
|
162
|
+
|
|
163
|
+
## Model Strategy
|
|
164
|
+
[cost table]
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Hook Template Structure
|
|
168
|
+
|
|
169
|
+
```yaml
|
|
170
|
+
---
|
|
171
|
+
description: {description}
|
|
172
|
+
trigger: pre-commit
|
|
173
|
+
blocking: true
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
# {PascalCaseName} Hook
|
|
177
|
+
|
|
178
|
+
## Patterns to Detect
|
|
179
|
+
[patterns]
|
|
180
|
+
|
|
181
|
+
## Detection Script
|
|
182
|
+
[bash script]
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
## Execution Rules
|
|
186
|
+
|
|
187
|
+
1. **ALWAYS** validate name format before creating files
|
|
188
|
+
2. **NEVER** overwrite existing directories
|
|
189
|
+
3. Use Write tool for all file creation
|
|
190
|
+
4. Generate complete, working templates
|
|
191
|
+
5. Include practical examples in generated code
|
|
192
|
+
|
|
193
|
+
## Output Format
|
|
194
|
+
|
|
195
|
+
After creation, display:
|
|
196
|
+
|
|
197
|
+
```
|
|
198
|
+
╔═══════════════════════════════════════════════════════════╗
|
|
199
|
+
║ SMARTSTACK EXTENSION CREATED ║
|
|
200
|
+
╠═══════════════════════════════════════════════════════════╣
|
|
201
|
+
║ Name: smartstack-{name} ║
|
|
202
|
+
║ Type: {type} ║
|
|
203
|
+
║ Location: {full-path} ║
|
|
204
|
+
╠═══════════════════════════════════════════════════════════╣
|
|
205
|
+
║ Next steps: ║
|
|
206
|
+
║ 1. cd smartstack-{name} ║
|
|
207
|
+
║ 2. npm install ║
|
|
208
|
+
║ 3. Edit templates in templates/ folder ║
|
|
209
|
+
║ 4. npm run build ║
|
|
210
|
+
║ 5. npm publish (when ready) ║
|
|
211
|
+
╚═══════════════════════════════════════════════════════════╝
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## Priority
|
|
215
|
+
|
|
216
|
+
Completeness > Correctness > Speed
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
User: $ARGUMENTS
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Systematic bug debugging with deep analysis and resolution
|
|
3
|
-
argument-hint: <log|error|problem-description>
|
|
4
|
-
allowed-tools: Bash, Read, Edit, MultiEdit, Write, Grep, Glob, Task, WebSearch, WebFetch
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
You are a systematic debugging specialist. Follow this ultra-deep analysis workflow to identify, understand, and resolve bugs.
|
|
8
|
-
|
|
9
|
-
**You need to always ULTRA THINK.**
|
|
10
|
-
|
|
11
|
-
## Workflow
|
|
12
|
-
|
|
13
|
-
1. **ANALYZE**: Deep log/error analysis
|
|
14
|
-
- Parse the provided log/error message carefully
|
|
15
|
-
- Extract key error patterns, stack traces, and symptoms
|
|
16
|
-
- Identify error types: runtime, compile-time, logic, performance
|
|
17
|
-
- **CRITICAL**: Document exact error context and reproduction steps
|
|
18
|
-
|
|
19
|
-
2. **EXPLORE**: Targeted codebase investigation
|
|
20
|
-
- Launch **parallel subagents** to search for error-related code (`explore-codebase`, `explore-docs`, `websearch`)
|
|
21
|
-
- Search for similar error patterns in codebase using Grep
|
|
22
|
-
- Find all files related to the failing component/module
|
|
23
|
-
- Examine recent changes that might have introduced the bug
|
|
24
|
-
- **ULTRA THINK**: Connect error symptoms to potential root causes
|
|
25
|
-
|
|
26
|
-
3. **ULTRA-THINK**: Deep root cause analysis
|
|
27
|
-
- **THINK DEEPLY** about the error chain: symptoms → immediate cause → root cause
|
|
28
|
-
- Consider all possible causes:
|
|
29
|
-
- Code logic errors
|
|
30
|
-
- Configuration issues
|
|
31
|
-
- Environment problems
|
|
32
|
-
- Race conditions
|
|
33
|
-
- Memory issues
|
|
34
|
-
- Network problems
|
|
35
|
-
- **CRITICAL**: Map the complete failure path from root cause to visible symptom
|
|
36
|
-
- Validate hypotheses against the evidence
|
|
37
|
-
|
|
38
|
-
4. **RESEARCH**: Solution investigation
|
|
39
|
-
- Launch **parallel subagents** for web research (`websearch`)
|
|
40
|
-
- Search for similar issues and solutions online
|
|
41
|
-
- Check documentation for affected libraries/frameworks
|
|
42
|
-
- Look for known bugs, workarounds, and best practices
|
|
43
|
-
- **THINK**: Evaluate solution approaches for this specific context
|
|
44
|
-
|
|
45
|
-
5. **IMPLEMENT**: Systematic resolution
|
|
46
|
-
- Choose the most appropriate solution based on analysis
|
|
47
|
-
- Follow existing codebase patterns and conventions
|
|
48
|
-
- Implement minimal, targeted fixes
|
|
49
|
-
- **STAY IN SCOPE**: Fix only what's needed for this specific bug
|
|
50
|
-
- Add defensive programming where appropriate
|
|
51
|
-
|
|
52
|
-
6. **VERIFY**: Comprehensive testing
|
|
53
|
-
- Test the specific scenario that was failing
|
|
54
|
-
- Run related tests to ensure no regressions
|
|
55
|
-
- Check edge cases around the fix
|
|
56
|
-
- **CRITICAL**: Verify the original error is completely resolved
|
|
57
|
-
|
|
58
|
-
## Deep Analysis Techniques
|
|
59
|
-
|
|
60
|
-
### Log Analysis
|
|
61
|
-
|
|
62
|
-
- Extract timestamps, error codes, stack traces
|
|
63
|
-
- Identify error propagation patterns
|
|
64
|
-
- Look for correlation with system events
|
|
65
|
-
|
|
66
|
-
### Code Investigation
|
|
67
|
-
|
|
68
|
-
- Trace execution path to error location
|
|
69
|
-
- Check variable states and data flow
|
|
70
|
-
- Examine error handling patterns
|
|
71
|
-
- Review recent commits affecting the area
|
|
72
|
-
|
|
73
|
-
### Root Cause Mapping
|
|
74
|
-
|
|
75
|
-
- **WHY technique**: Ask "why" 5 times minimum
|
|
76
|
-
- Consider environmental factors
|
|
77
|
-
- Check for timing/concurrency issues
|
|
78
|
-
- Validate assumptions about data/state
|
|
79
|
-
|
|
80
|
-
## Execution Rules
|
|
81
|
-
|
|
82
|
-
- **ULTRA THINK** at each phase transition
|
|
83
|
-
- Use parallel agents for comprehensive investigation
|
|
84
|
-
- Document findings and reasoning at each step
|
|
85
|
-
- **NEVER guess** - validate all hypotheses with evidence
|
|
86
|
-
- **MINIMAL CHANGES**: Fix root cause, not symptoms
|
|
87
|
-
- Test thoroughly before declaring resolution complete
|
|
88
|
-
|
|
89
|
-
## Priority
|
|
90
|
-
|
|
91
|
-
Understanding > Speed > Completeness. Every bug must be fully understood before attempting fixes.
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
User: $ARGUMENTS
|
|
1
|
+
---
|
|
2
|
+
description: Systematic bug debugging with deep analysis and resolution
|
|
3
|
+
argument-hint: <log|error|problem-description>
|
|
4
|
+
allowed-tools: Bash, Read, Edit, MultiEdit, Write, Grep, Glob, Task, WebSearch, WebFetch
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are a systematic debugging specialist. Follow this ultra-deep analysis workflow to identify, understand, and resolve bugs.
|
|
8
|
+
|
|
9
|
+
**You need to always ULTRA THINK.**
|
|
10
|
+
|
|
11
|
+
## Workflow
|
|
12
|
+
|
|
13
|
+
1. **ANALYZE**: Deep log/error analysis
|
|
14
|
+
- Parse the provided log/error message carefully
|
|
15
|
+
- Extract key error patterns, stack traces, and symptoms
|
|
16
|
+
- Identify error types: runtime, compile-time, logic, performance
|
|
17
|
+
- **CRITICAL**: Document exact error context and reproduction steps
|
|
18
|
+
|
|
19
|
+
2. **EXPLORE**: Targeted codebase investigation
|
|
20
|
+
- Launch **parallel subagents** to search for error-related code (`explore-codebase`, `explore-docs`, `websearch`)
|
|
21
|
+
- Search for similar error patterns in codebase using Grep
|
|
22
|
+
- Find all files related to the failing component/module
|
|
23
|
+
- Examine recent changes that might have introduced the bug
|
|
24
|
+
- **ULTRA THINK**: Connect error symptoms to potential root causes
|
|
25
|
+
|
|
26
|
+
3. **ULTRA-THINK**: Deep root cause analysis
|
|
27
|
+
- **THINK DEEPLY** about the error chain: symptoms → immediate cause → root cause
|
|
28
|
+
- Consider all possible causes:
|
|
29
|
+
- Code logic errors
|
|
30
|
+
- Configuration issues
|
|
31
|
+
- Environment problems
|
|
32
|
+
- Race conditions
|
|
33
|
+
- Memory issues
|
|
34
|
+
- Network problems
|
|
35
|
+
- **CRITICAL**: Map the complete failure path from root cause to visible symptom
|
|
36
|
+
- Validate hypotheses against the evidence
|
|
37
|
+
|
|
38
|
+
4. **RESEARCH**: Solution investigation
|
|
39
|
+
- Launch **parallel subagents** for web research (`websearch`)
|
|
40
|
+
- Search for similar issues and solutions online
|
|
41
|
+
- Check documentation for affected libraries/frameworks
|
|
42
|
+
- Look for known bugs, workarounds, and best practices
|
|
43
|
+
- **THINK**: Evaluate solution approaches for this specific context
|
|
44
|
+
|
|
45
|
+
5. **IMPLEMENT**: Systematic resolution
|
|
46
|
+
- Choose the most appropriate solution based on analysis
|
|
47
|
+
- Follow existing codebase patterns and conventions
|
|
48
|
+
- Implement minimal, targeted fixes
|
|
49
|
+
- **STAY IN SCOPE**: Fix only what's needed for this specific bug
|
|
50
|
+
- Add defensive programming where appropriate
|
|
51
|
+
|
|
52
|
+
6. **VERIFY**: Comprehensive testing
|
|
53
|
+
- Test the specific scenario that was failing
|
|
54
|
+
- Run related tests to ensure no regressions
|
|
55
|
+
- Check edge cases around the fix
|
|
56
|
+
- **CRITICAL**: Verify the original error is completely resolved
|
|
57
|
+
|
|
58
|
+
## Deep Analysis Techniques
|
|
59
|
+
|
|
60
|
+
### Log Analysis
|
|
61
|
+
|
|
62
|
+
- Extract timestamps, error codes, stack traces
|
|
63
|
+
- Identify error propagation patterns
|
|
64
|
+
- Look for correlation with system events
|
|
65
|
+
|
|
66
|
+
### Code Investigation
|
|
67
|
+
|
|
68
|
+
- Trace execution path to error location
|
|
69
|
+
- Check variable states and data flow
|
|
70
|
+
- Examine error handling patterns
|
|
71
|
+
- Review recent commits affecting the area
|
|
72
|
+
|
|
73
|
+
### Root Cause Mapping
|
|
74
|
+
|
|
75
|
+
- **WHY technique**: Ask "why" 5 times minimum
|
|
76
|
+
- Consider environmental factors
|
|
77
|
+
- Check for timing/concurrency issues
|
|
78
|
+
- Validate assumptions about data/state
|
|
79
|
+
|
|
80
|
+
## Execution Rules
|
|
81
|
+
|
|
82
|
+
- **ULTRA THINK** at each phase transition
|
|
83
|
+
- Use parallel agents for comprehensive investigation
|
|
84
|
+
- Document findings and reasoning at each step
|
|
85
|
+
- **NEVER guess** - validate all hypotheses with evidence
|
|
86
|
+
- **MINIMAL CHANGES**: Fix root cause, not symptoms
|
|
87
|
+
- Test thoroughly before declaring resolution complete
|
|
88
|
+
|
|
89
|
+
## Priority
|
|
90
|
+
|
|
91
|
+
Understanding > Speed > Completeness. Every bug must be fully understood before attempting fixes.
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
User: $ARGUMENTS
|