clavix 5.7.0 → 5.8.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.
@@ -274,7 +274,7 @@ Result: Project permanently deleted
274
274
 
275
275
  ---
276
276
 
277
- ## Agent Transparency (v5.1)
277
+ ## Agent Transparency (v5.8.0)
278
278
 
279
279
  ### Agent Manual (Universal Protocols)
280
280
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -524,7 +524,7 @@ I'll explain what's wrong and what you might need to do:
524
524
 
525
525
  ---
526
526
 
527
- ## Agent Transparency (v5.1)
527
+ ## Agent Transparency (v5.8.0)
528
528
 
529
529
  ### Agent Manual (Universal Protocols)
530
530
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -5,6 +5,24 @@ description: Analyze and improve prompts with auto-detected depth
5
5
 
6
6
  # Clavix: Improve Your Prompt
7
7
 
8
+ ---
9
+
10
+ ## What This Does
11
+
12
+ When you run `/clavix:improve`, I:
13
+ 1. **Analyze your prompt quality** - 6-dimension assessment (Clarity, Efficiency, Structure, Completeness, Actionability, Specificity)
14
+ 2. **Select optimal depth** - Auto-choose standard vs comprehensive based on quality score
15
+ 3. **Apply improvement patterns** - Transform using proven optimization techniques
16
+ 4. **Generate optimized version** - Create enhanced prompt with quality feedback
17
+ 5. **Save for implementation** - Store in `.clavix/outputs/prompts/` for `/clavix:implement`
18
+
19
+ **Smart Depth Selection:**
20
+ - **Quality ≥ 75%**: Comprehensive depth (add polish and enhancements)
21
+ - **Quality 60-74%**: User choice (borderline quality)
22
+ - **Quality < 60%**: Standard depth (focus on basic fixes)
23
+
24
+ ---
25
+
8
26
  ## Important: This is Planning Mode
9
27
 
10
28
  This is a prompt improvement workflow. Your job is to ANALYZE and IMPROVE the prompt, then STOP.
@@ -504,7 +522,7 @@ Wait for the user to decide what to do next.
504
522
 
505
523
  ---
506
524
 
507
- ## Agent Transparency (v5.1)
525
+ ## Agent Transparency (v5.8.0)
508
526
 
509
527
  ### Agent Manual (Universal Protocols)
510
528
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -1,36 +1,36 @@
1
1
  ---
2
2
  name: "Clavix: Plan"
3
- description: Generate implementation task breakdown from PRD
3
+ description: Generate detailed technical implementation tasks from PRD and codebase context
4
4
  ---
5
5
 
6
- # Clavix: Plan Your Tasks
6
+ # Clavix: Plan Your Implementation
7
7
 
8
- I'll turn your PRD into a step-by-step task list. Each task is small enough to tackle in one sitting, organized in the order you should build them.
8
+ I'll turn your PRD into a low-level, technically detailed implementation plan that fits your existing codebase.
9
9
 
10
10
  ---
11
11
 
12
12
  ## What This Does
13
13
 
14
14
  When you run `/clavix:plan`, I:
15
- 1. **Read your PRD** - Understand what needs to be built
16
- 2. **Break it into tasks** - Small, actionable pieces
17
- 3. **Organize into phases** - Logical groupings (setup, core features, polish)
18
- 4. **Create tasks.md** - Your implementation roadmap
19
- 5. **Assign task IDs** - For tracking progress
15
+ 1. **Analyze your Codebase** - Understand your existing architecture, patterns, and stack
16
+ 2. **Read your PRD** - Understand new requirements
17
+ 3. **Bridge the Gap** - Map requirements to specific files and existing components
18
+ 4. **Generate Technical Tasks** - detailed, file-specific instructions
19
+ 5. **Create tasks.md** - Your comprehensive engineering roadmap
20
20
 
21
21
  **I create the plan. I don't build anything yet.**
22
22
 
23
23
  ---
24
24
 
25
- ## CLAVIX MODE: Planning Only
25
+ ## CLAVIX MODE: Technical Planning
26
26
 
27
- **I'm in planning mode. Creating your task breakdown.**
27
+ **I'm in planning mode. Creating your engineering roadmap.**
28
28
 
29
29
  **What I'll do:**
30
- - ✓ Read and understand your PRD
31
- - ✓ Generate structured task breakdown
32
- - ✓ Organize tasks into logical phases
33
- - ✓ Create clear, actionable task descriptions
30
+ - ✓ Analyze existing code structure & patterns
31
+ - ✓ Map PRD features to specific technical implementations
32
+ - ✓ Define exact file paths and signatures
33
+ - ✓ Create "Implementation Notes" for each task
34
34
  - ✓ Save tasks.md for implementation
35
35
 
36
36
  **What I won't do:**
@@ -38,7 +38,7 @@ When you run `/clavix:plan`, I:
38
38
  - ✗ Start implementing features
39
39
  - ✗ Create actual components
40
40
 
41
- **I'm planning what to build, not building it.**
41
+ **I'm planning strictly *how* to build it.**
42
42
 
43
43
  For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
44
44
 
@@ -46,23 +46,22 @@ For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
46
46
 
47
47
  ## Self-Correction Protocol
48
48
 
49
- **DETECT**: If you find yourself doing any of these 6 mistake types:
49
+ **DETECT**: If you find yourself doing any of these mistake types:
50
50
 
51
51
  | Type | What It Looks Like |
52
52
  |------|--------------------|
53
- | 1. Implementation Code | Writing function/class definitions, creating components, generating API endpoints, test files, database schemas, or configuration files for the user's feature |
54
- | 2. Skipping PRD Analysis | Not reading and analyzing the PRD before generating tasks |
55
- | 3. Non-Atomic Tasks | Creating tasks that are too large or vague to be actionable |
56
- | 4. Missing Task IDs | Not assigning proper task IDs and references |
57
- | 5. Missing Phase Organization | Not organizing tasks into logical implementation phases |
58
- | 6. Capability Hallucination | Claiming features Clavix doesn't have, inventing task formats |
53
+ | 1. Generic Tasks | "Create login page" (without specifying file path, library, or pattern) |
54
+ | 2. Ignoring Context | Planning a Redux store when the project uses Zustand, or creating new CSS files when Tailwind is configured |
55
+ | 3. Implementation Code | Writing full function bodies or components during the planning phase |
56
+ | 4. Missing Task IDs | Not assigning proper task IDs for tracking |
57
+ | 5. Capability Hallucination | Claiming features Clavix doesn't have |
59
58
 
60
- **STOP**: Immediately halt the incorrect action
59
+ **STOP**: Immediately halt the incorrect action.
61
60
 
62
61
  **CORRECT**: Output:
63
- "I apologize - I was [describe mistake]. Let me return to task breakdown generation."
62
+ "I apologize - I was [describe mistake]. Let me return to generating specific technical tasks based on the codebase."
64
63
 
65
- **RESUME**: Return to the task breakdown generation workflow with correct approach.
64
+ **RESUME**: Return to the workflow with correct context-aware approach.
66
65
 
67
66
  ---
68
67
 
@@ -70,10 +69,10 @@ For complete mode documentation, see: `.clavix/instructions/core/clavix-mode.md`
70
69
 
71
70
  **Before starting task breakdown, output:**
72
71
  ```
73
- **CLAVIX MODE: Task Planning**
72
+ **CLAVIX MODE: Technical Planning**
74
73
  Mode: planning
75
- Purpose: Generating implementation task breakdown from PRD
76
- Implementation: BLOCKED - I will create tasks, not implement them
74
+ Purpose: Generating low-level engineering tasks from PRD & Codebase
75
+ Implementation: BLOCKED - I will create the plan, not the code
77
76
  ```
78
77
 
79
78
  ---
@@ -82,149 +81,94 @@ Implementation: BLOCKED - I will create tasks, not implement them
82
81
 
83
82
  ### Part A: Agent Execution Protocol
84
83
 
85
- **As an AI agent, you have two execution options:**
86
-
87
- #### **Agent Execution Protocol (v5)**
88
-
89
- 1. **Validate prerequisites**:
90
- - Check if `.clavix/outputs/` directory exists
91
- - Look for PRD artifacts in this order:
92
- 1. **Project directories first**: Check `.clavix/outputs/<project-name>/` folders for `full-prd.md`, `quick-prd.md`, `mini-prd.md`, or `optimized-prompt.md`
93
- 2. **Legacy fallback**: If no project directories found, check `.clavix/outputs/summarize/` for `mini-prd.md` or `optimized-prompt.md` (backwards compatibility)
94
- - **If multiple projects found**: List them and ask user which one to plan
95
- - **If not found**: Error inline - "No PRD found in `.clavix/outputs/`. Use `/clavix:prd` or `/clavix:summarize` first."
96
-
97
- 2. **Read the PRD** from detected location (project directory or legacy `summarize/` folder)
98
-
99
- 3. **Generate task breakdown** following Part B principles
100
-
101
- 4. **Create `tasks.md`** using your Write tool with format specified in "Task Format Reference" below
102
-
103
- 5. **Save to**: `.clavix/outputs/[project-name]/tasks.md`
104
-
105
- 6. **Use exact format** (task IDs, checkboxes, structure)
106
-
107
- #### **Alternative: Generate Tasks Directly** (If agent has full PRD context)
108
-
109
- If you have the full PRD content in memory and want to generate tasks directly:
110
-
111
- 1. **Read the PRD** from `.clavix/outputs/[project-name]/`
112
- 2. **Generate task breakdown** following Part B principles
113
- 3. **Create `tasks.md`** with format specified in "Task Format Reference" below
114
- 4. **Save to**: `.clavix/outputs/[project-name]/tasks.md`
115
- 5. **Use exact format** (task IDs, checkboxes, structure)
116
-
117
- ### Part B: Behavioral Guidance (Task Breakdown Strategy)
118
-
119
- 3. **How to structure tasks** (optimized task breakdown):
120
-
121
- **Task Granularity Principles:**
122
- - **Clarity**: Each task = 1 clear action (not "Build authentication system", but "Create user registration endpoint")
123
- - **Structure**: Tasks flow in implementation order (database schema → backend logic → frontend UI)
124
- - **Actionability**: Tasks specify deliverable (not "Add tests", but "Write unit tests for user service with >80% coverage")
125
-
126
- **Atomic Task Guidelines:**
127
- - **Ideal size**: Completable in 15-60 minutes
128
- - **Too large**: "Implement user authentication" → Break into registration, login, logout, password reset
129
- - **Too small**: "Import React" Combine with "Setup component structure"
130
- - **Dependencies**: If Task B needs Task A, ensure A comes first
131
-
132
- **Phase Organization:**
133
- - Group related tasks into phases (Setup, Core Features, Testing, Polish)
134
- - Each phase should be independently deployable when possible
135
- - Critical path first (must-haves before nice-to-haves)
136
-
137
- **Task Dependency Management:**
138
- - **Explicit ordering**: Tasks within a phase should be ordered by execution sequence
139
- - **Dependency markers**: Use `(depends: task-id)` for explicit dependencies
140
- - **Common dependency patterns**:
141
- - Database schema → Models → API endpoints → UI components
142
- - Authentication → Protected routes → User-specific features
143
- - Core utilities → Features that use them → Integration tests
144
- - **Anti-pattern**: Avoid circular dependencies (A depends on B, B depends on A)
145
- - **Parallel tasks**: If two tasks have no dependencies, they can be worked on simultaneously
146
-
147
- 4. **Review and customize generated tasks**:
148
- - The command will generate `tasks.md` in the PRD folder
149
- - Tasks are organized into logical phases with quality principles
150
- - Each task includes:
151
- - Checkbox `- [ ]` for tracking
152
- - Clear deliverable description
153
- - Optional reference to PRD section `(ref: PRD Section)`
154
- - **You can edit tasks.md** before implementing:
155
- - Add/remove tasks
156
- - Adjust granularity
157
- - Reorder for better flow
158
- - Add notes or sub-tasks
159
-
160
- 5. **Task Quality Labeling** (optional, for education):
161
- When reviewing tasks, you can annotate improvements:
162
- - **[Clarity]**: "Split vague 'Add UI' into 3 concrete tasks"
163
- - **[Structure]**: "Reordered tasks: database schema before API endpoints"
164
- - **[Actionability]**: "Added specific acceptance criteria (>80% test coverage)"
165
-
166
- 6. **Next steps**:
167
- - Review and edit `tasks.md` if needed
168
- - Then run `/clavix:implement` to start implementation
169
-
170
- ## Task Format
171
-
172
- The generated `tasks.md` will look like:
173
-
174
- ```markdown
175
- # Implementation Tasks
176
-
177
- **Project**: [Project Name]
178
- **Generated**: [Timestamp]
179
-
180
- ---
181
-
182
- ## Phase 1: Feature Name
183
-
184
- - [ ] Task 1 description (ref: PRD Section)
185
- Task ID: phase-1-feature-name-1
186
-
187
- - [ ] Task 2 description
188
- Task ID: phase-1-feature-name-2
189
-
190
- - [ ] Task 3 description
191
- Task ID: phase-1-feature-name-3
192
-
193
- ## Phase 2: Another Feature
194
-
195
- - [ ] Task 4 description
196
- Task ID: phase-2-another-feature-1
197
-
198
- - [ ] Task 5 description
199
- Task ID: phase-2-another-feature-2
84
+ **As an AI agent, you must follow this strict sequence:**
85
+
86
+ #### **Phase 1: Context Analysis (CRITICAL)**
87
+ *Before reading the PRD, understand the "Team's Coding Method".*
88
+
89
+ 1. **Scan Directory Structure**:
90
+ - Run `ls -R src` (or relevant folders) to see the file layout.
91
+ 2. **Read Configuration**:
92
+ - Read `package.json` to identify dependencies (React? Vue? Express? Tailwind? Prisma?).
93
+ - Read `tsconfig.json` or similar to understand aliases and strictness.
94
+ 3. **Identify Patterns**:
95
+ - Open 1-2 representative files (e.g., a component, a service, a route).
96
+ - **Determine**:
97
+ - How is state managed? (Context, Redux, Zustand?)
98
+ - How is styling done? (CSS Modules, Tailwind, SCSS?)
99
+ - How are API calls made? (fetch, axios, custom hooks?)
100
+ - Where are types defined?
101
+ 4. **Output Summary**: Briefly state the detected stack (e.g., "Detected: Next.js 14 (App Router), Tailwind, Prisma, Zod").
102
+
103
+ #### **Phase 2: PRD Ingestion**
104
+ 1. **Locate PRD**:
105
+ - Check `.clavix/outputs/<project-name>/` for `full-prd.md`, `quick-prd.md`, etc.
106
+ - If missing, check legacy `.clavix/outputs/summarize/`.
107
+ 2. **Read PRD**: Ingest the requirements.
108
+
109
+ #### **Phase 3: Task Generation**
110
+ 1. **Synthesize**: Combine [PRD Requirements] + [Codebase Patterns].
111
+ 2. **Draft Tasks**: Create tasks that specify *exactly* what to change in the code.
112
+ 3. **Create `tasks.md`**: Use the format in "Task Format Reference".
113
+ 4. **Save to**: `.clavix/outputs/[project-name]/tasks.md`.
114
+
115
+ ### Part B: Behavioral Guidance (Technical Specificity)
116
+
117
+ **Your goal is "Low-Level Engineering Plans", not "High-Level Management Plans".**
118
+
119
+ 1. **Specific File Paths**:
120
+ - **Bad**: "Create a user profile component."
121
+ - **Good**: "Create `src/components/user/UserProfile.tsx`. Export as default."
122
+
123
+ 2. **Technical Constraints**:
124
+ - **Bad**: "Add validation."
125
+ - **Good**: "Use `zod` schema in `src/schemas/user.ts`. Integrate with `react-hook-form`."
126
+
127
+ 3. **Respect Existing Architecture**:
128
+ - If the project uses a `services/` folder for API calls, do **not** put `fetch` calls directly in components.
129
+ - If the project uses `shadcn/ui`, instruct to use those primitives, not raw HTML.
130
+
131
+ 4. **Granularity**:
132
+ - Each task should be a single logical unit of work (approx. 20-40 mins).
133
+ - Separate "Backend API" from "Frontend UI" tasks.
134
+ - Separate "Type Definition" from "Implementation" if complex.
200
135
 
201
136
  ---
202
137
 
203
- *Generated by Clavix /clavix:plan*
204
- ```
205
-
206
- ## Task Format Reference (For Agent-Direct Generation)
138
+ ## Task Format Reference
207
139
 
208
- **If you're generating tasks directly (Option 2), follow this exact format:**
140
+ **You must generate `tasks.md` using this exact format:**
209
141
 
210
142
  ### File Structure
211
143
  ```markdown
212
- # Implementation Tasks
144
+ # Implementation Plan
213
145
 
214
146
  **Project**: {project-name}
215
147
  **Generated**: {ISO timestamp}
216
148
 
149
+ ## Technical Context & Standards
150
+ *Detected Stack & Patterns*
151
+ - **Framework**: {e.g., Next.js 14 App Router}
152
+ - **Styling**: {e.g., Tailwind CSS + shadcn/ui}
153
+ - **State**: {e.g., Zustand (stores in /src/store)}
154
+ - **API**: {e.g., Server Actions + Prisma}
155
+ - **Conventions**: {e.g., "kebab-case files", "Zod for validation"}
156
+
217
157
  ---
218
158
 
219
159
  ## Phase {number}: {Phase Name}
220
160
 
221
- - [ ] {Task description} (ref: {PRD Section})
161
+ - [ ] **{Task Title}** (ref: {PRD Section})
222
162
  Task ID: {task-id}
163
+ > **Implementation**: Create/Edit `{file/path}`.
164
+ > **Details**: {Technical instruction, e.g., "Use `useAuth` hook. Ensure error handling matches `src/utils/error.ts`."}
223
165
 
224
166
  ## Phase {number}: {Next Phase}
225
167
 
226
- - [ ] {Task description}
168
+ - [ ] **{Task Title}**
227
169
  Task ID: {task-id}
170
+ > **Implementation**: Modify `{file/path}`.
171
+ > **Details**: {Specific logic requirements}
228
172
 
229
173
  ---
230
174
 
@@ -232,119 +176,50 @@ The generated `tasks.md` will look like:
232
176
  ```
233
177
 
234
178
  ### Task ID Format
235
-
236
179
  **Pattern**: `phase-{phase-number}-{sanitized-phase-name}-{task-counter}`
180
+ (e.g., `phase-1-setup-01`, `phase-2-auth-03`)
237
181
 
238
- **Rules**:
239
- - Phase number: Sequential starting from 1
240
- - Sanitized phase name: Lowercase, spaces→hyphens, remove special chars
241
- - Task counter: Sequential within phase, starting from 1
242
-
243
- **Examples**:
244
- - Phase "Setup & Configuration" → Task 1 → `phase-1-setup-configuration-1`
245
- - Phase "User Authentication" → Task 3 → `phase-2-user-authentication-3`
246
- - Phase "API Integration" → Task 1 → `phase-3-api-integration-1`
247
-
248
- ### Checkbox Format
249
-
250
- **Always use**: `- [ ]` for incomplete tasks (space between brackets)
251
- **Completed tasks**: `- [x]` (lowercase x, no spaces)
252
-
253
- ### Task Description Format
254
-
255
- **Basic**: `- [ ] {Clear, actionable description}`
256
- **With reference**: `- [ ] {Description} (ref: {PRD Section Name})`
257
- **With dependency**: `- [ ] {Description} (depends: {task-id})`
258
- **Combined**: `- [ ] {Description} (ref: {Section}) (depends: {task-id})`
259
-
260
- **Example**:
261
- ```markdown
262
- - [ ] Create user registration API endpoint (ref: User Management)
263
- Task ID: phase-1-authentication-1
264
-
265
- - [ ] Add JWT token validation middleware (depends: phase-1-authentication-1)
266
- Task ID: phase-1-authentication-2
267
- ```
268
-
269
- ### Task ID Placement
270
-
271
- **Critical**: Task ID must be on the line immediately after the task description
272
- **Format**: ` Task ID: {id}` (2 spaces indent)
273
-
274
- ### Phase Header Format
275
-
276
- **Pattern**: `## Phase {number}: {Phase Name}`
277
- **Must have**: Empty line before and after phase header
278
-
279
- ### File Save Location
280
-
281
- **Path**: `.clavix/outputs/{project-name}/tasks.md`
282
- **Create directory if not exists**: Yes
283
- **Overwrite if exists**: Only with explicit user confirmation or `--overwrite` flag
182
+ ### Checklist Rules
183
+ - Use `- [ ]` for pending.
184
+ - Use `- [x]` for completed.
185
+ - **Implementation Note**: The `> **Implementation**` block is REQUIRED. It forces you to think about *where* the code goes.
284
186
 
285
187
  ---
286
188
 
287
189
  ## After Plan Generation
288
190
 
289
- After creating the task breakdown, I present it and ask for verification:
290
-
291
- **What I'll show:**
292
- - Summary of phases and task count
293
- - First few tasks from each phase
294
- - Any dependencies detected
295
-
296
- **What I'll ask:**
297
- > "Here's your task breakdown. Before you start implementing, please verify:
298
- > 1. Does this capture everything from your PRD?
299
- > 2. Are the tasks in the right order?
300
- > 3. Is the granularity right (not too big, not too small)?
191
+ Present the plan and ask:
192
+ > "I've generated a technical implementation plan based on your PRD and existing codebase (detected: {stack}).
301
193
  >
302
- > What would you like to do next?"
303
-
304
- **Your options:**
305
- 1. Start implementing with `/clavix:implement`
306
- 2. Edit tasks.md to adjust tasks
307
- 3. Regenerate with different granularity
308
- 4. Go back and refine the PRD first
194
+ > **Please Verify**:
195
+ > 1. Did I correctly identify the file structure and patterns?
196
+ > 2. Are the specific file paths correct?
197
+ > 3. Is the order of operations logical (e.g., Database -> API -> UI)?
198
+ >
199
+ > Type `/clavix:implement` to start coding, or tell me what to adjust."
309
200
 
310
201
  ---
311
202
 
312
203
  ## Workflow Navigation
313
204
 
314
- **You are here:** Plan (Task Breakdown)
315
-
316
- **State markers for workflow continuity:**
317
- - If user came from `/clavix:prd`: Full PRD available, use comprehensive task breakdown
318
- - If user came from `/clavix:summarize`: Mini-PRD available, may need simpler task structure
319
- - If PRD has many features: Consider grouping by feature in phases
320
- - If PRD has dependencies: Ensure task ordering reflects them
321
-
322
- **Common workflows:**
323
- - **PRD workflow**: `/clavix:prd` → `/clavix:plan` → `/clavix:implement` → `/clavix:archive`
324
- - **Conversation workflow**: `/clavix:summarize` → `/clavix:plan` → `/clavix:implement` → `/clavix:archive`
325
- - **Standalone**: [Existing PRD] → `/clavix:plan` → Review tasks.md → `/clavix:implement`
205
+ **You are here:** Plan (Technical Task Breakdown)
326
206
 
327
- **After completion, guide user to:**
328
- - `/clavix:implement` - Start executing tasks (recommended next step)
329
- - Edit `tasks.md` - If they want to adjust task order or granularity
207
+ **Pre-requisites**:
208
+ - A PRD (from `/clavix:prd`)
209
+ - An existing codebase (or empty folder structure)
330
210
 
331
- **Related commands:**
332
- - `/clavix:prd` - Generate PRD (typical previous step)
333
- - `/clavix:summarize` - Extract mini-PRD from conversation (alternative previous step)
334
- - `/clavix:implement` - Execute generated tasks (next step)
211
+ **Next Steps**:
212
+ - `/clavix:implement`: Execute the tasks one by one.
213
+ - **Manual Edit**: You can edit `.clavix/outputs/.../tasks.md` directly if you want to change the architecture.
335
214
 
336
- ## Tips
337
-
338
- - Tasks are automatically optimized for clarity, structure, and actionability
339
- - Each task is concise and actionable
340
- - Tasks can reference specific PRD sections
341
- - Supports mini-PRD outputs from `/clavix:summarize`
342
- - You can manually edit tasks.md before implementing
343
- - Use `--overwrite` flag to regenerate if needed
215
+ ## Tips for Agents
216
+ - **Don't guess**. If you don't see a directory, don't reference it.
217
+ - **Check imports**. If `src/components/Button` exists, tell the user to reuse it.
218
+ - **Be pedantic**. Developers prefer specific instructions like "Export interface `User`" over "Create a type".
344
219
 
345
220
  ---
346
221
 
347
- ## Agent Transparency (v5.1)
222
+ ## Agent Transparency (v5.8.0)
348
223
 
349
224
  ### Agent Manual (Universal Protocols)
350
225
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -362,99 +237,13 @@ After creating the task breakdown, I present it and ask for verification:
362
237
 
363
238
  ## Troubleshooting
364
239
 
365
- ### Issue: No PRD found in `.clavix/outputs/`
366
- **Cause**: User hasn't generated a PRD yet
367
-
368
- **Agent recovery**:
369
- 1. Check if `.clavix/outputs/` directory exists:
370
- ```bash
371
- ls .clavix/outputs/
372
- ```
373
- 2. If directory doesn't exist or is empty:
374
- - Error: "No PRD artifacts found in `.clavix/outputs/`"
375
- - Suggest recovery options:
376
- - "Generate PRD with `/clavix:prd` for comprehensive planning"
377
- - "Extract mini-PRD from conversation with `/clavix:summarize`"
378
- 3. Do NOT proceed with plan generation without PRD
379
-
380
- ### Issue: Generated tasks are too granular (100+ tasks)
381
- **Cause**: Over-decomposition or large project scope
382
-
383
- **Agent recovery**:
384
- 1. Review generated tasks in `tasks.md`
385
- 2. Identify micro-tasks that can be combined
386
- 3. Options for user:
387
- - **Edit manually**: Combine related micro-tasks into larger atomic tasks
388
- - **Regenerate**: Use `clavix plan --overwrite` after simplifying PRD
389
- - **Split project**: Break into multiple PRDs if truly massive
390
- 4. Guideline: Each task should be 15-60 minutes, not 5 minutes
391
- 5. Combine setup/configuration tasks that belong together
392
-
393
- ### Issue: Generated tasks are too high-level (only 3-4 tasks)
394
- **Cause**: PRD was too vague or task breakdown too coarse
395
-
396
- **Agent recovery**:
397
- 1. Read the PRD to assess detail level
398
- 2. If PRD is vague:
399
- - Suggest: "Let's improve the PRD with `/clavix:improve --comprehensive` first"
400
- - Then regenerate tasks with `clavix plan --overwrite`
401
- 3. If PRD is detailed but tasks are high-level:
402
- - Manually break each task into 3-5 concrete sub-tasks
403
- - Or regenerate with more explicit decomposition request
404
- 4. Each task should have clear, testable deliverable
405
-
406
- ### Issue: Tasks don't follow logical dependency order
407
- **Cause**: Generator didn't detect dependencies correctly OR agent-generated tasks weren't ordered
408
-
409
- **Agent recovery**:
410
- 1. Review task order in `tasks.md`
411
- 2. Identify dependency violations:
412
- - Database schema should precede API endpoints
413
- - API endpoints should precede UI components
414
- - Authentication should precede protected features
415
- 3. Manually reorder tasks in `tasks.md`:
416
- - Cut and paste tasks to correct order
417
- - Preserve task ID format
418
- - Maintain phase groupings
419
- 4. Follow structure principle: ensure sequential coherence
420
-
421
- ### Issue: Tasks conflict with PRD or duplicate work
422
- **Cause**: Misinterpretation of PRD or redundant task generation
423
-
424
- **Agent recovery**:
425
- 1. Read PRD and tasks.md side-by-side
426
- 2. Identify conflicts or duplicates
427
- 3. Options:
428
- - **Remove duplicates**: Delete redundant tasks from tasks.md
429
- - **Align with PRD**: Edit task descriptions to match PRD requirements
430
- - **Clarify PRD**: If PRD is ambiguous, update it first
431
- - **Regenerate**: Use `clavix plan --overwrite` after fixing PRD
432
- 4. Ensure each PRD feature maps to tasks
433
-
434
- ### Issue: `tasks.md` already exists, unsure if should regenerate
435
- **Cause**: Previous plan exists for this PRD
436
-
437
- **Agent recovery**:
438
- 1. Read existing `tasks.md`
439
- 2. Count completed tasks (check for `[x]` checkboxes)
440
- 3. Decision tree:
441
- - **No progress** (all `[ ]`): Safe to use `clavix plan --overwrite`
442
- - **Some progress**: Ask user before overwriting
443
- - "Tasks.md has {X} completed tasks. Regenerating will lose this progress. Options:
444
- 1. Keep existing tasks.md and edit manually
445
- 2. Overwrite and start fresh (progress lost)
446
- 3. Cancel plan generation"
447
- - **Mostly complete**: Recommend NOT overwriting
448
- 4. If user confirms overwrite: Run `clavix plan --project {name} --overwrite`
449
-
450
- ### Issue: CLI command fails or no output
451
- **Cause**: Missing dependencies, corrupted PRD file, or CLI error
452
-
453
- **Agent recovery**:
454
- 1. Check CLI error output
455
- 2. Common fixes:
456
- - Verify PRD file exists and is readable
457
- - Check `.clavix/outputs/{project}/` has valid PRD
458
- - Verify project name is correct (no typos)
459
- 3. Try with explicit project: `clavix plan --project {exact-name}`
460
- 4. If persistent: Inform user to check Clavix installation
240
+ ### Issue: "I don't know the codebase"
241
+ **Cause**: Agent skipped Phase 1 (Context Analysis).
242
+ **Fix**: Force the agent to run `ls -R` and read `package.json` before generating tasks.
243
+
244
+ ### Issue: Tasks are too generic ("Add Auth")
245
+ **Cause**: Agent ignored the "Implementation Note" requirement.
246
+ **Fix**: Regenerate with: "Refine the plan. Add specific file paths and implementation details to every task."
247
+
248
+ ### Issue: No PRD found
249
+ **Fix**: Run `/clavix:prd` first.
@@ -344,7 +344,7 @@ The validation ensures generated PRDs are immediately usable for AI consumption
344
344
 
345
345
  ---
346
346
 
347
- ## Agent Transparency (v5.1)
347
+ ## Agent Transparency (v5.8.0)
348
348
 
349
349
  ### Agent Manual (Universal Protocols)
350
350
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}