5-phase-workflow 3.1.1 → 3.1.2

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
@@ -25,7 +25,6 @@ Then configure the project once:
25
25
 
26
26
  ```bash
27
27
  /5:configure
28
- /5:implement CONFIGURE
29
28
  ```
30
29
 
31
30
  This adds the foifi rules to `AGENTS.md` as one marked block, links your existing standards from it, and makes `CLAUDE.md` include it. Nothing else in your files or settings changes.
@@ -90,10 +90,9 @@ First-time setup:
90
90
 
91
91
  ```text
92
92
  /5:configure
93
- /5:implement CONFIGURE
94
93
  ```
95
94
 
96
- `/5:configure` writes `.5/config.json`, sets `plansDirectory` to `.5/planning` in `.claude/settings.json`, and writes the CONFIGURE plan. `/5:implement CONFIGURE` adds the workflow rules to AGENTS.md as one marked block that links the repository's own standards, appends `@AGENTS.md` to CLAUDE.md when it lacks that line, and generates scoped rules. Nothing outside the block changes.
95
+ `/5:configure` writes `.5/config.json`, sets `plansDirectory` to `.5/planning` in `.claude/settings.json`, writes the CONFIGURE plan, and then runs `/5:implement CONFIGURE` itself, which adds the workflow rules to AGENTS.md as one marked block that links the repository's own standards, appends `@AGENTS.md` to CLAUDE.md when it lacks that line, and generates scoped rules. Nothing outside the block changes.
97
96
 
98
97
  Refresh the AGENTS.md block and the rules later with:
99
98
 
@@ -135,5 +134,5 @@ v2.0.0 removes old commands during upgrade:
135
134
  | `/5:review` | Review changes for correctness and standards |
136
135
  | `/5:address-review-findings` | Fix clear findings, ask about real decisions |
137
136
  | `/5:analyze-feature` | Document a feature with mermaid diagrams |
138
- | `/5:configure` | Create project config and CONFIGURE plan |
137
+ | `/5:configure` | Create project config and CONFIGURE plan, then implement it |
139
138
  | `/5:reconfigure` | Refresh the AGENTS.md block and rules |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5-phase-workflow",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "A dev-workflow for Claude Code and Codex",
5
5
  "bin": {
6
6
  "foifi": "bin/install.js"
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  name: 5:configure
3
- description: Configures the project. Analyzes project, gathers preferences, writes config.json, points Claude Code plan mode at .5/planning/, and creates .5/planning/CONFIGURE.md. Follow up with /5:implement CONFIGURE.
4
- allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion
3
+ description: Configures the project. Analyzes project, gathers preferences, writes config.json, points Claude Code plan mode at .5/planning/, creates .5/planning/CONFIGURE.md, then runs /5:implement CONFIGURE itself.
4
+ allowed-tools: Agent, Read, Write, Edit, Glob, Grep, Bash, Workflow, Skill, AskUserQuestion
5
5
  user-invocable: true
6
6
  ---
7
7
 
8
8
  <role>
9
9
  You are a Project Configurator. You analyze a project, gather preferences, and write config.json plus a unified plan.
10
- You do NOT write AGENTS.md, CLAUDE.md, or rules directly — those are /5:implement's job.
10
+ You do NOT write AGENTS.md, CLAUDE.md, or rules directly — those are /5:implement's job, and you start it yourself once the plan is written.
11
11
  You write ONLY to: .5/config.json, .5/version.json, .5/planning/CONFIGURE.md, .gitignore, and the `plansDirectory` key of .claude/settings.json (Claude Code only).
12
- After writing config.json and the unified plan, you are DONE. Exit immediately.
12
+ After writing config.json and the unified plan, you hand off to `/5:implement CONFIGURE`.
13
13
  </role>
14
14
 
15
15
  # Configure (Project Setup Plan)
@@ -18,16 +18,11 @@ Current commit: !`git rev-parse --short HEAD 2>/dev/null || echo "none"`
18
18
 
19
19
  ## Overview
20
20
 
21
- This command prepares project configuration. It analyzes the project, asks preference questions, writes `.5/config.json`, points Claude Code plan mode at `.5/planning/`, and writes a plan at `.5/planning/CONFIGURE.md`.
22
-
23
- After running this command, proceed through the standard phases:
24
- 1. **`/5:configure`** (this command) - Create config and CONFIGURE plan
25
- 2. `/5:implement CONFIGURE` - Execute configuration (uses `configure-agents-md` and `configure-rules`)
26
- 3. `/5:review` - Review generated files if desired
21
+ This command prepares project configuration. It analyzes the project, asks preference questions, writes `.5/config.json`, points Claude Code plan mode at `.5/planning/`, writes a plan at `.5/planning/CONFIGURE.md`, and then runs `/5:implement CONFIGURE` itself, which executes the plan with `configure-agents-md` and `configure-rules` and reviews the result. The user runs only this one command.
27
22
 
28
23
  ## ⚠️ CRITICAL SCOPE CONSTRAINT
29
24
 
30
- **THIS COMMAND WRITES config.json AND CREATES THE CONFIGURE PLAN. NOTHING ELSE.**
25
+ **THIS COMMAND WRITES config.json AND CREATES THE CONFIGURE PLAN, THEN HANDS OFF TO `/5:implement CONFIGURE`. NOTHING ELSE.**
31
26
 
32
27
  Your job in this command:
33
28
  ✅ Analyze project (detect type, build commands, etc.)
@@ -35,7 +30,7 @@ Your job in this command:
35
30
  ✅ Write `.5/config.json` directly
36
31
  ✅ Set `plansDirectory` in `.claude/settings.json` (Claude Code only)
37
32
  ✅ Create the plan at `.5/planning/CONFIGURE.md` for remaining work
38
- ✅ Tell user to run /5:implement CONFIGURE
33
+ ✅ Run `/5:implement CONFIGURE` right after the plan is written
39
34
 
40
35
  Your job is NOT:
41
36
  ❌ Write AGENTS.md or CLAUDE.md directly (/5:implement does this)
@@ -43,9 +38,9 @@ Your job is NOT:
43
38
  ❌ Skip user interaction
44
39
  ❌ Assume project structure
45
40
 
46
- **After writing config.json, creating the unified plan, and informing the user, YOUR JOB IS COMPLETE. EXIT IMMEDIATELY.**
41
+ **After writing config.json and the unified plan, run `/5:implement CONFIGURE`. The rest is its job.**
47
42
 
48
- **If you find yourself writing AGENTS.md, CLAUDE.md, or rules, STOP IMMEDIATELY. You should only be writing config.json, the settings key, and the plan.**
43
+ **If you find yourself writing AGENTS.md, CLAUDE.md, or rules before `/5:implement CONFIGURE` runs, STOP IMMEDIATELY. You should only be writing config.json, the settings key, and the plan.**
49
44
 
50
45
  ## Configuration Process
51
46
 
@@ -173,6 +168,7 @@ Context7 provides up-to-date, version-specific documentation and code examples d
173
168
  - "Generate `.claude/rules/` files? These are scoped instruction files that automatically load when the agent works with matching file types (e.g., testing rules load only when editing test files, code-style rules load only for source files)."
174
169
  - Options: "Yes (recommended)", "Skip"
175
170
  - Note: Rules complement AGENTS.md — they provide focused, file-type-scoped directives derived from your project's actual conventions.
171
+ - On Codex, the rules live in the foifi block of `AGENTS.md`. When the user skipped AGENTS.md in step 2j, do not ask: set `rules.generate` to `false`.
176
172
 
177
173
  **2l. Git-ignore workflow folders:**
178
174
  - "`.5/planning/` will hold your plans. `.5/features/` will hold implementation state and review findings. Which should git ignore?"
@@ -227,7 +223,9 @@ Ensure `.5/.reconfig-reminder` is gitignored (it's a transient runtime flag that
227
223
 
228
224
  ### Step 3: Create Configuration Plan
229
225
 
230
- Write `.5/planning/CONFIGURE.md` containing all gathered data:
226
+ If the user skipped both AGENTS.md (step 2j) and rules (step 2j2), there is nothing to implement: delete `.5/planning/CONFIGURE.md` if an earlier run left it, so no later `/5:implement` applies what the user just declined. Then skip Steps 3 and 4, tell the user "Configuration saved to `.5/config.json`", and stop.
227
+
228
+ Otherwise write `.5/planning/CONFIGURE.md` containing all gathered data. When the user skipped AGENTS.md in step 2j, leave out everything about AGENTS.md and CLAUDE.md: the `configure agents md` component, Requirement 1, its acceptance criteria and Module Impact row, and the "After configure agents md" ordering. The plan then generates only the rules, and nothing touches `AGENTS.md` or `CLAUDE.md`. The template below shows the plan with both selected:
231
229
 
232
230
  ```markdown
233
231
  ---
@@ -324,21 +322,16 @@ Only generate rules for patterns that were actually detected:
324
322
 
325
323
  ## Next Steps
326
324
 
327
- 1. Run `/5:implement CONFIGURE`.
325
+ 1. `/5:configure` runs `/5:implement CONFIGURE` right away; rerun it by hand only if that run was interrupted.
328
326
  ```
329
327
 
330
328
  **Important:** Use `mkdir -p .5/planning` before writing the plan.
331
329
 
332
- ### Step 4: Guide User to Next Phase
330
+ ### Step 4: Run the Plan
333
331
 
334
- Tell the user:
332
+ Tell the user in one line: "Configuration saved to `.5/config.json`, plan written to `.5/planning/CONFIGURE.md` — implementing it now."
335
333
 
336
- 1. "Configuration saved to `.5/config.json`"
337
- 2. "Configuration plan written to `.5/planning/CONFIGURE.md`"
338
- 3. "Next steps:"
339
- - "Run `/clear` to reset context"
340
- - "Then run `/5:implement CONFIGURE`"
341
- 4. "After that: Run `/5:review` if you want a review of generated files"
334
+ Then run `/5:implement CONFIGURE` right away, without asking: the user already chose what to generate in Step 2. It writes the AGENTS.md block and the rules, verifies them, and runs `/5:review` on the result.
342
335
 
343
336
  ## Related Documentation
344
337
  - [configure-agents-md skill](../../skills/configure-agents-md/SKILL.md)