clavix 2.3.0 → 2.4.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/cli/commands/init.js +1 -1
- package/dist/core 2/adapters/agents-md-generator.d.ts +26 -0
- package/dist/core 2/adapters/agents-md-generator.js +102 -0
- package/dist/core 2/adapters/amp-adapter.d.ts +27 -0
- package/dist/core 2/adapters/amp-adapter.js +42 -0
- package/dist/core 2/adapters/augment-adapter.d.ts +22 -0
- package/dist/core 2/adapters/augment-adapter.js +77 -0
- package/dist/core 2/adapters/base-adapter.d.ts +45 -0
- package/dist/core 2/adapters/base-adapter.js +142 -0
- package/dist/core 2/adapters/claude-code-adapter.d.ts +32 -0
- package/dist/core 2/adapters/claude-code-adapter.js +116 -0
- package/dist/core 2/adapters/cline-adapter.d.ts +34 -0
- package/dist/core 2/adapters/cline-adapter.js +52 -0
- package/dist/core 2/adapters/codebuddy-adapter.d.ts +24 -0
- package/dist/core 2/adapters/codebuddy-adapter.js +82 -0
- package/dist/core 2/adapters/codex-adapter.d.ts +24 -0
- package/dist/core 2/adapters/codex-adapter.js +79 -0
- package/dist/core 2/adapters/copilot-instructions-generator.d.ts +26 -0
- package/dist/core 2/adapters/copilot-instructions-generator.js +104 -0
- package/dist/core 2/adapters/crush-adapter.d.ts +35 -0
- package/dist/core 2/adapters/crush-adapter.js +49 -0
- package/dist/core 2/adapters/cursor-adapter.d.ts +25 -0
- package/dist/core 2/adapters/cursor-adapter.js +40 -0
- package/dist/core 2/adapters/droid-adapter.d.ts +33 -0
- package/dist/core 2/adapters/droid-adapter.js +57 -0
- package/dist/core 2/adapters/gemini-adapter.d.ts +27 -0
- package/dist/core 2/adapters/gemini-adapter.js +90 -0
- package/dist/core 2/adapters/kilocode-adapter.d.ts +34 -0
- package/dist/core 2/adapters/kilocode-adapter.js +49 -0
- package/dist/core 2/adapters/octo-md-generator.d.ts +26 -0
- package/dist/core 2/adapters/octo-md-generator.js +102 -0
- package/dist/core 2/adapters/opencode-adapter.d.ts +33 -0
- package/dist/core 2/adapters/opencode-adapter.js +56 -0
- package/dist/core 2/adapters/qwen-adapter.d.ts +27 -0
- package/dist/core 2/adapters/qwen-adapter.js +90 -0
- package/dist/core 2/adapters/roocode-adapter.d.ts +40 -0
- package/dist/core 2/adapters/roocode-adapter.js +68 -0
- package/dist/core 2/adapters/warp-md-generator.d.ts +17 -0
- package/dist/core 2/adapters/warp-md-generator.js +88 -0
- package/dist/core 2/adapters/windsurf-adapter.d.ts +34 -0
- package/dist/core 2/adapters/windsurf-adapter.js +49 -0
- package/dist/core 2/agent-manager.d.ts +51 -0
- package/dist/core 2/agent-manager.js +126 -0
- package/dist/core 2/archive-manager.d.ts +100 -0
- package/dist/core 2/archive-manager.js +338 -0
- package/dist/core 2/conversation-analyzer.d.ts +86 -0
- package/dist/core 2/doc-injector.d.ts +51 -0
- package/dist/core 2/doc-injector.js +236 -0
- package/dist/core 2/git-manager.d.ts +100 -0
- package/dist/core 2/git-manager.js +214 -0
- package/dist/core 2/prompt-optimizer.d.ts +268 -0
- package/dist/core 2/prompt-optimizer.js +963 -0
- package/dist/core 2/question-engine.d.ts +167 -0
- package/dist/core 2/question-engine.js +395 -0
- package/dist/core 2/session-manager.d.ts +139 -0
- package/dist/core 2/session-manager.js +403 -0
- package/dist/core 2/task-manager.d.ts +155 -0
- package/dist/core 2/task-manager.js +689 -0
- package/dist/utils/template-loader.js +24 -22
- package/package.json +1 -1
- package/dist/templates/slash-commands/augment/archive.md +0 -291
- package/dist/templates/slash-commands/augment/deep.md +0 -207
- package/dist/templates/slash-commands/augment/fast.md +0 -183
- package/dist/templates/slash-commands/augment/implement.md +0 -267
- package/dist/templates/slash-commands/augment/plan.md +0 -173
- package/dist/templates/slash-commands/augment/prd.md +0 -178
- package/dist/templates/slash-commands/augment/start.md +0 -142
- package/dist/templates/slash-commands/augment/summarize.md +0 -179
- package/dist/templates/slash-commands/claude-code/archive.md +0 -291
- package/dist/templates/slash-commands/claude-code/deep.md +0 -207
- package/dist/templates/slash-commands/claude-code/fast.md +0 -183
- package/dist/templates/slash-commands/claude-code/implement.md +0 -267
- package/dist/templates/slash-commands/claude-code/plan.md +0 -173
- package/dist/templates/slash-commands/claude-code/prd.md +0 -178
- package/dist/templates/slash-commands/claude-code/start.md +0 -142
- package/dist/templates/slash-commands/claude-code/summarize.md +0 -179
- package/dist/templates/slash-commands/cline/archive.md +0 -291
- package/dist/templates/slash-commands/cline/deep.md +0 -207
- package/dist/templates/slash-commands/cline/fast.md +0 -183
- package/dist/templates/slash-commands/cline/implement.md +0 -267
- package/dist/templates/slash-commands/cline/plan.md +0 -173
- package/dist/templates/slash-commands/cline/prd.md +0 -178
- package/dist/templates/slash-commands/cline/start.md +0 -142
- package/dist/templates/slash-commands/cline/summarize.md +0 -179
- package/dist/templates/slash-commands/codebuddy/archive.md +0 -291
- package/dist/templates/slash-commands/codebuddy/deep.md +0 -207
- package/dist/templates/slash-commands/codebuddy/fast.md +0 -183
- package/dist/templates/slash-commands/codebuddy/implement.md +0 -267
- package/dist/templates/slash-commands/codebuddy/plan.md +0 -173
- package/dist/templates/slash-commands/codebuddy/prd.md +0 -178
- package/dist/templates/slash-commands/codebuddy/start.md +0 -142
- package/dist/templates/slash-commands/codebuddy/summarize.md +0 -179
- package/dist/templates/slash-commands/codex/archive.md +0 -291
- package/dist/templates/slash-commands/codex/deep.md +0 -207
- package/dist/templates/slash-commands/codex/fast.md +0 -183
- package/dist/templates/slash-commands/codex/implement.md +0 -267
- package/dist/templates/slash-commands/codex/plan.md +0 -173
- package/dist/templates/slash-commands/codex/prd.md +0 -178
- package/dist/templates/slash-commands/codex/start.md +0 -142
- package/dist/templates/slash-commands/codex/summarize.md +0 -179
- package/dist/templates/slash-commands/crush/archive.md +0 -291
- package/dist/templates/slash-commands/crush/deep.md +0 -207
- package/dist/templates/slash-commands/crush/fast.md +0 -183
- package/dist/templates/slash-commands/crush/implement.md +0 -267
- package/dist/templates/slash-commands/crush/plan.md +0 -173
- package/dist/templates/slash-commands/crush/prd.md +0 -178
- package/dist/templates/slash-commands/crush/start.md +0 -142
- package/dist/templates/slash-commands/crush/summarize.md +0 -179
- package/dist/templates/slash-commands/cursor/archive.md +0 -291
- package/dist/templates/slash-commands/cursor/deep.md +0 -207
- package/dist/templates/slash-commands/cursor/fast.md +0 -183
- package/dist/templates/slash-commands/cursor/implement.md +0 -267
- package/dist/templates/slash-commands/cursor/plan.md +0 -173
- package/dist/templates/slash-commands/cursor/prd.md +0 -178
- package/dist/templates/slash-commands/cursor/start.md +0 -142
- package/dist/templates/slash-commands/cursor/summarize.md +0 -179
- package/dist/templates/slash-commands/droid/archive.md +0 -291
- package/dist/templates/slash-commands/droid/deep.md +0 -207
- package/dist/templates/slash-commands/droid/fast.md +0 -183
- package/dist/templates/slash-commands/droid/implement.md +0 -267
- package/dist/templates/slash-commands/droid/plan.md +0 -173
- package/dist/templates/slash-commands/droid/prd.md +0 -178
- package/dist/templates/slash-commands/droid/start.md +0 -142
- package/dist/templates/slash-commands/droid/summarize.md +0 -179
- package/dist/templates/slash-commands/gemini/archive.toml +0 -290
- package/dist/templates/slash-commands/gemini/deep.toml +0 -206
- package/dist/templates/slash-commands/gemini/fast.toml +0 -182
- package/dist/templates/slash-commands/gemini/implement.toml +0 -266
- package/dist/templates/slash-commands/gemini/plan.toml +0 -170
- package/dist/templates/slash-commands/gemini/prd.toml +0 -177
- package/dist/templates/slash-commands/gemini/start.toml +0 -141
- package/dist/templates/slash-commands/gemini/summarize.toml +0 -178
- package/dist/templates/slash-commands/kilocode/archive.md +0 -291
- package/dist/templates/slash-commands/kilocode/deep.md +0 -207
- package/dist/templates/slash-commands/kilocode/fast.md +0 -183
- package/dist/templates/slash-commands/kilocode/implement.md +0 -267
- package/dist/templates/slash-commands/kilocode/plan.md +0 -173
- package/dist/templates/slash-commands/kilocode/prd.md +0 -178
- package/dist/templates/slash-commands/kilocode/start.md +0 -142
- package/dist/templates/slash-commands/kilocode/summarize.md +0 -179
- package/dist/templates/slash-commands/opencode/archive.md +0 -291
- package/dist/templates/slash-commands/opencode/deep.md +0 -207
- package/dist/templates/slash-commands/opencode/fast.md +0 -183
- package/dist/templates/slash-commands/opencode/implement.md +0 -267
- package/dist/templates/slash-commands/opencode/plan.md +0 -173
- package/dist/templates/slash-commands/opencode/prd.md +0 -178
- package/dist/templates/slash-commands/opencode/start.md +0 -142
- package/dist/templates/slash-commands/opencode/summarize.md +0 -179
- package/dist/templates/slash-commands/qwen/archive.toml +0 -290
- package/dist/templates/slash-commands/qwen/deep.toml +0 -206
- package/dist/templates/slash-commands/qwen/fast.toml +0 -182
- package/dist/templates/slash-commands/qwen/implement.toml +0 -266
- package/dist/templates/slash-commands/qwen/plan.toml +0 -170
- package/dist/templates/slash-commands/qwen/prd.toml +0 -177
- package/dist/templates/slash-commands/qwen/start.toml +0 -141
- package/dist/templates/slash-commands/qwen/summarize.toml +0 -178
- package/dist/templates/slash-commands/roocode/archive.md +0 -291
- package/dist/templates/slash-commands/roocode/deep.md +0 -207
- package/dist/templates/slash-commands/roocode/fast.md +0 -183
- package/dist/templates/slash-commands/roocode/implement.md +0 -267
- package/dist/templates/slash-commands/roocode/plan.md +0 -173
- package/dist/templates/slash-commands/roocode/prd.md +0 -178
- package/dist/templates/slash-commands/roocode/start.md +0 -142
- package/dist/templates/slash-commands/roocode/summarize.md +0 -179
- package/dist/templates/slash-commands/windsurf/archive.md +0 -291
- package/dist/templates/slash-commands/windsurf/deep.md +0 -207
- package/dist/templates/slash-commands/windsurf/fast.md +0 -183
- package/dist/templates/slash-commands/windsurf/implement.md +0 -267
- package/dist/templates/slash-commands/windsurf/plan.md +0 -173
- package/dist/templates/slash-commands/windsurf/prd.md +0 -178
- package/dist/templates/slash-commands/windsurf/start.md +0 -142
- package/dist/templates/slash-commands/windsurf/summarize.md +0 -179
- /package/dist/templates/slash-commands/{amp → _canonical}/archive.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/deep.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/fast.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/implement.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/plan.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/prd.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/start.md +0 -0
- /package/dist/templates/slash-commands/{amp → _canonical}/summarize.md +0 -0
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "Clavix: Deep"
|
|
3
|
-
description: Full CLEAR framework analysis (C, L, E, A, R components)
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Clavix Deep Mode - Full CLEAR Framework Analysis
|
|
7
|
-
|
|
8
|
-
You are helping the user perform a comprehensive deep analysis using the full CLEAR Framework (all 5 components: Concise, Logical, Explicit, Adaptive, Reflective).
|
|
9
|
-
|
|
10
|
-
## CLEAR Framework (Deep Mode)
|
|
11
|
-
|
|
12
|
-
**What is CLEAR?**
|
|
13
|
-
An academically-validated prompt engineering framework by Dr. Leo Lo (University of New Mexico).
|
|
14
|
-
|
|
15
|
-
**Deep Mode Uses ALL Components:**
|
|
16
|
-
- **[C] Concise**: Remove verbosity, pleasantries, unnecessary words
|
|
17
|
-
- **[L] Logical**: Ensure coherent sequencing (context → requirements → constraints → output)
|
|
18
|
-
- **[E] Explicit**: Add persona, format, tone, success criteria
|
|
19
|
-
- **[A] Adaptive**: Generate alternative phrasings, structures, flexibility
|
|
20
|
-
- **[R] Reflective**: Create validation checklists, edge cases, quality criteria
|
|
21
|
-
|
|
22
|
-
## Instructions
|
|
23
|
-
|
|
24
|
-
1. Take the user's prompt: `{{ARGS}}`
|
|
25
|
-
|
|
26
|
-
2. **Apply Full CLEAR Framework** (C, L, E, A, R):
|
|
27
|
-
|
|
28
|
-
- **Conciseness [C]**: Detailed verbosity analysis
|
|
29
|
-
- **Logic [L]**: Comprehensive flow analysis
|
|
30
|
-
- **Explicitness [E]**: Complete specification check
|
|
31
|
-
- **Adaptiveness [A]**: Multiple variations and approaches
|
|
32
|
-
- **Reflectiveness [R]**: Full validation and edge case analysis
|
|
33
|
-
|
|
34
|
-
3. **Strategic Scope Detection** (before detailed analysis):
|
|
35
|
-
|
|
36
|
-
**Check for strategic concerns** by identifying keywords/themes:
|
|
37
|
-
- **Architecture**: system design, microservices, monolith, architecture patterns, scalability patterns
|
|
38
|
-
- **Security**: authentication, authorization, encryption, security, OWASP, vulnerabilities, threat model
|
|
39
|
-
- **Scalability**: load balancing, caching, database scaling, performance optimization, high availability
|
|
40
|
-
- **Infrastructure**: deployment, CI/CD, DevOps, cloud infrastructure, containers, orchestration
|
|
41
|
-
- **Business Impact**: ROI, business metrics, KPIs, stakeholder impact, market analysis
|
|
42
|
-
|
|
43
|
-
**If 3+ strategic keywords detected**:
|
|
44
|
-
Ask the user: "I notice this involves strategic decisions around [detected themes]. These topics benefit from PRD-style planning with business context and architectural considerations. Would you like to:
|
|
45
|
-
- Switch to `/clavix:prd` for comprehensive strategic planning (recommended)
|
|
46
|
-
- Continue with deep mode for prompt-level analysis only"
|
|
47
|
-
|
|
48
|
-
**If user chooses to continue**, proceed with deep analysis but remind them at the end that `/clavix:prd` is available for strategic planning.
|
|
49
|
-
|
|
50
|
-
4. **Generate Comprehensive Output**:
|
|
51
|
-
|
|
52
|
-
a. **CLEAR Assessment** (all 5 components with scores)
|
|
53
|
-
|
|
54
|
-
b. **CLEAR-Optimized Prompt** (applying all components)
|
|
55
|
-
|
|
56
|
-
c. **CLEAR Changes Made** (labeled with [C], [L], [E], [A], [R])
|
|
57
|
-
|
|
58
|
-
d. **Adaptive Variations [A]**:
|
|
59
|
-
- 2-3 alternative phrasings
|
|
60
|
-
- Alternative structures (user story, job story, structured)
|
|
61
|
-
- Temperature recommendations
|
|
62
|
-
- Explain when each approach is most appropriate
|
|
63
|
-
|
|
64
|
-
e. **Reflection Checklist [R]**:
|
|
65
|
-
- Validation steps for accuracy
|
|
66
|
-
- Edge cases to consider
|
|
67
|
-
- "What could go wrong" analysis
|
|
68
|
-
- Fact-checking steps
|
|
69
|
-
- Quality criteria
|
|
70
|
-
|
|
71
|
-
4. **CLEAR-labeled educational feedback**:
|
|
72
|
-
- Label all changes with CLEAR component tags
|
|
73
|
-
- Example: "[C] Removed 15 unnecessary pleasantries"
|
|
74
|
-
- Example: "[A] See Alternative Structures for 3 different approaches"
|
|
75
|
-
- Example: "[R] See Reflection Checklist for 5 validation steps"
|
|
76
|
-
|
|
77
|
-
5. Present everything in comprehensive, CLEAR-organized format.
|
|
78
|
-
|
|
79
|
-
## Deep Mode Features
|
|
80
|
-
|
|
81
|
-
**Include (Full CLEAR Framework):**
|
|
82
|
-
- **[C, L, E]**: All fast mode analysis (conciseness, logic, explicitness)
|
|
83
|
-
- **[A] Adaptive**: Alternative phrasings, structures, flexibility, temperature
|
|
84
|
-
- **[R] Reflective**: Validation checklist, edge cases, quality criteria, fact-checking
|
|
85
|
-
- **CLEAR Assessment**: All 5 component scores
|
|
86
|
-
- **CLEAR-labeled Changes**: Educational feedback showing which component improved what
|
|
87
|
-
|
|
88
|
-
**Do NOT include (these belong in `/clavix:prd`):**
|
|
89
|
-
- System architecture recommendations
|
|
90
|
-
- Security best practices
|
|
91
|
-
- Scalability strategy
|
|
92
|
-
- Business impact analysis
|
|
93
|
-
|
|
94
|
-
## Example
|
|
95
|
-
|
|
96
|
-
If user provides: "Create a login page"
|
|
97
|
-
|
|
98
|
-
Output:
|
|
99
|
-
```
|
|
100
|
-
## Analysis
|
|
101
|
-
[All fast mode analysis: gaps, ambiguities, strengths, suggestions]
|
|
102
|
-
|
|
103
|
-
## Changes Made
|
|
104
|
-
- Added authentication context and user needs
|
|
105
|
-
- Specified technical stack and constraints
|
|
106
|
-
- Defined success criteria and expected output
|
|
107
|
-
|
|
108
|
-
## Alternative Phrasings
|
|
109
|
-
1. "Implement a user authentication interface that enables secure access to the platform"
|
|
110
|
-
2. "Design and build a login system that validates user credentials and manages sessions"
|
|
111
|
-
3. "Create an authentication flow that allows registered users to access their accounts"
|
|
112
|
-
|
|
113
|
-
## Edge Cases to Consider
|
|
114
|
-
- What happens when a user enters incorrect credentials 3+ times?
|
|
115
|
-
- How to handle users who've forgotten both email and password?
|
|
116
|
-
- What about users trying to log in from a new device?
|
|
117
|
-
- How to handle session expiration during active use?
|
|
118
|
-
|
|
119
|
-
## Implementation Examples
|
|
120
|
-
**Good:**
|
|
121
|
-
- Prompt specifies authentication method, error handling, and accessibility requirements
|
|
122
|
-
- Includes context about existing auth system and integration points
|
|
123
|
-
- Defines measurable success criteria (load time, accessibility score)
|
|
124
|
-
|
|
125
|
-
**Bad:**
|
|
126
|
-
- "Make a login page" - no context, constraints, or success criteria
|
|
127
|
-
- Missing technical stack and integration requirements
|
|
128
|
-
- No consideration of security or user experience
|
|
129
|
-
|
|
130
|
-
## Alternative Prompt Structures
|
|
131
|
-
1. **User Story**: "As a registered user, I want to log into my account so that I can access my personalized dashboard"
|
|
132
|
-
→ Focuses on user value and benefits
|
|
133
|
-
|
|
134
|
-
2. **Job Story**: "When I visit the app, I want to authenticate securely, so I can access my saved data"
|
|
135
|
-
→ Emphasizes context and motivation
|
|
136
|
-
|
|
137
|
-
3. **Structured Sections**: Objective, Requirements, Constraints, Success Criteria
|
|
138
|
-
→ Provides comprehensive organization
|
|
139
|
-
|
|
140
|
-
## What Could Go Wrong
|
|
141
|
-
- Without security requirements, implementation might miss OWASP best practices
|
|
142
|
-
- Vague "login page" could be interpreted as OAuth, email/password, or social login
|
|
143
|
-
- Missing error handling specification could lead to poor UX
|
|
144
|
-
- No accessibility requirements might exclude users with disabilities
|
|
145
|
-
|
|
146
|
-
## Improved Prompt
|
|
147
|
-
[Structured prompt with all sections]
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
## When to Use Deep vs Fast vs PRD
|
|
151
|
-
|
|
152
|
-
- **Fast mode** (`/clavix:fast`): C, L, E components - quick CLEAR cleanup
|
|
153
|
-
- **Deep mode** (`/clavix:deep`): Full CLEAR (C, L, E, A, R) - comprehensive analysis with alternatives and validation
|
|
154
|
-
- **PRD mode** (`/clavix:prd`): CLEAR-validated PRD generation - strategic planning with architecture decisions
|
|
155
|
-
|
|
156
|
-
## Workflow Navigation
|
|
157
|
-
|
|
158
|
-
**You are here:** Deep Mode (Comprehensive CLEAR Analysis)
|
|
159
|
-
|
|
160
|
-
**Common workflows:**
|
|
161
|
-
- **Thorough analysis**: `/clavix:deep` → Use optimized prompt + alternatives
|
|
162
|
-
- **Escalate to strategic**: `/clavix:deep` → (detects strategic scope) → `/clavix:prd` → Plan → Implement → Archive
|
|
163
|
-
- **From fast mode**: `/clavix:fast` → (suggests) `/clavix:deep` → Full analysis with A & R components
|
|
164
|
-
|
|
165
|
-
**Related commands:**
|
|
166
|
-
- `/clavix:fast` - Quick CLEAR improvements (C, L, E only)
|
|
167
|
-
- `/clavix:prd` - Strategic PRD generation for architecture/business decisions
|
|
168
|
-
- `/clavix:start` - Conversational mode for exploring unclear requirements
|
|
169
|
-
|
|
170
|
-
## Tips
|
|
171
|
-
|
|
172
|
-
- **Apply full CLEAR framework** systematically: all 5 components
|
|
173
|
-
- Label all changes with CLEAR components for education
|
|
174
|
-
- Deep mode focuses on **prompt-level** CLEAR analysis, not strategic architecture
|
|
175
|
-
- Use **[A] Adaptive** to explore alternative approaches
|
|
176
|
-
- Use **[R] Reflective** to identify edge cases and validation needs
|
|
177
|
-
- For architecture, security, and scalability, recommend `/clavix:prd`
|
|
178
|
-
|
|
179
|
-
## Troubleshooting
|
|
180
|
-
|
|
181
|
-
### Issue: Strategic scope detected but user wants to continue with deep mode
|
|
182
|
-
**Cause**: User prefers deep analysis over PRD generation
|
|
183
|
-
**Solution**:
|
|
184
|
-
- Proceed with deep mode as requested
|
|
185
|
-
- Remind at end that `/clavix:prd` is available for strategic planning
|
|
186
|
-
- Focus on prompt-level CLEAR analysis, exclude architecture recommendations
|
|
187
|
-
|
|
188
|
-
### Issue: Too many alternative variations making output overwhelming
|
|
189
|
-
**Cause**: Adaptive component generating many options
|
|
190
|
-
**Solution**:
|
|
191
|
-
- Limit to 2-3 most distinct alternatives
|
|
192
|
-
- Focus on meaningfully different approaches (not minor wording changes)
|
|
193
|
-
- Group similar variations together
|
|
194
|
-
|
|
195
|
-
### Issue: Reflective validation finding too many edge cases
|
|
196
|
-
**Cause**: Complex prompt with many potential failure modes
|
|
197
|
-
**Solution**:
|
|
198
|
-
- Prioritize most likely or highest-impact edge cases
|
|
199
|
-
- Group related edge cases
|
|
200
|
-
- Suggest documenting all edge cases in PRD for complex projects
|
|
201
|
-
|
|
202
|
-
### Issue: Deep analysis still feels insufficient for complex project
|
|
203
|
-
**Cause**: Project needs strategic planning, not just prompt analysis
|
|
204
|
-
**Solution**:
|
|
205
|
-
- Switch to `/clavix:prd` for comprehensive planning
|
|
206
|
-
- Deep mode is for prompts, PRD mode is for projects
|
|
207
|
-
- Use PRD workflow: PRD → Plan → Implement
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "Clavix: Fast"
|
|
3
|
-
description: CLEAR-guided quick improvements (C, L, E components)
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Clavix Fast Mode - CLEAR Framework Quick Improvement
|
|
7
|
-
|
|
8
|
-
You are helping the user improve their prompt using Clavix's fast mode, which applies the CLEAR Framework (Concise, Logical, Explicit components) with smart triage.
|
|
9
|
-
|
|
10
|
-
## CLEAR Framework (Fast Mode)
|
|
11
|
-
|
|
12
|
-
**What is CLEAR?**
|
|
13
|
-
An academically-validated prompt engineering framework by Dr. Leo Lo (University of New Mexico).
|
|
14
|
-
|
|
15
|
-
**Fast Mode Uses:**
|
|
16
|
-
- **[C] Concise**: Remove verbosity, pleasantries, unnecessary words
|
|
17
|
-
- **[L] Logical**: Ensure coherent sequencing (context → requirements → constraints → output)
|
|
18
|
-
- **[E] Explicit**: Add persona, format, tone, success criteria
|
|
19
|
-
|
|
20
|
-
**Deep Mode Adds:** [A] Adaptive variations, [R] Reflective validation (use `/clavix:deep` for these)
|
|
21
|
-
|
|
22
|
-
## Instructions
|
|
23
|
-
|
|
24
|
-
1. Take the user's prompt: `{{ARGS}}`
|
|
25
|
-
|
|
26
|
-
2. **CLEAR Analysis** - Assess the prompt using three components:
|
|
27
|
-
|
|
28
|
-
- **Conciseness [C]**: Identify verbose language, pleasantries ("please", "could you"), unnecessary qualifiers
|
|
29
|
-
- **Logic [L]**: Check sequencing and flow - is information presented coherently?
|
|
30
|
-
- **Explicitness [E]**: Verify specifications - persona, output format, tone, success criteria
|
|
31
|
-
|
|
32
|
-
3. **CLEAR-Aware Smart Triage**: Use multi-factor content-quality assessment to determine if deep analysis is needed:
|
|
33
|
-
|
|
34
|
-
**Primary Indicators** (CLEAR scores - most important):
|
|
35
|
-
- **Low CLEAR scores**: Conciseness < 60%, Logic < 60%, or Explicitness < 50%
|
|
36
|
-
|
|
37
|
-
**Secondary Indicators** (content quality):
|
|
38
|
-
- **Missing critical elements**: 3+ missing from (context, tech stack, success criteria, user needs, expected output)
|
|
39
|
-
- **Scope clarity**: Contains vague words ("app", "system", "project", "feature") without defining what/who/why
|
|
40
|
-
- **Requirement completeness**: Lacks actionable requirements or measurable outcomes
|
|
41
|
-
- **Context depth**: Extremely brief (<15 words) OR overly verbose (>100 words without structure)
|
|
42
|
-
|
|
43
|
-
**Escalation Decision**:
|
|
44
|
-
- If **Low CLEAR scores** + **2+ Secondary Indicators**: **Strongly recommend `/clavix:deep`**
|
|
45
|
-
- If **Low CLEAR scores** only: **Suggest `/clavix:deep`** but can proceed with fast mode
|
|
46
|
-
- Explain which CLEAR component needs deeper analysis and why
|
|
47
|
-
|
|
48
|
-
Ask the user:
|
|
49
|
-
- Switch to deep mode (recommended when strongly recommended)
|
|
50
|
-
- Continue with fast mode (acceptable for suggestion-level, but at their own risk for strong recommendation)
|
|
51
|
-
|
|
52
|
-
4. Generate a **CLEAR-optimized** structured prompt with these sections:
|
|
53
|
-
**Objective**: Clear, specific goal
|
|
54
|
-
**Requirements**: Detailed, actionable requirements
|
|
55
|
-
**Technical Constraints**: Technologies, performance needs, integrations
|
|
56
|
-
**Expected Output**: What the result should look like
|
|
57
|
-
**Success Criteria**: How to measure completion
|
|
58
|
-
|
|
59
|
-
5. **CLEAR Changes Made**: List improvements with CLEAR component labels:
|
|
60
|
-
- **[C]** "Removed 15 unnecessary words and pleasantries"
|
|
61
|
-
- **[L]** "Restructured: context → requirements → constraints → output"
|
|
62
|
-
- **[E]** "Added explicit persona (senior developer), output format (React component), tone (production-ready)"
|
|
63
|
-
|
|
64
|
-
6. Present the CLEAR-optimized prompt in a code block for easy copying.
|
|
65
|
-
|
|
66
|
-
## Fast Mode Features
|
|
67
|
-
|
|
68
|
-
**Include (CLEAR C, L, E):**
|
|
69
|
-
- **CLEAR Assessment** (Conciseness, Logic, Explicitness scores with issues)
|
|
70
|
-
- Single CLEAR-optimized improved prompt
|
|
71
|
-
- **CLEAR Changes Made** (labeled with [C], [L], [E] components)
|
|
72
|
-
- Recommendation to use deep mode for Adaptive & Reflective components
|
|
73
|
-
|
|
74
|
-
**Skip (use `/clavix:deep` instead):**
|
|
75
|
-
- **[A] Adaptive**: Alternative phrasings, structures, flexibility
|
|
76
|
-
- **[R] Reflective**: Validation checklists, edge cases, quality criteria
|
|
77
|
-
- Strategic analysis (architecture, security - that's for `/clavix:prd`)
|
|
78
|
-
|
|
79
|
-
## Example
|
|
80
|
-
|
|
81
|
-
If user provides: "Please could you maybe help me create a login page?"
|
|
82
|
-
|
|
83
|
-
Output:
|
|
84
|
-
```
|
|
85
|
-
## CLEAR Analysis (Fast Mode)
|
|
86
|
-
|
|
87
|
-
### CLEAR Framework Assessment:
|
|
88
|
-
|
|
89
|
-
[C] Conciseness: 45%
|
|
90
|
-
• 4 unnecessary pleasantries detected ("Please", "could you", "maybe", "help me")
|
|
91
|
-
• Low signal-to-noise ratio (core request is only 4 words)
|
|
92
|
-
|
|
93
|
-
[L] Logic: 85%
|
|
94
|
-
• Single request, coherent but minimal
|
|
95
|
-
• Suggested flow: Context → Requirements → Constraints → Output
|
|
96
|
-
|
|
97
|
-
[E] Explicitness: 25%
|
|
98
|
-
• Missing: persona, output format, tone, success criteria, technical constraints
|
|
99
|
-
• No authentication context specified
|
|
100
|
-
|
|
101
|
-
Overall CLEAR Score: 51% (needs-improvement)
|
|
102
|
-
|
|
103
|
-
Recommendation:
|
|
104
|
-
For Adaptive variations (A) and Reflective validation (R), use:
|
|
105
|
-
clavix deep "<your prompt>"
|
|
106
|
-
|
|
107
|
-
### CLEAR-Optimized Prompt:
|
|
108
|
-
|
|
109
|
-
Objective: Build a secure user authentication login page
|
|
110
|
-
|
|
111
|
-
Requirements:
|
|
112
|
-
- Email and password input fields with validation
|
|
113
|
-
- "Remember me" checkbox
|
|
114
|
-
- "Forgot password" link
|
|
115
|
-
- Clear error messages for invalid credentials
|
|
116
|
-
- Responsive design for mobile and desktop
|
|
117
|
-
|
|
118
|
-
Technical Constraints:
|
|
119
|
-
- Use React with TypeScript
|
|
120
|
-
- Integrate with existing JWT authentication API
|
|
121
|
-
- Follow WCAG 2.1 AA accessibility standards
|
|
122
|
-
|
|
123
|
-
Expected Output:
|
|
124
|
-
- Fully functional login component
|
|
125
|
-
- Unit tests with >80% coverage
|
|
126
|
-
|
|
127
|
-
Success Criteria:
|
|
128
|
-
- Users can log in successfully
|
|
129
|
-
- Invalid credentials show appropriate errors
|
|
130
|
-
- Page is accessible via keyboard navigation
|
|
131
|
-
|
|
132
|
-
### CLEAR Changes Made:
|
|
133
|
-
|
|
134
|
-
[C] Removed 4 pleasantries ("Please", "could you", "maybe", "help me"), reduced from 11 words to core intent
|
|
135
|
-
[L] Structured logical flow: Objective → Requirements → Technical Constraints → Expected Output → Success Criteria
|
|
136
|
-
[E] Added explicit specifications: React TypeScript persona, component output format, production-ready tone, accessibility criteria
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
## Workflow Navigation
|
|
140
|
-
|
|
141
|
-
**You are here:** Fast Mode (Quick CLEAR Improvement)
|
|
142
|
-
|
|
143
|
-
**Common workflows:**
|
|
144
|
-
- **Quick cleanup**: `/clavix:fast` → Use improved prompt
|
|
145
|
-
- **Need more depth**: `/clavix:fast` → (suggests) `/clavix:deep` → Comprehensive analysis
|
|
146
|
-
- **Strategic planning**: `/clavix:fast` → (suggests) `/clavix:prd` → Plan → Implement → Archive
|
|
147
|
-
|
|
148
|
-
**Related commands:**
|
|
149
|
-
- `/clavix:deep` - Full CLEAR analysis (all 5 components: C, L, E, A, R)
|
|
150
|
-
- `/clavix:prd` - Generate PRD for strategic planning
|
|
151
|
-
- `/clavix:start` - Conversational exploration before prompting
|
|
152
|
-
|
|
153
|
-
## Tips
|
|
154
|
-
|
|
155
|
-
- **Apply CLEAR framework** systematically: C, L, E components
|
|
156
|
-
- Use **CLEAR-aware triage** to prevent inadequate analysis
|
|
157
|
-
- Label all changes with CLEAR components for education
|
|
158
|
-
- For comprehensive analysis with [A] and [R], recommend `/clavix:deep`
|
|
159
|
-
- For strategic planning, recommend `/clavix:prd`
|
|
160
|
-
- Focus on making prompts **CLEAR** quickly
|
|
161
|
-
|
|
162
|
-
## Troubleshooting
|
|
163
|
-
|
|
164
|
-
### Issue: Triage keeps recommending deep mode
|
|
165
|
-
**Cause**: Prompt has low CLEAR scores + multiple secondary indicators
|
|
166
|
-
**Solution**:
|
|
167
|
-
- Accept the recommendation - deep mode will provide better analysis
|
|
168
|
-
- OR improve prompt manually before running fast mode again
|
|
169
|
-
- Check which CLEAR component is scoring low and address it
|
|
170
|
-
|
|
171
|
-
### Issue: Can't determine if prompt is complex enough for deep mode
|
|
172
|
-
**Cause**: Borderline CLEAR scores or unclear content quality
|
|
173
|
-
**Solution**:
|
|
174
|
-
- Err on side of fast mode first
|
|
175
|
-
- If output feels insufficient, escalate to `/clavix:deep`
|
|
176
|
-
- Use triage as guidance, not absolute rule
|
|
177
|
-
|
|
178
|
-
### Issue: Improved prompt still feels incomplete
|
|
179
|
-
**Cause**: Fast mode only applies C, L, E components
|
|
180
|
-
**Solution**:
|
|
181
|
-
- Use `/clavix:deep` for Adaptive variations and Reflective validation
|
|
182
|
-
- OR use `/clavix:prd` if strategic planning is needed
|
|
183
|
-
- Fast mode is for quick cleanup, not comprehensive analysis
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "Clavix: Implement"
|
|
3
|
-
description: Execute tasks from the implementation plan
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Clavix Implement - AI-Assisted Task Execution
|
|
7
|
-
|
|
8
|
-
You are helping the user implement tasks from their task plan with AI assistance.
|
|
9
|
-
|
|
10
|
-
## Instructions
|
|
11
|
-
|
|
12
|
-
1. **Run the implement command**:
|
|
13
|
-
```bash
|
|
14
|
-
clavix implement
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
This will:
|
|
18
|
-
- Show interactive PRD selection (if multiple projects exist)
|
|
19
|
-
- Locate the `tasks.md` file for the selected/specified project
|
|
20
|
-
- Show current progress
|
|
21
|
-
- Display the next incomplete task
|
|
22
|
-
- Prompt for git auto-commit preferences
|
|
23
|
-
- Create a config file for the AI agent
|
|
24
|
-
|
|
25
|
-
**Note**: You can skip the selection menu by specifying a project:
|
|
26
|
-
```bash
|
|
27
|
-
clavix implement --project my-feature
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
2. **As the AI agent, you should**:
|
|
31
|
-
|
|
32
|
-
a. **Read the configuration**:
|
|
33
|
-
- Load `.clavix-implement-config.json` from the PRD folder
|
|
34
|
-
- This contains: commit strategy, current task, and progress stats
|
|
35
|
-
|
|
36
|
-
b. **Read the PRD for context**:
|
|
37
|
-
- Open the full PRD to understand requirements
|
|
38
|
-
- Reference specific sections mentioned in tasks
|
|
39
|
-
|
|
40
|
-
c. **Read tasks.md**:
|
|
41
|
-
- Find the first incomplete task (marked `- [ ]`)
|
|
42
|
-
- This is your current task to implement
|
|
43
|
-
|
|
44
|
-
d. **Implement the task**:
|
|
45
|
-
- Write/modify code as needed
|
|
46
|
-
- Follow CLEAR principles
|
|
47
|
-
- Use PRD requirements as your guide
|
|
48
|
-
- Ask user for clarification if needed
|
|
49
|
-
|
|
50
|
-
e. **Mark task as completed**:
|
|
51
|
-
- In `tasks.md`, change `- [ ] Task description` to `- [x] Task description`
|
|
52
|
-
- Update only the specific task you just completed
|
|
53
|
-
|
|
54
|
-
f. **Create git commit (if enabled)**:
|
|
55
|
-
- Check the `commitStrategy` in config
|
|
56
|
-
- If `per-task`: commit after each task
|
|
57
|
-
- If `per-5-tasks`: commit after every 5 tasks
|
|
58
|
-
- If `per-phase`: commit when all tasks in a phase are done
|
|
59
|
-
- Use descriptive commit messages with task description
|
|
60
|
-
|
|
61
|
-
g. **Move to next task**:
|
|
62
|
-
- Find the next `- [ ]` task in tasks.md
|
|
63
|
-
- Repeat the process
|
|
64
|
-
|
|
65
|
-
3. **Session Resume**:
|
|
66
|
-
- When user runs `clavix implement` again, it automatically picks up from the last incomplete task
|
|
67
|
-
- No manual tracking needed - the checkboxes in tasks.md are the source of truth
|
|
68
|
-
|
|
69
|
-
## Git Commit Format
|
|
70
|
-
|
|
71
|
-
When creating commits, use this format:
|
|
72
|
-
|
|
73
|
-
```
|
|
74
|
-
clavix: [task description]
|
|
75
|
-
|
|
76
|
-
Completed tasks:
|
|
77
|
-
- Task 1
|
|
78
|
-
- Task 2
|
|
79
|
-
|
|
80
|
-
Project: [project-name]
|
|
81
|
-
Generated by Clavix /clavix:implement
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
## Important Rules
|
|
85
|
-
|
|
86
|
-
**DO**:
|
|
87
|
-
- Read tasks.md to find the current task
|
|
88
|
-
- Implement ONE task at a time
|
|
89
|
-
- Mark tasks complete by changing `[ ]` to `[x]`
|
|
90
|
-
- Create commits based on the strategy in config
|
|
91
|
-
- Reference the PRD for detailed requirements
|
|
92
|
-
- Ask for clarification when tasks are ambiguous
|
|
93
|
-
|
|
94
|
-
**DON'T**:
|
|
95
|
-
- Skip tasks or implement out of order
|
|
96
|
-
- Mark tasks complete before actually implementing them
|
|
97
|
-
- Modify multiple tasks' checkboxes at once (only current task)
|
|
98
|
-
- Create commits if strategy is 'none'
|
|
99
|
-
- Assume what code to write - use PRD as source of truth
|
|
100
|
-
|
|
101
|
-
## Task Blocking Protocol
|
|
102
|
-
|
|
103
|
-
**When a task is blocked** (cannot be completed), follow this protocol:
|
|
104
|
-
|
|
105
|
-
### Step 1: Detect Blocking Issues
|
|
106
|
-
|
|
107
|
-
Common blocking scenarios:
|
|
108
|
-
- **Missing dependencies**: API keys, credentials, external services not available
|
|
109
|
-
- **Unclear requirements**: Task description too vague or conflicts with PRD
|
|
110
|
-
- **External blockers**: Need design assets, content, or third-party integration not ready
|
|
111
|
-
- **Technical blockers**: Required library incompatible, environment issue, access problem
|
|
112
|
-
- **Resource blockers**: Need database, server, or infrastructure not yet set up
|
|
113
|
-
|
|
114
|
-
### Step 2: Immediate User Communication
|
|
115
|
-
|
|
116
|
-
**Stop implementation and ask user immediately:**
|
|
117
|
-
```
|
|
118
|
-
"Task blocked: [Task description]
|
|
119
|
-
|
|
120
|
-
Blocking issue: [Specific blocker, e.g., 'Missing Stripe API key for payment integration']
|
|
121
|
-
|
|
122
|
-
Options to proceed:
|
|
123
|
-
1. **Provide missing resource** - [What user needs to provide]
|
|
124
|
-
2. **Break into sub-tasks** - I can implement [unblocked parts] now and defer [blocked part]
|
|
125
|
-
3. **Skip for now** - Mark as [BLOCKED], continue with next task, return later
|
|
126
|
-
|
|
127
|
-
Which option would you like?"
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### Step 3: Resolution Strategies
|
|
131
|
-
|
|
132
|
-
**Option A: User Provides Resource**
|
|
133
|
-
- Wait for user to provide (API key, design, clarification)
|
|
134
|
-
- Once provided, continue with task implementation
|
|
135
|
-
|
|
136
|
-
**Option B: Create Sub-Tasks** (preferred when possible)
|
|
137
|
-
- Identify what CAN be done without the blocker
|
|
138
|
-
- Break task into unblocked sub-tasks
|
|
139
|
-
- Example: "Implement payment integration" →
|
|
140
|
-
- [x] Create payment service interface (can do now)
|
|
141
|
-
- [ ] [BLOCKED: Need Stripe API key] Integrate Stripe SDK
|
|
142
|
-
- [ ] Add payment UI components (can do now)
|
|
143
|
-
- Implement unblocked sub-tasks, mark blocked ones with [BLOCKED] tag
|
|
144
|
-
|
|
145
|
-
**Option C: Skip and Mark Blocked**
|
|
146
|
-
- Add [BLOCKED] tag to task in tasks.md: `- [ ] [BLOCKED: Missing API key] Task description`
|
|
147
|
-
- Note the blocker reason
|
|
148
|
-
- Move to next task
|
|
149
|
-
- Return to blocked tasks when unblocked
|
|
150
|
-
|
|
151
|
-
### Step 4: Track Blocked Tasks
|
|
152
|
-
|
|
153
|
-
**In tasks.md, use [BLOCKED] notation:**
|
|
154
|
-
```markdown
|
|
155
|
-
## Phase 2: Integration
|
|
156
|
-
- [x] Create API client structure
|
|
157
|
-
- [ ] [BLOCKED: Waiting for API endpoint spec] Implement data sync
|
|
158
|
-
- [ ] Add error handling for API calls
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
**At end of implement session:**
|
|
162
|
-
- List all blocked tasks
|
|
163
|
-
- Remind user what's needed to unblock each one
|
|
164
|
-
- Suggest next steps
|
|
165
|
-
|
|
166
|
-
### Common Blocking Scenarios & Resolutions
|
|
167
|
-
|
|
168
|
-
| Blocker Type | Detection | Resolution |
|
|
169
|
-
|--------------|-----------|------------|
|
|
170
|
-
| Missing API key/credentials | Code requires authentication | Ask user for credentials OR stub with mock for now |
|
|
171
|
-
| Vague requirements | Unclear what to implement | Ask specific questions OR propose implementation for approval |
|
|
172
|
-
| External dependency | Service/API not available | Create interface/mock OR skip and defer |
|
|
173
|
-
| Environment issue | Can't run/test code | Ask user to fix environment OR implement without testing (note risk) |
|
|
174
|
-
| Design/content missing | Need specific assets | Create placeholder OR wait for actual assets |
|
|
175
|
-
|
|
176
|
-
## Example Workflow
|
|
177
|
-
|
|
178
|
-
```
|
|
179
|
-
1. User runs: clavix implement
|
|
180
|
-
2. Command shows: "Next task: Implement user authentication"
|
|
181
|
-
3. You (AI agent):
|
|
182
|
-
- Read PRD authentication requirements
|
|
183
|
-
- Implement auth logic
|
|
184
|
-
- Write tests
|
|
185
|
-
- Update tasks.md: - [x] Implement user authentication
|
|
186
|
-
- Create git commit (if enabled)
|
|
187
|
-
- Find next task in tasks.md
|
|
188
|
-
- Continue or wait for user
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
## Workflow Navigation
|
|
192
|
-
|
|
193
|
-
**You are here:** Implement (Task Execution)
|
|
194
|
-
|
|
195
|
-
**Common workflows:**
|
|
196
|
-
- **Full workflow**: `/clavix:plan` → `/clavix:implement` → [execute all tasks] → `/clavix:archive`
|
|
197
|
-
- **Resume work**: `/clavix:implement` → Continue from last incomplete task
|
|
198
|
-
- **Iterative**: `/clavix:implement` → [complete task] → [pause] → `/clavix:implement` → [continue]
|
|
199
|
-
|
|
200
|
-
**Related commands:**
|
|
201
|
-
- `/clavix:plan` - Generate/regenerate task breakdown (previous step)
|
|
202
|
-
- `/clavix:archive` - Archive completed project (final step)
|
|
203
|
-
- `/clavix:prd` - Review PRD for context during implementation
|
|
204
|
-
|
|
205
|
-
## Tips
|
|
206
|
-
|
|
207
|
-
- The implementation is meant to be iterative and collaborative
|
|
208
|
-
- User can pause/resume at any time
|
|
209
|
-
- Tasks are designed to be atomic and independently implementable
|
|
210
|
-
- Use the PRD as the authoritative source for "what to build"
|
|
211
|
-
- Use tasks.md as the guide for "in what order"
|
|
212
|
-
|
|
213
|
-
## Troubleshooting
|
|
214
|
-
|
|
215
|
-
### Issue: `.clavix-implement-config.json` not found
|
|
216
|
-
**Cause**: User hasn't run `clavix implement` CLI command first
|
|
217
|
-
**Solution** (inline):
|
|
218
|
-
- Error: "Config file not found. Run `clavix implement` first to initialize"
|
|
219
|
-
- CLI creates config and shows first task
|
|
220
|
-
- AI agent should wait for config before proceeding
|
|
221
|
-
|
|
222
|
-
### Issue: Cannot find next incomplete task in tasks.md
|
|
223
|
-
**Cause**: All tasks completed OR tasks.md corrupted
|
|
224
|
-
**Solution**:
|
|
225
|
-
- Check if all tasks are `[x]` - if yes, congratulate completion!
|
|
226
|
-
- Suggest `/clavix:archive` for completed project
|
|
227
|
-
- If tasks.md corrupted, ask user to review/regenerate
|
|
228
|
-
|
|
229
|
-
### Issue: Task description unclear or conflicts with PRD
|
|
230
|
-
**Cause**: Task breakdown was too vague or PRD changed
|
|
231
|
-
**Solution** (inline - covered by Task Blocking Protocol):
|
|
232
|
-
- Stop and ask user for clarification
|
|
233
|
-
- Reference PRD section if mentioned
|
|
234
|
-
- Propose interpretation for user approval
|
|
235
|
-
- Update task description in tasks.md after clarification
|
|
236
|
-
|
|
237
|
-
### Issue: Git commit fails (wrong strategy, hook error, etc.)
|
|
238
|
-
**Cause**: Git configuration issue or commit hook failure
|
|
239
|
-
**Solution**:
|
|
240
|
-
- Show error to user
|
|
241
|
-
- Suggest checking git status manually
|
|
242
|
-
- Ask if should continue without commit or fix issue first
|
|
243
|
-
- Note: Commits are convenience, not blocker - can proceed without
|
|
244
|
-
|
|
245
|
-
### Issue: Multiple [BLOCKED] tasks accumulating
|
|
246
|
-
**Cause**: Dependencies or blockers not being resolved
|
|
247
|
-
**Solution**:
|
|
248
|
-
- After 3+ blocked tasks, pause and report to user
|
|
249
|
-
- List all blockers and what's needed to resolve
|
|
250
|
-
- Ask user to prioritize: unblock tasks OR continue with unblocked ones
|
|
251
|
-
- Consider if project should be paused until blockers cleared
|
|
252
|
-
|
|
253
|
-
### Issue: Task completed but tests failing
|
|
254
|
-
**Cause**: Implementation doesn't meet requirements
|
|
255
|
-
**Solution**:
|
|
256
|
-
- Do NOT mark task as complete if tests fail
|
|
257
|
-
- Fix failing tests before marking [x]
|
|
258
|
-
- If tests are incorrectly written, fix tests first
|
|
259
|
-
- Task isn't done until tests pass
|
|
260
|
-
|
|
261
|
-
### Issue: Implementing in wrong order (skipped dependencies)
|
|
262
|
-
**Cause**: AI agent or user jumped ahead
|
|
263
|
-
**Solution**:
|
|
264
|
-
- Stop and review tasks.md order
|
|
265
|
-
- Check if skipped task was a dependency
|
|
266
|
-
- Implement missed dependency first
|
|
267
|
-
- Follow sequential order unless explicitly instructed otherwise
|