@atlashub/smartstack-cli 1.6.1 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,127 +16,570 @@
16
16
 
17
17
  **By [AtlasHub](https://www.atlashub.ch)** | [support@atlashub.ch](mailto:support@atlashub.ch)
18
18
 
19
+ ## What's New in v1.5.2
20
+
21
+ - **Azure DevOps Support** - Full GitFlow integration with Azure DevOps PRs and pipelines
22
+ - **npm Auto-Publish** - Automated publishing via Azure Pipelines (@next and @latest tags)
23
+ - **Ralph Loop Integration** - Fully automated BA orchestration with Ralph Loop framework
24
+ - **Prompts System** - Expert prompt creation and optimization tools
25
+ - **Quick Search** - Lightning-fast codebase exploration
26
+
27
+ ---
28
+
29
+ ## Table of Contents
30
+
31
+ - [Prerequisites](#prerequisites)
32
+ - [Installation](#installation)
33
+ - [Update](#update)
34
+ - [Project Creation](#project-creation)
35
+ - [CLI Commands](#cli-commands)
36
+ - [Claude Code Commands](#claude-code-commands)
37
+ - [VS Code Configuration](#vs-code-configuration)
38
+ - [Troubleshooting](#troubleshooting)
39
+
40
+ ---
41
+
42
+ ## Prerequisites
43
+
44
+ ### 1. Node.js (v18 or higher)
45
+
46
+ **Download:** https://nodejs.org/
47
+
48
+ Verify installation:
49
+ ```powershell
50
+ node --version # Should display v18.x.x or higher
51
+ npm --version # Should display 9.x.x or higher
52
+ ```
53
+
54
+ ### 2. .NET SDK (v10.0 or higher)
55
+
56
+ **Download:** https://dotnet.microsoft.com/download
57
+
58
+ Verify installation:
59
+ ```powershell
60
+ dotnet --version # Should display 10.x.x or higher
61
+ ```
62
+
63
+ ### 3. Visual Studio Code
64
+
65
+ **Download:** https://code.visualstudio.com/
66
+
67
+ ### 4. Claude Code Extension for VS Code
68
+
69
+ 1. Open VS Code
70
+ 2. Open Extensions panel (`Ctrl+Shift+X`)
71
+ 3. Search for "Claude Code"
72
+ 4. Click **Install**
73
+
74
+ Or via terminal:
75
+ ```powershell
76
+ code --install-extension anthropic.claude-code
77
+ ```
78
+
79
+ ### 5. MCP Servers (Recommended)
80
+
81
+ MCP servers enhance the development experience:
82
+
83
+ ```powershell
84
+ # SmartStack MCP - Convention validation, scaffolding, API docs
85
+ claude mcp add smartstack
86
+
87
+ # Context7 MCP - Library documentation, code examples
88
+ claude mcp add context7
89
+ ```
90
+
19
91
  ---
20
92
 
21
93
  ## Installation
22
94
 
23
- ```bash
24
- # Install globally
95
+ ### Step 1: Install the npm package
96
+
97
+ ```powershell
25
98
  npm install -g @atlashub/smartstack-cli
99
+ ```
26
100
 
27
- # Install commands to Claude Code
101
+ ### Step 2: Install commands into Claude Code
102
+
103
+ ```powershell
28
104
  smartstack install
105
+ ```
29
106
 
30
- # Or use the short alias
107
+ Or with the short alias:
108
+ ```powershell
31
109
  ss install
32
110
  ```
33
111
 
34
- ## Usage
112
+ ### Step 3: Verify installation
113
+
114
+ ```powershell
115
+ smartstack status --verbose
116
+ ```
117
+
118
+ ### Local Installation (project only)
119
+
120
+ If you prefer a project-scoped installation:
121
+
122
+ ```powershell
123
+ cd C:\path\to\your\project
124
+ smartstack install --local
125
+ ```
126
+
127
+ ---
128
+
129
+ ## Update
130
+
131
+ ### Update SmartStack CLI
132
+
133
+ ```powershell
134
+ # Automatic update (package + commands)
135
+ smartstack update
136
+ ```
137
+
138
+ ### Manual Update
139
+
140
+ ```powershell
141
+ # 1. Update npm package
142
+ npm update -g @atlashub/smartstack-cli
143
+
144
+ # 2. Reinstall commands
145
+ smartstack install --force
146
+ ```
147
+
148
+ ### Check for available updates
149
+
150
+ ```powershell
151
+ npm outdated -g @atlashub/smartstack-cli
152
+ ```
153
+
154
+ ---
155
+
156
+ ## Project Creation
157
+
158
+ ### Method 1: `smartstack init` command (Recommended)
159
+
160
+ The `smartstack init` command creates a complete SmartStack project with an interactive wizard.
35
161
 
36
- After installation, the following commands are available in Claude Code:
162
+ #### Interactive creation
163
+
164
+ ```powershell
165
+ smartstack init MyProject
166
+ ```
167
+
168
+ The wizard will ask for:
169
+ 1. **Project type**: Full Stack, Backend Only, or Frontend Only
170
+ 2. **Database**: SQL Server, PostgreSQL, or SQLite
171
+ 3. **Modules**: Auth, Navigation, AI, Notifications
172
+
173
+ #### Quick creation (default values)
174
+
175
+ ```powershell
176
+ smartstack init MyProject -y
177
+ ```
178
+
179
+ #### Available options
180
+
181
+ | Option | Description |
182
+ |--------|-------------|
183
+ | `--full-stack` | Backend .NET + Frontend React (default) |
184
+ | `--backend` | Backend .NET only |
185
+ | `--frontend` | Frontend React only |
186
+ | `--db <type>` | Database: `sqlserver`, `postgresql`, `sqlite` |
187
+ | `--dry-run` | Simulation without creating files |
188
+ | `--skip-mcp-check` | Skip MCP servers verification |
189
+ | `-y, --yes` | Use default values |
190
+
191
+ #### Examples
192
+
193
+ ```powershell
194
+ # Full-stack project with SQL Server (default)
195
+ smartstack init MyApp
196
+
197
+ # Backend only with PostgreSQL
198
+ smartstack init MyApi --backend --db postgresql
199
+
200
+ # Frontend only
201
+ smartstack init MyFrontend --frontend
202
+
203
+ # Simulation (see what would be created)
204
+ smartstack init MyProject --dry-run
205
+ ```
206
+
207
+ #### Created structure
208
+
209
+ ```
210
+ MyProject/
211
+ ├── src/
212
+ │ ├── MyProject.Domain/ # Entities and interfaces
213
+ │ ├── MyProject.Application/ # Services and DTOs
214
+ │ ├── MyProject.Infrastructure/ # EF Core, repositories
215
+ │ └── MyProject.Api/ # Controllers and configuration
216
+ ├── web/
217
+ │ └── myproject-web/ # Frontend React + Vite
218
+ ├── tests/
219
+ ├── MyProject.sln
220
+ ├── Directory.Build.props
221
+ ├── .gitignore
222
+ └── README.md
223
+ ```
224
+
225
+ #### After creation
226
+
227
+ ```powershell
228
+ cd MyProject
229
+
230
+ # 1. Configure connection string in appsettings.json
231
+
232
+ # 2. Create initial migration
233
+ dotnet ef migrations add InitialCreate -p src/MyProject.Infrastructure -s src/MyProject.Api
234
+
235
+ # 3. Apply migration
236
+ dotnet ef database update -p src/MyProject.Infrastructure -s src/MyProject.Api
237
+
238
+ # 4. Run backend
239
+ dotnet run --project src/MyProject.Api
240
+
241
+ # 5. Run frontend (another terminal)
242
+ cd web/myproject-web
243
+ npm run dev
244
+ ```
245
+
246
+ ### Method 2: Initialize existing project with GitFlow
247
+
248
+ If you already have a project and want to add GitFlow:
249
+
250
+ ```powershell
251
+ cd C:\Projects\MyExistingProject
252
+ code .
253
+ ```
254
+
255
+ In VS Code with Claude Code active:
256
+ ```
257
+ /gitflow:1-init
258
+ ```
259
+
260
+ ---
261
+
262
+ ## CLI Commands
263
+
264
+ All commands support the short alias `ss` (e.g., `ss install`, `ss status`).
265
+
266
+ ### install
267
+
268
+ Install SmartStack commands, agents, and hooks.
269
+
270
+ ```powershell
271
+ smartstack install [options]
272
+ ```
273
+
274
+ | Option | Alias | Description |
275
+ |--------|-------|-------------|
276
+ | `--force` | `-f` | Overwrite existing files |
277
+ | `--global` | `-g` | Install to ~/.claude (default) |
278
+ | `--local` | `-l` | Install to ./.claude (project) |
279
+ | `--commands-only` | | Install only commands |
280
+ | `--agents-only` | | Install only agents |
281
+ | `--hooks-only` | | Install only hooks |
282
+ | `--no-config` | | Skip config file creation |
283
+ | `--no-plugins` | | Skip Claude Code plugin installation |
284
+
285
+ ### uninstall
286
+
287
+ Remove SmartStack commands, agents, and hooks.
288
+
289
+ ```powershell
290
+ smartstack uninstall [options]
291
+ ```
292
+
293
+ | Option | Alias | Description |
294
+ |--------|-------|-------------|
295
+ | `--global` | `-g` | Uninstall from ~/.claude (default) |
296
+ | `--local` | `-l` | Uninstall from ./.claude |
297
+ | `--commands-only` | | Remove only commands |
298
+ | `--agents-only` | | Remove only agents |
299
+ | `--hooks-only` | | Remove only hooks |
300
+ | `--keep-config` | | Keep configuration file |
301
+ | `--yes` | `-y` | Skip confirmation prompt |
302
+
303
+ ### status
304
+
305
+ Show installation status.
306
+
307
+ ```powershell
308
+ smartstack status [options]
309
+ ```
310
+
311
+ | Option | Alias | Description |
312
+ |--------|-------|-------------|
313
+ | `--global` | `-g` | Check ~/.claude (default) |
314
+ | `--local` | `-l` | Check ./.claude |
315
+ | `--verbose` | `-v` | Show detailed command list |
316
+
317
+ ### update
318
+
319
+ Update commands to the latest version.
320
+
321
+ ```powershell
322
+ smartstack update [options]
323
+ ```
324
+
325
+ | Option | Alias | Description |
326
+ |--------|-------|-------------|
327
+ | `--global` | `-g` | Update ~/.claude (default) |
328
+ | `--local` | `-l` | Update ./.claude |
329
+
330
+ ### init
331
+
332
+ Initialize a new SmartStack project.
333
+
334
+ ```powershell
335
+ smartstack init <name> [options]
336
+ ```
337
+
338
+ | Option | Alias | Description |
339
+ |--------|-------|-------------|
340
+ | `--full-stack` | | Backend + Frontend (default) |
341
+ | `--backend` | | Backend .NET only |
342
+ | `--frontend` | | Frontend React only |
343
+ | `--db <type>` | | Database: sqlserver, postgresql, sqlite |
344
+ | `--dry-run` | | Show what would be created |
345
+ | `--yes` | `-y` | Skip prompts, use defaults |
346
+ | `--skip-mcp-check` | | Skip MCP servers check |
347
+
348
+ ### docs
349
+
350
+ Open SmartStack documentation in browser.
351
+
352
+ ```powershell
353
+ smartstack docs [page] [options]
354
+ ```
355
+
356
+ | Option | Alias | Description |
357
+ |--------|-------|-------------|
358
+ | `--list` | `-l` | List available documentation pages |
359
+
360
+ **Available pages:**
361
+ - `index` - Home page
362
+ - `installation` - Installation guide
363
+ - `commands` - Commands reference
364
+ - `agents` - Agents documentation
365
+ - `apex` - APEX methodology
366
+ - `business-analyse` - Business Analysis workflow
367
+ - `gitflow` - GitFlow workflow
368
+ - `efcore` - EF Core migrations
369
+ - `hooks` - Hooks configuration
370
+ - `test-web` - Web testing
371
+
372
+ **Examples:**
373
+ ```powershell
374
+ smartstack docs # Open home page
375
+ smartstack docs gitflow # Open GitFlow documentation
376
+ smartstack docs --list # List all available pages
377
+ ```
378
+
379
+ ### license
380
+
381
+ Manage SmartStack CLI license.
382
+
383
+ ```powershell
384
+ smartstack license <command> [options]
385
+ ```
386
+
387
+ | Command | Description |
388
+ |---------|-------------|
389
+ | `activate <key>` | Activate a license key |
390
+ | `status` | Show current license status |
391
+ | `deactivate` | Remove the current license |
392
+ | `verify <key>` | Verify a license key without activating |
393
+
394
+ **Examples:**
395
+ ```powershell
396
+ smartstack license activate ABC123-DEF456 # Activate license
397
+ smartstack license status # Check license status
398
+ smartstack license deactivate # Remove license
399
+ smartstack license verify ABC123-DEF456 # Verify without activating
400
+ ```
401
+
402
+ ---
403
+
404
+ ## Claude Code Commands
37
405
 
38
406
  ### GitFlow Workflow
39
407
 
40
- - `/gitflow` - Full GitFlow workflow
41
- - `/gitflow:1-init` - Initialize GitFlow structure
42
- - `/gitflow:2-status` - Show repository status
43
- - `/gitflow:3-commit` - Smart commit with validation
44
- - `/gitflow:4-plan` - Create integration plan
45
- - `/gitflow:5-exec` - Execute integration plan
46
- - `/gitflow:6-abort` - Rollback operations
47
- - `/gitflow:7-pull-request` - Create PR
48
- - `/gitflow:8-review` - Review PR
49
- - `/gitflow:9-merge` - Merge PR
50
- - `/gitflow:10-start` - Start feature/release/hotfix
51
- - `/gitflow:11-finish` - Finish and tag
52
- - `/gitflow:12-cleanup` - Cleanup worktrees
408
+ | Command | Description |
409
+ |---------|-------------|
410
+ | `/gitflow` | Full GitFlow workflow |
411
+ | `/gitflow:1-init` | Initialize GitFlow structure |
412
+ | `/gitflow:2-status` | Show repository status |
413
+ | `/gitflow:3-commit` | Smart commit with validation |
414
+ | `/gitflow:4-plan` | Create integration plan |
415
+ | `/gitflow:5-exec` | Execute integration plan |
416
+ | `/gitflow:6-abort` | Rollback operations |
417
+ | `/gitflow:10-start` | Start feature/release/hotfix |
418
+ | `/gitflow:11-finish` | Finish and tag |
419
+ | `/gitflow:12-cleanup` | Cleanup worktrees |
420
+ | `/gitflow:13-sync` | Sync with remote |
421
+ | `/gitflow:14-rebase` | Rebase on develop |
422
+ | `/gitflow:7-pull-request` | Create a Pull Request |
423
+ | `/gitflow:8-review` | Review a PR |
424
+ | `/gitflow:9-merge` | Merge a PR |
53
425
 
54
426
  ### Development Methodologies
55
427
 
56
- - `/apex` - APEX methodology (Analyze-Plan-Execute-eXamine)
57
- - `/epct` - Explore-Plan-Code-Test methodology
58
- - `/oneshot` - Ultra-fast implementation
59
- - `/debug` - Systematic bug debugging
60
- - `/explore` - Deep codebase exploration
61
- - `/explain` - Code explanation with diagrams
62
- - `/review` - Quick code review
63
- - `/implement` - Implementation from BA handoff
428
+ | Command | Description |
429
+ |---------|-------------|
430
+ | `/apex` | APEX methodology (Analyze-Plan-Execute-eXamine) |
431
+ | `/epct` | Explore-Plan-Code-Test methodology |
432
+ | `/oneshot` | Ultra-fast implementation |
433
+ | `/debug` | Systematic debugging |
434
+ | `/explore` | Deep codebase exploration |
435
+ | `/explain` | Code explanation with diagrams |
436
+ | `/review` | Quick code review |
437
+ | `/implement` | Implementation from BA handoff |
64
438
 
65
439
  ### Business Analysis
66
440
 
67
- - `/business-analyse` - Full BA workflow with automatic orchestration
68
- - `/business-analyse:1-init` - Initialize BA structure
69
- - `/business-analyse:2-discover` - Requirements elicitation + similarity detection
70
- - `/business-analyse:3-analyse` - Business analysis (BRD)
71
- - `/business-analyse:4-specify` - Functional specification (FRD)
72
- - `/business-analyse:5-validate` - User validation gate
73
- - `/business-analyse:6-handoff` - Implementation brief (English)
74
- - `/business-analyse:7-doc-html` - Auto-generated HTML documentation
75
- - `/business-analyse:bug` - Bug resolution documentation
76
- - `/business-analyse:change-request` - Change request during development
441
+ | Command | Description |
442
+ |---------|-------------|
443
+ | `/business-analyse` | Full BA workflow with orchestration |
444
+ | `/business-analyse:1-init` | Initialize BA structure |
445
+ | `/business-analyse:2-discover` | Requirements elicitation |
446
+ | `/business-analyse:3-analyse` | Business analysis (BRD) |
447
+ | `/business-analyse:4-specify` | Functional specification (FRD) |
448
+ | `/business-analyse:5-validate` | User validation gate |
449
+ | `/business-analyse:6-handoff` | Implementation brief |
450
+ | `/business-analyse:7-doc-html` | Auto-generated HTML documentation |
451
+ | `/business-analyse:bug` | Bug resolution documentation |
452
+ | `/business-analyse:change-request` | Change request during development |
77
453
 
78
454
  ### EF Core Migrations
79
455
 
80
- - `/efcore` - EF Core orchestrator
81
- - `/efcore:migration` - Create/recreate migration
82
- - `/efcore:db-status` - Show migration status
83
- - `/efcore:db-deploy` - Apply migrations
84
- - `/efcore:db-seed` - Seed database
85
- - `/efcore:db-reset` - Reset database
86
- - `/efcore:scan` - Scan migrations across branches
87
- - `/efcore:conflicts` - Detect conflicts
88
- - `/efcore:rebase-snapshot` - Rebase ModelSnapshot
89
- - `/efcore:squash` - Squash multiple migrations
456
+ | Command | Description |
457
+ |---------|-------------|
458
+ | `/efcore` | EF Core orchestrator |
459
+ | `/efcore:migration` | Create/recreate migration |
460
+ | `/efcore:db-status` | Show migration status |
461
+ | `/efcore:db-deploy` | Apply migrations |
462
+ | `/efcore:db-seed` | Seed database |
463
+ | `/efcore:db-reset` | Reset database |
464
+ | `/efcore:scan` | Scan migrations across branches |
465
+ | `/efcore:conflicts` | Detect conflicts |
466
+ | `/efcore:rebase-snapshot` | Rebase ModelSnapshot |
467
+ | `/efcore:squash` | Squash multiple migrations |
90
468
 
91
469
  ### Prompts & Tools
92
470
 
93
- - `/prompts:create` - Expert prompt creation
94
- - `/prompts:agent` - Agent prompt optimization
95
- - `/prompts:command` - Command prompt patterns
96
- - `/prompts:claude-memory` - CLAUDE.md file management
471
+ | Command | Description |
472
+ |---------|-------------|
473
+ | `/prompts:create` | Expert prompt creation |
474
+ | `/prompts:agent` | Agent prompt optimization |
475
+ | `/prompts:command` | Command prompt patterns |
476
+ | `/prompts:claude-memory` | CLAUDE.md file management |
97
477
 
98
- ### Ralph Loop (v1.4.0)
478
+ ### Ralph Loop
99
479
 
100
- - `/ralph-loop` - Start autonomous Ralph Loop session
101
- - `/ralph-loop:cancel-ralph` - Cancel active Ralph Loop
102
- - `/ralph-loop:help` - Ralph Loop documentation
480
+ | Command | Description |
481
+ |---------|-------------|
482
+ | `/ralph-loop` | Start autonomous Ralph Loop session |
483
+ | `/ralph-loop:cancel-ralph` | Cancel active Ralph Loop |
484
+ | `/ralph-loop:help` | Ralph Loop documentation |
103
485
 
104
486
  ### Quick Search
105
487
 
106
- - `/quick-search` - Lightning-fast codebase search
488
+ | Command | Description |
489
+ |---------|-------------|
490
+ | `/quick-search` | Lightning-fast codebase search |
107
491
 
108
- ## CLI Commands
492
+ ---
109
493
 
110
- ```bash
111
- # Install commands globally
112
- smartstack install
113
- ss install # Short alias
494
+ ## VS Code Configuration
114
495
 
115
- # Install to current project only
116
- smartstack install --local
496
+ ### Recommended settings
497
+
498
+ Add to `.vscode/settings.json`:
499
+
500
+ ```json
501
+ {
502
+ "claude-code.enableSmartStack": true,
503
+ "files.associations": {
504
+ "*.md": "markdown"
505
+ },
506
+ "editor.formatOnSave": true
507
+ }
508
+ ```
509
+
510
+ ### Useful keyboard shortcuts
511
+
512
+ | Shortcut | Action |
513
+ |----------|--------|
514
+ | `Ctrl+Shift+P` | Command palette |
515
+ | `Ctrl+Shift+C` | Open Claude Code |
516
+ | `Ctrl+ù` | Integrated terminal |
517
+
518
+ ---
519
+
520
+ ## Troubleshooting
521
+
522
+ ### "smartstack" is not recognized
523
+
524
+ **Cause:** npm global is not in PATH.
525
+
526
+ **Solution:**
527
+ ```powershell
528
+ # Find npm global path
529
+ npm config get prefix
530
+
531
+ # Add to PATH (replace with your path)
532
+ $env:Path += ";C:\Users\YourName\AppData\Roaming\npm"
533
+ ```
534
+
535
+ ### Permission error
536
+
537
+ **Solution:** Run PowerShell as administrator, then:
538
+ ```powershell
539
+ npm install -g @atlashub/smartstack-cli
540
+ ```
117
541
 
118
- # Show installation status
119
- smartstack status
542
+ ### Commands don't appear in Claude Code
543
+
544
+ ```powershell
545
+ # Reinstall with force
546
+ smartstack install --force
547
+
548
+ # Check status
120
549
  smartstack status --verbose
550
+ ```
121
551
 
122
- # Update to latest version
123
- smartstack update
552
+ ### "MCP servers missing" error during `smartstack init`
553
+
554
+ **Solution:** Install required MCP servers:
555
+ ```powershell
556
+ claude mcp add smartstack
557
+ claude mcp add context7
558
+ ```
124
559
 
560
+ Or skip verification:
561
+ ```powershell
562
+ smartstack init MyProject --skip-mcp-check
563
+ ```
564
+
565
+ ### Complete reinstallation
566
+
567
+ ```powershell
125
568
  # Uninstall
126
569
  smartstack uninstall
127
- ```
570
+ npm uninstall -g @atlashub/smartstack-cli
128
571
 
129
- ## What's New in v1.5.2
572
+ # Reinstall
573
+ npm install -g @atlashub/smartstack-cli
574
+ smartstack install
575
+ ```
130
576
 
131
- - **Azure DevOps Support** - Full GitFlow integration with Azure DevOps PRs and pipelines
132
- - **npm Auto-Publish** - Automated publishing via Azure Pipelines (@next and @latest tags)
133
- - **Ralph Loop Integration** - Fully automated BA orchestration with Ralph Loop framework
134
- - **Prompts System** - Expert prompt creation and optimization tools
135
- - **Quick Search** - Lightning-fast codebase exploration
577
+ ---
136
578
 
137
- ## Documentation
579
+ ## Resources
138
580
 
139
- Full documentation available at:
581
+ - [Official Website](https://smartstack.app)
582
+ - [SmartStack Documentation](https://docs.smartstack.app)
140
583
  - [GitFlow Documentation](.documentation/gitflow.html)
141
584
  - [Business Analysis Documentation](.documentation/business-analyse.html)
142
585
 
@@ -148,6 +591,20 @@ Full documentation available at:
148
591
 
149
592
  **Need help?** Contact us at [support@atlashub.ch](mailto:support@atlashub.ch)
150
593
 
594
+ ## Development
595
+
596
+ ### Publishing
597
+
598
+ > **INTERDICTION DE PUBLIER MANUELLEMENT SUR NPM**
599
+ >
600
+ > La publication sur npm est **automatique** via Azure Pipelines.
601
+ > Ne jamais exécuter `npm publish` manuellement.
602
+ >
603
+ > **Workflow:**
604
+ > 1. Créer une release avec `/gitflow:10-start release`
605
+ > 2. Finaliser avec `/gitflow:11-finish`
606
+ > 3. Le tag déclenche automatiquement le pipeline de publication
607
+
151
608
  ## License
152
609
 
153
610
  MIT - Free for personal and commercial use.