@atlashub/smartstack-cli 1.4.1 → 1.5.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.
Files changed (60) hide show
  1. package/.documentation/agents.html +5 -1
  2. package/.documentation/apex.html +5 -1
  3. package/.documentation/business-analyse.html +5 -1
  4. package/.documentation/commands.html +5 -1
  5. package/.documentation/css/styles.css +2168 -2168
  6. package/.documentation/efcore.html +5 -1
  7. package/.documentation/gitflow.html +5 -1
  8. package/.documentation/hooks.html +5 -1
  9. package/.documentation/index.html +5 -1
  10. package/.documentation/init.html +565 -0
  11. package/.documentation/installation.html +92 -6
  12. package/.documentation/js/app.js +794 -794
  13. package/.documentation/ralph-loop.html +534 -530
  14. package/.documentation/test-web.html +5 -1
  15. package/dist/index.js +817 -277
  16. package/dist/index.js.map +1 -1
  17. package/package.json +1 -1
  18. package/templates/agents/efcore/conflicts.md +44 -17
  19. package/templates/agents/efcore/db-status.md +27 -6
  20. package/templates/agents/efcore/scan.md +43 -13
  21. package/templates/commands/ai-prompt.md +315 -315
  22. package/templates/commands/application/create.md +362 -362
  23. package/templates/commands/controller/create.md +216 -216
  24. package/templates/commands/controller.md +59 -0
  25. package/templates/commands/documentation/module.md +202 -202
  26. package/templates/commands/efcore/_env-check.md +153 -153
  27. package/templates/commands/efcore/conflicts.md +109 -192
  28. package/templates/commands/efcore/db-status.md +101 -89
  29. package/templates/commands/efcore/migration.md +23 -11
  30. package/templates/commands/efcore/scan.md +115 -119
  31. package/templates/commands/efcore.md +54 -6
  32. package/templates/commands/feature-full.md +267 -267
  33. package/templates/commands/gitflow/11-finish.md +145 -11
  34. package/templates/commands/gitflow/13-sync.md +216 -216
  35. package/templates/commands/gitflow/14-rebase.md +251 -251
  36. package/templates/commands/gitflow/2-status.md +120 -10
  37. package/templates/commands/gitflow/3-commit.md +150 -0
  38. package/templates/commands/gitflow/7-pull-request.md +134 -5
  39. package/templates/commands/gitflow/9-merge.md +142 -1
  40. package/templates/commands/implement.md +663 -663
  41. package/templates/commands/init.md +567 -0
  42. package/templates/commands/mcp-integration.md +330 -0
  43. package/templates/commands/notification.md +129 -129
  44. package/templates/commands/validate.md +233 -0
  45. package/templates/commands/workflow.md +193 -193
  46. package/templates/skills/ai-prompt/SKILL.md +778 -778
  47. package/templates/skills/application/SKILL.md +563 -563
  48. package/templates/skills/application/templates-backend.md +450 -450
  49. package/templates/skills/application/templates-frontend.md +531 -531
  50. package/templates/skills/application/templates-i18n.md +520 -520
  51. package/templates/skills/application/templates-seed.md +647 -647
  52. package/templates/skills/controller/SKILL.md +240 -240
  53. package/templates/skills/controller/postman-templates.md +614 -614
  54. package/templates/skills/controller/templates.md +1468 -1468
  55. package/templates/skills/documentation/SKILL.md +133 -133
  56. package/templates/skills/documentation/templates.md +476 -476
  57. package/templates/skills/feature-full/SKILL.md +838 -838
  58. package/templates/skills/notification/SKILL.md +555 -555
  59. package/templates/skills/ui-components/SKILL.md +870 -870
  60. package/templates/skills/workflow/SKILL.md +582 -582
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlashub/smartstack-cli",
3
- "version": "1.4.1",
3
+ "version": "1.5.1",
4
4
  "description": "SmartStack Claude Code automation toolkit - GitFlow, APEX, EF Core migrations, prompts and more",
5
5
  "author": {
6
6
  "name": "SmartStack",
@@ -4,34 +4,55 @@ description: EF Core conflict analyzer - BLOCKING if conflict detected
4
4
  color: red
5
5
  model: sonnet
6
6
  tools: Bash, Glob, Read
7
+ mcp: mcp__smartstack__check_migrations
7
8
  ---
8
9
 
9
10
  # EF Core Conflicts Agent
10
11
 
11
- Analyzes migration conflicts between branches. **BLOCKING** if conflict detected.
12
+ Analyzes migration conflicts between branches using **SmartStack MCP**. **BLOCKING** if conflict detected.
12
13
 
13
14
  ## Mission
14
15
 
15
- 1. **Locate** ModelSnapshots (local + develop)
16
- 2. **Compare** differences
17
- 3. **Identify** conflict type
18
- 4. **Scan** other active branches
19
- 5. **Block** if HIGH or CRITICAL conflict
16
+ 1. **Invoke MCP** `check_migrations` for structured analysis
17
+ 2. **Parse** conflict types from response
18
+ 3. **Display** results in standard format
19
+ 4. **Block** if HIGH or CRITICAL conflict
20
20
 
21
- ## Conflict Levels
21
+ ## MCP Integration
22
22
 
23
- | Level | Condition | Exit Code |
24
- |-------|-----------|-----------|
25
- | NONE | Snapshot = develop | 0 |
26
- | LOW | Different tables | 0 |
27
- | MEDIUM | FK to same table | 0 (warning) |
28
- | HIGH | Same table modified | 1 (BLOCK) |
29
- | CRITICAL | Same column | 1 (BLOCK) |
23
+ **Primary method:** Use MCP tool for analysis
30
24
 
31
- ## Key Commands
25
+ ```
26
+ CALL mcp__smartstack__check_migrations WITH:
27
+ - branch: {current_branch}
28
+ - compareBranch: "develop"
29
+ ```
30
+
31
+ **Response structure:**
32
+
33
+ ```typescript
34
+ {
35
+ hasConflicts: boolean;
36
+ migrations: MigrationInfo[];
37
+ conflicts: MigrationConflict[];
38
+ suggestions: string[];
39
+ }
40
+ ```
41
+
42
+ ## Conflict Levels (from MCP)
43
+
44
+ | MCP Type | Level | Exit Code |
45
+ |----------|-------|-----------|
46
+ | - | NONE | 0 |
47
+ | `naming` | LOW | 0 |
48
+ | `order` | MEDIUM | 0 (warning) |
49
+ | `dependency` | HIGH | 1 (BLOCK) |
50
+ | `snapshot` | CRITICAL | 1 (BLOCK) |
51
+
52
+ ## Fallback (if MCP unavailable)
32
53
 
33
54
  ```bash
34
- # Compare snapshots
55
+ # Compare snapshots directly
35
56
  diff develop/Snapshot.cs local/Snapshot.cs
36
57
 
37
58
  # Extract tables
@@ -44,12 +65,18 @@ grep -oE 'Property<[^>]+>\("([^"]+)"' Snapshot.cs
44
65
  ## Required Output
45
66
 
46
67
  ```
68
+ ================================================================================
69
+ EF CORE CONFLICT ANALYSIS (via MCP)
70
+ ================================================================================
71
+
47
72
  STATUS: {OK|WARNING|CONFLICT}
48
73
  EXIT CODE: {0|1}
49
74
 
50
75
  If conflict:
51
76
  RESOLUTION:
52
- /efcore:rebase-snapshot
77
+ /efcore:rebase-snapshot (recommended)
78
+ /efcore:conflicts --force (not recommended)
79
+ ================================================================================
53
80
  ```
54
81
 
55
82
  ## Priority
@@ -4,21 +4,35 @@ description: EF Core database status - fast migration state check
4
4
  color: blue
5
5
  model: haiku
6
6
  tools: Bash, Glob
7
+ mcp: mcp__smartstack__check_migrations
7
8
  ---
8
9
 
9
10
  # EF Core Database Status Agent
10
11
 
11
- Fast check of EF Core migration state.
12
+ Fast check of EF Core migration state using **SmartStack MCP**.
12
13
 
13
14
  ## Workflow
14
15
 
15
- 1. **Detect** EF Core project (*.csproj with EntityFrameworkCore)
16
- 2. **List** migrations with `dotnet ef migrations list`
16
+ 1. **Invoke MCP** for migration list and naming validation
17
+ 2. **Test** DB connection with `dotnet ef`
17
18
  3. **Count** applied vs pending
18
19
  4. **Verify** 1 migration per feature rule
19
20
  5. **Output** compact summary
20
21
 
21
- ## Commands
22
+ ## MCP Integration
23
+
24
+ **Primary method:** Get structured migration data
25
+
26
+ ```
27
+ CALL mcp__smartstack__check_migrations WITH:
28
+ - branch: {current_branch}
29
+ ```
30
+
31
+ **Response fields used:**
32
+ - `migrations[]` - List with name, context, version, sequence
33
+ - `conflicts[]` - Any naming issues
34
+
35
+ ## Fallback Commands (if MCP unavailable)
22
36
 
23
37
  ```bash
24
38
  # Migrations
@@ -31,13 +45,20 @@ git branch --show-current
31
45
  ## Output Format
32
46
 
33
47
  ```
48
+ ================================================================================
49
+ EF CORE - DATABASE STATUS
50
+ ================================================================================
51
+
34
52
  DB STATUS
35
53
  Connection: {ok|error}
36
54
  Migrations: {applied}/{total} | {pending} pending
37
55
  Branch: {branch} | {0|1|n} migrations
38
- Rule: {ok|warning}
56
+ Naming: {ok|warnings from MCP}
57
+ Rule: {ok|warning if > 1 migration}
58
+
59
+ ================================================================================
39
60
  ```
40
61
 
41
62
  ## Priority
42
63
 
43
- Speed > Detail. No DB connection if possible.
64
+ Speed > Detail. Use MCP for structured data, dotnet ef for connection test.
@@ -4,21 +4,45 @@ description: EF Core cross-branch migration scanner - detect conflicts before th
4
4
  color: cyan
5
5
  model: sonnet
6
6
  tools: Bash, Glob, Read
7
+ mcp: mcp__smartstack__check_migrations
7
8
  ---
8
9
 
9
10
  # EF Core Scan Agent
10
11
 
11
- Cross-branch scanner to detect migrations across all active branches.
12
+ Cross-branch scanner using **SmartStack MCP** to detect migrations across all active branches.
12
13
 
13
14
  ## Mission
14
15
 
15
16
  1. **List** all active worktrees
16
- 2. **Scan** migrations in each branch
17
- 3. **Compare** ModelSnapshots with develop
17
+ 2. **Invoke MCP** for each branch
18
+ 3. **Aggregate** results into summary
18
19
  4. **Analyze** conflict risks
19
20
  5. **Recommend** optimal merge order
20
21
 
21
- ## Key Commands
22
+ ## MCP Integration
23
+
24
+ **Primary method:** Loop through branches and call MCP
25
+
26
+ ```
27
+ FOR each branch in active_worktrees:
28
+ CALL mcp__smartstack__check_migrations WITH:
29
+ - branch: {branch}
30
+ - compareBranch: "develop"
31
+ STORE result
32
+ ```
33
+
34
+ **Response structure:**
35
+
36
+ ```typescript
37
+ {
38
+ hasConflicts: boolean;
39
+ migrations: MigrationInfo[];
40
+ conflicts: MigrationConflict[];
41
+ suggestions: string[];
42
+ }
43
+ ```
44
+
45
+ ## Fallback Commands (if MCP unavailable)
22
46
 
23
47
  ```bash
24
48
  # List worktrees
@@ -36,23 +60,29 @@ find Migrations -name "*.cs" | grep -v Designer | grep -v Snapshot | wc -l
36
60
 
37
61
  ## Risk Levels
38
62
 
39
- | Level | Condition | Action |
40
- |-------|-----------|--------|
41
- | NONE | Snapshot = develop | Direct merge OK |
42
- | LOW | Different tables modified | Merge OK |
43
- | MEDIUM | FK to same table | Attention to order |
44
- | HIGH | Same table modified | Rebase required |
45
- | CRITICAL | Same column modified | Manual intervention |
63
+ | MCP Conflict Type | Level | Action |
64
+ |-------------------|-------|--------|
65
+ | (none) | NONE | Direct merge OK |
66
+ | `naming` | LOW | Merge OK |
67
+ | `order` | MEDIUM | Attention to order |
68
+ | `dependency` | HIGH | Rebase required |
69
+ | `snapshot` | CRITICAL | Manual intervention |
46
70
 
47
71
  ## Output Format
48
72
 
49
73
  ```
74
+ ================================================================================
75
+ EF CORE CROSS-BRANCH SCAN (via MCP)
76
+ ================================================================================
77
+
50
78
  BRANCHES (n)
51
- {branch} | {migrations} | Snapshot: {hash} | Risk: {level}
79
+ {branch} | {migrations.length} | Risk: {level}
52
80
 
53
- RECOMMENDATION
81
+ RECOMMENDED MERGE ORDER
54
82
  1. {branch} (reason)
55
83
  2. {branch} (reason)
84
+
85
+ ================================================================================
56
86
  ```
57
87
 
58
88
  ## Priority