clavix 5.8.2 → 5.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -274,7 +274,7 @@ Result: Project permanently deleted
274
274
 
275
275
  ---
276
276
 
277
- ## Agent Transparency (v5.8.2)
277
+ ## Agent Transparency (v5.9.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.8.2)
527
+ ## Agent Transparency (v5.9.0)
528
528
 
529
529
  ### Agent Manual (Universal Protocols)
530
530
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -524,7 +524,7 @@ Wait for the user to decide what to do next.
524
524
 
525
525
  ---
526
526
 
527
- ## Agent Transparency (v5.8.2)
527
+ ## Agent Transparency (v5.9.0)
528
528
 
529
529
  ### Agent Manual (Universal Protocols)
530
530
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -107,30 +107,37 @@ Implementation: BLOCKED - I will create the plan, not the code
107
107
  - Check `.clavix/outputs/<project-name>/` for `full-prd.md`, `quick-prd.md`, etc.
108
108
  - If missing, check legacy `.clavix/outputs/summarize/`.
109
109
  2. **Read PRD**: Ingest the requirements.
110
+ 3. **Extract Architecture**: Look for the "Architecture & Design" section. Note any specific patterns (e.g., Clean Architecture, Feature-Sliced Design) or structural decisions.
110
111
 
111
112
  #### **Phase 3: Task Generation**
112
- 1. **Synthesize**: Combine [PRD Requirements] + [Codebase Patterns].
113
- 2. **Draft Tasks**: Create tasks that specify *exactly* what to change in the code.
114
- 3. **Create `tasks.md`**: Use the format in "Task Format Reference".
115
- 4. **Save to**: `.clavix/outputs/[project-name]/tasks.md`.
113
+ 1. **Synthesize**: Combine [PRD Requirements] + [Codebase Patterns] + [Architecture Decisions].
114
+ 2. **Prioritize Structure**: Ensure initial tasks cover any necessary architectural setup (e.g., creating folders for new layers, setting up base classes).
115
+ 3. **Draft Tasks**: Create tasks that specify *exactly* what to change in the code.
116
+ 4. **Create `tasks.md`**: Use the format in "Task Format Reference".
117
+ 5. **Save to**: `.clavix/outputs/[project-name]/tasks.md`.
116
118
 
117
119
  ### Part B: Behavioral Guidance (Technical Specificity)
118
120
 
119
121
  **Your goal is "Low-Level Engineering Plans", not "High-Level Management Plans".**
120
122
 
121
- 1. **Specific File Paths**:
123
+ 1. **Architecture First**:
124
+ - If the PRD specifies a pattern (e.g., Repository), the first tasks MUST set up that structure.
125
+ - **Bad**: "Implement user feature."
126
+ - **Good**: "Create `src/repositories/UserRepository.ts` interface first, then implementation."
127
+
128
+ 2. **Specific File Paths**:
122
129
  - **Bad**: "Create a user profile component."
123
130
  - **Good**: "Create `src/components/user/UserProfile.tsx`. Export as default."
124
131
 
125
- 2. **Technical Constraints**:
132
+ 3. **Technical Constraints**:
126
133
  - **Bad**: "Add validation."
127
134
  - **Good**: "Use `zod` schema in `src/schemas/user.ts`. Integrate with `react-hook-form`."
128
135
 
129
- 3. **Respect Existing Architecture**:
136
+ 4. **Respect Existing Architecture**:
130
137
  - If the project uses a `services/` folder for API calls, do **not** put `fetch` calls directly in components.
131
138
  - If the project uses `shadcn/ui`, instruct to use those primitives, not raw HTML.
132
139
 
133
- 4. **Granularity**:
140
+ 5. **Granularity**:
134
141
  - Each task should be a single logical unit of work (approx. 20-40 mins).
135
142
  - Separate "Backend API" from "Frontend UI" tasks.
136
143
  - Separate "Type Definition" from "Implementation" if complex.
@@ -150,6 +157,7 @@ Implementation: BLOCKED - I will create the plan, not the code
150
157
 
151
158
  ## Technical Context & Standards
152
159
  *Detected Stack & Patterns*
160
+ - **Architecture**: {e.g., Feature-Sliced Design, Monolith}
153
161
  - **Framework**: {e.g., Next.js 14 App Router}
154
162
  - **Styling**: {e.g., Tailwind CSS + shadcn/ui}
155
163
  - **State**: {e.g., Zustand (stores in /src/store)}
@@ -221,7 +229,7 @@ Present the plan and ask:
221
229
 
222
230
  ---
223
231
 
224
- ## Agent Transparency (v5.8.2)
232
+ ## Agent Transparency (v5.9.0)
225
233
 
226
234
  ### Agent Manual (Universal Protocols)
227
235
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -125,6 +125,11 @@ Both documents are automatically validated for quality (Clarity, Structure, Comp
125
125
  - "Are there performance requirements (load time, concurrent users)?"
126
126
  - **If "I don't know"**: Suggest common stacks based on project type or skip
127
127
 
128
+ **Question 3.5**: Any specific architectural patterns or design choices?
129
+
130
+ - **Optional**
131
+ - **Prompt**: "Do you have preferences for folder structure, design patterns (e.g., Repository, Adapter), or architectural style (Monolith vs Microservices)?"
132
+
128
133
  **Question 4**: What is explicitly OUT of scope? (What are we NOT building?)
129
134
 
130
135
  - **Validation**: At least 1 explicit exclusion
@@ -136,7 +141,7 @@ Both documents are automatically validated for quality (Clarity, Structure, Comp
136
141
 
137
142
  **Question 5**: Any additional context or requirements?
138
143
 
139
- - **Optional**: Press Enter to skip
144
+ - **Optional**
140
145
  - **Helpful areas**: Compliance needs, accessibility, localization, deadlines, team constraints
141
146
 
142
147
  2. **Before proceeding to document generation**, verify minimum viable answers:
@@ -161,6 +166,9 @@ Both documents are automatically validated for quality (Clarity, Structure, Comp
161
166
  ### Technical Requirements
162
167
  [User's answer to Q3, detailed]
163
168
 
169
+ ### Architecture & Design
170
+ [User's answer to Q3.5 if provided]
171
+
164
172
  ## Out of Scope
165
173
  [User's answer to Q4]
166
174
 
@@ -346,7 +354,7 @@ The validation ensures generated PRDs are immediately usable for AI consumption
346
354
 
347
355
  ---
348
356
 
349
- ## Agent Transparency (v5.8.2)
357
+ ## Agent Transparency (v5.9.0)
350
358
 
351
359
  ### Agent Manual (Universal Protocols)
352
360
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -415,7 +415,7 @@ I'll update the PRD and add this to the refinement history. Confirm?
415
415
 
416
416
  ---
417
417
 
418
- ## Agent Transparency (v5.8.2)
418
+ ## Agent Transparency (v5.9.0)
419
419
 
420
420
  ### Agent Manual (Universal Protocols)
421
421
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -98,6 +98,7 @@ Implementation: BLOCKED - I will ask questions and explore needs, not implement
98
98
  2. As the user describes their needs:
99
99
  - Ask clarifying questions about unclear points
100
100
  - Probe for technical constraints
101
+ - Probe for architectural preferences (e.g., 'Do you need a specific structure like Clean Architecture, Microservices, or Feature-Sliced Design?')
101
102
  - Explore edge cases and requirements
102
103
  - Help them think through user needs
103
104
  - Identify potential challenges
@@ -117,6 +118,7 @@ Implementation: BLOCKED - I will ask questions and explore needs, not implement
117
118
  - Target users
118
119
  - Core features
119
120
  - Technical requirements
121
+ - Architecture & Design
120
122
  - Success criteria
121
123
  - Constraints and scope
122
124
 
@@ -228,7 +230,7 @@ The goal is natural exploration of requirements, not a rigid questionnaire. Foll
228
230
 
229
231
  ---
230
232
 
231
- ## Agent Transparency (v5.8.2)
233
+ ## Agent Transparency (v5.9.0)
232
234
 
233
235
  ### Agent Manual (Universal Protocols)
234
236
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -115,6 +115,7 @@ Implementation: BLOCKED - I will extract requirements, not implement them
115
115
  - **Problem/Goal** [confidence]: What is the user trying to build or solve?
116
116
  - **Key Requirements** [confidence per requirement]: What features and functionality were discussed?
117
117
  - **Technical Constraints** [confidence]: Any technologies, integrations, or performance needs?
118
+ - **Architecture & Design** [confidence]: Any specific patterns, structures, or design choices?
118
119
  - **User Needs** [confidence]: Who are the end users and what do they need?
119
120
  - **Success Criteria** [confidence]: How will success be measured?
120
121
  - **Context** [confidence]: Any important background or constraints?
@@ -197,6 +198,11 @@ Implementation: BLOCKED - I will extract requirements, not implement them
197
198
  - **Integrations:** [External systems]
198
199
  - **Other:** [Any other technical constraints]
199
200
 
201
+ ## Architecture & Design
202
+ - **Pattern:** [e.g. Monolith, Microservices, Serverless]
203
+ - **Structure:** [e.g. Feature-based, Layered, Clean Architecture]
204
+ - **Key Decisions:** [Specific design choices made]
205
+
200
206
  ## User Context
201
207
  **Target Users:** [Who will use this?]
202
208
  **Primary Use Case:** [Main problem being solved]
@@ -403,7 +409,7 @@ The `/clavix:summarize` command extracts requirements from exploratory conversat
403
409
 
404
410
  ---
405
411
 
406
- ## Agent Transparency (v5.8.2)
412
+ ## Agent Transparency (v5.9.0)
407
413
 
408
414
  ### Agent Manual (Universal Protocols)
409
415
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
@@ -123,7 +123,7 @@ Implementation: BLOCKED - I'll analyze and report, not modify or fix
123
123
 
124
124
  ----
125
125
 
126
- ## Agent Transparency (v5.8.2)
126
+ ## Agent Transparency (v5.9.0)
127
127
 
128
128
  ### Agent Manual (Universal Protocols)
129
129
  {{INCLUDE:agent-protocols/AGENT_MANUAL.md}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavix",
3
- "version": "5.8.2",
3
+ "version": "5.9.0",
4
4
  "description": "Agentic-first prompt workflows. Markdown templates that teach AI agents how to optimize prompts, create PRDs, and manage implementation.\n\nSLASH COMMANDS (in your AI assistant):\n /clavix:improve Optimize prompts with auto-depth\n /clavix:prd Generate PRD through questions\n /clavix:plan Create task breakdown from PRD\n /clavix:implement Execute tasks with progress tracking\n /clavix:start Begin conversational session\n /clavix:summarize Extract requirements from conversation\n /clavix:refine Refine existing PRD or prompt\n /clavix:verify Verify implementation against requirements\n /clavix:archive Archive completed projects\n\nWorks with Claude Code, Cursor, Windsurf, and 20 AI coding tools.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",