@windagency/valora-plugin-engineering 1.0.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.
@@ -0,0 +1,270 @@
1
+ ---
2
+ name: plan-architecture
3
+ description: Create high-level architectural plan covering technology choices, component boundaries, and integration strategy (Phase 1 of tiered planning)
4
+ experimental: true
5
+ argument-hint: '[--task-id=<id>] [--backlog-file=<path>]'
6
+ allowed-tools:
7
+ - codebase_search
8
+ - read_file
9
+ - grep
10
+ - list_dir
11
+ - glob_file_search
12
+ - run_terminal_cmd # Required for modern CLI tools (jq, yq, rg, fd)
13
+ model: claude-opus-4.6
14
+ agent: lead
15
+ prompts:
16
+ pipeline:
17
+ - stage: load
18
+ prompt: context.load-task
19
+ required: true
20
+ inputs:
21
+ task_id: $ARG_task_id
22
+ backlog_file: $ARG_backlog_file
23
+ outputs:
24
+ - task_details
25
+ - current_acceptance_criteria
26
+ - linked_requirements
27
+ - stage: context
28
+ prompt: context.analyze-task-context
29
+ required: true
30
+ inputs:
31
+ task_description: $STAGE_load.task_details
32
+ outputs:
33
+ - task_scope
34
+ - affected_components
35
+ - relevant_files
36
+ - scope_boundaries
37
+ - stage: architecture
38
+ prompt: plan.define-architecture
39
+ batch: true
40
+ required: true
41
+ inputs:
42
+ task_details: $STAGE_load.task_details
43
+ context_analysis: $STAGE_context.result
44
+ acceptance_criteria: $STAGE_load.current_acceptance_criteria
45
+ outputs:
46
+ - technology_choices
47
+ - component_boundaries
48
+ - integration_points
49
+ - constraints
50
+ - trade_offs
51
+ - go_no_go_criteria
52
+ merge_strategy: sequential
53
+ rollback_on_failure: context
54
+ cache_strategy: stage
55
+ retry_policy:
56
+ max_attempts: 2
57
+ backoff_ms: 1000
58
+ retry_on:
59
+ - error
60
+ - validation_failed
61
+ ---
62
+
63
+ # Architecture Planning Command (Phase 1)
64
+
65
+ ## Role
66
+
67
+ Use the [agent] profile
68
+
69
+ ## Goal
70
+
71
+ **Create a high-level architectural plan** that establishes technology choices, component boundaries, and integration strategy. This is Phase 1 of the tiered planning approach, designed to validate architectural decisions before investing time in detailed implementation planning.
72
+
73
+ **Primary Objectives**:
74
+
75
+ 1. **Select technologies** - Choose appropriate technologies with rationale
76
+ 2. **Define boundaries** - Establish clear component responsibilities
77
+ 3. **Map integrations** - Identify internal and external integration points
78
+ 4. **Document constraints** - Capture technical and business constraints
79
+ 5. **Evaluate trade-offs** - Make and document architectural trade-off decisions
80
+ 6. **Gate decision** - Determine if task is ready for detailed planning
81
+
82
+ **Target duration**: ~5 minutes
83
+
84
+ **This command answers**: "What is the right architecture for this task?"
85
+
86
+ ## Context
87
+
88
+ ### Input Arguments
89
+
90
+ ```plaintext
91
+ $ARGUMENTS
92
+ ```
93
+
94
+ ### Configuration Parameters
95
+
96
+ ```structured
97
+ <details>
98
+ <summary>Architecture Planning Options</summary>
99
+
100
+ **--task-id** (optional)
101
+ - Explicit task ID to load from BACKLOG.md
102
+ - If not provided, loads most recent task from TODO.md
103
+
104
+ **--backlog-file** (optional, default: knowledge-base/BACKLOG.md)
105
+ - Path to the backlog file to load task from
106
+
107
+ </details>
108
+ ```
109
+
110
+ ### Available Context
111
+
112
+ The architecture planning process leverages:
113
+
114
+ - **Task from BACKLOG.md** - Loaded via task-id
115
+ - **Codebase analysis** - Existing patterns, technologies, constraints
116
+ - **Technical standards** - Required tools and frameworks (pnpm, Vitest, Playwright, etc.)
117
+
118
+ ## Rules
119
+
120
+ ### Technology Stack Requirements (TypeScript Projects)
121
+
122
+ When planning for a **TypeScript project**, the following technology stack is **MANDATORY**:
123
+
124
+ | Category | Required Tool | Purpose |
125
+ | ---------------------------- | -------------- | ------------------------------- |
126
+ | **Package Manager** | pnpm | Dependency management |
127
+ | **Unit/Integration Testing** | Vitest | Fast, modern test runner |
128
+ | **E2E Testing** | Playwright | Browser automation |
129
+ | **Test Containers** | Testcontainers | Containerised test dependencies |
130
+
131
+ ### Architecture Plan Requirements
132
+
133
+ Every architecture plan MUST include:
134
+
135
+ 1. **Technology Choices** - Selected technologies with rationale and alternatives considered
136
+ 2. **Component Boundaries** - Clear responsibilities and interfaces
137
+ 3. **Integration Points** - Internal and external integration mapping
138
+ 4. **Constraints** - Technical, business, and resource constraints
139
+ 5. **Trade-offs** - Key decisions with implications
140
+ 6. **Go/No-Go Criteria** - Prerequisites for proceeding to detailed planning
141
+
142
+ ## Process Steps
143
+
144
+ ### Pipeline Overview
145
+
146
+ 1. **Load Task** (`context.load-task`)
147
+ - Load task details from BACKLOG.md
148
+ - Extract acceptance criteria and requirements
149
+ - Output: Task details, acceptance criteria
150
+
151
+ 2. **Analyse Context** (`context.analyze-task-context`)
152
+ - Parse requirements and identify affected components
153
+ - Locate relevant files and patterns
154
+ - Output: Task scope, affected components, relevant files
155
+
156
+ 3. **Define Architecture** (`plan.define-architecture`)
157
+ - Select technologies with trade-off analysis
158
+ - Define component responsibilities and boundaries
159
+ - Map integration points
160
+ - Document constraints
161
+ - Establish go/no-go criteria
162
+ - Output: Architecture plan sections
163
+
164
+ ### Final Architecture Plan
165
+
166
+ Compile outputs using the `PLAN_ARCHITECTURE.md` template:
167
+
168
+ ```markdown
169
+ # Architecture Plan: [TASK-ID] - [Task Title]
170
+
171
+ ## Overview
172
+
173
+ [Task summary and context]
174
+
175
+ ## 1. Technology Choices
176
+
177
+ [Selected technologies with rationale]
178
+
179
+ ## 2. Component Boundaries
180
+
181
+ [Component responsibilities and interfaces]
182
+
183
+ ## 3. Integration Points
184
+
185
+ [Internal and external integrations]
186
+
187
+ ## 4. Key Constraints
188
+
189
+ [Technical, business, resource constraints]
190
+
191
+ ## 5. Trade-offs
192
+
193
+ [Key decisions with implications]
194
+
195
+ ## 6. Go/No-Go Criteria
196
+
197
+ [Prerequisites and validation checks]
198
+
199
+ ## 7. Open Questions
200
+
201
+ [Items requiring clarification]
202
+ ```
203
+
204
+ ## Output Requirements
205
+
206
+ ### Architecture Plan Quality Checklist
207
+
208
+ - [ ] **Technology choices documented** - With rationale for each
209
+ - [ ] **Alternatives considered** - With rejection reasons
210
+ - [ ] **Component boundaries clear** - Single responsibility per component
211
+ - [ ] **Integration points mapped** - Internal and external
212
+ - [ ] **Constraints explicit** - Technical, business, resource
213
+ - [ ] **Trade-offs documented** - With implications
214
+ - [ ] **Go/No-Go criteria defined** - All prerequisites listed
215
+
216
+ ### Success Criteria
217
+
218
+ A successful architecture plan enables:
219
+
220
+ 1. **Quick validation** - Stakeholders can assess approach in ~5 minutes
221
+ 2. **Go/No-Go decision** - Clear criteria for proceeding
222
+ 3. **Foundation for detail** - Sufficient context for implementation planning
223
+ 4. **Risk identification** - Major risks visible early
224
+
225
+ ## Document Generation
226
+
227
+ **File**: `knowledge-base/PLAN-ARCH-[TASK-ID].md`
228
+
229
+ **Ask user**: "Would you like me to create `knowledge-base/PLAN-ARCH-[TASK-ID].md` with the architecture plan?"
230
+
231
+ ## Command Output Summary
232
+
233
+ Print the following summary at command completion:
234
+
235
+ ```markdown
236
+ ## Architecture Plan Created
237
+
238
+ **Task**: [TASK-ID] - [Title]
239
+
240
+ ### Architecture Summary
241
+
242
+ - **Technologies**: [Key technologies selected]
243
+ - **Components**: [N] components defined
244
+ - **Integrations**: [N] integration points
245
+ - **Constraints**: [N] constraints identified
246
+
247
+ ### Go/No-Go Status
248
+
249
+ - Prerequisites: [X/Y] met
250
+ - Validation checks: [X/Y] passed
251
+ - **Decision**: [GO / NO-GO / PENDING]
252
+
253
+ ### Document Generated
254
+
255
+ -> `knowledge-base/PLAN-ARCH-[TASK-ID].md`
256
+
257
+ ### Next Step
258
+
259
+ -> If GO: `/plan-implementation --arch-plan=PLAN-ARCH-[TASK-ID].md`
260
+ -> If NO-GO: Address blocking issues listed above
261
+ ```
262
+
263
+ ### Handoff to Next Phase
264
+
265
+ The architecture plan becomes input to:
266
+
267
+ - **plan-implementation** - For detailed implementation breakdown (if GO)
268
+ - **review-plan** - For architecture validation (optional)
269
+
270
+ **Recommended Next Command**: `/plan-implementation` to create detailed implementation plan
@@ -0,0 +1,314 @@
1
+ ---
2
+ name: plan-implementation
3
+ description: Create detailed implementation plan with step-by-step tasks, dependencies, and rollback procedures (Phase 2 of tiered planning)
4
+ experimental: true
5
+ argument-hint: '[--arch-plan=<path>] [--task-id=<id>]'
6
+ allowed-tools:
7
+ - codebase_search
8
+ - read_file
9
+ - grep
10
+ - list_dir
11
+ - glob_file_search
12
+ - run_terminal_cmd # Required for modern CLI tools (jq, yq, rg, fd)
13
+ model: claude-opus-4.6
14
+ agent: lead
15
+ prompts:
16
+ pipeline:
17
+ - stage: load-arch
18
+ prompt: context.load-architecture-plan
19
+ required: true
20
+ inputs:
21
+ arch_plan: $ARG_arch_plan
22
+ task_id: $ARG_task_id
23
+ outputs:
24
+ - architecture_decisions
25
+ - technology_choices
26
+ - component_boundaries
27
+ - integration_points
28
+ - constraints
29
+ - stage: dependencies
30
+ prompt: plan.identify-dependencies
31
+ required: true
32
+ inputs:
33
+ architecture: $STAGE_load-arch.result
34
+ outputs:
35
+ - technical_dependencies
36
+ - data_dependencies
37
+ - integration_dependencies
38
+ - execution_order
39
+ - stage: risks
40
+ prompt: plan.assess-risks
41
+ batch: true
42
+ required: true
43
+ inputs:
44
+ architecture: $STAGE_load-arch.result
45
+ dependencies: $STAGE_dependencies.result
46
+ outputs:
47
+ - technical_risks
48
+ - business_risks
49
+ - operational_risks
50
+ - mitigation_strategies
51
+ - risk_score
52
+ - stage: breakdown
53
+ prompt: plan.breakdown-implementation
54
+ batch: true
55
+ required: true
56
+ inputs:
57
+ architecture: $STAGE_load-arch.result
58
+ dependencies: $STAGE_dependencies.result
59
+ risks: $STAGE_risks.result
60
+ outputs:
61
+ - implementation_steps
62
+ - testing_strategy
63
+ - rollback_strategy
64
+ - effort_estimate
65
+ merge_strategy: sequential
66
+ rollback_on_failure: load-arch
67
+ cache_strategy: stage
68
+ retry_policy:
69
+ max_attempts: 2
70
+ backoff_ms: 1000
71
+ retry_on:
72
+ - error
73
+ - validation_failed
74
+ ---
75
+
76
+ # Implementation Planning Command (Phase 2)
77
+
78
+ ## Role
79
+
80
+ Use the [agent] profile
81
+
82
+ ## Goal
83
+
84
+ **Create a detailed implementation plan** with step-by-step tasks, explicit dependencies, risk mitigations, and rollback procedures. This is Phase 2 of the tiered planning approach, building on the approved architecture plan.
85
+
86
+ **Primary Objectives**:
87
+
88
+ 1. **Break down work** - Create atomic, executable implementation steps
89
+ 2. **Map dependencies** - Explicit technical, data, and integration dependencies
90
+ 3. **Mitigate risks** - Per-step risk identification with mitigation strategies
91
+ 4. **Define testing** - Comprehensive testing strategy (unit/integration/E2E)
92
+ 5. **Plan rollback** - Quick rollback procedures for each step
93
+ 6. **Estimate effort** - Realistic effort estimates with confidence levels
94
+
95
+ **Target duration**: ~10 minutes
96
+
97
+ **This command answers**: "How exactly should we implement this task?"
98
+
99
+ ## Context
100
+
101
+ ### Input Arguments
102
+
103
+ ```plaintext
104
+ $ARGUMENTS
105
+ ```
106
+
107
+ ### Configuration Parameters
108
+
109
+ ```structured
110
+ <details>
111
+ <summary>Implementation Planning Options</summary>
112
+
113
+ **--arch-plan** (required if --task-id not provided)
114
+ - Path to approved architecture plan
115
+ - Example: `knowledge-base/PLAN-ARCH-TASK-001.md`
116
+
117
+ **--task-id** (optional)
118
+ - Task ID to derive architecture plan path
119
+ - Will look for `knowledge-base/PLAN-ARCH-[TASK-ID].md`
120
+
121
+ </details>
122
+ ```
123
+
124
+ ### Prerequisites
125
+
126
+ This command requires an approved architecture plan:
127
+
128
+ - Created via `/plan-architecture`
129
+ - Go/No-Go decision: **GO**
130
+ - All prerequisites met
131
+
132
+ ### Available Context
133
+
134
+ The implementation planning process inherits:
135
+
136
+ - **Architecture decisions** - From architecture plan
137
+ - **Technology choices** - Selected technologies and rationale
138
+ - **Component boundaries** - Defined responsibilities
139
+ - **Integration points** - Internal and external integrations
140
+ - **Constraints** - Technical, business, resource constraints
141
+
142
+ ## Rules
143
+
144
+ ### Technology Stack Requirements (TypeScript Projects)
145
+
146
+ Inherit from architecture plan. Ensure all implementation steps use:
147
+
148
+ | Category | Required Tool |
149
+ | ---------------------------- | -------------- |
150
+ | **Package Manager** | pnpm |
151
+ | **Unit/Integration Testing** | Vitest |
152
+ | **E2E Testing** | Playwright |
153
+ | **Test Containers** | Testcontainers |
154
+
155
+ ### Implementation Plan Requirements
156
+
157
+ Every implementation plan MUST include:
158
+
159
+ 1. **Implementation Steps** - Atomic steps with file paths and validation criteria
160
+ 2. **Dependency Map** - Execution order with parallelisation opportunities
161
+ 3. **Risk Mitigations** - Per-step risks with mitigation strategies
162
+ 4. **Testing Strategy** - Unit, integration, E2E coverage per step
163
+ 5. **Rollback Procedures** - Quick rollback for each step
164
+ 6. **Effort Breakdown** - Per-step estimates with confidence levels
165
+
166
+ ### Step Quality Criteria
167
+
168
+ Each implementation step MUST have:
169
+
170
+ - **Single objective** - One clear goal per step
171
+ - **File paths** - Specific files to create/modify/delete
172
+ - **Implementation details** - Code snippets or pseudocode
173
+ - **Validation criteria** - How to verify step completion
174
+ - **Rollback procedure** - How to revert if needed
175
+
176
+ ## Process Steps
177
+
178
+ ### Pipeline Overview
179
+
180
+ 1. **Load Architecture Plan** (`context.load-architecture-plan`)
181
+ - Load approved architecture plan
182
+ - Extract key decisions and constraints
183
+ - Output: Architecture decisions, technology choices, boundaries
184
+
185
+ 2. **Identify Dependencies** (`plan.identify-dependencies`)
186
+ - Map technical, data, integration dependencies
187
+ - Determine execution order
188
+ - Identify parallelisation opportunities
189
+ - Output: Dependency graph, execution order, critical path
190
+
191
+ 3. **Assess Risks** (`plan.assess-risks`)
192
+ - Identify per-step risks
193
+ - Define mitigation strategies
194
+ - Establish fallback procedures
195
+ - Output: Risk registry, mitigations, risk score
196
+
197
+ 4. **Break Down Implementation** (`plan.breakdown-implementation`)
198
+ - Create atomic implementation steps
199
+ - Define testing strategy per step
200
+ - Document rollback procedures
201
+ - Estimate effort with confidence
202
+ - Output: Implementation steps, testing strategy, rollback plan, effort
203
+
204
+ ### Final Implementation Plan
205
+
206
+ Compile outputs using the `PLAN_IMPLEMENTATION.md` template:
207
+
208
+ ```markdown
209
+ # Implementation Plan: [TASK-ID] - [Task Title]
210
+
211
+ ## Overview
212
+
213
+ [Task summary with link to architecture plan]
214
+
215
+ ## 1. Implementation Steps
216
+
217
+ [Step-by-step breakdown with file paths]
218
+
219
+ ## 2. Dependency Map
220
+
221
+ [Execution order and parallelisation]
222
+
223
+ ## 3. Risk Mitigations
224
+
225
+ [Per-step risks with strategies]
226
+
227
+ ## 4. Testing Strategy
228
+
229
+ [Unit/integration/E2E coverage]
230
+
231
+ ## 5. Rollback Procedures
232
+
233
+ [Quick rollback for each step]
234
+
235
+ ## 6. Effort Breakdown
236
+
237
+ [Per-step estimates with confidence]
238
+
239
+ ## 7. Implementation Checklist
240
+
241
+ [Pre/post implementation validation]
242
+ ```
243
+
244
+ ## Output Requirements
245
+
246
+ ### Implementation Plan Quality Checklist
247
+
248
+ - [ ] **All steps atomic** - Single objective per step
249
+ - [ ] **File paths explicit** - Specific files for each step
250
+ - [ ] **Dependencies mapped** - Execution order clear
251
+ - [ ] **Risks mitigated** - Each risk has strategy
252
+ - [ ] **Testing complete** - Unit + integration + E2E where applicable
253
+ - [ ] **Rollback documented** - Quick procedure for each step
254
+ - [ ] **Effort estimated** - With confidence level
255
+
256
+ ### Success Criteria
257
+
258
+ A successful implementation plan enables:
259
+
260
+ 1. **Confident execution** - Engineer can implement without confusion
261
+ 2. **Progress tracking** - Can monitor completion by step
262
+ 3. **Risk management** - Known risks with mitigation plans
263
+ 4. **Quality assurance** - Clear testing approach per step
264
+ 5. **Safe rollback** - Can revert any step quickly
265
+
266
+ ## Document Generation
267
+
268
+ **File**: `knowledge-base/PLAN-IMPL-[TASK-ID].md`
269
+
270
+ **Ask user**: "Would you like me to create `knowledge-base/PLAN-IMPL-[TASK-ID].md` with the implementation plan?"
271
+
272
+ ## Command Output Summary
273
+
274
+ Print the following summary at command completion:
275
+
276
+ ```markdown
277
+ ## Implementation Plan Created
278
+
279
+ **Task**: [TASK-ID] - [Title]
280
+ **Architecture Plan**: PLAN-ARCH-[TASK-ID].md
281
+
282
+ ### Plan Summary
283
+
284
+ - **Steps**: [N] implementation steps
285
+ - **Dependencies**: [N] mapped dependencies
286
+ - **Risks**: [N] identified ([critical] critical)
287
+ - **Risk Level**: [Low | Medium | High]
288
+
289
+ ### Effort Estimate
290
+
291
+ - **Total**: [X] story points
292
+ - **Confidence**: [High | Medium | Low]
293
+
294
+ ### Documents Generated
295
+
296
+ -> `knowledge-base/PLAN-IMPL-[TASK-ID].md`
297
+
298
+ ### Quality Gate
299
+
300
+ -> Run `/review-plan --checklist` to validate before implementation
301
+
302
+ ### Next Step
303
+
304
+ -> `/implement --plan=PLAN-IMPL-[TASK-ID].md` to start implementation
305
+ ```
306
+
307
+ ### Handoff to Next Phase
308
+
309
+ The implementation plan becomes input to:
310
+
311
+ - **review-plan** - For validation before implementation
312
+ - **implement** - For direct execution (if plan approved)
313
+
314
+ **Recommended Next Command**: `/review-plan --checklist` to validate plan quality