5-phase-workflow 1.1.2 → 1.2.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.
@@ -101,9 +101,14 @@ Use Task tool with subagent_type=Explore for complex exploration.
101
101
 
102
102
  **Goal:** Understand what already exists so you can ask informed questions.
103
103
 
104
- ### Step 4: Intensive Collaboration (5-10 Questions)
104
+ ### Step 4: Intensive Collaboration (5-10 Questions, ONE AT A TIME)
105
105
 
106
- **CRITICAL:** After exploring the codebase, engage in intensive Q&A using the AskUserQuestion tool. Ask 5-10 clarifying questions based on your findings. This is NOT optional.
106
+ **CRITICAL:** After exploring the codebase, engage in intensive Q&A. This is NOT optional.
107
+
108
+ - Ask 5-10 clarifying questions using AskUserQuestion
109
+ - **ONE question at a time** - wait for answer before next question
110
+ - Do NOT list multiple questions in one message
111
+ - Do NOT skip to creating feature.md before asking at least 5 questions
107
112
 
108
113
  **Question categories to explore:**
109
114
 
@@ -154,7 +159,7 @@ Use Task tool with subagent_type=Explore for complex exploration.
154
159
  - "Could we use existing Z component instead?"
155
160
  - "Is a full factory needed or just simple creation?"
156
161
 
157
- Use AskUserQuestion to present options and trade-offs. Multiple questions can be asked in batches.
162
+ **Ask questions ONE AT A TIME.** Use AskUserQuestion for each question. For clarifying questions, provide 2-4 options where meaningful. Wait for the user's answer before asking the next question. Open questions (like feature description) can use free text.
158
163
 
159
164
  ### Step 5: Determine Feature Name
160
165
 
@@ -164,95 +169,25 @@ Based on the feature description and discussion:
164
169
 
165
170
  ### Step 6: Create Feature Specification
166
171
 
167
- Write a comprehensive feature spec to `.5/{TICKET-ID}-{description}/feature.md` with the following structure.
172
+ Write a comprehensive feature spec to `.5/{TICKET-ID}-{description}/feature.md` using the template structure.
168
173
 
169
174
  **THIS IS YOUR FINAL OUTPUT. After creating this file, proceed immediately to Step 7.**
170
175
 
171
- ```markdown
172
- # Feature: {TICKET-ID} - {Title}
173
-
174
- ## Ticket ID
175
- {TICKET-ID}
176
-
177
- ## Summary
178
- {1-2 sentence overview of what will be implemented}
179
-
180
- ## Problem Statement
181
- {Why is this feature needed? What problem does it solve?}
182
-
183
- ## Requirements
184
-
185
- ### Functional Requirements
186
- - {Requirement 1}
187
- - {Requirement 2}
188
- - ...
189
-
190
- ### Non-Functional Requirements
191
- - {Performance requirements}
192
- - {Compatibility requirements}
193
- - ...
194
-
195
- ## Constraints
196
- - {Business constraints}
197
- - {Technical constraints}
198
- - {Time/resource constraints}
199
-
200
- ## Affected Components
201
- - **{component/module-1}** - {What changes here}
202
- - **{component/module-2}** - {What changes here}
203
- - **{component/module-3}** - {What changes here}
204
- - ...
205
-
206
- ## Entity/Component Definitions
207
-
208
- ### {EntityName} (if applicable)
209
- | Field | Type | Required | Description |
210
- |-------|------|----------|-------------|
211
- | id | {Entity}Id | Yes | Unique identifier |
212
- | name | String | Yes | Entity name |
213
- | ... | ... | ... | ... |
176
+ **Template Reference:** Use the structure from `.claude/templates/workflow/FEATURE-SPEC.md`
214
177
 
215
- ### Business Rules
216
- - {Rule 1}
217
- - {Rule 2}
218
- - ...
178
+ The template contains placeholders like `{TICKET-ID}`, `{Title}`, `{1-2 sentence overview}`, etc. Replace all placeholders with actual values based on your research and the Q&A session.
219
179
 
220
- ## Acceptance Criteria
221
- - [ ] {Criterion 1 - how to verify success}
222
- - [ ] {Criterion 2}
223
- - [ ] {Criterion 3}
224
- - ...
225
-
226
- ## Alternatives Considered
227
-
228
- ### Option 1: {Alternative approach}
229
- **Pros:** {Benefits}
230
- **Cons:** {Drawbacks}
231
- **Decision:** Rejected because {reason}
232
-
233
- ### Option 2: {Another alternative}
234
- **Pros:** {Benefits}
235
- **Cons:** {Drawbacks}
236
- **Decision:** Rejected because {reason}
237
-
238
- ### Chosen Approach: {Selected approach}
239
- **Rationale:** {Why this approach was chosen}
240
-
241
- ## Questions & Answers
242
-
243
- ### Q1: {Question from collaboration phase}
244
- **A:** {Answer from developer}
245
-
246
- ### Q2: {Question}
247
- **A:** {Answer}
248
-
249
- ...
250
-
251
- ## Next Steps
252
- After approval:
253
- 1. Run `/clear` to reset context
254
- 2. Run `/5:plan-implementation {TICKET-ID}-{description}`
255
- ```
180
+ Key sections to populate:
181
+ - **Ticket ID & Summary** - From branch extraction and feature description
182
+ - **Problem Statement** - Why this feature is needed
183
+ - **Requirements** - Functional and non-functional requirements from discussion
184
+ - **Constraints** - Business, technical, and time constraints identified
185
+ - **Affected Components** - Discovered from codebase exploration
186
+ - **Entity Definitions** - If the feature involves new data structures
187
+ - **Acceptance Criteria** - Verifiable criteria for success
188
+ - **Alternatives Considered** - Options discussed and why chosen approach was selected
189
+ - **Questions & Answers** - Document the Q&A from the collaboration phase
190
+ - **Next Steps** - Instructions for proceeding to Phase 2
256
191
 
257
192
  ## Instructions
258
193
 
@@ -265,7 +200,7 @@ Follow these steps **IN ORDER** and **STOP after step 8**:
265
200
  5. **Challenge assumptions** - Present alternatives, question complexity
266
201
  6. **Determine feature name** - Create short kebab-case description
267
202
  7. **Create feature specification** in `.5/{TICKET-ID}-{description}/feature.md`
268
- 8. **Inform the developer** to review the spec and then run `/clear` followed by `/5:plan-implementation {TICKET-ID}-{description}`
203
+ 8. **Inform the developer** to review the spec, run `/clear` to reset context, and then run `/5:plan-implementation {TICKET-ID}-{description}`
269
204
 
270
205
  **🛑 STOP HERE. YOUR JOB IS COMPLETE. DO NOT PROCEED TO IMPLEMENTATION.**
271
206
 
@@ -315,7 +250,9 @@ Follow these steps **IN ORDER** and **STOP after step 8**:
315
250
  **Next steps:**
316
251
  1. Review the feature spec
317
252
  2. If changes needed: `/5:discuss-feature PROJ-1234-add-emergency-schedule`
318
- 3. If approved: `/clear` then `/5:plan-implementation PROJ-1234-add-emergency-schedule`"
253
+ 3. If approved:
254
+ - **Run `/clear` to reset context** (recommended between phases)
255
+ - Then run `/5:plan-implementation PROJ-1234-add-emergency-schedule`"
319
256
 
320
257
  **🛑 COMMAND COMPLETE. The skill stops here and waits for user to proceed to Phase 2.**
321
258