@mindfoldhq/trellis 0.3.6 → 0.3.8

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 (31) hide show
  1. package/README.md +12 -1
  2. package/dist/commands/update.d.ts +12 -0
  3. package/dist/commands/update.d.ts.map +1 -1
  4. package/dist/commands/update.js +89 -2
  5. package/dist/commands/update.js.map +1 -1
  6. package/dist/migrations/index.d.ts.map +1 -1
  7. package/dist/migrations/index.js +3 -1
  8. package/dist/migrations/index.js.map +1 -1
  9. package/dist/migrations/manifests/0.3.7.json +9 -0
  10. package/dist/migrations/manifests/0.3.8.json +9 -0
  11. package/dist/templates/claude/commands/trellis/start.md +16 -4
  12. package/dist/templates/claude/hooks/session-start.py +86 -23
  13. package/dist/templates/codex/skills/start/SKILL.md +16 -4
  14. package/dist/templates/cursor/commands/trellis-start.md +16 -4
  15. package/dist/templates/gemini/commands/trellis/start.toml +60 -7
  16. package/dist/templates/iflow/commands/trellis/start.md +16 -4
  17. package/dist/templates/iflow/hooks/session-start.py +86 -23
  18. package/dist/templates/kilo/workflows/start.md +60 -3
  19. package/dist/templates/kiro/skills/start/SKILL.md +16 -4
  20. package/dist/templates/markdown/spec/backend/directory-structure.md +1 -1
  21. package/dist/templates/opencode/commands/trellis/start.md +5 -1
  22. package/dist/templates/opencode/plugin/session-start.js +149 -16
  23. package/dist/templates/qoder/skills/start/SKILL.md +60 -7
  24. package/dist/templates/trellis/index.d.ts.map +1 -1
  25. package/dist/templates/trellis/index.js.map +1 -1
  26. package/dist/templates/trellis/scripts/common/worktree.py +21 -2
  27. package/dist/utils/template-fetcher.d.ts +3 -3
  28. package/dist/utils/template-fetcher.d.ts.map +1 -1
  29. package/dist/utils/template-fetcher.js +4 -4
  30. package/dist/utils/template-fetcher.js.map +1 -1
  31. package/package.json +7 -9
@@ -50,6 +50,10 @@ cat .trellis/spec/backend/index.md # Backend guidelines
50
50
  cat .trellis/spec/guides/index.md # Thinking guides
51
51
  ```
52
52
 
53
+ > **Important**: The index files are navigation — they list the actual guideline files (e.g., `error-handling.md`, `conventions.md`, `mock-strategies.md`).
54
+ > At this step, just read the indexes to understand what's available.
55
+ > When you start actual development, you MUST go back and read the specific guideline files relevant to your task, as listed in the index's Pre-Development Checklist.
56
+
53
57
  ### Step 4: Report and Ask
54
58
 
55
59
  Report what you learned and ask: "What would you like to work on?"
@@ -93,15 +97,23 @@ For questions or trivial fixes, work directly:
93
97
 
94
98
  For simple, well-defined tasks:
95
99
 
96
- 1. Quick confirm: "I understand you want to [goal]. Ready to proceed?"
97
- 2. If yes, proceed to **Task Workflow Phase 1 Path B** (create task, write PRD, then research)
98
- 3. If no, clarify and confirm again
100
+ 1. Quick confirm: "I understand you want to [goal]. Shall I proceed?"
101
+ 2. If no, clarify and confirm again
102
+ 3. **If yes: execute ALL steps below without stopping. Do NOT ask for additional confirmation between steps.**
103
+ - Create task directory (Phase 1 Path B, Step 2)
104
+ - Write PRD (Step 3)
105
+ - Research codebase (Phase 2, Step 5)
106
+ - Configure context (Step 6)
107
+ - Activate task (Step 7)
108
+ - Implement (Phase 3, Step 8)
109
+ - Check quality (Step 9)
110
+ - Complete (Step 10)
99
111
 
100
112
  ---
101
113
 
102
114
  ## Complex Task - Brainstorm First
103
115
 
104
- For complex or vague tasks, use the brainstorm process to clarify requirements.
116
+ For complex or vague tasks, **automatically start the brainstorm process** — do NOT skip directly to implementation.
105
117
 
106
118
  See `$brainstorm` for the full process. Summary:
107
119
 
@@ -58,6 +58,10 @@ cat .trellis/spec/guides/index.md
58
58
  cat .trellis/spec/guides/cross-layer-thinking-guide.md
59
59
  ```
60
60
 
61
+ > **Important**: The index files are navigation — they list the actual guideline files (e.g., `error-handling.md`, `conventions.md`, `mock-strategies.md`).
62
+ > At this step, just read the indexes to understand what's available.
63
+ > When you start actual development, you MUST go back and read the specific guideline files relevant to your task, as listed in the index's Pre-Development Checklist.
64
+
61
65
  ### Step 4: Check Active Tasks `[AI]`
62
66
 
63
67
  ```bash
@@ -123,15 +127,23 @@ For questions or trivial fixes, work directly:
123
127
 
124
128
  For simple, well-defined tasks:
125
129
 
126
- 1. Quick confirm: "I understand you want to [goal]. Ready to proceed?"
127
- 2. If yes, proceed to **Task Workflow Phase 1 Path B** (create task, write PRD, then research)
128
- 3. If no, clarify and confirm again
130
+ 1. Quick confirm: "I understand you want to [goal]. Shall I proceed?"
131
+ 2. If no, clarify and confirm again
132
+ 3. **If yes: execute ALL steps below without stopping. Do NOT ask for additional confirmation between steps.**
133
+ - Create task directory (Phase 1 Path B, Step 2)
134
+ - Write PRD (Step 3)
135
+ - Research codebase (Phase 2, Step 5)
136
+ - Configure context (Step 6)
137
+ - Activate task (Step 7)
138
+ - Implement (Phase 3, Step 8)
139
+ - Check quality (Step 9)
140
+ - Complete (Step 10)
129
141
 
130
142
  ---
131
143
 
132
144
  ## Complex Task - Brainstorm First
133
145
 
134
- For complex or vague tasks, use `/trellis-brainstorm` first to clarify requirements before implementation.
146
+ For complex or vague tasks, **automatically start the brainstorm process** do NOT skip directly to implementation. Use `/trellis-brainstorm`.
135
147
 
136
148
  Summary:
137
149
 
@@ -48,6 +48,10 @@ cat .trellis/spec/backend/index.md # Backend guidelines
48
48
  cat .trellis/spec/guides/index.md # Thinking guides
49
49
  ```
50
50
 
51
+ > **Important**: The index files are navigation — they list the actual guideline files (e.g., `error-handling.md`, `conventions.md`, `mock-strategies.md`).
52
+ > At this step, just read the indexes to understand what's available.
53
+ > When you start actual development, you MUST go back and read the specific guideline files relevant to your task, as listed in the index's Pre-Development Checklist.
54
+
51
55
  ### Step 4: Report and Ask
52
56
 
53
57
  Report what you learned and ask: "What would you like to work on?"
@@ -61,20 +65,32 @@ When user describes a task, classify it:
61
65
  | Type | Criteria | Workflow |
62
66
  |------|----------|----------|
63
67
  | **Question** | User asks about code, architecture, or how something works | Answer directly |
64
- | **Trivial Fix** | Typo fix, comment update, single-line change, < 5 minutes | Direct Edit |
65
- | **Development Task** | Any code change that: modifies logic, adds features, fixes bugs, touches multiple files | **Task Workflow** |
68
+ | **Trivial Fix** | Typo fix, comment update, single-line change | Direct Edit |
69
+ | **Simple Task** | Clear goal, 1-2 files, well-defined scope | Quick confirm Implement |
70
+ | **Complex Task** | Vague goal, multiple files, architectural decisions | **Brainstorm → Task Workflow** |
71
+
72
+ ### Classification Signals
73
+
74
+ **Trivial/Simple indicators:**
75
+ - User specifies exact file and change
76
+ - "Fix the typo in X"
77
+ - "Add field Y to component Z"
78
+ - Clear acceptance criteria already stated
79
+
80
+ **Complex indicators:**
81
+ - "I want to add a feature for..."
82
+ - "Can you help me improve..."
83
+ - Mentions multiple areas or systems
84
+ - No clear implementation path
85
+ - User seems unsure about approach
66
86
 
67
87
  ### Decision Rule
68
88
 
69
- > **If in doubt, use Task Workflow.**
89
+ > **If in doubt, use Brainstorm + Task Workflow.**
70
90
  >
71
91
  > Task Workflow ensures specs are injected to agents, resulting in higher quality code.
72
92
  > The overhead is minimal, but the benefit is significant.
73
93
 
74
- > **Subtask Decomposition**: If a task has multiple independent work items,
75
- > consider creating subtasks using `--parent` flag or `add-subtask` command.
76
- > See `/trellis:brainstorm` Step 8 for details.
77
-
78
94
  ---
79
95
 
80
96
  ## Question / Trivial Fix
@@ -86,6 +102,43 @@ For questions or trivial fixes, work directly:
86
102
 
87
103
  ---
88
104
 
105
+ ## Simple Task
106
+
107
+ For simple, well-defined tasks:
108
+
109
+ 1. Quick confirm: "I understand you want to [goal]. Shall I proceed?"
110
+ 2. If no, clarify and confirm again
111
+ 3. **If yes: execute ALL steps below without stopping. Do NOT ask for additional confirmation between steps.**
112
+ - Create task directory (Phase 1 Path B, Step 2)
113
+ - Write PRD (Step 3)
114
+ - Research codebase (Phase 2, Step 5)
115
+ - Configure context (Step 6)
116
+ - Activate task (Step 7)
117
+ - Implement (Phase 3, Step 8)
118
+ - Check quality (Step 9)
119
+ - Complete (Step 10)
120
+
121
+ ---
122
+
123
+ ## Complex Task - Brainstorm First
124
+
125
+ For complex or vague tasks, **automatically start the brainstorm process** — do NOT skip directly to implementation.
126
+
127
+ See `/trellis:brainstorm` for the full process. Summary:
128
+
129
+ 1. **Acknowledge and classify** - State your understanding
130
+ 2. **Create task directory** - Track evolving requirements in `prd.md`
131
+ 3. **Ask questions one at a time** - Update PRD after each answer
132
+ 4. **Propose approaches** - For architectural decisions
133
+ 5. **Confirm final requirements** - Get explicit approval
134
+ 6. **Proceed to Task Workflow** - With clear requirements in PRD
135
+
136
+ > **Subtask Decomposition**: If brainstorm reveals multiple independent work items,
137
+ > consider creating subtasks using `--parent` flag or `add-subtask` command.
138
+ > See `/trellis:brainstorm` Step 8 for details.
139
+
140
+ ---
141
+
89
142
  ## Task Workflow (Development Tasks)
90
143
 
91
144
  **Why this workflow?**
@@ -46,6 +46,10 @@ cat .trellis/spec/guides/index.md # Thinking guides
46
46
  cat .trellis/spec/unit-test/index.md # Testing guidelines
47
47
  ```
48
48
 
49
+ > **Important**: The index files are navigation — they list the actual guideline files (e.g., `error-handling.md`, `conventions.md`, `mock-strategies.md`).
50
+ > At this step, just read the indexes to understand what's available.
51
+ > When you start actual development, you MUST go back and read the specific guideline files relevant to your task, as listed in the index's Pre-Development Checklist.
52
+
49
53
  ### Step 4: Report and Ask
50
54
 
51
55
  Report what you learned and ask: "What would you like to work on?"
@@ -100,15 +104,23 @@ For questions or trivial fixes, work directly:
100
104
 
101
105
  For simple, well-defined tasks:
102
106
 
103
- 1. Quick confirm: "I understand you want to [goal]. Ready to proceed?"
104
- 2. If yes, proceed to **Task Workflow Phase 1 Path B** (create task, write PRD, then research)
105
- 3. If no, clarify and confirm again
107
+ 1. Quick confirm: "I understand you want to [goal]. Shall I proceed?"
108
+ 2. If no, clarify and confirm again
109
+ 3. **If yes: execute ALL steps below without stopping. Do NOT ask for additional confirmation between steps.**
110
+ - Create task directory (Phase 1 Path B, Step 2)
111
+ - Write PRD (Step 3)
112
+ - Research codebase (Phase 2, Step 5)
113
+ - Configure context (Step 6)
114
+ - Activate task (Step 7)
115
+ - Implement (Phase 3, Step 8)
116
+ - Check quality (Step 9)
117
+ - Complete (Step 10)
106
118
 
107
119
  ---
108
120
 
109
121
  ## Complex Task - Brainstorm First
110
122
 
111
- For complex or vague tasks, use the brainstorm process to clarify requirements.
123
+ For complex or vague tasks, **automatically start the brainstorm process** — do NOT skip directly to implementation.
112
124
 
113
125
  See `/trellis:brainstorm` for the full process. Summary:
114
126
 
@@ -66,6 +66,60 @@ def run_script(script_path: Path) -> str:
66
66
  return "No context available"
67
67
 
68
68
 
69
+ def _get_task_status(trellis_dir: Path) -> str:
70
+ """Check current task status and return structured status string."""
71
+ current_task_file = trellis_dir / ".current-task"
72
+ if not current_task_file.is_file():
73
+ return "Status: NO ACTIVE TASK\nNext: Describe what you want to work on"
74
+
75
+ task_ref = current_task_file.read_text(encoding="utf-8").strip()
76
+ if not task_ref:
77
+ return "Status: NO ACTIVE TASK\nNext: Describe what you want to work on"
78
+
79
+ # Resolve task directory
80
+ if Path(task_ref).is_absolute():
81
+ task_dir = Path(task_ref)
82
+ elif task_ref.startswith(".trellis/"):
83
+ task_dir = trellis_dir.parent / task_ref
84
+ else:
85
+ task_dir = trellis_dir / "tasks" / task_ref
86
+ if not task_dir.is_dir():
87
+ return f"Status: STALE POINTER\nTask: {task_ref}\nNext: Task directory not found. Run: python3 ./.trellis/scripts/task.py finish"
88
+
89
+ # Read task.json
90
+ task_json_path = task_dir / "task.json"
91
+ task_data = {}
92
+ if task_json_path.is_file():
93
+ try:
94
+ task_data = json.loads(task_json_path.read_text(encoding="utf-8"))
95
+ except (json.JSONDecodeError, PermissionError):
96
+ pass
97
+
98
+ task_title = task_data.get("title", task_ref)
99
+ task_status = task_data.get("status", "unknown")
100
+
101
+ if task_status == "completed":
102
+ return f"Status: COMPLETED\nTask: {task_title}\nNext: Archive with `python3 ./.trellis/scripts/task.py archive {task_dir.name}` or start a new task"
103
+
104
+ # Check if context is configured (jsonl files exist and non-empty)
105
+ has_context = False
106
+ for jsonl_name in ("implement.jsonl", "check.jsonl", "spec.jsonl"):
107
+ jsonl_path = task_dir / jsonl_name
108
+ if jsonl_path.is_file() and jsonl_path.stat().st_size > 0:
109
+ has_context = True
110
+ break
111
+
112
+ has_prd = (task_dir / "prd.md").is_file()
113
+
114
+ if not has_prd:
115
+ return f"Status: NOT READY\nTask: {task_title}\nMissing: prd.md not created\nNext: Write PRD, then research → init-context → start"
116
+
117
+ if not has_context:
118
+ return f"Status: NOT READY\nTask: {task_title}\nMissing: Context not configured (no jsonl files)\nNext: Complete Phase 2 (research → init-context → start) before implementing"
119
+
120
+ return f"Status: READY\nTask: {task_title}\nNext: Continue with implement or check"
121
+
122
+
69
123
  def main():
70
124
  if should_skip_injection():
71
125
  sys.exit(0)
@@ -95,28 +149,31 @@ Read and follow all instructions below carefully.
95
149
  output.write("\n</workflow>\n\n")
96
150
 
97
151
  output.write("<guidelines>\n")
98
-
99
- output.write("## Frontend\n")
100
- frontend_index = read_file(
101
- trellis_dir / "spec" / "frontend" / "index.md", "Not configured"
102
- )
103
- output.write(frontend_index)
104
- output.write("\n\n")
105
-
106
- output.write("## Backend\n")
107
- backend_index = read_file(
108
- trellis_dir / "spec" / "backend" / "index.md", "Not configured"
109
- )
110
- output.write(backend_index)
111
- output.write("\n\n")
112
-
113
- output.write("## Guides\n")
114
- guides_index = read_file(
115
- trellis_dir / "spec" / "guides" / "index.md", "Not configured"
116
- )
117
- output.write(guides_index)
118
-
119
- output.write("\n</guidelines>\n\n")
152
+ output.write("**Note**: The guidelines below are index files — they list available guideline documents and their locations.\n")
153
+ output.write("During actual development, you MUST read the specific guideline files listed in each index's Pre-Development Checklist.\n\n")
154
+
155
+ spec_dir = trellis_dir / "spec"
156
+ if spec_dir.is_dir():
157
+ for sub in sorted(spec_dir.iterdir()):
158
+ if not sub.is_dir() or sub.name.startswith("."):
159
+ continue
160
+ index_file = sub / "index.md"
161
+ if index_file.is_file():
162
+ output.write(f"## {sub.name}\n")
163
+ output.write(read_file(index_file))
164
+ output.write("\n\n")
165
+ else:
166
+ # Check for nested package dirs (monorepo: spec/<pkg>/<layer>/index.md)
167
+ for nested in sorted(sub.iterdir()):
168
+ if not nested.is_dir():
169
+ continue
170
+ nested_index = nested / "index.md"
171
+ if nested_index.is_file():
172
+ output.write(f"## {sub.name}/{nested.name}\n")
173
+ output.write(read_file(nested_index))
174
+ output.write("\n\n")
175
+
176
+ output.write("</guidelines>\n\n")
120
177
 
121
178
  output.write("<instructions>\n")
122
179
  start_md = read_file(
@@ -125,8 +182,14 @@ Read and follow all instructions below carefully.
125
182
  output.write(start_md)
126
183
  output.write("\n</instructions>\n\n")
127
184
 
185
+ # R2: Check task status and inject structured tag
186
+ task_status = _get_task_status(trellis_dir)
187
+ output.write(f"<task-status>\n{task_status}\n</task-status>\n\n")
188
+
128
189
  output.write("""<ready>
129
- Context loaded. Wait for user's first message, then follow <instructions> to handle their request.
190
+ Context loaded. Steps 1-3 (workflow, context, guidelines) are already injected above do NOT re-read them.
191
+ Start from Step 4. Wait for user's first message, then follow <instructions> to handle their request.
192
+ If there is an active task, ask whether to continue it.
130
193
  </ready>""")
131
194
 
132
195
  result = {
@@ -45,6 +45,10 @@ cat .trellis/spec/backend/index.md # Backend guidelines
45
45
  cat .trellis/spec/guides/index.md # Thinking guides
46
46
  ```
47
47
 
48
+ > **Important**: The index files are navigation — they list the actual guideline files (e.g., `error-handling.md`, `conventions.md`, `mock-strategies.md`).
49
+ > At this step, just read the indexes to understand what's available.
50
+ > When you start actual development, you MUST go back and read the specific guideline files relevant to your task, as listed in the index's Pre-Development Checklist.
51
+
48
52
  ### Step 4: Report and Ask
49
53
 
50
54
  Report what you learned and ask: "What would you like to work on?"
@@ -58,12 +62,28 @@ When user describes a task, classify it:
58
62
  | Type | Criteria | Workflow |
59
63
  |------|----------|----------|
60
64
  | **Question** | User asks about code, architecture, or how something works | Answer directly |
61
- | **Trivial Fix** | Typo fix, comment update, single-line change, < 5 minutes | Direct Edit |
62
- | **Development Task** | Any code change that: modifies logic, adds features, fixes bugs, touches multiple files | **Task Workflow** |
65
+ | **Trivial Fix** | Typo fix, comment update, single-line change | Direct Edit |
66
+ | **Simple Task** | Clear goal, 1-2 files, well-defined scope | Quick confirm Implement |
67
+ | **Complex Task** | Vague goal, multiple files, architectural decisions | **Brainstorm → Task Workflow** |
68
+
69
+ ### Classification Signals
70
+
71
+ **Trivial/Simple indicators:**
72
+ - User specifies exact file and change
73
+ - "Fix the typo in X"
74
+ - "Add field Y to component Z"
75
+ - Clear acceptance criteria already stated
76
+
77
+ **Complex indicators:**
78
+ - "I want to add a feature for..."
79
+ - "Can you help me improve..."
80
+ - Mentions multiple areas or systems
81
+ - No clear implementation path
82
+ - User seems unsure about approach
63
83
 
64
84
  ### Decision Rule
65
85
 
66
- > **If in doubt, use Task Workflow.**
86
+ > **If in doubt, use Brainstorm + Task Workflow.**
67
87
  >
68
88
  > Task Workflow ensures specs are injected to agents, resulting in higher quality code.
69
89
  > The overhead is minimal, but the benefit is significant.
@@ -79,6 +99,43 @@ For questions or trivial fixes, work directly:
79
99
 
80
100
  ---
81
101
 
102
+ ## Simple Task
103
+
104
+ For simple, well-defined tasks:
105
+
106
+ 1. Quick confirm: "I understand you want to [goal]. Shall I proceed?"
107
+ 2. If no, clarify and confirm again
108
+ 3. **If yes: execute ALL steps below without stopping. Do NOT ask for additional confirmation between steps.**
109
+ - Create task directory (Phase 1 Path B, Step 2)
110
+ - Write PRD (Step 3)
111
+ - Research codebase (Phase 2, Step 5)
112
+ - Configure context (Step 6)
113
+ - Activate task (Step 7)
114
+ - Implement (Phase 3, Step 8)
115
+ - Check quality (Step 9)
116
+ - Complete (Step 10)
117
+
118
+ ---
119
+
120
+ ## Complex Task - Brainstorm First
121
+
122
+ For complex or vague tasks, **automatically start the brainstorm process** — do NOT skip directly to implementation.
123
+
124
+ See `/trellis:brainstorm` for the full process. Summary:
125
+
126
+ 1. **Acknowledge and classify** - State your understanding
127
+ 2. **Create task directory** - Track evolving requirements in `prd.md`
128
+ 3. **Ask questions one at a time** - Update PRD after each answer
129
+ 4. **Propose approaches** - For architectural decisions
130
+ 5. **Confirm final requirements** - Get explicit approval
131
+ 6. **Proceed to Task Workflow** - With clear requirements in PRD
132
+
133
+ > **Subtask Decomposition**: If brainstorm reveals multiple independent work items,
134
+ > consider creating subtasks using `--parent` flag or `add-subtask` command.
135
+ > See `/trellis:brainstorm` Step 8 for details.
136
+
137
+ ---
138
+
82
139
  ## Task Workflow (Development Tasks)
83
140
 
84
141
  **Why this workflow?**
@@ -50,6 +50,10 @@ cat .trellis/spec/backend/index.md # Backend guidelines
50
50
  cat .trellis/spec/guides/index.md # Thinking guides
51
51
  ```
52
52
 
53
+ > **Important**: The index files are navigation — they list the actual guideline files (e.g., `error-handling.md`, `conventions.md`, `mock-strategies.md`).
54
+ > At this step, just read the indexes to understand what's available.
55
+ > When you start actual development, you MUST go back and read the specific guideline files relevant to your task, as listed in the index's Pre-Development Checklist.
56
+
53
57
  ### Step 4: Report and Ask
54
58
 
55
59
  Report what you learned and ask: "What would you like to work on?"
@@ -93,15 +97,23 @@ For questions or trivial fixes, work directly:
93
97
 
94
98
  For simple, well-defined tasks:
95
99
 
96
- 1. Quick confirm: "I understand you want to [goal]. Ready to proceed?"
97
- 2. If yes, proceed to **Task Workflow Phase 1 Path B** (create task, write PRD, then research)
98
- 3. If no, clarify and confirm again
100
+ 1. Quick confirm: "I understand you want to [goal]. Shall I proceed?"
101
+ 2. If no, clarify and confirm again
102
+ 3. **If yes: execute ALL steps below without stopping. Do NOT ask for additional confirmation between steps.**
103
+ - Create task directory (Phase 1 Path B, Step 2)
104
+ - Write PRD (Step 3)
105
+ - Research codebase (Phase 2, Step 5)
106
+ - Configure context (Step 6)
107
+ - Activate task (Step 7)
108
+ - Implement (Phase 3, Step 8)
109
+ - Check quality (Step 9)
110
+ - Complete (Step 10)
99
111
 
100
112
  ---
101
113
 
102
114
  ## Complex Task - Brainstorm First
103
115
 
104
- For complex or vague tasks, use the brainstorm process to clarify requirements.
116
+ For complex or vague tasks, **automatically start the brainstorm process** — do NOT skip directly to implementation.
105
117
 
106
118
  See `$brainstorm` for the full process. Summary:
107
119
 
@@ -239,7 +239,7 @@ Templates use `.txt` extension to:
239
239
  ```typescript
240
240
  import { downloadTemplate } from "giget";
241
241
 
242
- await downloadTemplate("gh:mindfold-ai/docs/marketplace/specs/electron-fullstack", {
242
+ await downloadTemplate("gh:mindfold-ai/Trellis/marketplace/specs/electron-fullstack", {
243
243
  dir: destDir,
244
244
  preferOffline: true,
245
245
  });
@@ -45,6 +45,10 @@ cat .trellis/spec/backend/index.md # Backend guidelines
45
45
  cat .trellis/spec/guides/index.md # Thinking guides
46
46
  ```
47
47
 
48
+ > **Important**: The index files are navigation — they list the actual guideline files (e.g., `error-handling.md`, `conventions.md`, `mock-strategies.md`).
49
+ > At this step, just read the indexes to understand what's available.
50
+ > When you start actual development, you MUST go back and read the specific guideline files relevant to your task, as listed in the index's Pre-Development Checklist.
51
+
48
52
  ### Step 4: Report and Ask
49
53
 
50
54
  Report what you learned and ask: "What would you like to work on?"
@@ -82,7 +86,7 @@ For questions or trivial fixes, work directly:
82
86
 
83
87
  ## Complex Task - Brainstorm First
84
88
 
85
- For complex or vague tasks, use the brainstorm process to clarify requirements.
89
+ For complex or vague tasks, **automatically start the brainstorm process** — do NOT skip directly to implementation.
86
90
 
87
91
  See `/trellis:brainstorm` for the full process. Summary:
88
92