@atlashub/smartstack-cli 1.3.0 → 1.4.1

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.
@@ -0,0 +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