@mindfoldhq/trellis 0.3.0-rc.5 → 0.3.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/README.md +16 -4
- package/dist/cli/index.js +4 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts +4 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +29 -15
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +19 -11
- package/dist/commands/update.js.map +1 -1
- package/dist/configurators/antigravity.d.ts +8 -0
- package/dist/configurators/antigravity.d.ts.map +1 -0
- package/dist/configurators/antigravity.js +18 -0
- package/dist/configurators/antigravity.js.map +1 -0
- package/dist/configurators/gemini.d.ts +8 -0
- package/dist/configurators/gemini.d.ts.map +1 -0
- package/dist/configurators/gemini.js +52 -0
- package/dist/configurators/gemini.js.map +1 -0
- package/dist/configurators/index.d.ts.map +1 -1
- package/dist/configurators/index.js +49 -1
- package/dist/configurators/index.js.map +1 -1
- package/dist/configurators/kilo.d.ts +8 -0
- package/dist/configurators/kilo.d.ts.map +1 -0
- package/dist/configurators/kilo.js +51 -0
- package/dist/configurators/kilo.js.map +1 -0
- package/dist/configurators/kiro.d.ts +8 -0
- package/dist/configurators/kiro.d.ts.map +1 -0
- package/dist/configurators/kiro.js +20 -0
- package/dist/configurators/kiro.js.map +1 -0
- package/dist/migrations/manifests/0.3.0-rc.6.json +9 -0
- package/dist/migrations/manifests/0.3.0.json +11 -0
- package/dist/templates/antigravity/index.d.ts +12 -0
- package/dist/templates/antigravity/index.d.ts.map +1 -0
- package/dist/templates/antigravity/index.js +29 -0
- package/dist/templates/antigravity/index.js.map +1 -0
- package/dist/templates/claude/agents/implement.md +1 -1
- package/dist/templates/claude/commands/trellis/brainstorm.md +16 -18
- package/dist/templates/claude/commands/trellis/start.md +73 -48
- package/dist/templates/codex/skills/brainstorm/SKILL.md +16 -18
- package/dist/templates/codex/skills/start/SKILL.md +80 -46
- package/dist/templates/cursor/commands/trellis-brainstorm.md +16 -18
- package/dist/templates/cursor/commands/trellis-start.md +191 -23
- package/dist/templates/extract.d.ts +52 -0
- package/dist/templates/extract.d.ts.map +1 -1
- package/dist/templates/extract.js +90 -0
- package/dist/templates/extract.js.map +1 -1
- package/dist/templates/gemini/commands/trellis/before-backend-dev.toml +17 -0
- package/dist/templates/gemini/commands/trellis/before-frontend-dev.toml +17 -0
- package/dist/templates/gemini/commands/trellis/brainstorm.toml +420 -0
- package/dist/templates/gemini/commands/trellis/break-loop.toml +129 -0
- package/dist/templates/gemini/commands/trellis/check-backend.toml +17 -0
- package/dist/templates/gemini/commands/trellis/check-cross-layer.toml +147 -0
- package/dist/templates/gemini/commands/trellis/check-frontend.toml +17 -0
- package/dist/templates/gemini/commands/trellis/create-command.toml +119 -0
- package/dist/templates/gemini/commands/trellis/finish-work.toml +133 -0
- package/dist/templates/gemini/commands/trellis/integrate-skill.toml +104 -0
- package/dist/templates/gemini/commands/trellis/onboard.toml +111 -0
- package/dist/templates/gemini/commands/trellis/record-session.toml +66 -0
- package/dist/templates/gemini/commands/trellis/start.toml +292 -0
- package/dist/templates/gemini/commands/trellis/update-spec.toml +132 -0
- package/dist/templates/gemini/index.d.ts +21 -0
- package/dist/templates/gemini/index.d.ts.map +1 -0
- package/dist/templates/gemini/index.js +44 -0
- package/dist/templates/gemini/index.js.map +1 -0
- package/dist/templates/iflow/agents/implement.md +1 -1
- package/dist/templates/iflow/commands/trellis/brainstorm.md +16 -18
- package/dist/templates/iflow/commands/trellis/finish-work.md +9 -0
- package/dist/templates/iflow/commands/trellis/start.md +108 -50
- package/dist/templates/iflow/index.d.ts +3 -2
- package/dist/templates/iflow/index.d.ts.map +1 -1
- package/dist/templates/iflow/index.js +7 -9
- package/dist/templates/iflow/index.js.map +1 -1
- package/dist/templates/kilo/commands/trellis/before-backend-dev.md +13 -0
- package/dist/templates/kilo/commands/trellis/before-frontend-dev.md +13 -0
- package/dist/templates/kilo/commands/trellis/brainstorm.md +474 -0
- package/dist/templates/kilo/commands/trellis/break-loop.md +125 -0
- package/dist/templates/kilo/commands/trellis/check-backend.md +13 -0
- package/dist/templates/kilo/commands/trellis/check-cross-layer.md +153 -0
- package/dist/templates/kilo/commands/trellis/check-frontend.md +13 -0
- package/dist/templates/kilo/commands/trellis/create-command.md +152 -0
- package/dist/templates/kilo/commands/trellis/finish-work.md +129 -0
- package/dist/templates/kilo/commands/trellis/integrate-skill.md +219 -0
- package/dist/templates/kilo/commands/trellis/onboard.md +358 -0
- package/dist/templates/kilo/commands/trellis/parallel.md +194 -0
- package/dist/templates/kilo/commands/trellis/record-session.md +62 -0
- package/dist/templates/kilo/commands/trellis/start.md +321 -0
- package/dist/templates/kilo/commands/trellis/update-spec.md +285 -0
- package/dist/templates/kilo/index.d.ts +16 -0
- package/dist/templates/kilo/index.d.ts.map +1 -0
- package/dist/templates/kilo/index.js +39 -0
- package/dist/templates/kilo/index.js.map +1 -0
- package/dist/templates/kiro/index.d.ts +18 -0
- package/dist/templates/kiro/index.d.ts.map +1 -0
- package/dist/templates/kiro/index.js +40 -0
- package/dist/templates/kiro/index.js.map +1 -0
- package/dist/templates/kiro/skills/before-backend-dev/SKILL.md +18 -0
- package/dist/templates/kiro/skills/before-frontend-dev/SKILL.md +18 -0
- package/dist/templates/kiro/skills/brainstorm/SKILL.md +479 -0
- package/dist/templates/kiro/skills/break-loop/SKILL.md +130 -0
- package/dist/templates/kiro/skills/check-backend/SKILL.md +18 -0
- package/dist/templates/kiro/skills/check-cross-layer/SKILL.md +158 -0
- package/dist/templates/kiro/skills/check-frontend/SKILL.md +18 -0
- package/dist/templates/kiro/skills/create-command/SKILL.md +101 -0
- package/dist/templates/kiro/skills/finish-work/SKILL.md +148 -0
- package/dist/templates/kiro/skills/integrate-skill/SKILL.md +221 -0
- package/dist/templates/kiro/skills/onboard/SKILL.md +363 -0
- package/dist/templates/kiro/skills/record-session/SKILL.md +67 -0
- package/dist/templates/kiro/skills/start/SKILL.md +330 -0
- package/dist/templates/kiro/skills/update-spec/SKILL.md +335 -0
- package/dist/templates/opencode/agents/implement.md +1 -1
- package/dist/templates/opencode/agents/research.md +1 -2
- package/dist/templates/opencode/commands/trellis/brainstorm.md +16 -18
- package/dist/templates/opencode/commands/trellis/start.md +71 -48
- package/dist/templates/trellis/scripts/common/cli_adapter.py +100 -12
- package/dist/templates/trellis/scripts/common/registry.py +1 -1
- package/dist/templates/trellis/scripts/task.py +1 -8
- package/dist/types/ai-tools.d.ts +4 -4
- package/dist/types/ai-tools.d.ts.map +1 -1
- package/dist/types/ai-tools.js +32 -0
- package/dist/types/ai-tools.js.map +1 -1
- package/package.json +3 -2
|
@@ -443,28 +443,26 @@ Context / Decision / Consequences
|
|
|
443
443
|
|
|
444
444
|
## Integration with Start Workflow
|
|
445
445
|
|
|
446
|
-
|
|
446
|
+
After brainstorm completes (Step 8 confirmation approved), the flow continues to the Task Workflow's **Phase 2: Prepare for Implementation**:
|
|
447
447
|
|
|
448
448
|
```text
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
Step
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
↓
|
|
463
|
-
Step 8: Final confirmation + small-PR plan
|
|
464
|
-
↓
|
|
465
|
-
Implement
|
|
449
|
+
Brainstorm
|
|
450
|
+
Step 0: Create task directory + seed PRD
|
|
451
|
+
Step 1–7: Discover requirements, research, converge
|
|
452
|
+
Step 8: Final confirmation → user approves
|
|
453
|
+
↓
|
|
454
|
+
Task Workflow Phase 2 (Prepare for Implementation)
|
|
455
|
+
Code-Spec Depth Check (if applicable)
|
|
456
|
+
→ Research codebase (based on confirmed PRD)
|
|
457
|
+
→ Configure code-spec context (jsonl files)
|
|
458
|
+
→ Activate task
|
|
459
|
+
↓
|
|
460
|
+
Task Workflow Phase 3 (Execute)
|
|
461
|
+
Implement → Check → Complete
|
|
466
462
|
```
|
|
467
463
|
|
|
464
|
+
The task directory and PRD already exist from brainstorm, so Phase 1 of the Task Workflow is skipped entirely.
|
|
465
|
+
|
|
468
466
|
---
|
|
469
467
|
|
|
470
468
|
## Related Commands
|
|
@@ -24,6 +24,15 @@ pnpm test
|
|
|
24
24
|
- [ ] No non-null assertions (the `x!` operator)?
|
|
25
25
|
- [ ] No `any` types?
|
|
26
26
|
|
|
27
|
+
### 1.5. Test Coverage
|
|
28
|
+
|
|
29
|
+
Check if your change needs new or updated tests (see `.trellis/spec/unit-test/conventions.md`):
|
|
30
|
+
|
|
31
|
+
- [ ] New pure function → unit test added?
|
|
32
|
+
- [ ] Bug fix → regression test added in `test/regression.test.ts`?
|
|
33
|
+
- [ ] Changed init/update behavior → integration test added/updated?
|
|
34
|
+
- [ ] No logic change (text/data only) → no test needed
|
|
35
|
+
|
|
27
36
|
### 2. Code-Spec Sync
|
|
28
37
|
|
|
29
38
|
**Code-Spec Docs**:
|
|
@@ -43,6 +43,7 @@ This shows: developer identity, git status, current task (if any), active tasks.
|
|
|
43
43
|
cat .trellis/spec/frontend/index.md # Frontend guidelines
|
|
44
44
|
cat .trellis/spec/backend/index.md # Backend guidelines
|
|
45
45
|
cat .trellis/spec/guides/index.md # Thinking guides
|
|
46
|
+
cat .trellis/spec/unit-test/index.md # Testing guidelines
|
|
46
47
|
```
|
|
47
48
|
|
|
48
49
|
### Step 4: Report and Ask
|
|
@@ -58,10 +59,25 @@ When user describes a task, classify it:
|
|
|
58
59
|
| Type | Criteria | Workflow |
|
|
59
60
|
|------|----------|----------|
|
|
60
61
|
| **Question** | User asks about code, architecture, or how something works | Answer directly |
|
|
61
|
-
| **Trivial Fix** | Typo fix, comment update, single-line change
|
|
62
|
-
| **Simple Task** | Clear goal, 1-2 files, well-defined scope | Quick confirm →
|
|
62
|
+
| **Trivial Fix** | Typo fix, comment update, single-line change | Direct Edit |
|
|
63
|
+
| **Simple Task** | Clear goal, 1-2 files, well-defined scope | Quick confirm → Implement |
|
|
63
64
|
| **Complex Task** | Vague goal, multiple files, architectural decisions | **Brainstorm → Task Workflow** |
|
|
64
65
|
|
|
66
|
+
### Classification Signals
|
|
67
|
+
|
|
68
|
+
**Trivial/Simple indicators:**
|
|
69
|
+
- User specifies exact file and change
|
|
70
|
+
- "Fix the typo in X"
|
|
71
|
+
- "Add field Y to component Z"
|
|
72
|
+
- Clear acceptance criteria already stated
|
|
73
|
+
|
|
74
|
+
**Complex indicators:**
|
|
75
|
+
- "I want to add a feature for..."
|
|
76
|
+
- "Can you help me improve..."
|
|
77
|
+
- Mentions multiple areas or systems
|
|
78
|
+
- No clear implementation path
|
|
79
|
+
- User seems unsure about approach
|
|
80
|
+
|
|
65
81
|
### Decision Rule
|
|
66
82
|
|
|
67
83
|
> **If in doubt, use Brainstorm + Task Workflow.**
|
|
@@ -80,6 +96,16 @@ For questions or trivial fixes, work directly:
|
|
|
80
96
|
|
|
81
97
|
---
|
|
82
98
|
|
|
99
|
+
## Simple Task
|
|
100
|
+
|
|
101
|
+
For simple, well-defined tasks:
|
|
102
|
+
|
|
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
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
83
109
|
## Complex Task - Brainstorm First
|
|
84
110
|
|
|
85
111
|
For complex or vague tasks, use the brainstorm process to clarify requirements.
|
|
@@ -93,6 +119,15 @@ See `/trellis:brainstorm` for the full process. Summary:
|
|
|
93
119
|
5. **Confirm final requirements** - Get explicit approval
|
|
94
120
|
6. **Proceed to Task Workflow** - With clear requirements in PRD
|
|
95
121
|
|
|
122
|
+
### Key Brainstorm Principles
|
|
123
|
+
|
|
124
|
+
| Principle | Description |
|
|
125
|
+
|-----------|-------------|
|
|
126
|
+
| **One question at a time** | Never overwhelm with multiple questions |
|
|
127
|
+
| **Update PRD immediately** | After each answer, update the document |
|
|
128
|
+
| **Prefer multiple choice** | Easier for users to answer |
|
|
129
|
+
| **YAGNI** | Challenge unnecessary complexity |
|
|
130
|
+
|
|
96
131
|
---
|
|
97
132
|
|
|
98
133
|
## Task Workflow (Development Tasks)
|
|
@@ -104,18 +139,70 @@ See `/trellis:brainstorm` for the full process. Summary:
|
|
|
104
139
|
- Check Agent verifies against code-spec requirements
|
|
105
140
|
- Result: Code that follows project conventions automatically
|
|
106
141
|
|
|
107
|
-
###
|
|
142
|
+
### Overview: Two Entry Points
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
From Brainstorm (Complex Task):
|
|
146
|
+
PRD confirmed → Research → Configure Context → Activate → Implement → Check → Complete
|
|
147
|
+
|
|
148
|
+
From Simple Task:
|
|
149
|
+
Confirm → Create Task → Write PRD → Research → Configure Context → Activate → Implement → Check → Complete
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
**Key principle: Research happens AFTER requirements are clear (PRD exists).**
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
### Phase 1: Establish Requirements
|
|
157
|
+
|
|
158
|
+
#### Path A: From Brainstorm (skip to Phase 2)
|
|
159
|
+
|
|
160
|
+
PRD and task directory already exist from brainstorm. Skip directly to Phase 2.
|
|
108
161
|
|
|
109
|
-
|
|
162
|
+
#### Path B: From Simple Task
|
|
110
163
|
|
|
111
|
-
**
|
|
164
|
+
**Step 1: Confirm Understanding** `[AI]`
|
|
165
|
+
|
|
166
|
+
Quick confirm:
|
|
112
167
|
- What is the goal?
|
|
113
168
|
- What type of development? (frontend / backend / fullstack)
|
|
114
169
|
- Any specific requirements or constraints?
|
|
115
170
|
|
|
116
|
-
|
|
171
|
+
**Step 2: Create Task Directory** `[AI]`
|
|
172
|
+
|
|
173
|
+
```bash
|
|
174
|
+
TASK_DIR=$(python3 ./.trellis/scripts/task.py create "<title>" --slug <name>)
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
**Step 3: Write PRD** `[AI]`
|
|
178
|
+
|
|
179
|
+
Create `prd.md` in the task directory with:
|
|
180
|
+
|
|
181
|
+
```markdown
|
|
182
|
+
# <Task Title>
|
|
183
|
+
|
|
184
|
+
## Goal
|
|
185
|
+
<What we're trying to achieve>
|
|
186
|
+
|
|
187
|
+
## Requirements
|
|
188
|
+
- <Requirement 1>
|
|
189
|
+
- <Requirement 2>
|
|
117
190
|
|
|
118
|
-
|
|
191
|
+
## Acceptance Criteria
|
|
192
|
+
- [ ] <Criterion 1>
|
|
193
|
+
- [ ] <Criterion 2>
|
|
194
|
+
|
|
195
|
+
## Technical Notes
|
|
196
|
+
<Any technical decisions or constraints>
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
### Phase 2: Prepare for Implementation (shared)
|
|
202
|
+
|
|
203
|
+
> Both paths converge here. PRD and task directory must exist before proceeding.
|
|
204
|
+
|
|
205
|
+
**Step 4: Code-Spec Depth Check** `[AI]`
|
|
119
206
|
|
|
120
207
|
If the task touches infra or cross-layer contracts, do not start implementation until code-spec depth is defined.
|
|
121
208
|
|
|
@@ -125,22 +212,22 @@ Trigger this requirement when the change includes any of:
|
|
|
125
212
|
- Infra integrations (storage, queue, cache, secrets, env contracts)
|
|
126
213
|
- Cross-layer payload transformations
|
|
127
214
|
|
|
128
|
-
Must-have before
|
|
215
|
+
Must-have before proceeding:
|
|
129
216
|
- [ ] Target code-spec files to update are identified
|
|
130
217
|
- [ ] Concrete contract is defined (signature, fields, env keys)
|
|
131
218
|
- [ ] Validation and error matrix is defined
|
|
132
219
|
- [ ] At least one Good/Base/Bad case is defined
|
|
133
220
|
|
|
134
|
-
|
|
221
|
+
**Step 5: Research the Codebase** `[AI]`
|
|
135
222
|
|
|
136
|
-
|
|
223
|
+
Based on the confirmed PRD, call Research Agent to find relevant specs and patterns:
|
|
137
224
|
|
|
138
225
|
```
|
|
139
226
|
Task(
|
|
140
227
|
subagent_type: "research",
|
|
141
228
|
prompt: "Analyze the codebase for this task:
|
|
142
229
|
|
|
143
|
-
Task: <
|
|
230
|
+
Task: <goal from PRD>
|
|
144
231
|
Type: <frontend/backend/fullstack>
|
|
145
232
|
|
|
146
233
|
Please find:
|
|
@@ -156,23 +243,12 @@ Task(
|
|
|
156
243
|
- <pattern>: <example file path>
|
|
157
244
|
|
|
158
245
|
## Files to Modify
|
|
159
|
-
- <path>: <what change>
|
|
160
|
-
|
|
161
|
-
## Suggested Task Name
|
|
162
|
-
- <short-slug-name>",
|
|
246
|
+
- <path>: <what change>",
|
|
163
247
|
model: "opus"
|
|
164
248
|
)
|
|
165
249
|
```
|
|
166
250
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
Based on research results:
|
|
170
|
-
|
|
171
|
-
```bash
|
|
172
|
-
TASK_DIR=$(python3 ./.trellis/scripts/task.py create "<title from research>" --slug <suggested-slug>)
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
### Step 4: Configure Context `[AI]`
|
|
251
|
+
**Step 6: Configure Context** `[AI]`
|
|
176
252
|
|
|
177
253
|
Initialize default context:
|
|
178
254
|
|
|
@@ -189,29 +265,7 @@ python3 ./.trellis/scripts/task.py add-context "$TASK_DIR" implement "<path>" "<
|
|
|
189
265
|
python3 ./.trellis/scripts/task.py add-context "$TASK_DIR" check "<path>" "<reason>"
|
|
190
266
|
```
|
|
191
267
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
Create `prd.md` in the task directory with:
|
|
195
|
-
|
|
196
|
-
```markdown
|
|
197
|
-
# <Task Title>
|
|
198
|
-
|
|
199
|
-
## Goal
|
|
200
|
-
<What we're trying to achieve>
|
|
201
|
-
|
|
202
|
-
## Requirements
|
|
203
|
-
- <Requirement 1>
|
|
204
|
-
- <Requirement 2>
|
|
205
|
-
|
|
206
|
-
## Acceptance Criteria
|
|
207
|
-
- [ ] <Criterion 1>
|
|
208
|
-
- [ ] <Criterion 2>
|
|
209
|
-
|
|
210
|
-
## Technical Notes
|
|
211
|
-
<Any technical decisions or constraints>
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
### Step 6: Activate Task `[AI]`
|
|
268
|
+
**Step 7: Activate Task** `[AI]`
|
|
215
269
|
|
|
216
270
|
```bash
|
|
217
271
|
python3 ./.trellis/scripts/task.py start "$TASK_DIR"
|
|
@@ -219,7 +273,11 @@ python3 ./.trellis/scripts/task.py start "$TASK_DIR"
|
|
|
219
273
|
|
|
220
274
|
This sets `.current-task` so hooks can inject context.
|
|
221
275
|
|
|
222
|
-
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
### Phase 3: Execute (shared)
|
|
279
|
+
|
|
280
|
+
**Step 8: Implement** `[AI]`
|
|
223
281
|
|
|
224
282
|
Call Implement Agent (code-spec context is auto-injected by hook):
|
|
225
283
|
|
|
@@ -234,7 +292,7 @@ Task(
|
|
|
234
292
|
)
|
|
235
293
|
```
|
|
236
294
|
|
|
237
|
-
|
|
295
|
+
**Step 9: Check Quality** `[AI]`
|
|
238
296
|
|
|
239
297
|
Call Check Agent (code-spec context is auto-injected by hook):
|
|
240
298
|
|
|
@@ -249,7 +307,7 @@ Task(
|
|
|
249
307
|
)
|
|
250
308
|
```
|
|
251
309
|
|
|
252
|
-
|
|
310
|
+
**Step 10: Complete** `[AI]`
|
|
253
311
|
|
|
254
312
|
1. Verify lint and typecheck pass
|
|
255
313
|
2. Report what was implemented
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* ├── commands/ # Slash commands
|
|
10
10
|
* ├── agents/ # Multi-agent pipeline agents
|
|
11
11
|
* ├── hooks/ # Context injection hooks
|
|
12
|
-
*
|
|
12
|
+
* └── settings.json # Settings configuration
|
|
13
13
|
*/
|
|
14
14
|
export declare const settingsTemplate: string;
|
|
15
15
|
/**
|
|
@@ -35,7 +35,8 @@ export interface HookTemplate {
|
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Get all command templates
|
|
38
|
-
* Commands are stored in commands/
|
|
38
|
+
* Commands are stored in commands/trellis/ subdirectory
|
|
39
|
+
* This creates commands like /trellis:start, /trellis:finish-work, etc.
|
|
39
40
|
*/
|
|
40
41
|
export declare function getAllCommands(): CommandTemplate[];
|
|
41
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/iflow/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAsBH,eAAO,MAAM,gBAAgB,QAAgC,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/iflow/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAsBH,eAAO,MAAM,gBAAgB,QAAgC,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,eAAe,EAAE,CAalD;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,aAAa,EAAE,CAa9C;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,YAAY,EAAE,CAU5C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,YAAY,CAKlD"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* ├── commands/ # Slash commands
|
|
10
10
|
* ├── agents/ # Multi-agent pipeline agents
|
|
11
11
|
* ├── hooks/ # Context injection hooks
|
|
12
|
-
*
|
|
12
|
+
* └── settings.json # Settings configuration
|
|
13
13
|
*/
|
|
14
14
|
import { readdirSync, readFileSync } from "node:fs";
|
|
15
15
|
import { dirname, join } from "node:path";
|
|
@@ -31,15 +31,16 @@ function listFiles(dir) {
|
|
|
31
31
|
export const settingsTemplate = readTemplate("settings.json");
|
|
32
32
|
/**
|
|
33
33
|
* Get all command templates
|
|
34
|
-
* Commands are stored in commands/
|
|
34
|
+
* Commands are stored in commands/trellis/ subdirectory
|
|
35
|
+
* This creates commands like /trellis:start, /trellis:finish-work, etc.
|
|
35
36
|
*/
|
|
36
37
|
export function getAllCommands() {
|
|
37
38
|
const commands = [];
|
|
38
|
-
const files = listFiles("commands");
|
|
39
|
+
const files = listFiles("commands/trellis");
|
|
39
40
|
for (const file of files) {
|
|
40
41
|
if (file.endsWith(".md")) {
|
|
41
42
|
const name = file.replace(".md", "");
|
|
42
|
-
const content = readTemplate(`commands/${file}`);
|
|
43
|
+
const content = readTemplate(`commands/trellis/${file}`);
|
|
43
44
|
commands.push({ name, content });
|
|
44
45
|
}
|
|
45
46
|
}
|
|
@@ -67,11 +68,8 @@ export function getAllHooks() {
|
|
|
67
68
|
const hooks = [];
|
|
68
69
|
const files = listFiles("hooks");
|
|
69
70
|
for (const file of files) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const content = readTemplate(`hooks/${file}`);
|
|
73
|
-
hooks.push({ targetPath, content });
|
|
74
|
-
}
|
|
71
|
+
const content = readTemplate(`hooks/${file}`);
|
|
72
|
+
hooks.push({ targetPath: `hooks/${file}`, content });
|
|
75
73
|
}
|
|
76
74
|
return hooks;
|
|
77
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/iflow/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,IAAI,CAAC;QACH,OAAO,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC;IAC3C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED,WAAW;AACX,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;AA0B9D
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/iflow/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,IAAI,CAAC;QACH,OAAO,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC;IAC3C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAED,WAAW;AACX,MAAM,CAAC,MAAM,gBAAgB,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;AA0B9D;;;;GAIG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,QAAQ,GAAsB,EAAE,CAAC;IACvC,MAAM,KAAK,GAAG,SAAS,CAAC,kBAAkB,CAAC,CAAC;IAE5C,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACrC,MAAM,OAAO,GAAG,YAAY,CAAC,oBAAoB,IAAI,EAAE,CAAC,CAAC;YACzD,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY;IAC1B,MAAM,MAAM,GAAoB,EAAE,CAAC;IACnC,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;IAElC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YACrC,MAAM,OAAO,GAAG,YAAY,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC;YAC/C,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW;IACzB,MAAM,KAAK,GAAmB,EAAE,CAAC;IACjC,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IAEjC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,OAAO,GAAG,YAAY,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC;QAC9C,KAAK,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,SAAS,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB;IACjC,OAAO;QACL,UAAU,EAAE,eAAe;QAC3B,OAAO,EAAE,gBAAgB;KAC1B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Read the backend development guidelines before starting your development task.
|
|
2
|
+
|
|
3
|
+
Execute these steps:
|
|
4
|
+
1. Read `.trellis/spec/backend/index.md` to understand available guidelines
|
|
5
|
+
2. Based on your task, read the relevant guideline files:
|
|
6
|
+
- Database work → `.trellis/spec/backend/database-guidelines.md`
|
|
7
|
+
- Error handling → `.trellis/spec/backend/error-handling.md`
|
|
8
|
+
- Logging → `.trellis/spec/backend/logging-guidelines.md`
|
|
9
|
+
- Type questions → `.trellis/spec/backend/type-safety.md`
|
|
10
|
+
3. Understand the coding standards and patterns you need to follow
|
|
11
|
+
4. Then proceed with your development plan
|
|
12
|
+
|
|
13
|
+
This step is **mandatory** before writing any backend code.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Read the frontend development guidelines before starting your development task.
|
|
2
|
+
|
|
3
|
+
Execute these steps:
|
|
4
|
+
1. Read `.trellis/spec/frontend/index.md` to understand available guidelines
|
|
5
|
+
2. Based on your task, read the relevant guideline files:
|
|
6
|
+
- Component work → `.trellis/spec/frontend/component-guidelines.md`
|
|
7
|
+
- Hook work → `.trellis/spec/frontend/hook-guidelines.md`
|
|
8
|
+
- State management → `.trellis/spec/frontend/state-management.md`
|
|
9
|
+
- Type questions → `.trellis/spec/frontend/type-safety.md`
|
|
10
|
+
3. Understand the coding standards and patterns you need to follow
|
|
11
|
+
4. Then proceed with your development plan
|
|
12
|
+
|
|
13
|
+
This step is **mandatory** before writing any frontend code.
|