You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/speckit-init/SKILL.md
+17-5Lines changed: 17 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,19 @@ If `.specify/` exists:
25
25
- Only create missing directories or files
26
26
- Tell the user what was skipped and what was added
27
27
28
-
### 2. Create directory structure
28
+
### 2. Check for git
29
+
30
+
Check if the project root has a git repository:
31
+
```bash
32
+
git rev-parse --git-dir 2>/dev/null
33
+
```
34
+
35
+
If no git repo exists, warn the user:
36
+
> "No git repository detected. The speckit workflow uses feature branches (e.g., `001-feature-name`) for organizing specs. Consider running `git init` before creating features."
37
+
38
+
Do NOT run `git init` automatically — that's the user's choice.
39
+
40
+
### 3. Create directory structure
29
41
30
42
```
31
43
.specify/
@@ -41,7 +53,7 @@ mkdir -p .specify/templates
41
53
mkdir -p specs
42
54
```
43
55
44
-
### 3. Copy templates from package
56
+
### 4. Copy templates from package
45
57
46
58
Copy all templates from the package into `.specify/templates/`. The package templates are at `../../templates/` relative to this SKILL.md.
47
59
@@ -56,20 +68,20 @@ Templates to copy:
56
68
57
69
**Do NOT overwrite** existing templates. If a template already exists in `.specify/templates/`, skip it and note that it was preserved.
58
70
59
-
### 4. Create roadmap
71
+
### 5. Create roadmap
60
72
61
73
If `.specify/roadmap.md` does not exist:
62
74
- Copy `roadmap-template.md` from `.specify/templates/` to `.specify/roadmap.md`
63
75
- Tell the user they can customize it with `/skill:speckit-roadmap`
64
76
65
-
### 5. Offer constitution setup
77
+
### 6. Offer constitution setup
66
78
67
79
Ask the user: "Would you like to set up a project constitution now? This defines project-wide principles that guide all specs. (yes/no)"
68
80
69
81
- If yes: copy `constitution-template.md` to `.specify/memory/constitution.md` and then run the constitution workflow (same as `/skill:speckit-constitution`) to fill in the placeholders
70
82
- If no: skip, mention they can run `/skill:speckit-constitution` later
0 commit comments