5-phase-workflow 1.8.7 → 1.8.9

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 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 in current project
28
+ # Install locally for Claude Code
29
29
  npx 5-phase-workflow
30
30
 
31
- # Or install globally for all projects
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
- - Copy workflow commands, agents, and skills to `.claude/`
37
- - Set up hooks and settings
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
- # Open Claude Code in your project
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 `/5:configure`:
57
- 1. `/5:plan-implementation CONFIGURE` - Plan the configuration
58
- 2. `/5:implement-feature CONFIGURE` - Execute configuration
59
- 3. `/5:verify-implementation` - Verify setup
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
- # Phase 1: Plan the feature
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,21 +126,21 @@ The workflow auto-detects and supports:
117
126
 
118
127
  ## Available Commands
119
128
 
120
- All commands are available under the `/5:` namespace:
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:eject` | Utility | Permanently remove update infrastructure |
134
- | `/5:unlock` | Utility | Remove planning guard lock |
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 |
135
144
 
136
145
  ## Configuration
137
146
 
@@ -252,6 +261,9 @@ After installation, your `.claude/` directory will contain:
252
261
  .5/
253
262
  ├── config.json # Project configuration
254
263
  ├── version.json # Version tracking
264
+ ├── index/ # Generated codebase index + rebuild script
265
+ │ ├── rebuild-index.sh
266
+ │ └── *.md
255
267
  └── features/ # Feature tracking
256
268
 
257
269
  .claude/
@@ -371,13 +383,18 @@ npx 5-phase-workflow
371
383
  If you want to permanently opt out of the update system (e.g., to customize workflow files without future updates overwriting them), run:
372
384
 
373
385
  ```bash
386
+ # Claude Code
374
387
  /5:eject
388
+
389
+ # Codex
390
+ $5-eject
375
391
  ```
376
392
 
377
393
  This permanently removes the update infrastructure:
378
394
  - Deletes `check-updates.js` hook, `update.md` and `eject.md` commands
379
395
  - Deletes `.5/version.json` and `.5/.update-cache.json`
380
- - Removes the update check hook entry from `.claude/settings.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/`
381
398
 
382
399
  All other workflow files remain untouched. **This is irreversible.** To restore update functionality, reinstall with `npx 5-phase-workflow`.
383
400