@atlashub/smartstack-cli 1.19.0 → 1.21.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/dist/index.js +147 -77
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/skills/gitflow/SKILL.md +71 -64
package/package.json
CHANGED
|
@@ -9,34 +9,27 @@ Execute GitFlow workflows with automatic versioning, worktree management, and EF
|
|
|
9
9
|
</objective>
|
|
10
10
|
|
|
11
11
|
<quick_start>
|
|
12
|
-
**
|
|
12
|
+
**Manual workflow (step-by-step, recommended):**
|
|
13
13
|
```bash
|
|
14
|
-
/gitflow
|
|
15
|
-
|
|
14
|
+
/gitflow -f user-auth # Start feature → STOPS
|
|
15
|
+
# ... code ...
|
|
16
|
+
/gitflow commit # Commit → STOPS
|
|
17
|
+
/gitflow pr # Create PR → STOPS (wait review)
|
|
18
|
+
/gitflow merge # Merge → STOPS
|
|
19
|
+
/gitflow finish # Cleanup → DONE
|
|
16
20
|
```
|
|
17
21
|
|
|
18
|
-
**
|
|
22
|
+
**Automatic workflow (all-in-one):**
|
|
19
23
|
```bash
|
|
20
|
-
/gitflow
|
|
21
|
-
/gitflow -a
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
**Create PR and merge:**
|
|
25
|
-
```bash
|
|
26
|
-
/gitflow pr # Create PR
|
|
27
|
-
/gitflow merge # Merge after approval
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
**Complete workflow (feature):**
|
|
31
|
-
```bash
|
|
32
|
-
/gitflow -a -f my-feature # Auto + feature mode
|
|
24
|
+
/gitflow -a -f my-feature # Full auto: all steps
|
|
25
|
+
/gitflow -a -r 1.20.0 # Full auto: release
|
|
33
26
|
```
|
|
34
27
|
|
|
35
28
|
**Flags:**
|
|
36
|
-
- `-a` (auto):
|
|
37
|
-
- `-f` (feature): Feature workflow
|
|
38
|
-
- `-r` (release): Release workflow
|
|
39
|
-
- `-h` (hotfix): Hotfix workflow
|
|
29
|
+
- `-a` (auto): **Execute ALL steps automatically** (without = one step then stop)
|
|
30
|
+
- `-f` (feature): Feature workflow (target: develop)
|
|
31
|
+
- `-r` (release): Release workflow (target: main)
|
|
32
|
+
- `-h` (hotfix): Hotfix workflow (target: main)
|
|
40
33
|
- `-s` (status): Show status only
|
|
41
34
|
</quick_start>
|
|
42
35
|
|
|
@@ -53,11 +46,13 @@ Execute GitFlow workflows with automatic versioning, worktree management, and EF
|
|
|
53
46
|
**Behavior flags:**
|
|
54
47
|
| Short | Long | Description |
|
|
55
48
|
|-------|------|-------------|
|
|
56
|
-
| `-a` | `--auto` |
|
|
49
|
+
| `-a` | `--auto` | **Full automatic mode**: execute ALL steps without stopping |
|
|
57
50
|
| `-s` | `--status` | Status mode: show state only, no actions |
|
|
58
51
|
| `-v` | `--verbose` | Verbose output |
|
|
59
52
|
| `--dry-run` | | Preview actions without executing |
|
|
60
53
|
|
|
54
|
+
**⚠️ CRITICAL: Without `-a`, each command executes ONLY its own step then STOPS.**
|
|
55
|
+
|
|
61
56
|
**Disable flags:**
|
|
62
57
|
| Short | Long | Description |
|
|
63
58
|
|-------|------|-------------|
|
|
@@ -87,48 +82,42 @@ Execute GitFlow workflows with automatic versioning, worktree management, and EF
|
|
|
87
82
|
|
|
88
83
|
<examples>
|
|
89
84
|
```bash
|
|
90
|
-
#
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
#
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
#
|
|
98
|
-
/gitflow
|
|
99
|
-
/gitflow
|
|
100
|
-
|
|
101
|
-
#
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
#
|
|
106
|
-
/gitflow
|
|
107
|
-
/gitflow -
|
|
108
|
-
|
|
109
|
-
#
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
#
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
#
|
|
116
|
-
/gitflow
|
|
117
|
-
|
|
118
|
-
#
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
/gitflow status
|
|
123
|
-
/gitflow -s
|
|
124
|
-
|
|
125
|
-
#
|
|
126
|
-
/gitflow abort
|
|
127
|
-
/gitflow abort --checkpoint # Restore from checkpoint
|
|
128
|
-
|
|
129
|
-
# Cleanup worktrees
|
|
130
|
-
/gitflow cleanup
|
|
131
|
-
/gitflow cleanup --dry-run # Preview only
|
|
85
|
+
# ══════════════════════════════════════════════════════════════
|
|
86
|
+
# STEP-BY-STEP MODE (default - recommended)
|
|
87
|
+
# Each command executes ONE step, then waits for user
|
|
88
|
+
# ══════════════════════════════════════════════════════════════
|
|
89
|
+
|
|
90
|
+
# Feature workflow (manual steps)
|
|
91
|
+
/gitflow -f my-feature # 1. Creates branch → STOPS
|
|
92
|
+
# ... user codes ...
|
|
93
|
+
/gitflow commit # 2. Commits changes → STOPS
|
|
94
|
+
/gitflow pr # 3. Creates PR → STOPS (wait for review)
|
|
95
|
+
/gitflow merge # 4. Merges PR → STOPS
|
|
96
|
+
/gitflow finish # 5. Cleanup → DONE
|
|
97
|
+
|
|
98
|
+
# Release workflow (manual steps)
|
|
99
|
+
/gitflow -r 1.20.0 # 1. Creates branch + bump version → STOPS
|
|
100
|
+
/gitflow pr # 2. Creates PR to main → STOPS (wait for review)
|
|
101
|
+
/gitflow merge # 3. Merges PR → STOPS
|
|
102
|
+
/gitflow finish # 4. Tag + merge-back + cleanup → DONE
|
|
103
|
+
|
|
104
|
+
# ══════════════════════════════════════════════════════════════
|
|
105
|
+
# AUTOMATIC MODE (-a flag)
|
|
106
|
+
# Executes ALL steps without stopping
|
|
107
|
+
# ══════════════════════════════════════════════════════════════
|
|
108
|
+
|
|
109
|
+
/gitflow -a -f my-feature # Full auto: branch → commit → pr → merge → finish
|
|
110
|
+
/gitflow -a -r 1.20.0 # Full auto: branch → bump → pr → merge → tag → cleanup
|
|
111
|
+
/gitflow -a -h fix-bug # Full auto: hotfix complete cycle
|
|
112
|
+
|
|
113
|
+
# ══════════════════════════════════════════════════════════════
|
|
114
|
+
# UTILITY COMMANDS
|
|
115
|
+
# ══════════════════════════════════════════════════════════════
|
|
116
|
+
|
|
117
|
+
/gitflow status # Show current state
|
|
118
|
+
/gitflow -s # Shorthand for status
|
|
119
|
+
/gitflow abort # Rollback current operation
|
|
120
|
+
/gitflow cleanup # Audit and remove orphan worktrees
|
|
132
121
|
```
|
|
133
122
|
</examples>
|
|
134
123
|
|
|
@@ -264,6 +253,24 @@ start ──► commit* ──► sync ──► pr ──► merge ──► fi
|
|
|
264
253
|
- **Follow next_step directive** at end of each step
|
|
265
254
|
- **NEVER skip EF Core validation** - migrations are critical
|
|
266
255
|
- **Safety > Correctness > Speed**
|
|
256
|
+
|
|
257
|
+
**⚠️ CRITICAL - STEP EXECUTION POLICY:**
|
|
258
|
+
|
|
259
|
+
| Mode | Behavior |
|
|
260
|
+
|------|----------|
|
|
261
|
+
| **Without `-a`** | Execute ONLY the requested step, then **STOP and wait for user** |
|
|
262
|
+
| **With `-a`** | Execute ALL steps automatically (start → commit → pr → merge → finish) |
|
|
263
|
+
|
|
264
|
+
**Examples:**
|
|
265
|
+
```bash
|
|
266
|
+
/gitflow -r 1.20.0 # Creates branch + bump version → STOPS (user runs /gitflow pr next)
|
|
267
|
+
/gitflow -r -a 1.20.0 # Full automatic: branch → bump → PR → merge → tag → cleanup
|
|
268
|
+
/gitflow -f my-feature # Creates branch → STOPS (user codes, then runs /gitflow commit)
|
|
269
|
+
/gitflow -f -a feature # Full automatic: branch → commit → PR → merge → finish
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
**NEVER chain steps automatically without `-a` flag. The user decides the pace.**
|
|
273
|
+
|
|
267
274
|
</execution_rules>
|
|
268
275
|
|
|
269
276
|
<success_criteria>
|