clavix 4.8.0 → 4.9.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/core/adapters/amp-adapter.d.ts +3 -0
- package/dist/core/adapters/amp-adapter.js +1 -0
- package/dist/core/adapters/cline-adapter.d.ts +3 -0
- package/dist/core/adapters/cline-adapter.js +1 -0
- package/dist/core/adapters/codebuddy-adapter.d.ts +3 -0
- package/dist/core/adapters/codebuddy-adapter.js +1 -0
- package/dist/core/adapters/codex-adapter.d.ts +3 -0
- package/dist/core/adapters/codex-adapter.js +1 -0
- package/dist/core/adapters/cursor-adapter.d.ts +3 -0
- package/dist/core/adapters/cursor-adapter.js +1 -0
- package/dist/core/adapters/droid-adapter.d.ts +3 -0
- package/dist/core/adapters/droid-adapter.js +1 -0
- package/dist/core/adapters/instructions-generator.js +9 -2
- package/dist/core/adapters/kilocode-adapter.d.ts +3 -0
- package/dist/core/adapters/kilocode-adapter.js +1 -0
- package/dist/core/adapters/opencode-adapter.d.ts +3 -0
- package/dist/core/adapters/opencode-adapter.js +1 -0
- package/dist/core/adapters/roocode-adapter.d.ts +3 -0
- package/dist/core/adapters/roocode-adapter.js +1 -0
- package/dist/core/adapters/windsurf-adapter.d.ts +3 -0
- package/dist/core/adapters/windsurf-adapter.js +1 -0
- package/dist/core/command-transformer.d.ts +55 -0
- package/dist/core/command-transformer.js +65 -0
- package/dist/templates/slash-commands/_canonical/archive.md +67 -81
- package/dist/templates/slash-commands/_canonical/deep.md +40 -34
- package/dist/templates/slash-commands/_canonical/execute.md +187 -155
- package/dist/templates/slash-commands/_canonical/fast.md +33 -24
- package/dist/templates/slash-commands/_canonical/implement.md +283 -301
- package/dist/templates/slash-commands/_canonical/plan.md +33 -17
- package/dist/templates/slash-commands/_canonical/prd.md +36 -21
- package/dist/templates/slash-commands/_canonical/start.md +34 -33
- package/dist/templates/slash-commands/_canonical/summarize.md +39 -47
- package/dist/templates/slash-commands/_canonical/verify.md +324 -186
- package/dist/templates/slash-commands/_components/agent-protocols/cli-reference.md +202 -0
- package/dist/templates/slash-commands/_components/agent-protocols/error-handling.md +145 -88
- package/dist/templates/slash-commands/_components/agent-protocols/supportive-companion.md +216 -0
- package/dist/templates/slash-commands/_components/agent-protocols/task-blocking.md +224 -0
- package/dist/templates/slash-commands/_components/references/quality-dimensions.md +152 -44
- package/dist/templates/slash-commands/_components/sections/conversation-examples.md +302 -0
- package/dist/templates/slash-commands/_components/sections/escalation-factors.md +119 -87
- package/dist/templates/slash-commands/_components/sections/improvement-explanations.md +171 -0
- package/dist/templates/slash-commands/_components/sections/pattern-impact.md +208 -0
- package/dist/templates/slash-commands/_components/sections/prd-examples.md +289 -0
- package/dist/templates/slash-commands/_components/troubleshooting/vibecoder-recovery.md +223 -0
- package/dist/types/agent.d.ts +4 -0
- package/dist/utils/template-loader.d.ts +1 -1
- package/dist/utils/template-loader.js +5 -1
- package/package.json +1 -1
|
@@ -3,408 +3,390 @@ name: "Clavix: Implement"
|
|
|
3
3
|
description: Execute tasks from the implementation plan
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Clavix Implement
|
|
6
|
+
# Clavix: Implement Your Tasks
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Time to build your project task by task! I'll work through your task list, building each feature and tracking progress.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## What This Does
|
|
13
|
+
|
|
14
|
+
When you run `/clavix:implement`, I:
|
|
15
|
+
1. **Find your task list** - Load tasks.md from your PRD output
|
|
16
|
+
2. **Pick up where you left off** - Find the next incomplete task
|
|
17
|
+
3. **Build each task** - Implement one at a time, in order
|
|
18
|
+
4. **Mark progress automatically** - Update checkboxes when done
|
|
19
|
+
5. **Create commits (optional)** - Git history as you go
|
|
20
|
+
|
|
21
|
+
**You just say "let's build" and I handle the rest.**
|
|
9
22
|
|
|
10
23
|
---
|
|
11
24
|
|
|
12
25
|
## CLAVIX MODE: Implementation
|
|
13
26
|
|
|
14
|
-
**
|
|
27
|
+
**I'm in implementation mode. Building your tasks!**
|
|
15
28
|
|
|
16
|
-
**
|
|
29
|
+
**What I'll do:**
|
|
17
30
|
- ✓ Read and understand task requirements
|
|
18
|
-
- ✓ Implement tasks from
|
|
31
|
+
- ✓ Implement tasks from your task list
|
|
19
32
|
- ✓ Write production-quality code
|
|
20
|
-
- ✓ Follow PRD specifications
|
|
21
|
-
- ✓
|
|
33
|
+
- ✓ Follow your PRD specifications
|
|
34
|
+
- ✓ Mark tasks complete automatically
|
|
35
|
+
- ✓ Create git commits (if you want)
|
|
22
36
|
|
|
23
|
-
**
|
|
24
|
-
- ✓
|
|
25
|
-
- ✓
|
|
26
|
-
- ✓
|
|
27
|
-
- ✓
|
|
37
|
+
**What I'm authorized to create:**
|
|
38
|
+
- ✓ Functions, classes, and components
|
|
39
|
+
- ✓ New files and modifications
|
|
40
|
+
- ✓ Tests for implemented code
|
|
41
|
+
- ✓ Configuration files
|
|
28
42
|
|
|
29
|
-
**
|
|
30
|
-
|
|
31
|
-
1. Source documents exist (tasks.md in .clavix/outputs/)
|
|
32
|
-
2. Output assertion: "Entering IMPLEMENTATION mode. I will implement tasks from tasks.md."
|
|
43
|
+
**Before I start, I'll confirm:**
|
|
44
|
+
> "Starting task implementation. Working on: [task description]..."
|
|
33
45
|
|
|
34
46
|
For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
|
|
35
47
|
|
|
36
48
|
---
|
|
37
49
|
|
|
38
|
-
##
|
|
50
|
+
## How It Works
|
|
39
51
|
|
|
40
|
-
|
|
52
|
+
### The Quick Version
|
|
41
53
|
|
|
42
|
-
|
|
54
|
+
```
|
|
55
|
+
You: /clavix:implement
|
|
56
|
+
Me: "Found your task list! 8 tasks in 3 phases."
|
|
57
|
+
"Starting with: Set up project structure"
|
|
58
|
+
[I build it]
|
|
59
|
+
[I mark it done]
|
|
60
|
+
"Done! Moving to next task: Create database models"
|
|
61
|
+
[I build it]
|
|
62
|
+
...
|
|
63
|
+
Me: "All tasks complete! Your project is built."
|
|
64
|
+
```
|
|
43
65
|
|
|
44
|
-
|
|
66
|
+
### The Detailed Version
|
|
45
67
|
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
"I notice this implementation has [X] phases with [Y] tasks total.
|
|
68
|
+
**First time I run:**
|
|
49
69
|
|
|
50
|
-
|
|
70
|
+
1. **I check for your task list** - Load tasks.md from your PRD folder
|
|
71
|
+
2. **I ask about git commits** (only if you have lots of tasks):
|
|
72
|
+
> "You've got 12 tasks. Want me to create git commits as I go?
|
|
73
|
+
>
|
|
74
|
+
> Options:
|
|
75
|
+
> - **per-task**: Commit after each task (detailed history)
|
|
76
|
+
> - **per-phase**: Commit when phases complete (milestone commits)
|
|
77
|
+
> - **none**: I won't touch git (you handle commits)
|
|
78
|
+
>
|
|
79
|
+
> Which do you prefer? (I'll default to 'none' if you don't care)"
|
|
51
80
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
- per-5-tasks: Commit every 5 tasks (balanced approach)
|
|
55
|
-
- per-phase: Commit when each phase completes (milestone commits)
|
|
56
|
-
- none: Manual git workflow (I won't create commits)
|
|
81
|
+
3. **I initialize tracking** - Run `clavix implement` to set up progress tracking
|
|
82
|
+
4. **I start building** - First incomplete task
|
|
57
83
|
|
|
58
|
-
|
|
59
|
-
```
|
|
84
|
+
**Each task I work on:**
|
|
60
85
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
86
|
+
1. **Read the task** - Understand what needs to be built
|
|
87
|
+
2. **Check the PRD** - Make sure I understand the requirements
|
|
88
|
+
3. **Implement it** - Write code, create files, build features
|
|
89
|
+
4. **Mark it complete** - Run `clavix task-complete {task-id}` automatically
|
|
90
|
+
5. **Move to next** - The command shows me what's next
|
|
65
91
|
|
|
66
|
-
|
|
67
|
-
clavix implement
|
|
68
|
-
```
|
|
92
|
+
**If we get interrupted:**
|
|
69
93
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- Display the next incomplete task
|
|
73
|
-
- Create `.clavix-implement-config.json` file
|
|
74
|
-
- Set git auto-commit strategy (or default to 'none')
|
|
94
|
+
No problem! Just run `/clavix:implement` again and I pick up where we left off.
|
|
95
|
+
The checkboxes in tasks.md track exactly what's done.
|
|
75
96
|
|
|
76
|
-
|
|
97
|
+
## How I Mark Tasks Complete
|
|
77
98
|
|
|
78
|
-
|
|
79
|
-
- Skip to step 2 (implementation loop)
|
|
99
|
+
**I handle this automatically - you don't need to do anything.**
|
|
80
100
|
|
|
81
|
-
|
|
101
|
+
### What Happens Behind the Scenes
|
|
82
102
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
103
|
+
After I finish implementing a task, I run:
|
|
104
|
+
```bash
|
|
105
|
+
clavix task-complete {task-id}
|
|
106
|
+
```
|
|
86
107
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
108
|
+
This does several things:
|
|
109
|
+
- Updates the checkbox in tasks.md ([ ] → [x])
|
|
110
|
+
- Tracks progress in the config file
|
|
111
|
+
- Creates a git commit (if you enabled that)
|
|
112
|
+
- Shows me the next task
|
|
90
113
|
|
|
91
|
-
|
|
92
|
-
- Find the first incomplete task (marked `- [ ]`)
|
|
93
|
-
- This is your current task to implement
|
|
114
|
+
### Why I Don't Edit Checkboxes Manually
|
|
94
115
|
|
|
95
|
-
|
|
96
|
-
- Write/modify code as needed
|
|
97
|
-
- Follow quality principles (clarity, structure, actionability)
|
|
98
|
-
- Use PRD requirements as your guide
|
|
99
|
-
- Ask user for clarification if needed
|
|
116
|
+
The command keeps everything in sync. If I edited the file directly, the progress tracking could get confused. Trust the system!
|
|
100
117
|
|
|
101
|
-
|
|
102
|
-
- IMPORTANT: NEVER manually edit checkboxes in tasks.md
|
|
103
|
-
- Instead, run: `clavix task-complete {task-id}`
|
|
104
|
-
- The task ID is found in tasks.md (e.g., `phase-1-authentication-1`)
|
|
105
|
-
- This command automatically:
|
|
106
|
-
• Validates the task exists
|
|
107
|
-
• Updates the checkbox in tasks.md
|
|
108
|
-
• Tracks completion in config file
|
|
109
|
-
• Creates git commit (if strategy enabled)
|
|
110
|
-
• Displays the next task
|
|
111
|
-
- Example: `clavix task-complete phase-1-setup-1`
|
|
118
|
+
### What You'll See
|
|
112
119
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
- Read it and repeat the process
|
|
116
|
-
- If you get interrupted, just run `clavix implement` again to resume
|
|
120
|
+
```
|
|
121
|
+
✓ Task complete: "Set up project structure" (phase-1-setup-1)
|
|
117
122
|
|
|
118
|
-
|
|
119
|
-
- When user runs `clavix implement` again, it automatically picks up from the last incomplete task
|
|
120
|
-
- No manual tracking needed - the checkboxes in tasks.md are the source of truth
|
|
123
|
+
Progress: 2/8 tasks (25%)
|
|
121
124
|
|
|
122
|
-
|
|
125
|
+
Next up: "Create database models"
|
|
126
|
+
Starting now...
|
|
127
|
+
```
|
|
123
128
|
|
|
124
|
-
|
|
129
|
+
## My Rules for Implementation
|
|
125
130
|
|
|
126
|
-
|
|
131
|
+
**I will:**
|
|
132
|
+
- Build one task at a time, in order
|
|
133
|
+
- Check the PRD when I need more context
|
|
134
|
+
- Ask you if something's unclear
|
|
135
|
+
- Mark tasks done only after they're really done
|
|
136
|
+
- Create git commits (if you asked for them)
|
|
127
137
|
|
|
128
|
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
-
|
|
138
|
+
**I won't:**
|
|
139
|
+
- Skip tasks or jump around
|
|
140
|
+
- Mark something done that isn't working
|
|
141
|
+
- Guess what you want - I'll ask instead
|
|
142
|
+
- Edit checkboxes manually (I use the command)
|
|
133
143
|
|
|
134
|
-
|
|
144
|
+
## When I Can't Continue (Blocked Tasks)
|
|
135
145
|
|
|
136
|
-
|
|
137
|
-
**User Responsibility:** None - agent handles task completion automatically.
|
|
146
|
+
Sometimes I hit a wall. Here's what happens:
|
|
138
147
|
|
|
139
|
-
###
|
|
148
|
+
### Common Blockers
|
|
140
149
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
150
|
+
- **Missing something**: API key, credentials, design files
|
|
151
|
+
- **Unclear what to do**: Task is vague or conflicts with the PRD
|
|
152
|
+
- **Waiting on something**: External service, content, or assets not ready
|
|
153
|
+
- **Technical issue**: Can't install a library, environment problem
|
|
144
154
|
|
|
145
|
-
|
|
146
|
-
clavix task-complete phase-1-setup-1
|
|
147
|
-
```
|
|
155
|
+
### What I'll Do
|
|
148
156
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
157
|
+
**I'll stop and tell you:**
|
|
158
|
+
> "I'm stuck on: [task description]
|
|
159
|
+
>
|
|
160
|
+
> The problem: [e.g., 'I need a Stripe API key to set up payments']
|
|
161
|
+
>
|
|
162
|
+
> We can:
|
|
163
|
+
> 1. **You give me what I need** - [specific thing needed]
|
|
164
|
+
> 2. **I do what I can** - Build the parts that don't need [blocker]
|
|
165
|
+
> 3. **Skip for now** - Move on, come back to this later
|
|
166
|
+
>
|
|
167
|
+
> What would you like?"
|
|
155
168
|
|
|
156
|
-
|
|
169
|
+
### My Preferred Approach
|
|
157
170
|
|
|
158
|
-
|
|
171
|
+
If possible, I'll break the task into pieces and do what I can:
|
|
159
172
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
- Implement ONE task at a time
|
|
163
|
-
- Use `clavix task-complete {task-id}` after completing each task
|
|
164
|
-
- Reference the PRD for detailed requirements
|
|
165
|
-
- Ask for clarification when tasks are ambiguous
|
|
166
|
-
- Run `clavix implement` again if interrupted to resume
|
|
173
|
+
```
|
|
174
|
+
Original: "Set up payment integration"
|
|
167
175
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
- Assume what code to write - use PRD as source of truth
|
|
173
|
-
- Try to track task completion manually
|
|
176
|
+
What I can do now:
|
|
177
|
+
✓ Create the payment service structure
|
|
178
|
+
✓ Build the payment UI components
|
|
179
|
+
✓ Set up the checkout flow
|
|
174
180
|
|
|
175
|
-
|
|
181
|
+
What's blocked:
|
|
182
|
+
○ [BLOCKED: Need Stripe key] Connect to Stripe API
|
|
183
|
+
```
|
|
176
184
|
|
|
177
|
-
|
|
185
|
+
This way we make progress even when something's missing.
|
|
178
186
|
|
|
179
|
-
###
|
|
187
|
+
### Tracking Blocked Tasks
|
|
180
188
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
-
|
|
184
|
-
-
|
|
185
|
-
-
|
|
186
|
-
|
|
189
|
+
I mark blocked tasks in tasks.md:
|
|
190
|
+
```markdown
|
|
191
|
+
- [x] Create payment service structure
|
|
192
|
+
- [ ] [BLOCKED: Need Stripe API key] Connect to Stripe
|
|
193
|
+
- [x] Build checkout UI
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
At the end of our session, I'll remind you:
|
|
197
|
+
> "Just a heads up - we have 2 blocked tasks waiting for:
|
|
198
|
+
> - Stripe API key (payment integration)
|
|
199
|
+
> - Design mockups (dashboard layout)
|
|
200
|
+
>
|
|
201
|
+
> Let me know when you have these!"
|
|
187
202
|
|
|
188
|
-
|
|
203
|
+
## Example: What a Session Looks Like
|
|
189
204
|
|
|
190
|
-
**Stop implementation and ask user immediately:**
|
|
191
205
|
```
|
|
192
|
-
|
|
206
|
+
You: /clavix:implement
|
|
193
207
|
|
|
194
|
-
|
|
208
|
+
Me: "Found your task list! Let me see where we are..."
|
|
195
209
|
|
|
196
|
-
|
|
197
|
-
1. **Provide missing resource** - [What user needs to provide]
|
|
198
|
-
2. **Break into sub-tasks** - I can implement [unblocked parts] now and defer [blocked part]
|
|
199
|
-
3. **Skip for now** - Mark as [BLOCKED], continue with next task, return later
|
|
210
|
+
"📋 Progress: 0/8 tasks complete
|
|
200
211
|
|
|
201
|
-
|
|
202
|
-
```
|
|
212
|
+
Starting with: Set up project structure (phase-1-setup-1)
|
|
203
213
|
|
|
204
|
-
|
|
214
|
+
Let me build this..."
|
|
205
215
|
|
|
206
|
-
|
|
207
|
-
- Wait for user to provide (API key, design, clarification)
|
|
208
|
-
- Once provided, continue with task implementation
|
|
216
|
+
[I create folders, initial files, configure package.json]
|
|
209
217
|
|
|
210
|
-
|
|
211
|
-
- Identify what CAN be done without the blocker
|
|
212
|
-
- Break task into unblocked sub-tasks
|
|
213
|
-
- Example: "Implement payment integration" →
|
|
214
|
-
- [x] Create payment service interface (can do now)
|
|
215
|
-
- [ ] [BLOCKED: Need Stripe API key] Integrate Stripe SDK
|
|
216
|
-
- [ ] Add payment UI components (can do now)
|
|
217
|
-
- Implement unblocked sub-tasks, mark blocked ones with [BLOCKED] tag
|
|
218
|
+
"✓ Done! Setting up next task..."
|
|
218
219
|
|
|
219
|
-
|
|
220
|
-
- Add [BLOCKED] tag to task in tasks.md: `- [ ] [BLOCKED: Missing API key] Task description`
|
|
221
|
-
- Note the blocker reason
|
|
222
|
-
- Move to next task
|
|
223
|
-
- Return to blocked tasks when unblocked
|
|
220
|
+
"Working on: Create database models (phase-1-database-1)
|
|
224
221
|
|
|
225
|
-
|
|
222
|
+
I see this needs PostgreSQL with Prisma. Let me check your .env..."
|
|
226
223
|
|
|
227
|
-
|
|
228
|
-
```markdown
|
|
229
|
-
## Phase 2: Integration
|
|
230
|
-
- [x] Create API client structure
|
|
231
|
-
- [ ] [BLOCKED: Waiting for API endpoint spec] Implement data sync
|
|
232
|
-
- [ ] Add error handling for API calls
|
|
233
|
-
```
|
|
224
|
+
[I create Prisma schema, run migrations]
|
|
234
225
|
|
|
235
|
-
|
|
236
|
-
- List all blocked tasks
|
|
237
|
-
- Remind user what's needed to unblock each one
|
|
238
|
-
- Suggest next steps
|
|
226
|
+
"✓ Done! 2/8 tasks complete (25%)
|
|
239
227
|
|
|
240
|
-
|
|
228
|
+
Next: Set up authentication..."
|
|
241
229
|
|
|
242
|
-
|
|
243
|
-
|--------------|-----------|------------|
|
|
244
|
-
| Missing API key/credentials | Code requires authentication | Ask user for credentials OR stub with mock for now |
|
|
245
|
-
| Vague requirements | Unclear what to implement | Ask specific questions OR propose implementation for approval |
|
|
246
|
-
| External dependency | Service/API not available | Create interface/mock OR skip and defer |
|
|
247
|
-
| Environment issue | Can't run/test code | Ask user to fix environment OR implement without testing (note risk) |
|
|
248
|
-
| Design/content missing | Need specific assets | Create placeholder OR wait for actual assets |
|
|
230
|
+
[... continues through all tasks ...]
|
|
249
231
|
|
|
250
|
-
|
|
232
|
+
Me: "🎉 All 8 tasks complete!
|
|
251
233
|
|
|
252
|
-
|
|
253
|
-
-
|
|
254
|
-
-
|
|
255
|
-
-
|
|
256
|
-
-
|
|
234
|
+
Your project is built. Here's what we created:
|
|
235
|
+
- Project structure with TypeScript
|
|
236
|
+
- Database models with Prisma
|
|
237
|
+
- Auth system with JWT
|
|
238
|
+
- [... etc]
|
|
257
239
|
|
|
258
|
-
|
|
259
|
-
1. User runs: clavix implement
|
|
260
|
-
2. Command shows: "Next task (ID: phase-1-auth-1): Implement user authentication"
|
|
261
|
-
3. You (AI agent):
|
|
262
|
-
- Read PRD authentication requirements
|
|
263
|
-
- Implement auth logic
|
|
264
|
-
- Write tests
|
|
265
|
-
- Run: clavix task-complete phase-1-auth-1
|
|
266
|
-
- Command automatically:
|
|
267
|
-
• Marks task complete in tasks.md
|
|
268
|
-
• Updates config tracking
|
|
269
|
-
• Creates git commit (if enabled)
|
|
270
|
-
• Shows next task
|
|
271
|
-
- Continue with next task or wait for user
|
|
240
|
+
Ready to test it out?"
|
|
272
241
|
```
|
|
273
242
|
|
|
274
|
-
##
|
|
243
|
+
## How I Find Tasks
|
|
275
244
|
|
|
276
|
-
Task IDs
|
|
277
|
-
1. When you read `tasks.md` - they're in the format `phase-X-name-Y`
|
|
278
|
-
2. In the config file (`.clavix-implement-config.json`) under `currentTask.id`
|
|
279
|
-
3. When running `clavix implement` - shown next to task description
|
|
245
|
+
Task IDs look like: `phase-1-setup-1`, `phase-2-auth-3`
|
|
280
246
|
|
|
281
|
-
|
|
247
|
+
I find them automatically from tasks.md:
|
|
282
248
|
```markdown
|
|
283
|
-
## Phase 1:
|
|
249
|
+
## Phase 1: Setup
|
|
284
250
|
|
|
285
|
-
- [ ]
|
|
286
|
-
Task ID: phase-1-
|
|
251
|
+
- [ ] Set up project structure
|
|
252
|
+
Task ID: phase-1-setup-1
|
|
287
253
|
|
|
288
|
-
- [ ]
|
|
289
|
-
Task ID: phase-1-
|
|
254
|
+
- [ ] Create database models
|
|
255
|
+
Task ID: phase-1-setup-2
|
|
290
256
|
```
|
|
291
257
|
|
|
292
|
-
|
|
258
|
+
You don't need to remember these - I handle all the tracking.
|
|
293
259
|
|
|
294
260
|
## Workflow Navigation
|
|
295
261
|
|
|
296
|
-
**
|
|
262
|
+
**Where you are:** Implement (building your tasks)
|
|
263
|
+
|
|
264
|
+
**How you got here:**
|
|
265
|
+
1. `/clavix:prd` → Created your requirements document
|
|
266
|
+
2. `/clavix:plan` → Generated your task breakdown
|
|
267
|
+
3. **`/clavix:implement`** → Now building everything (you are here)
|
|
297
268
|
|
|
298
|
-
**
|
|
299
|
-
-
|
|
300
|
-
-
|
|
301
|
-
- **Iterative**: `/clavix:implement` → [complete task] → [pause] → `/clavix:implement` → [continue]
|
|
269
|
+
**What happens after:**
|
|
270
|
+
- All tasks done → `/clavix:archive` to wrap up
|
|
271
|
+
- Need to pause → Just stop. Run `/clavix:implement` again to continue
|
|
302
272
|
|
|
303
273
|
**Related commands:**
|
|
304
|
-
- `/clavix:plan` -
|
|
305
|
-
- `/clavix:
|
|
306
|
-
- `/clavix:
|
|
274
|
+
- `/clavix:plan` - Regenerate tasks if needed
|
|
275
|
+
- `/clavix:prd` - Review requirements
|
|
276
|
+
- `/clavix:archive` - Archive when done
|
|
307
277
|
|
|
308
|
-
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
## Tips for Success
|
|
309
281
|
|
|
310
|
-
-
|
|
311
|
-
-
|
|
312
|
-
-
|
|
313
|
-
-
|
|
314
|
-
- Use tasks.md as the guide for "in what order"
|
|
282
|
+
- **Pause anytime** - We can always pick up where we left off
|
|
283
|
+
- **Ask questions** - If a task is unclear, I'll stop and ask
|
|
284
|
+
- **Trust the PRD** - It's our source of truth for what to build
|
|
285
|
+
- **One at a time** - I build tasks in order so nothing breaks
|
|
315
286
|
|
|
316
287
|
---
|
|
317
288
|
|
|
318
|
-
## Agent Transparency (v4.
|
|
289
|
+
## Agent Transparency (v4.9)
|
|
319
290
|
|
|
320
291
|
### Workflow State Detection
|
|
321
292
|
{{INCLUDE:agent-protocols/state-awareness.md}}
|
|
322
293
|
|
|
323
|
-
### Error
|
|
294
|
+
### Error Handling
|
|
324
295
|
{{INCLUDE:agent-protocols/error-handling.md}}
|
|
325
296
|
|
|
326
|
-
###
|
|
327
|
-
{{INCLUDE:agent-protocols/
|
|
297
|
+
### Task Blocking Protocol
|
|
298
|
+
{{INCLUDE:agent-protocols/task-blocking.md}}
|
|
299
|
+
|
|
300
|
+
### CLI Reference (Commands I Execute)
|
|
301
|
+
{{INCLUDE:agent-protocols/cli-reference.md}}
|
|
328
302
|
|
|
329
303
|
### Agent Decision Rules
|
|
330
304
|
{{INCLUDE:agent-protocols/decision-rules.md}}
|
|
331
305
|
|
|
306
|
+
### Recovery Patterns
|
|
307
|
+
{{INCLUDE:troubleshooting/vibecoder-recovery.md}}
|
|
308
|
+
|
|
332
309
|
---
|
|
333
310
|
|
|
334
|
-
##
|
|
335
|
-
|
|
336
|
-
###
|
|
337
|
-
|
|
338
|
-
**
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
**
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
**
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
-
|
|
401
|
-
-
|
|
402
|
-
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
311
|
+
## When Things Go Wrong
|
|
312
|
+
|
|
313
|
+
### "Can't find your task list"
|
|
314
|
+
|
|
315
|
+
**What happened:** I can't find tasks.md in your PRD folder.
|
|
316
|
+
|
|
317
|
+
**What I'll do:**
|
|
318
|
+
> "I don't see a task list. Let me check...
|
|
319
|
+
>
|
|
320
|
+
> - Did you run `/clavix:plan` first?
|
|
321
|
+
> - Is there a PRD folder in .clavix/outputs/?"
|
|
322
|
+
|
|
323
|
+
### "Task command not working"
|
|
324
|
+
|
|
325
|
+
**What happened:** The `clavix task-complete` command isn't recognized.
|
|
326
|
+
|
|
327
|
+
**What I'll do:**
|
|
328
|
+
> "Having trouble with the task command. Let me check your Clavix version..."
|
|
329
|
+
>
|
|
330
|
+
> If it's outdated, I'll suggest: "Try `npm install -g clavix@latest` to update"
|
|
331
|
+
|
|
332
|
+
### "Can't find that task ID"
|
|
333
|
+
|
|
334
|
+
**What happened:** The task ID doesn't match what's in tasks.md.
|
|
335
|
+
|
|
336
|
+
**What I'll do:** Read tasks.md again and find the correct ID. They look like `phase-1-setup-1` not "Phase 1 Setup 1".
|
|
337
|
+
|
|
338
|
+
### "Already done that one"
|
|
339
|
+
|
|
340
|
+
**What happened:** Task was marked complete before.
|
|
341
|
+
|
|
342
|
+
**What I'll do:** Skip it and move to the next incomplete task.
|
|
343
|
+
|
|
344
|
+
### "All done!"
|
|
345
|
+
|
|
346
|
+
**What happened:** All tasks are marked complete.
|
|
347
|
+
|
|
348
|
+
**What I'll say:**
|
|
349
|
+
> "🎉 All tasks complete! Your project is built.
|
|
350
|
+
>
|
|
351
|
+
> Ready to archive this project? Run `/clavix:archive`"
|
|
352
|
+
|
|
353
|
+
### "I don't understand this task"
|
|
354
|
+
|
|
355
|
+
**What happened:** Task description is too vague.
|
|
356
|
+
|
|
357
|
+
**What I'll do:** Stop and ask you:
|
|
358
|
+
> "This task says 'Implement data layer' but I'm not sure what that means.
|
|
359
|
+
> Can you tell me more about what you want here?"
|
|
360
|
+
|
|
361
|
+
### "Git commit failed"
|
|
362
|
+
|
|
363
|
+
**What happened:** Something went wrong with auto-commits.
|
|
364
|
+
|
|
365
|
+
**What I'll do:**
|
|
366
|
+
> "Git commit didn't work - might be a hook issue or uncommitted changes.
|
|
367
|
+
>
|
|
368
|
+
> No worries, I'll keep building. You can commit manually later."
|
|
369
|
+
|
|
370
|
+
### "Too many blocked tasks"
|
|
371
|
+
|
|
372
|
+
**What happened:** We've got 3+ tasks that need something to continue.
|
|
373
|
+
|
|
374
|
+
**What I'll do:** Stop and give you a summary:
|
|
375
|
+
> "We've got several blocked tasks piling up:
|
|
376
|
+
>
|
|
377
|
+
> - Payment: Need Stripe API key
|
|
378
|
+
> - Email: Need SendGrid credentials
|
|
379
|
+
> - Maps: Need Google Maps API key
|
|
380
|
+
>
|
|
381
|
+
> Want to provide these now, or should I continue with unblocked tasks?"
|
|
382
|
+
|
|
383
|
+
### "Tests are failing"
|
|
384
|
+
|
|
385
|
+
**What happened:** I built the feature but tests aren't passing.
|
|
386
|
+
|
|
387
|
+
**What I'll do:** Keep working until tests pass before marking done:
|
|
388
|
+
> "Tests are failing for this task. Let me see what's wrong...
|
|
389
|
+
>
|
|
390
|
+
> [I fix the issues]
|
|
391
|
+
>
|
|
392
|
+
> ✓ Tests passing now!"
|