5-phase-workflow 1.1.1 → 1.2.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.
@@ -19,6 +19,41 @@ This skill is the **first phase** of the 5-phase workflow:
19
19
 
20
20
  This skill guides intensive collaboration with the developer to understand requirements, challenge assumptions, and create a comprehensive feature specification.
21
21
 
22
+ ## ⚠️ CRITICAL SCOPE CONSTRAINT
23
+
24
+ **THIS COMMAND ONLY CREATES THE FEATURE SPECIFICATION. IT DOES NOT IMPLEMENT.**
25
+
26
+ Your job in this phase:
27
+ ✅ Ask questions
28
+ ✅ Explore codebase
29
+ ✅ Create feature.md file
30
+ ✅ Tell user to run /5:plan-implementation
31
+
32
+ Your job is NOT:
33
+ ❌ Create implementation plans
34
+ ❌ Map to technical components
35
+ ❌ Write any code
36
+ ❌ Start implementation
37
+
38
+ **After creating feature.md and informing the user, YOUR JOB IS COMPLETE. EXIT IMMEDIATELY.**
39
+
40
+ ## ❌ Boundaries: What This Command Does NOT Do
41
+
42
+ **CRITICAL:** This command has a LIMITED scope. Do NOT:
43
+
44
+ - ❌ **Create implementation plans** - That's Phase 2 (`/5:plan-implementation`)
45
+ - ❌ **Map components to skills** - That's Phase 2's job
46
+ - ❌ **Start any implementation** - That's Phase 3 (`/5:implement-feature`)
47
+ - ❌ **Write any code** - Not even example code
48
+ - ❌ **Create TodoWrite task lists** - Wrong phase
49
+ - ❌ Ask for ticket ID (extract from branch name automatically)
50
+ - ❌ Skip asking for feature description first
51
+ - ❌ Ask questions before exploring the codebase
52
+ - ❌ Skip the intensive Q&A phase
53
+ - ❌ Accept vague requirements
54
+
55
+ **If you find yourself doing any of the above, STOP IMMEDIATELY. You are exceeding this command's scope.**
56
+
22
57
  ## Planning Process
23
58
 
24
59
  ### Step 1: Gather Feature Description
@@ -129,96 +164,30 @@ Based on the feature description and discussion:
129
164
 
130
165
  ### Step 6: Create Feature Specification
131
166
 
132
- Write a comprehensive feature spec to `.5/{TICKET-ID}-{description}/feature.md` with the following structure:
133
-
134
- ```markdown
135
- # Feature: {TICKET-ID} - {Title}
136
-
137
- ## Ticket ID
138
- {TICKET-ID}
139
-
140
- ## Summary
141
- {1-2 sentence overview of what will be implemented}
142
-
143
- ## Problem Statement
144
- {Why is this feature needed? What problem does it solve?}
145
-
146
- ## Requirements
147
-
148
- ### Functional Requirements
149
- - {Requirement 1}
150
- - {Requirement 2}
151
- - ...
152
-
153
- ### Non-Functional Requirements
154
- - {Performance requirements}
155
- - {Compatibility requirements}
156
- - ...
157
-
158
- ## Constraints
159
- - {Business constraints}
160
- - {Technical constraints}
161
- - {Time/resource constraints}
167
+ Write a comprehensive feature spec to `.5/{TICKET-ID}-{description}/feature.md` using the template structure.
162
168
 
163
- ## Affected Components
164
- - **{component/module-1}** - {What changes here}
165
- - **{component/module-2}** - {What changes here}
166
- - **{component/module-3}** - {What changes here}
167
- - ...
169
+ **THIS IS YOUR FINAL OUTPUT. After creating this file, proceed immediately to Step 7.**
168
170
 
169
- ## Entity/Component Definitions
171
+ **Template Reference:** Use the structure from `.claude/templates/workflow/FEATURE-SPEC.md`
170
172
 
171
- ### {EntityName} (if applicable)
172
- | Field | Type | Required | Description |
173
- |-------|------|----------|-------------|
174
- | id | {Entity}Id | Yes | Unique identifier |
175
- | name | String | Yes | Entity name |
176
- | ... | ... | ... | ... |
173
+ 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.
177
174
 
178
- ### Business Rules
179
- - {Rule 1}
180
- - {Rule 2}
181
- - ...
182
-
183
- ## Acceptance Criteria
184
- - [ ] {Criterion 1 - how to verify success}
185
- - [ ] {Criterion 2}
186
- - [ ] {Criterion 3}
187
- - ...
188
-
189
- ## Alternatives Considered
190
-
191
- ### Option 1: {Alternative approach}
192
- **Pros:** {Benefits}
193
- **Cons:** {Drawbacks}
194
- **Decision:** Rejected because {reason}
195
-
196
- ### Option 2: {Another alternative}
197
- **Pros:** {Benefits}
198
- **Cons:** {Drawbacks}
199
- **Decision:** Rejected because {reason}
200
-
201
- ### Chosen Approach: {Selected approach}
202
- **Rationale:** {Why this approach was chosen}
203
-
204
- ## Questions & Answers
205
-
206
- ### Q1: {Question from collaboration phase}
207
- **A:** {Answer from developer}
208
-
209
- ### Q2: {Question}
210
- **A:** {Answer}
211
-
212
- ...
213
-
214
- ## Next Steps
215
- After approval:
216
- 1. Run `/clear` to reset context
217
- 2. Run `/5:plan-implementation {TICKET-ID}-{description}`
218
- ```
175
+ Key sections to populate:
176
+ - **Ticket ID & Summary** - From branch extraction and feature description
177
+ - **Problem Statement** - Why this feature is needed
178
+ - **Requirements** - Functional and non-functional requirements from discussion
179
+ - **Constraints** - Business, technical, and time constraints identified
180
+ - **Affected Components** - Discovered from codebase exploration
181
+ - **Entity Definitions** - If the feature involves new data structures
182
+ - **Acceptance Criteria** - Verifiable criteria for success
183
+ - **Alternatives Considered** - Options discussed and why chosen approach was selected
184
+ - **Questions & Answers** - Document the Q&A from the collaboration phase
185
+ - **Next Steps** - Instructions for proceeding to Phase 2
219
186
 
220
187
  ## Instructions
221
188
 
189
+ Follow these steps **IN ORDER** and **STOP after step 8**:
190
+
222
191
  1. **Ask for feature description** - Request task description and additional information from developer
223
192
  2. **Extract Ticket ID** - Get current branch name and extract ticket ID using configured pattern
224
193
  3. **Explore the codebase** - Understand existing patterns and affected modules
@@ -226,7 +195,9 @@ After approval:
226
195
  5. **Challenge assumptions** - Present alternatives, question complexity
227
196
  6. **Determine feature name** - Create short kebab-case description
228
197
  7. **Create feature specification** in `.5/{TICKET-ID}-{description}/feature.md`
229
- 8. **Inform the developer** to review the spec and then run `/plan-implementation {TICKET-ID}-{description}`
198
+ 8. **Inform the developer** to review the spec, run `/clear` to reset context, and then run `/5:plan-implementation {TICKET-ID}-{description}`
199
+
200
+ **🛑 STOP HERE. YOUR JOB IS COMPLETE. DO NOT PROCEED TO IMPLEMENTATION.**
230
201
 
231
202
  ## Key Principles
232
203
 
@@ -239,16 +210,6 @@ After approval:
239
210
  7. **Structured output** - Use the feature spec template consistently
240
211
  8. **Clear handoff** - Tell developer what to do next
241
212
 
242
- ## DO NOT in This Skill
243
-
244
- - DO NOT ask for ticket ID (extract from branch name automatically)
245
- - DO NOT skip asking for feature description first
246
- - DO NOT ask questions before exploring the codebase
247
- - DO NOT create TodoWrite task lists (that's Phase 2's job)
248
- - DO NOT map components to skills (that's Phase 2's job)
249
- - DO NOT start implementation (that's Phase 3's job)
250
- - DO NOT skip the intensive Q&A phase
251
- - DO NOT accept vague requirements
252
213
 
253
214
  ## Common Feature Types
254
215
 
@@ -279,8 +240,16 @@ After approval:
279
240
  7. Skill challenges: "Could we reuse existing scheduling infrastructure instead of creating new one?"
280
241
  8. Skill determines: Feature name `add-emergency-schedule`
281
242
  9. Skill creates: `.5/PROJ-1234-add-emergency-schedule/feature.md`
282
- 10. Skill tells user: "Feature spec created. Please review and then run `/clear` followed by `/5:plan-implementation PROJ-1234-add-emergency-schedule`"
283
- 11. Skill tells user: "If the feature needs refinements, run `/5:discuss-feature PROJ-1234-add-emergency-schedule`"
243
+ 10. Skill tells user: "Feature spec created at `.5/PROJ-1234-add-emergency-schedule/feature.md`
244
+
245
+ **Next steps:**
246
+ 1. Review the feature spec
247
+ 2. If changes needed: `/5:discuss-feature PROJ-1234-add-emergency-schedule`
248
+ 3. If approved:
249
+ - **Run `/clear` to reset context** (recommended between phases)
250
+ - Then run `/5:plan-implementation PROJ-1234-add-emergency-schedule`"
251
+
252
+ **🛑 COMMAND COMPLETE. The skill stops here and waits for user to proceed to Phase 2.**
284
253
 
285
254
  ## Related Documentation
286
255