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.
- package/README.md +2 -16
- package/bin/install.js +20 -12
- package/docs/findings.md +361 -0
- package/docs/progress.md +102 -0
- package/docs/workflow-guide.md +39 -12
- package/package.json +1 -1
- package/src/commands/5/configure.md +47 -3
- package/src/commands/5/discuss-feature.md +42 -11
- package/src/commands/5/implement-feature.md +168 -457
- package/src/commands/5/plan-feature.md +65 -96
- package/src/commands/5/plan-implementation.md +136 -361
- package/src/commands/5/quick-implement.md +79 -40
- package/src/commands/5/review-code.md +234 -187
- package/src/commands/5/verify-implementation.md +296 -232
- package/src/skills/configure-project/SKILL.md +1 -1
- package/src/templates/workflow/FEATURE-SPEC.md +83 -0
- package/src/templates/workflow/FIX-PLAN.md +55 -0
- package/src/templates/workflow/PLAN.md +30 -0
- package/src/templates/workflow/QUICK-PLAN.md +17 -0
- package/src/templates/workflow/REVIEW-FINDINGS.md +58 -0
- package/src/templates/workflow/REVIEW-SUMMARY.md +35 -0
- package/src/templates/workflow/STATE.json +9 -0
- package/src/templates/workflow/VERIFICATION-REPORT.md +95 -0
- package/src/agents/integration-agent.md +0 -220
- package/src/agents/review-processor.md +0 -161
- package/src/agents/step-executor.md +0 -109
- package/src/agents/step-fixer.md +0 -133
- package/src/agents/step-verifier.md +0 -126
- package/src/agents/verification-agent.md +0 -445
|
@@ -19,6 +19,37 @@ After running this command, proceed through the standard phases:
|
|
|
19
19
|
4. `/5:verify-implementation` - Verify configuration
|
|
20
20
|
5. `/5:review-code` - Review generated files
|
|
21
21
|
|
|
22
|
+
## ⚠️ CRITICAL SCOPE CONSTRAINT
|
|
23
|
+
|
|
24
|
+
**THIS COMMAND ONLY CREATES THE CONFIGURATION FEATURE SPEC. IT DOES NOT CONFIGURE.**
|
|
25
|
+
|
|
26
|
+
Your job in this command:
|
|
27
|
+
✅ Analyze project (detect type, build commands, etc.)
|
|
28
|
+
✅ Gather user preferences via questions
|
|
29
|
+
✅ Create feature spec at `.5/CONFIGURE/feature.md`
|
|
30
|
+
✅ Tell user to run /5:plan-implementation CONFIGURE
|
|
31
|
+
|
|
32
|
+
Your job is NOT:
|
|
33
|
+
❌ Write config.json directly (Phase 3 does this)
|
|
34
|
+
❌ Create CLAUDE.md directly (Phase 3 does this)
|
|
35
|
+
❌ Generate skills directly (Phase 3 does this)
|
|
36
|
+
❌ Skip user interaction
|
|
37
|
+
❌ Assume project structure
|
|
38
|
+
|
|
39
|
+
**After creating the feature spec and informing the user, YOUR JOB IS COMPLETE. EXIT IMMEDIATELY.**
|
|
40
|
+
|
|
41
|
+
## ❌ Boundaries: What This Command Does NOT Do
|
|
42
|
+
|
|
43
|
+
**CRITICAL:** This command has a LIMITED scope. Do NOT:
|
|
44
|
+
|
|
45
|
+
- ❌ **Write config.json** - That's Phase 3's job (via configure-project skill)
|
|
46
|
+
- ❌ **Create CLAUDE.md** - That's Phase 3's job
|
|
47
|
+
- ❌ **Generate skills** - That's Phase 3's job
|
|
48
|
+
- ❌ **Skip questions** - Always confirm detected values with user
|
|
49
|
+
- ❌ **Assume structure** - Detect or ask, don't guess
|
|
50
|
+
|
|
51
|
+
**If you find yourself creating config files or CLAUDE.md, STOP IMMEDIATELY. You should only be creating the feature spec.**
|
|
52
|
+
|
|
22
53
|
## Configuration Process
|
|
23
54
|
|
|
24
55
|
### Step 1: Analyze Project (auto-detect, no user interaction)
|
|
@@ -153,11 +184,24 @@ fi
|
|
|
153
184
|
- "Suggested test command: `{command}`. Use this?"
|
|
154
185
|
- Options: "Yes (recommended)", "Customize", "None (no test step)"
|
|
155
186
|
|
|
156
|
-
**2f.
|
|
187
|
+
**2f. Review tool preference:**
|
|
188
|
+
- "Which code review tool would you like to use?"
|
|
189
|
+
- Options:
|
|
190
|
+
1. "Claude (built-in, no setup needed)" — always available
|
|
191
|
+
2. "CodeRabbit CLI (requires installation)" — external tool
|
|
192
|
+
3. "None (skip automated review)"
|
|
193
|
+
- If user selects CodeRabbit and it was not detected in Step 1d:
|
|
194
|
+
- Inform: "CodeRabbit CLI is not installed. You can install it later:"
|
|
195
|
+
- macOS: `brew install --cask coderabbit`
|
|
196
|
+
- Other: `curl -fsSL https://cli.coderabbit.ai/install.sh | sh`
|
|
197
|
+
- Then: `coderabbit auth login`
|
|
198
|
+
- Record the preference as `coderabbit` regardless (will prompt at review time if still missing)
|
|
199
|
+
|
|
200
|
+
**2g. Confirm CLAUDE.md generation:**
|
|
157
201
|
- "Generate/update CLAUDE.md? This will analyze your codebase to document structure and conventions."
|
|
158
202
|
- Options: "Yes (recommended)", "Skip"
|
|
159
203
|
|
|
160
|
-
**
|
|
204
|
+
**2h. Confirm project-specific skills:**
|
|
161
205
|
- Present proposed skills based on detected project type (see skill table in configure-project/SKILL.md)
|
|
162
206
|
- "These project-specific skills were detected for your {project-type} project: {skill-list}. Confirm or customize?"
|
|
163
207
|
- Options: "Use these (recommended)", "Customize", "Skip skill generation"
|
|
@@ -186,7 +230,7 @@ Create `.claude/.5/config.json` with the following values:
|
|
|
186
230
|
- Test timeout: 300000ms
|
|
187
231
|
- CodeRabbit: {available/not-available}, authenticated: {yes/no}
|
|
188
232
|
- IDE integration: {available/not-available}, type: {type}
|
|
189
|
-
- Review tool: {coderabbit/none}
|
|
233
|
+
- Review tool: {claude/coderabbit/none}
|
|
190
234
|
|
|
191
235
|
### Requirement 2: Generate Documentation Files
|
|
192
236
|
Analyze the codebase and generate modular documentation:
|
|
@@ -19,6 +19,41 @@ This skill is part of **Phase 1** (Feature Planning) of the 5-phase workflow:
|
|
|
19
19
|
|
|
20
20
|
This skill enables **optional iterative refinement** of feature specs after initial planning through discussion, clarification, and requirement changes. Use it when the initial spec needs adjustments before proceeding to implementation planning.
|
|
21
21
|
|
|
22
|
+
## ⚠️ CRITICAL SCOPE CONSTRAINT
|
|
23
|
+
|
|
24
|
+
**THIS COMMAND ONLY UPDATES FEATURE SPECIFICATIONS. IT DOES NOT PLAN OR IMPLEMENT.**
|
|
25
|
+
|
|
26
|
+
Your job in this command:
|
|
27
|
+
✅ Read existing feature specification
|
|
28
|
+
✅ Ask what user wants to discuss
|
|
29
|
+
✅ Explore codebase if needed for context
|
|
30
|
+
✅ Ask clarifying questions
|
|
31
|
+
✅ Update feature specification
|
|
32
|
+
✅ Tell user to run /5:plan-implementation
|
|
33
|
+
|
|
34
|
+
Your job is NOT:
|
|
35
|
+
❌ Create new feature specs (use /5:plan-feature)
|
|
36
|
+
❌ Create implementation plans
|
|
37
|
+
❌ Map to technical components
|
|
38
|
+
❌ Start implementation
|
|
39
|
+
❌ Write any code
|
|
40
|
+
❌ Rewrite entire feature spec (only update changed sections)
|
|
41
|
+
|
|
42
|
+
**After updating the feature spec and informing the user, YOUR JOB IS COMPLETE. EXIT IMMEDIATELY.**
|
|
43
|
+
|
|
44
|
+
## ❌ Boundaries: What This Command Does NOT Do
|
|
45
|
+
|
|
46
|
+
**CRITICAL:** This command has a LIMITED scope. Do NOT:
|
|
47
|
+
|
|
48
|
+
- ❌ **Create new feature specs** - That's /5:plan-feature
|
|
49
|
+
- ❌ **Create implementation plans** - That's Phase 2 (/5:plan-implementation)
|
|
50
|
+
- ❌ **Start implementation** - That's Phase 3 (/5:implement-feature)
|
|
51
|
+
- ❌ **Write any code** - This is planning only
|
|
52
|
+
- ❌ **Rewrite entire spec** - Only update sections that changed
|
|
53
|
+
- ❌ **Delete previous Q&A** - Append new discussions, keep history
|
|
54
|
+
|
|
55
|
+
**If you find yourself creating plans or writing code, STOP IMMEDIATELY. You are exceeding this command's scope.**
|
|
56
|
+
|
|
22
57
|
## Use Cases
|
|
23
58
|
|
|
24
59
|
Use this skill when:
|
|
@@ -196,15 +231,19 @@ After updating the spec, tell the developer:
|
|
|
196
231
|
|
|
197
232
|
## Instructions Summary
|
|
198
233
|
|
|
234
|
+
Follow these steps **IN ORDER** and **STOP after step 9**:
|
|
235
|
+
|
|
199
236
|
1. **Extract feature name** - From user input or by matching ticket ID
|
|
200
237
|
2. **Read feature spec** - Load current state from `.5/{feature-name}/feature.md`
|
|
201
238
|
3. **Ask initial question** - What do they want to discuss?
|
|
202
239
|
4. **Explore if needed** - Understand codebase context
|
|
203
240
|
5. **Interactive Q&A** - Multiple rounds of clarifying questions
|
|
204
|
-
6. **Iterate** - Allow continued discussion
|
|
205
|
-
7. **Update feature spec** - Modify relevant sections
|
|
241
|
+
6. **Iterate** - Allow continued discussion until user is satisfied
|
|
242
|
+
7. **Update feature spec** - Modify only the relevant sections that changed
|
|
206
243
|
8. **Track changes** - Document discussion history
|
|
207
|
-
9. **Inform developer** - Summarize changes and
|
|
244
|
+
9. **Inform developer** - Summarize changes and ask: "Discuss more or run `/clear` followed by `/5:plan-implementation {feature-name}`?"
|
|
245
|
+
|
|
246
|
+
**🛑 STOP HERE. YOUR JOB IS COMPLETE. DO NOT CREATE IMPLEMENTATION PLANS.**
|
|
208
247
|
|
|
209
248
|
## Key Principles
|
|
210
249
|
|
|
@@ -216,14 +255,6 @@ After updating the spec, tell the developer:
|
|
|
216
255
|
6. **Preserve history** - Keep previous Q&A, add new discussions
|
|
217
256
|
7. **Clear next steps** - Guide user on what to do next
|
|
218
257
|
|
|
219
|
-
## DO NOT in This Skill
|
|
220
|
-
|
|
221
|
-
- DO NOT rewrite the entire feature spec (only update changed sections)
|
|
222
|
-
- DO NOT skip asking what the user wants to discuss
|
|
223
|
-
- DO NOT create new feature specs (use /plan-feature for that)
|
|
224
|
-
- DO NOT proceed to technical planning (that's Phase 2's job)
|
|
225
|
-
- DO NOT start implementation
|
|
226
|
-
- DO NOT delete previous Q&A sections (append to them)
|
|
227
258
|
|
|
228
259
|
## Discussion Patterns
|
|
229
260
|
|