get-shit-done-cc 1.2.8 → 1.2.9
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/commands/gsd/new-project.md +20 -12
- package/package.json +1 -1
|
@@ -24,22 +24,30 @@ Creates `.planning/` with PROJECT.md and config.json.
|
|
|
24
24
|
|
|
25
25
|
<context>
|
|
26
26
|
!`[ -d .planning ] && echo "PLANNING_EXISTS" || echo "NO_PLANNING"`
|
|
27
|
-
!`[ -d .git ] && echo "GIT_EXISTS" || echo "NO_GIT"`
|
|
28
27
|
</context>
|
|
29
28
|
|
|
30
29
|
<process>
|
|
31
30
|
|
|
32
|
-
<step name="setup"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
[ -d .planning ] && echo "Project already initialized. Use /gsd:progress" && exit 1
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
```
|
|
42
|
-
|
|
31
|
+
<step name="setup">
|
|
32
|
+
**MANDATORY FIRST STEP — Execute these checks before ANY user interaction:**
|
|
33
|
+
|
|
34
|
+
1. **Abort if project exists:**
|
|
35
|
+
```bash
|
|
36
|
+
[ -d .planning ] && echo "ERROR: Project already initialized. Use /gsd:progress" && exit 1
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
2. **Initialize git repo in THIS directory** (required even if inside a parent repo):
|
|
40
|
+
```bash
|
|
41
|
+
# Check if THIS directory is already a git repo root (handles .git file for worktrees too)
|
|
42
|
+
if [ -d .git ] || [ -f .git ]; then
|
|
43
|
+
echo "Git repo exists in current directory"
|
|
44
|
+
else
|
|
45
|
+
git init
|
|
46
|
+
echo "Initialized new git repo"
|
|
47
|
+
fi
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**You MUST run both bash commands above using the Bash tool before proceeding.**
|
|
43
51
|
</step>
|
|
44
52
|
|
|
45
53
|
<step name="question">
|
package/package.json
CHANGED