5-phase-workflow 1.8.6 → 1.8.8
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 +67 -33
- package/bin/install.js +510 -34
- package/docs/workflow-guide.md +1 -1
- package/package.json +1 -1
- package/src/commands/5/address-review-findings.md +2 -2
- package/src/commands/5/configure.md +39 -27
- package/src/commands/5/eject.md +110 -0
- package/src/commands/5/plan-feature.md +0 -1
- package/src/commands/5/plan-implementation.md +0 -1
- package/src/commands/5/quick-implement.md +0 -1
- package/src/commands/5/reconfigure.md +20 -17
- package/src/commands/5/update.md +16 -3
- package/src/hooks/statusline.js +80 -41
- package/src/skills/configure-docs-index/SKILL.md +196 -0
- package/src/skills/configure-skills/SKILL.md +314 -0
- package/src/skills/generate-readme/SKILL.md +1 -2
- package/src/templates/ARCHITECTURE.md +16 -47
- package/src/templates/CONCERNS.md +12 -54
- package/src/templates/TESTING.md +12 -95
- package/src/skills/build-project/SKILL.md +0 -151
- package/src/skills/configure-project/SKILL.md +0 -465
- package/src/skills/run-tests/SKILL.md +0 -162
- package/src/templates/CONVENTIONS.md +0 -75
- package/src/templates/INTEGRATIONS.md +0 -65
- package/src/templates/STACK.md +0 -60
- package/src/templates/STRUCTURE.md +0 -60
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 5-Phase Workflow
|
|
2
2
|
|
|
3
|
-
A systematic, AI-assisted feature development workflow for Claude Code that works with any tech stack.
|
|
3
|
+
A systematic, AI-assisted feature development workflow for Claude Code and Codex that works with any tech stack.
|
|
4
4
|
|
|
5
5
|
## What is This?
|
|
6
6
|
|
|
@@ -25,16 +25,20 @@ The **5-Phase Workflow** is a structured approach to feature development that br
|
|
|
25
25
|
Install the workflow in your project using npx:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
# Install locally
|
|
28
|
+
# Install locally for Claude Code
|
|
29
29
|
npx 5-phase-workflow
|
|
30
30
|
|
|
31
|
-
#
|
|
31
|
+
# Install locally for Codex
|
|
32
|
+
npx 5-phase-workflow --codex
|
|
33
|
+
|
|
34
|
+
# Or install globally
|
|
32
35
|
npx 5-phase-workflow --global
|
|
36
|
+
npx 5-phase-workflow --codex --global
|
|
33
37
|
```
|
|
34
38
|
|
|
35
39
|
The installer will:
|
|
36
|
-
-
|
|
37
|
-
-
|
|
40
|
+
- For Claude Code: copy workflow commands, agents, and skills to `.claude/`, then set up hooks and settings
|
|
41
|
+
- For Codex: convert workflow commands into skills in `.codex/skills/` and generate `.codex/instructions.md`
|
|
38
42
|
- Create `.5/features/` directory for feature tracking
|
|
39
43
|
|
|
40
44
|
**After installation, you must configure your project:**
|
|
@@ -42,8 +46,11 @@ The installer will:
|
|
|
42
46
|
## Required: Configure Your Project
|
|
43
47
|
|
|
44
48
|
```bash
|
|
45
|
-
#
|
|
49
|
+
# Claude Code
|
|
46
50
|
/5:configure
|
|
51
|
+
|
|
52
|
+
# Codex
|
|
53
|
+
$5-configure
|
|
47
54
|
```
|
|
48
55
|
|
|
49
56
|
This will:
|
|
@@ -51,12 +58,16 @@ This will:
|
|
|
51
58
|
- Set up build and test commands
|
|
52
59
|
- Configure ticket tracking patterns
|
|
53
60
|
- Generate comprehensive CLAUDE.md documentation
|
|
61
|
+
- Generate a rebuildable codebase index in `.5/index/`
|
|
54
62
|
- Create project-specific skills (create-component, create-service, etc.)
|
|
55
63
|
|
|
56
|
-
Follow the standard workflow after
|
|
57
|
-
1. `/5:plan-implementation CONFIGURE`
|
|
58
|
-
2.
|
|
59
|
-
3. `/5:
|
|
64
|
+
Follow the standard workflow after configuration:
|
|
65
|
+
1. Claude Code: `/5:plan-implementation CONFIGURE`
|
|
66
|
+
2. Codex: `$5-plan-implementation CONFIGURE`
|
|
67
|
+
3. Claude Code: `/5:implement-feature CONFIGURE`
|
|
68
|
+
4. Codex: `$5-implement-feature CONFIGURE`
|
|
69
|
+
5. Claude Code: `/5:verify-implementation`
|
|
70
|
+
6. Codex: `$5-verify-implementation`
|
|
60
71
|
|
|
61
72
|
**The workflow is ready to use after completing configuration.**
|
|
62
73
|
|
|
@@ -65,26 +76,24 @@ Follow the standard workflow after `/5:configure`:
|
|
|
65
76
|
After configuration is complete, start your first feature:
|
|
66
77
|
|
|
67
78
|
```bash
|
|
68
|
-
#
|
|
79
|
+
# Claude Code
|
|
69
80
|
/5:plan-feature
|
|
70
|
-
|
|
71
|
-
# Phase 2: Create implementation plan
|
|
72
81
|
/5:plan-implementation {ticket-id}-{description}
|
|
73
|
-
|
|
74
|
-
# Phase 3: Execute implementation
|
|
75
82
|
/5:implement-feature {ticket-id}-{description}
|
|
76
|
-
|
|
77
|
-
# Phase 4: Verify implementation
|
|
78
83
|
/5:verify-implementation
|
|
79
|
-
|
|
80
|
-
# Phase 5: Review code
|
|
81
84
|
/5:review-code
|
|
82
|
-
|
|
83
|
-
# Phase 5b: Apply review findings (optional — if you chose "Fix later")
|
|
84
85
|
/5:address-review-findings
|
|
86
|
+
|
|
87
|
+
# Codex
|
|
88
|
+
$5-plan-feature
|
|
89
|
+
$5-plan-implementation {ticket-id}-{description}
|
|
90
|
+
$5-implement-feature {ticket-id}-{description}
|
|
91
|
+
$5-verify-implementation
|
|
92
|
+
$5-review-code
|
|
93
|
+
$5-address-review-findings
|
|
85
94
|
```
|
|
86
95
|
|
|
87
|
-
**Tip:** Running `/clear` between phases resets context and keeps conversations focused. Each phase reads necessary artifacts from previous phases, so no context is lost.
|
|
96
|
+
**Tip:** Running `/clear` between phases in Claude Code resets context and keeps conversations focused. In Codex, start a fresh turn or keep the next phase focused. Each phase reads necessary artifacts from previous phases, so no context is lost.
|
|
88
97
|
|
|
89
98
|
## Supported Tech Stacks
|
|
90
99
|
|
|
@@ -117,20 +126,21 @@ The workflow auto-detects and supports:
|
|
|
117
126
|
|
|
118
127
|
## Available Commands
|
|
119
128
|
|
|
120
|
-
|
|
129
|
+
Claude Code exposes the workflow under the `/5:` namespace. Codex exposes the same workflow as `$5-...` skills:
|
|
121
130
|
|
|
122
131
|
| Command | Phase | Purpose |
|
|
123
132
|
|---------|-------|---------|
|
|
124
|
-
| `/5:configure` | Setup | Interactive project configuration |
|
|
125
|
-
| `/5:plan-feature` | 1 | Create feature specification with Q&A |
|
|
126
|
-
| `/5:discuss-feature` | 1 | Refine existing feature spec |
|
|
127
|
-
| `/5:plan-implementation` | 2 | Map feature to technical components |
|
|
128
|
-
| `/5:implement-feature` | 3 | Execute implementation with agents |
|
|
129
|
-
| `/5:verify-implementation` | 4 | Verify completeness and correctness |
|
|
130
|
-
| `/5:review-code` | 5 | AI-powered code review (Claude or CodeRabbit) |
|
|
131
|
-
| `/5:address-review-findings` | 5 | Apply annotated findings and address PR comments |
|
|
132
|
-
| `/5:quick-implement` | Fast | Streamlined workflow for small tasks |
|
|
133
|
-
| `/5:
|
|
133
|
+
| `/5:configure` or `$5-configure` | Setup | Interactive project configuration |
|
|
134
|
+
| `/5:plan-feature` or `$5-plan-feature` | 1 | Create feature specification with Q&A |
|
|
135
|
+
| `/5:discuss-feature` or `$5-discuss-feature` | 1 | Refine existing feature spec |
|
|
136
|
+
| `/5:plan-implementation` or `$5-plan-implementation` | 2 | Map feature to technical components |
|
|
137
|
+
| `/5:implement-feature` or `$5-implement-feature` | 3 | Execute implementation with agents |
|
|
138
|
+
| `/5:verify-implementation` or `$5-verify-implementation` | 4 | Verify completeness and correctness |
|
|
139
|
+
| `/5:review-code` or `$5-review-code` | 5 | AI-powered code review (Claude, Codex, or CodeRabbit workflows) |
|
|
140
|
+
| `/5:address-review-findings` or `$5-address-review-findings` | 5 | Apply annotated findings and address PR comments |
|
|
141
|
+
| `/5:quick-implement` or `$5-quick-implement` | Fast | Streamlined workflow for small tasks |
|
|
142
|
+
| `/5:eject` or `$5-eject` | Utility | Permanently remove update infrastructure |
|
|
143
|
+
| `/5:unlock` or `$5-unlock` | Utility | Remove planning guard lock |
|
|
134
144
|
|
|
135
145
|
## Configuration
|
|
136
146
|
|
|
@@ -251,6 +261,9 @@ After installation, your `.claude/` directory will contain:
|
|
|
251
261
|
.5/
|
|
252
262
|
├── config.json # Project configuration
|
|
253
263
|
├── version.json # Version tracking
|
|
264
|
+
├── index/ # Generated codebase index + rebuild script
|
|
265
|
+
│ ├── rebuild-index.sh
|
|
266
|
+
│ └── *.md
|
|
254
267
|
└── features/ # Feature tracking
|
|
255
268
|
|
|
256
269
|
.claude/
|
|
@@ -264,6 +277,7 @@ After installation, your `.claude/` directory will contain:
|
|
|
264
277
|
│ ├── discuss-feature.md
|
|
265
278
|
│ ├── quick-implement.md
|
|
266
279
|
│ ├── configure.md
|
|
280
|
+
│ ├── eject.md
|
|
267
281
|
│ └── unlock.md
|
|
268
282
|
├── skills/ # Atomic operations
|
|
269
283
|
│ ├── build-project/
|
|
@@ -364,6 +378,26 @@ npx 5-phase-workflow
|
|
|
364
378
|
- User-created commands, agents, skills, hooks, and templates are preserved
|
|
365
379
|
- Only workflow-managed files are updated
|
|
366
380
|
|
|
381
|
+
### Ejecting
|
|
382
|
+
|
|
383
|
+
If you want to permanently opt out of the update system (e.g., to customize workflow files without future updates overwriting them), run:
|
|
384
|
+
|
|
385
|
+
```bash
|
|
386
|
+
# Claude Code
|
|
387
|
+
/5:eject
|
|
388
|
+
|
|
389
|
+
# Codex
|
|
390
|
+
$5-eject
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
This permanently removes the update infrastructure:
|
|
394
|
+
- Deletes `check-updates.js` hook, `update.md` and `eject.md` commands
|
|
395
|
+
- Deletes `.5/version.json` and `.5/.update-cache.json`
|
|
396
|
+
- For Claude Code, removes the update check hook entry from `.claude/settings.json`
|
|
397
|
+
- For Codex, removes the converted update/eject skills from `.codex/skills/`
|
|
398
|
+
|
|
399
|
+
All other workflow files remain untouched. **This is irreversible.** To restore update functionality, reinstall with `npx 5-phase-workflow`.
|
|
400
|
+
|
|
367
401
|
## Development
|
|
368
402
|
|
|
369
403
|
### Running Tests
|