@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.
- package/.documentation/agents.html +5 -1
- package/.documentation/apex.html +5 -1
- package/.documentation/business-analyse.html +5 -1
- package/.documentation/commands.html +5 -1
- package/.documentation/css/styles.css +2168 -2168
- package/.documentation/efcore.html +5 -1
- package/.documentation/gitflow.html +5 -1
- package/.documentation/hooks.html +5 -1
- package/.documentation/index.html +5 -1
- package/.documentation/init.html +565 -0
- package/.documentation/installation.html +92 -6
- package/.documentation/js/app.js +794 -794
- package/.documentation/ralph-loop.html +534 -530
- package/.documentation/test-web.html +5 -1
- package/dist/index.js +817 -277
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/agents/efcore/conflicts.md +44 -17
- package/templates/agents/efcore/db-status.md +27 -6
- package/templates/agents/efcore/scan.md +43 -13
- package/templates/commands/ai-prompt.md +315 -315
- package/templates/commands/application/create.md +362 -362
- package/templates/commands/controller/create.md +216 -216
- package/templates/commands/controller.md +59 -0
- package/templates/commands/documentation/module.md +202 -202
- package/templates/commands/efcore/_env-check.md +153 -153
- package/templates/commands/efcore/conflicts.md +109 -192
- package/templates/commands/efcore/db-status.md +101 -89
- package/templates/commands/efcore/migration.md +23 -11
- package/templates/commands/efcore/scan.md +115 -119
- package/templates/commands/efcore.md +54 -6
- package/templates/commands/feature-full.md +267 -267
- package/templates/commands/gitflow/11-finish.md +145 -11
- 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 +120 -10
- package/templates/commands/gitflow/3-commit.md +150 -0
- package/templates/commands/gitflow/7-pull-request.md +134 -5
- package/templates/commands/gitflow/9-merge.md +142 -1
- package/templates/commands/implement.md +663 -663
- package/templates/commands/init.md +567 -0
- package/templates/commands/mcp-integration.md +330 -0
- package/templates/commands/notification.md +129 -129
- package/templates/commands/validate.md +233 -0
- package/templates/commands/workflow.md +193 -193
- 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/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/package.json
CHANGED
|
@@ -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
|
|
12
|
+
Analyzes migration conflicts between branches using **SmartStack MCP**. **BLOCKING** if conflict detected.
|
|
12
13
|
|
|
13
14
|
## Mission
|
|
14
15
|
|
|
15
|
-
1. **
|
|
16
|
-
2. **
|
|
17
|
-
3. **
|
|
18
|
-
4. **
|
|
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
|
-
##
|
|
21
|
+
## MCP Integration
|
|
22
22
|
|
|
23
|
-
|
|
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
|
-
|
|
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. **
|
|
16
|
-
2. **
|
|
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
|
-
##
|
|
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
|
-
|
|
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.
|
|
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. **
|
|
17
|
-
3. **
|
|
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
|
-
##
|
|
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
|
-
|
|
|
40
|
-
|
|
41
|
-
|
|
|
42
|
-
|
|
|
43
|
-
|
|
|
44
|
-
|
|
|
45
|
-
|
|
|
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} |
|
|
79
|
+
{branch} | {migrations.length} | Risk: {level}
|
|
52
80
|
|
|
53
|
-
|
|
81
|
+
RECOMMENDED MERGE ORDER
|
|
54
82
|
1. {branch} (reason)
|
|
55
83
|
2. {branch} (reason)
|
|
84
|
+
|
|
85
|
+
================================================================================
|
|
56
86
|
```
|
|
57
87
|
|
|
58
88
|
## Priority
|