clavix 4.2.0 → 4.3.1

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 (25) hide show
  1. package/dist/cli/commands/deep.js +4 -58
  2. package/dist/cli/commands/init.js +13 -16
  3. package/dist/cli/commands/plan.js +2 -2
  4. package/dist/core/task-manager.d.ts +1 -2
  5. package/dist/core/task-manager.js +21 -26
  6. package/dist/templates/slash-commands/_canonical/deep.md +37 -70
  7. package/dist/templates/slash-commands/_components/sections/pattern-visibility.md +1 -1
  8. package/package.json +2 -2
  9. package/dist/templates/instructions/README 2.md +0 -311
  10. package/dist/templates/instructions/core 2/clavix-mode.md +0 -275
  11. package/dist/templates/instructions/core 2/file-operations.md +0 -330
  12. package/dist/templates/instructions/core 2/verification.md +0 -377
  13. package/dist/templates/instructions/troubleshooting 2/jumped-to-implementation.md +0 -234
  14. package/dist/templates/instructions/troubleshooting 2/mode-confusion.md +0 -402
  15. package/dist/templates/instructions/troubleshooting 2/skipped-file-creation.md +0 -385
  16. package/dist/templates/slash-commands/_canonical 2/archive.md +0 -410
  17. package/dist/templates/slash-commands/_canonical 2/deep.md +0 -512
  18. package/dist/templates/slash-commands/_canonical 2/execute.md +0 -80
  19. package/dist/templates/slash-commands/_canonical 2/fast.md +0 -370
  20. package/dist/templates/slash-commands/_canonical 2/implement.md +0 -364
  21. package/dist/templates/slash-commands/_canonical 2/plan.md +0 -329
  22. package/dist/templates/slash-commands/_canonical 2/prd.md +0 -320
  23. package/dist/templates/slash-commands/_canonical 2/prompts.md +0 -97
  24. package/dist/templates/slash-commands/_canonical 2/start.md +0 -204
  25. package/dist/templates/slash-commands/_canonical 2/summarize.md +0 -395
@@ -1,330 +0,0 @@
1
- # File Operations: Step-by-Step Patterns
2
-
3
- ## Overview
4
-
5
- This guide provides proven patterns for file creation in Clavix workflows. These patterns ensure files are actually created (not just "suggested") and verified.
6
-
7
- ---
8
-
9
- ## The Proven Pattern (Copy This)
10
-
11
- ### Complete File Creation Workflow
12
-
13
- ```markdown
14
- **Step 1: Create Directory Structure**
15
-
16
- Use mkdir to create the output directory:
17
- ```bash
18
- mkdir -p .clavix/outputs/[project-name]
19
- ```
20
-
21
- **Step 2: Write First File**
22
-
23
- Use the Write tool to create `.clavix/outputs/[project-name]/file-name.md` with this content:
24
-
25
- [Provide exact content template here]
26
-
27
- **Step 3: Write Second File**
28
-
29
- Use the Write tool to create `.clavix/outputs/[project-name]/another-file.md` with this content:
30
-
31
- [Provide exact content template here]
32
-
33
- **Step 4: Verify File Creation**
34
-
35
- List the created files to confirm they exist:
36
- ```
37
- Created files:
38
- ✓ .clavix/outputs/[project-name]/file-name.md
39
- ✓ .clavix/outputs/[project-name]/another-file.md
40
- ```
41
-
42
- **CHECKPOINT:** Files created successfully.
43
- ```
44
-
45
- ---
46
-
47
- ## Why This Pattern Works
48
-
49
- ### ✅ Effective Elements
50
-
51
- 1. **Numbered steps** - Clear sequence prevents skipping steps
52
- 2. **Imperative language** - "Use the Write tool" not "You could save"
53
- 3. **Explicit tool names** - "Write tool" not vague "create" or "save"
54
- 4. **Content templates** - Show exactly what goes in each file
55
- 5. **Verification step** - Confirm files exist
56
- 6. **Checkpoint marker** - Enables validation
57
-
58
- ### ❌ What Doesn't Work
59
-
60
- 1. ~~"Suggest saving to..."~~ - Too passive, agents skip it
61
- 2. ~~"If filesystem access available"~~ - Makes it optional
62
- 3. ~~"Save outputs:"~~ - Doesn't specify HOW
63
- 4. ~~No verification~~ - Can't detect failure
64
- 5. ~~Visual markers only~~ - Agents don't process emoji as semantic content
65
-
66
- ---
67
-
68
- ## Pattern Variations
69
-
70
- ### Single File Creation
71
-
72
- ```markdown
73
- **Create Output File (REQUIRED)**
74
-
75
- **Step 1: Create directory**
76
- ```bash
77
- mkdir -p .clavix/outputs/[project-name]
78
- ```
79
-
80
- **Step 2: Write file**
81
- Use the Write tool to create `.clavix/outputs/[project-name]/output.md`:
82
-
83
- ```markdown
84
- # [Project Name]
85
-
86
- [Content here]
87
- ```
88
-
89
- **Step 3: Verify file exists**
90
- Confirm file created: `.clavix/outputs/[project-name]/output.md` ✓
91
-
92
- **CHECKPOINT:** File created successfully.
93
- ```
94
-
95
- ---
96
-
97
- ### Multiple Files with Templates
98
-
99
- ```markdown
100
- **Create Output Files (REQUIRED)**
101
-
102
- You MUST create three files. This is not optional.
103
-
104
- **Step 1: Create directory structure**
105
- ```bash
106
- mkdir -p .clavix/outputs/[project-name]
107
- ```
108
-
109
- **Step 2: Write mini-prd.md**
110
- Use the Write tool to create `.clavix/outputs/[project-name]/mini-prd.md`
111
-
112
- Content template:
113
- ```markdown
114
- # Requirements: [Project Name]
115
-
116
- ## Objective
117
- [Clear goal]
118
-
119
- ## Core Requirements
120
- - [HIGH] Requirement 1
121
- - [MEDIUM] Requirement 2
122
-
123
- ## Technical Constraints
124
- [Constraints]
125
-
126
- ## Success Criteria
127
- [Criteria]
128
- ```
129
-
130
- **Step 3: Write original-prompt.md**
131
- Use the Write tool to create `.clavix/outputs/[project-name]/original-prompt.md`
132
-
133
- Content: [Raw extraction in paragraph form]
134
-
135
- **Step 4: Write optimized-prompt.md**
136
- Use the Write tool to create `.clavix/outputs/[project-name]/optimized-prompt.md`
137
-
138
- Content: [Enhanced version with labeled improvements]
139
-
140
- **Step 5: Verify all files exist**
141
- List created files:
142
- ```
143
- ✓ .clavix/outputs/[project-name]/mini-prd.md
144
- ✓ .clavix/outputs/[project-name]/original-prompt.md
145
- ✓ .clavix/outputs/[project-name]/optimized-prompt.md
146
- ```
147
-
148
- **CHECKPOINT:** All files created successfully.
149
- ```
150
-
151
- ---
152
-
153
- ### Timestamped Sessions
154
-
155
- ```markdown
156
- **Step 1: Generate session timestamp**
157
- Create timestamp: `YYYY-MM-DD-HHMM` format (e.g., `2025-11-24-1430`)
158
-
159
- **Step 2: Create session directory**
160
- ```bash
161
- mkdir -p .clavix/sessions/[timestamp]
162
- ```
163
-
164
- **Step 3: Write session file**
165
- Use the Write tool to create `.clavix/sessions/[timestamp]/conversation.md`
166
-
167
- [Content here]
168
-
169
- **Step 4: Verify**
170
- Confirm: `.clavix/sessions/[timestamp]/conversation.md` ✓
171
- ```
172
-
173
- ---
174
-
175
- ## Troubleshooting File Creation
176
-
177
- ### Problem: Files Not Created
178
-
179
- **Symptoms:**
180
- - Agent says "files created" but they don't exist
181
- - Agent provides content in chat instead of creating files
182
- - Agent skips file creation step entirely
183
-
184
- **Solution:**
185
- 1. Check instructions use **imperative language**: "You MUST create" not "Suggest saving"
186
- 2. Verify **step-by-step pattern** is present
187
- 3. Ensure **Write tool** is explicitly named
188
- 4. Add **verification step** to detect failure
189
- 5. Make step ordering clear: Create directory → Write files → Verify
190
-
191
- **See:** `.clavix/instructions/troubleshooting/skipped-file-creation.md`
192
-
193
- ---
194
-
195
- ### Problem: Wrong File Paths
196
-
197
- **Symptoms:**
198
- - Files created in wrong location
199
- - Missing directory structure
200
- - Path format inconsistent
201
-
202
- **Solution:**
203
- 1. Always use `mkdir -p` to create parent directories
204
- 2. Show complete path: `.clavix/outputs/[project]/file.md`
205
- 3. Don't use relative paths without context
206
- 4. Verify path format matches project standards
207
-
208
- ---
209
-
210
- ### Problem: Missing Content
211
-
212
- **Symptoms:**
213
- - Files created but empty
214
- - Incomplete content
215
- - Wrong content structure
216
-
217
- **Solution:**
218
- 1. Provide **complete content template** in instructions
219
- 2. Use markdown code blocks to show exact format
220
- 3. Include all required sections
221
- 4. Don't assume agent knows content structure
222
-
223
- ---
224
-
225
- ## Integration Platform Adaptations
226
-
227
- ### For Agents with Full File Access (Octofriend, agents.md, Warp)
228
-
229
- Use standard pattern above. No adaptations needed.
230
-
231
- ---
232
-
233
- ### For Agents with Limited File Access (GitHub Copilot)
234
-
235
- Add fallback pattern:
236
-
237
- ```markdown
238
- **Step 2: Write file (with fallback)**
239
-
240
- **Primary approach:** Use the Write tool to create `.clavix/outputs/[project]/file.md`
241
-
242
- **Fallback if Write tool unavailable:**
243
- If file creation fails, display content and instruct user:
244
-
245
- ```
246
- ⚠️ File creation unavailable. Please save this content manually:
247
-
248
- **File path:** `.clavix/outputs/[project]/file.md`
249
-
250
- **Content:**
251
- ```markdown
252
- [Content here]
253
- ```
254
- ```
255
-
256
- Copy the content above and save to the specified path.
257
- ```
258
- ```
259
-
260
- ---
261
-
262
- ## Examples from Proven Workflows
263
-
264
- ### From fast.md (WORKS ✓)
265
-
266
- ```markdown
267
- ### Saving the Prompt (REQUIRED)
268
-
269
- After displaying the optimized prompt, you MUST save it to the Clavix system for future reference.
270
-
271
- #### Step 1: Create Directory Structure
272
- ```bash
273
- mkdir -p .clavix/outputs/prompts/fast
274
- ```
275
-
276
- #### Step 2: Generate Unique Prompt ID
277
- Create a unique identifier: `fast-YYYYMMDD-HHMM`
278
-
279
- #### Step 3: Save Prompt File
280
- Use the Write tool to create the prompt file at:
281
- `.clavix/outputs/prompts/fast/[prompt-id].md`
282
-
283
- [Content template]
284
-
285
- #### Step 5: Verify Saving Succeeded
286
- Confirm the file path and display to user:
287
- ```
288
- ✓ Prompt saved: .clavix/outputs/prompts/fast/[prompt-id].md
289
- ```
290
- ```
291
-
292
- **Why it works:**
293
- - Header says "REQUIRED"
294
- - "you MUST save" (imperative)
295
- - Numbered steps
296
- - Explicit Write tool instruction
297
- - Verification step
298
-
299
- ---
300
-
301
- ### From summarize.md OLD (BROKEN ✗)
302
-
303
- ```markdown
304
- 5. Suggest saving to `.clavix/outputs/[session-name]/`
305
- ```
306
-
307
- **Why it failed:**
308
- - "Suggest" is passive
309
- - No Write tool instruction
310
- - No step-by-step breakdown
311
- - No verification
312
- - Buried at step 5 (should be step 3-4)
313
-
314
- ---
315
-
316
- ## Summary
317
-
318
- **Always use this pattern for file creation:**
319
- 1. Step 1: mkdir
320
- 2. Step 2-N: Write tool for each file
321
- 3. Step N+1: Verify files exist
322
- 4. Add CHECKPOINT marker
323
-
324
- **Never use:**
325
- - "Suggest saving"
326
- - "If available"
327
- - Vague "create" or "save" without tool name
328
- - No verification step
329
-
330
- Copy the proven patterns from this document into your workflow instructions.
@@ -1,377 +0,0 @@
1
- # Verification & Checkpoint Patterns
2
-
3
- ## Overview
4
-
5
- Verification ensures that critical workflow steps actually completed successfully. This document provides patterns for adding checkpoints and validation to Clavix workflows.
6
-
7
- ---
8
-
9
- ## Checkpoint Markers
10
-
11
- ### What Are Checkpoints?
12
-
13
- Checkpoints are standardized markers that agents output to confirm workflow step completion. They enable:
14
- - Progress tracking
15
- - Failure detection
16
- - Workflow validation
17
- - Debugging
18
-
19
- ### Checkpoint Format
20
-
21
- ```markdown
22
- **CHECKPOINT:** [Brief description of what was completed]
23
- ```
24
-
25
- ### Examples
26
-
27
- ```markdown
28
- **CHECKPOINT:** Entered conversational mode (gathering requirements only)
29
- **CHECKPOINT:** Asked 5 clarifying questions about authentication system
30
- **CHECKPOINT:** Extracted requirements from conversation
31
- **CHECKPOINT:** Created 3 output files successfully
32
- **CHECKPOINT:** Files verified - all exist at expected paths
33
- ```
34
-
35
- ---
36
-
37
- ## When to Add Checkpoints
38
-
39
- ### 1. Mode Transitions
40
-
41
- **When entering a specific mode:**
42
- ```markdown
43
- **CHECKPOINT:** Entered conversational mode for requirements gathering
44
- **CHECKPOINT:** Started PRD generation workflow
45
- **CHECKPOINT:** Beginning deep analysis of prompt
46
- ```
47
-
48
- ### 2. After File Operations
49
-
50
- **After creating files:**
51
- ```markdown
52
- **CHECKPOINT:** Files created successfully - verified existence
53
- **CHECKPOINT:** Saved prompt to .clavix/outputs/prompts/fast/fast-20251124-1430.md
54
- ```
55
-
56
- ### 3. After Complex Operations
57
-
58
- **After multi-step processes:**
59
- ```markdown
60
- **CHECKPOINT:** Completed Clavix Intelligence™ optimization - 5 improvements applied
61
- **CHECKPOINT:** Analyzed conversation - extracted 12 requirements, 3 constraints
62
- ```
63
-
64
- ### 4. At Decision Points
65
-
66
- **When making workflow decisions:**
67
- ```markdown
68
- **CHECKPOINT:** Conversation complexity threshold reached (15+ exchanges) - suggesting summarization
69
- **CHECKPOINT:** Missing critical requirements - requesting more information before proceeding
70
- ```
71
-
72
- ---
73
-
74
- ## Verification Patterns
75
-
76
- ### Pattern 1: File Existence Verification
77
-
78
- **After file creation, always verify:**
79
-
80
- ```markdown
81
- **Step 5: Verify File Creation**
82
-
83
- List the created files to confirm they exist:
84
- ```
85
- Created files:
86
- ✓ .clavix/outputs/[project]/mini-prd.md
87
- ✓ .clavix/outputs/[project]/original-prompt.md
88
- ✓ .clavix/outputs/[project]/optimized-prompt.md
89
- ```
90
-
91
- **CHECKPOINT:** All files created successfully.
92
-
93
- If any file is missing:
94
- - Review file creation steps
95
- - See troubleshooting: `.clavix/instructions/troubleshooting/skipped-file-creation.md`
96
- ```
97
-
98
- ---
99
-
100
- ### Pattern 2: Content Validation
101
-
102
- **Verify content meets requirements:**
103
-
104
- ```markdown
105
- **Step 6: Validate Content**
106
-
107
- Verify each file contains:
108
- - ✓ mini-prd.md: Objective, Requirements, Constraints, Success Criteria sections
109
- - ✓ original-prompt.md: At least 2 paragraphs of extracted requirements
110
- - ✓ optimized-prompt.md: Improvements labeled with [ADDED], [CLARIFIED], etc.
111
-
112
- **CHECKPOINT:** Content validation passed.
113
- ```
114
-
115
- ---
116
-
117
- ### Pattern 3: Mode Boundary Verification
118
-
119
- **Verify agent stayed in correct mode:**
120
-
121
- ```markdown
122
- **Step 7: Mode Compliance Check**
123
-
124
- Confirm you stayed in CLAVIX MODE:
125
- - ✓ Did NOT implement application code
126
- - ✓ Did NOT generate feature implementations
127
- - ✓ Only created planning documents and prompts
128
-
129
- **CHECKPOINT:** Mode boundaries respected.
130
- ```
131
-
132
- ---
133
-
134
- ### Pattern 4: Requirement Completeness
135
-
136
- **Verify minimum requirements gathered:**
137
-
138
- ```markdown
139
- **Pre-Extraction Validation**
140
-
141
- Before proceeding with summarization, verify conversation includes:
142
- - ✓ Clear project objective (what are we building?)
143
- - ✓ At least 3 core requirements
144
- - ✓ Technical constraints or framework preferences (if applicable)
145
-
146
- If ANY are missing:
147
- - DO NOT proceed with summarization
148
- - Ask clarifying questions to gather missing information
149
- - Reference: `.clavix/instructions/troubleshooting/incomplete-requirements.md`
150
-
151
- **CHECKPOINT:** Minimum requirements met - proceeding with extraction.
152
- ```
153
-
154
- ---
155
-
156
- ## Self-Correction Patterns
157
-
158
- ### Detecting Premature Implementation
159
-
160
- ```markdown
161
- **Self-Check: Am I Implementing?**
162
-
163
- If you catch yourself:
164
- - Writing application code (functions, components, classes)
165
- - Implementing features being discussed
166
- - Generating code examples for the actual feature
167
-
168
- **IMMEDIATE ACTION:**
169
- 1. STOP writing implementation code
170
- 2. Delete the implementation attempt
171
- 3. Output: "I apologize - I was jumping to implementation. Let me return to requirements gathering."
172
- 4. Return to asking clarifying questions
173
- 5. Reference: `.clavix/instructions/core/clavix-mode.md`
174
-
175
- **CHECKPOINT:** Self-corrected - returned to requirements mode.
176
- ```
177
-
178
- ---
179
-
180
- ### Detecting Skipped Steps
181
-
182
- ```markdown
183
- **Self-Check: Did I Skip File Creation?**
184
-
185
- Before completing the summarization workflow, verify:
186
- - ✓ Created .clavix/outputs/[project]/ directory
187
- - ✓ Wrote mini-prd.md
188
- - ✓ Wrote original-prompt.md
189
- - ✓ Wrote optimized-prompt.md
190
- - ✓ Verified all files exist
191
-
192
- If any step was skipped:
193
- 1. Go back and complete missing steps
194
- 2. Reference: `.clavix/instructions/core/file-operations.md`
195
- 3. Verify files exist before marking workflow complete
196
-
197
- **CHECKPOINT:** All file creation steps completed.
198
- ```
199
-
200
- ---
201
-
202
- ## Troubleshooting Detection
203
-
204
- ### Pattern: Identify Common Failures
205
-
206
- ```markdown
207
- **Troubleshooting Check**
208
-
209
- If workflow isn't proceeding as expected, check:
210
-
211
- 1. **Files not created?**
212
- - See: `.clavix/instructions/troubleshooting/skipped-file-creation.md`
213
- - Common cause: Used "suggest saving" instead of explicit Write tool steps
214
-
215
- 2. **Jumped to implementation?**
216
- - See: `.clavix/instructions/troubleshooting/jumped-to-implementation.md`
217
- - Common cause: Didn't see CLAVIX MODE boundary or mode enforcement
218
-
219
- 3. **Conversation not progressing?**
220
- - See: `.clavix/instructions/troubleshooting/mode-confusion.md`
221
- - Common cause: Unclear which mode (planning vs implementation) is active
222
-
223
- **CHECKPOINT:** Troubleshooting guidance provided if needed.
224
- ```
225
-
226
- ---
227
-
228
- ## Verification in Specific Workflows
229
-
230
- ### Conversational Mode (/clavix:start)
231
-
232
- ```markdown
233
- **Checkpoints to include:**
234
-
235
- 1. After entering mode:
236
- **CHECKPOINT:** Entered conversational mode (gathering requirements only)
237
-
238
- 2. After asking questions:
239
- **CHECKPOINT:** Asked [N] clarifying questions about [topic]
240
-
241
- 3. At complexity threshold:
242
- **CHECKPOINT:** Complexity threshold reached - suggesting /clavix:summarize
243
-
244
- 4. Before any implementation attempt:
245
- **SELF-CHECK:** Am I about to implement? If yes, STOP and return to questions.
246
-
247
- 5. When user says "summarize":
248
- **CHECKPOINT:** Transitioning to summarization workflow
249
- ```
250
-
251
- ---
252
-
253
- ### Summarization (/clavix:summarize)
254
-
255
- ```markdown
256
- **Checkpoints to include:**
257
-
258
- 1. Before extraction:
259
- **CHECKPOINT:** Pre-extraction validation passed - minimum requirements present
260
-
261
- 2. After extraction:
262
- **CHECKPOINT:** Extracted [N] requirements, [M] constraints from conversation
263
-
264
- 3. Before file creation:
265
- **CHECKPOINT:** Beginning file creation (3 files required)
266
-
267
- 4. After each file:
268
- **CHECKPOINT:** Created mini-prd.md successfully
269
- **CHECKPOINT:** Created original-prompt.md successfully
270
- **CHECKPOINT:** Created optimized-prompt.md successfully
271
-
272
- 5. After verification:
273
- **CHECKPOINT:** All files verified - exist at expected paths
274
-
275
- 6. After optimization:
276
- **CHECKPOINT:** Applied Clavix Intelligence™ - [N] improvements added
277
-
278
- 7. Workflow complete:
279
- **CHECKPOINT:** Summarization workflow complete - all outputs created
280
- ```
281
-
282
- ---
283
-
284
- ### Quick Improvement (/clavix:fast)
285
-
286
- ```markdown
287
- **Checkpoints to include:**
288
-
289
- 1. After analysis:
290
- **CHECKPOINT:** Analyzed prompt - identified [N] improvement areas
291
-
292
- 2. After optimization:
293
- **CHECKPOINT:** Generated optimized prompt with [N] enhancements
294
-
295
- 3. After file creation:
296
- **CHECKPOINT:** Saved prompt to .clavix/outputs/prompts/fast/[id].md
297
-
298
- 4. After verification:
299
- **CHECKPOINT:** File verified - prompt saved successfully
300
- ```
301
-
302
- ---
303
-
304
- ### Deep Analysis (/clavix:deep)
305
-
306
- ```markdown
307
- **Checkpoints to include:**
308
-
309
- 1. After initial analysis:
310
- **CHECKPOINT:** Completed deep analysis - generated [N] alternative phrasings
311
-
312
- 2. After edge case analysis:
313
- **CHECKPOINT:** Identified [M] edge cases and potential issues
314
-
315
- 3. After file creation:
316
- **CHECKPOINT:** Created comprehensive analysis document
317
-
318
- 4. After verification:
319
- **CHECKPOINT:** All outputs verified - deep analysis complete
320
- ```
321
-
322
- ---
323
-
324
- ## Integration with Runtime Validation (Future)
325
-
326
- ### Checkpoint Format for Parsing
327
-
328
- Use consistent format to enable future automated validation:
329
-
330
- ```markdown
331
- **CHECKPOINT:** <status> - <description>
332
-
333
- Where:
334
- - <status>: SUCCESS, WARNING, ERROR, INFO
335
- - <description>: What was completed or detected
336
-
337
- Examples:
338
- **CHECKPOINT:** SUCCESS - Files created and verified
339
- **CHECKPOINT:** WARNING - Complexity threshold reached
340
- **CHECKPOINT:** ERROR - Missing required information
341
- **CHECKPOINT:** INFO - Entered conversational mode
342
- ```
343
-
344
- ### Future Enhancements
345
-
346
- - Parse checkpoint markers from agent output
347
- - Detect missing expected checkpoints
348
- - Validate workflow completion
349
- - Generate workflow reports
350
- - Identify common failure patterns
351
-
352
- ---
353
-
354
- ## Summary
355
-
356
- **Always include:**
357
- 1. **Checkpoints** after major workflow steps
358
- 2. **Verification steps** for file operations
359
- 3. **Self-correction checks** at decision points
360
- 4. **Troubleshooting detection** for common failures
361
-
362
- **Format:**
363
- ```markdown
364
- **CHECKPOINT:** [Clear description of what completed]
365
- ```
366
-
367
- **Use verification to:**
368
- - Confirm files created
369
- - Validate content structure
370
- - Ensure mode boundaries respected
371
- - Detect and correct failures
372
-
373
- **Reference troubleshooting guides when:**
374
- - Files not created
375
- - Implementation occurred prematurely
376
- - Mode confusion detected
377
- - Requirements incomplete