create-harness-vibe-coding 0.7.2 → 0.8.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.
Files changed (82) hide show
  1. package/README-CN.md +91 -155
  2. package/README.md +200 -177
  3. package/bin/create-harness-vibe-coding.js +2 -2
  4. package/package.json +45 -43
  5. package/src/generator.js +115 -77
  6. package/src/index.js +159 -49
  7. package/src/prompts.js +95 -27
  8. package/templates/common/.claude/agents/architect-manager.md +45 -45
  9. package/templates/common/.claude/agents/context-master.md +77 -77
  10. package/templates/common/.claude/agents/debugger.md +41 -41
  11. package/templates/common/.claude/agents/explore-manager.md +41 -41
  12. package/templates/common/.claude/agents/implement-manager.md +49 -49
  13. package/templates/common/.claude/agents/implementer.md +40 -40
  14. package/templates/common/.claude/agents/memory-master.md +66 -66
  15. package/templates/common/.claude/agents/planner.md +34 -34
  16. package/templates/common/.claude/agents/researcher.md +41 -41
  17. package/templates/common/.claude/agents/review-manager.md +56 -56
  18. package/templates/common/.claude/agents/test-writer.md +38 -38
  19. package/templates/common/.claude/agents/verifier.md +32 -32
  20. package/templates/common/.claude/rules/ecc/common.md +45 -45
  21. package/templates/common/.claude/settings.json +68 -68
  22. package/templates/common/.claude/skills/subagent-orchestrator/SKILL.md +36 -31
  23. package/templates/common/.claude/skills/wf/SKILL.md +36 -0
  24. package/templates/common/.claude/skills/wf-learn/SKILL.md +13 -28
  25. package/templates/common/.claude/skills/wf-max/SKILL.md +24 -88
  26. package/templates/common/.claude/skills/wf-readme/SKILL.md +49 -49
  27. package/templates/common/.claude/skills/wf-remove/SKILL.md +17 -38
  28. package/templates/common/.claude/skills/wf-review/SKILL.md +19 -69
  29. package/templates/common/.claude/skills/wf-update/SKILL.md +19 -61
  30. package/templates/common/.codex/config.toml +2 -2
  31. package/templates/common/.codex/hooks.json +37 -37
  32. package/templates/common/.harness-version +53 -51
  33. package/templates/common/AGENTS.md +30 -30
  34. package/templates/common/CLAUDE.md +94 -94
  35. package/templates/common/{docs/harness → Harness}/PROGRESS.md +17 -17
  36. package/templates/common/{docs → Harness}/README.md +18 -17
  37. package/templates/common/{docs/harness → Harness}/WF-MAX.md +223 -223
  38. package/templates/common/Harness/WF.md +217 -0
  39. package/templates/common/{docs/harness → Harness}/architecture.md +126 -126
  40. package/templates/common/{docs/harness → Harness}/dispatch.md +99 -99
  41. package/templates/common/{docs → Harness}/research/research-results.md +66 -66
  42. package/templates/common/{docs/harness → Harness}/subagents.md +194 -194
  43. package/templates/common/{docs → Harness}/tasks/_template/ARTIFACTS.md +3 -3
  44. package/templates/common/{docs → Harness}/tasks/_template/NOTES.md +3 -3
  45. package/templates/common/{docs → Harness}/tasks/_template/PLAN.md +40 -40
  46. package/templates/common/{docs → Harness}/tasks/_template/PROGRESS.md +29 -29
  47. package/templates/common/MEMORY.md +68 -66
  48. package/templates/common/README.md +44 -37
  49. package/templates/common/SETUP.md +41 -34
  50. package/templates/common/memory/agent-lessons-patterns.md +21 -21
  51. package/templates/common/memory/tool-usage-reflections.md +21 -21
  52. package/templates/common/memory/user-corrections-preferences.md +21 -21
  53. package/templates/common/scripts/scan-clean.mjs +450 -449
  54. package/templates/common/scripts/validate-harness.mjs +56 -34
  55. package/templates/common/scripts/wf-mode-hook.mjs +318 -318
  56. package/templates/common/scripts/wf-remove.mjs +400 -384
  57. package/templates/common/scripts/wf-statusline.ps1 +38 -38
  58. package/templates/common/scripts/wf-statusline.sh +48 -48
  59. package/templates/common/scripts/wf-update-check.mjs +389 -389
  60. package/templates/optional/catalog.json +63 -29
  61. package/templates/optional/skills/browser-e2e/.claude/skills/wf-browser/SKILL.md +194 -194
  62. package/templates/optional/skills/browser-e2e/{docs → Harness}/workflows/browser-e2e.md +75 -75
  63. package/templates/optional/skills/github-pr-review/{docs → Harness}/workflows/github-pr-review.md +28 -28
  64. package/templates/optional/skills/python-backend/{docs → Harness}/workflows/python-backend.md +34 -34
  65. package/templates/optional/skills/ts-react-frontend/{docs → Harness}/workflows/ts-react-frontend.md +35 -35
  66. package/templates/optional/skills/ui-ux-review/{docs → Harness}/workflows/ui-ux-review.md +26 -26
  67. package/templates/common/.claude/commands/wf-learn.md +0 -17
  68. package/templates/common/.claude/commands/wf-max.md +0 -49
  69. package/templates/common/.claude/commands/wf-remove.md +0 -23
  70. package/templates/common/.claude/commands/wf-review.md +0 -25
  71. package/templates/common/.claude/commands/wf-update.md +0 -17
  72. package/templates/common/.claude/commands/wf.md +0 -31
  73. package/templates/common/commands/wf-max.toml +0 -18
  74. package/templates/common/commands/wf-review.toml +0 -15
  75. package/templates/common/docs/harness/WF.md +0 -174
  76. package/templates/optional/skills/browser-e2e/.claude/commands/wf-browser.md +0 -25
  77. /package/templates/common/{docs/harness → Harness}/agent-workflow.md +0 -0
  78. /package/templates/common/{docs/harness → Harness}/context-loading.md +0 -0
  79. /package/templates/common/{docs/harness → Harness}/extension.md +0 -0
  80. /package/templates/common/{docs/harness → Harness}/lifecycle.md +0 -0
  81. /package/templates/common/{docs → Harness}/research/PRD.md +0 -0
  82. /package/templates/common/{docs → Harness}/research/README.md +0 -0
@@ -1,94 +1,94 @@
1
- # CLAUDE.md
2
-
3
- This repository dogfoods the generated Harness scaffold. Scaffold source files live under `templates/common/` and `templates/optional/`; generated dogfood runtime files live under root `Harness/` and `.claude/`.
4
-
5
- ## 1. Harness Binding & Startup
6
-
7
- - If `Harness/` exists, this repository is governed by the Harness contract. Treat these files as mandatory operating instructions, not optional references.
8
- - Every session: load `Harness/MEMORY.md` first, then `Harness/README.md`.
9
- - If `Harness/SETUP.md` exists, follow it before normal project work; it is the install/bootstrap contract and may be deleted after setup is complete.
10
-
11
- ### 1a. CEO Contract (READ BEFORE ANY TOOL USE)
12
-
13
- `/wf-max` active → you are **CEO, not implementer** (enforced by hooks + `.runtime/current-mode.json`).
14
-
15
- | ALLOWED (W0) | FORBIDDEN (always on source) |
16
- |---|---|
17
- | Read Harness docs, CLAUDE.md | Edit / Write / MultiEdit |
18
- | Grep/Glob for scoping | Bash (except `ls`/`dir`/`tree`/`git`) |
19
- | Agent spawn (ONE message) | Deep source reads → delegate to Worker |
20
- | Write PLAN.md / PROGRESS.md | Sequential spawn (AP6) |
21
-
22
- **Tempted to edit source? STOP. Spawn a Worker.**
23
-
24
- - `Harness/MEMORY.md` is the memory/resource router: agents, skills, durable memories, and cross-session lessons. Follow its registrations when selecting agents/skills or recording memory.
25
- - `Harness/README.md` is the task router. For every request, check `Harness/README.md#Load By Task`; if a row matches, read and follow those docs before acting.
26
- - `Harness/PROGRESS.md` is the global task index. Load at session start to see active task and task history.
27
- - If work spans more than one step, create a task capsule from `Harness/tasks/_template/` and update `Harness/tasks/<task-id>/PROGRESS.md`.
28
- - Use `/wf <task>`, `/wf-review [focus]`, `wf mode`, `workflow mode`, or `wk mode` for long, difficult, uncertain, multi-file, or repeated-failure work.
29
- - Use `/wf-max [task]` for maximum parallelism — CEO→Manager→Worker hierarchy. CEO never writes code directly.
30
- - Use `/wf-auto` for perpetual self-directed optimization — never stops, continuously improves until 8-angle exhaustion.
31
- - Use `subagent-orchestrator` and `Harness/subagents.md` when coordinating multiple subagents.
32
- - Use `/wf-update` to check for and apply scaffold updates from GitHub. See `.claude/skills/wf-update/SKILL.md`.
33
- - Subagents are readers and reporters. Only the main agent writes to `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md`.
34
- - For memory writing and consolidation (repeated failures, user corrections, closeout), dispatch `memory-master`.
35
- - For context analysis and compression alerts (~85% window), dispatch `context-master`.
36
- - Universal rules live in `.claude/rules/ecc/common.md`.
37
- - Never bulk-read `Harness/`; route through `Harness/README.md` and `Harness/MEMORY.md`.
38
- - Scaffold source files live under `templates/common/` and `templates/optional/`; generated dogfood runtime files live under root `Harness/` and `.claude/`.
39
-
40
- ## 2. Think Before Coding
41
-
42
- - You must have **>=95% confidence** in user intent before writing implementation code.
43
- - If confidence is below 95%, stop and ask up to 3 blocking questions.
44
- - If multiple valid approaches exist and the choice affects architecture, scope, stack, or user-facing behavior, present trade-offs instead of picking silently.
45
- - State assumptions before implementation and record durable assumptions, decisions, blockers, handoffs, and verification evidence in `Harness/tasks/<task-id>/PLAN.md`.
46
- - If something is unclear, stop. Name what is unclear and ask instead of guessing.
47
- - Before asserting a fact about the codebase, read the file that proves it. If you cannot cite the file and line, do not assert.
48
-
49
- ## 3. Simplicity First
50
-
51
- - No features beyond what was asked.
52
- - No abstractions for single-use code.
53
- - No unrequested flexibility, configurability, or speculative error handling.
54
- - Use explicit interfaces or state models only when they protect a real boundary, clarify ownership, or make verification/recovery simpler.
55
- - If a simpler approach exists, say so and prefer the smallest change that satisfies the request.
56
- - If the solution is growing faster than the problem, reduce scope before coding more.
57
-
58
- ## 4. Surgical Changes
59
-
60
- - Touch only files and lines required by the task.
61
- - Do not improve adjacent code, comments, formatting, or architecture unless it is required for the task.
62
- - Match existing style even when you would choose a different style in a new project.
63
- - Clean up imports, variables, functions, and files made unused by your own changes; do not delete pre-existing dead code unless asked.
64
- - Keep every changed line traceable to the user's request.
65
-
66
- ## 5. Goal-Driven Execution
67
-
68
- - Define verifiable success criteria before implementation.
69
- - For bugs, reproduce the failure or document why reproduction is impossible before fixing.
70
- - For multi-step work, keep `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md` current. The main agent is the only state committer; subagents return suggestions only.
71
- - State assumptions before implementation and record durable assumptions, decisions, blockers, handoffs, and verification evidence in `Harness/tasks/<task-id>/PLAN.md`.
72
- - Every task needs a test, build check, validator run, or recorded manual check.
73
- - Do not claim web/UI acceptance without real-browser evidence from Chrome DevTools, CDP, Playwright, or documented manual browser checks.
74
- - Do not place project build scripts, git conventions, run commands, or release process in this file. Put them in `README.md`.
75
- - Do not place code architecture here. Put architecture in `Harness/architecture.md` or the current feature doc.
76
- - If this file has accumulated unrelated project notes, pause and propose moving them to the right place: `README.md` for development operations, `Harness/architecture.md` for architecture, `Harness/WF.md` or `Harness/workflows/` for workflow rules.
77
-
78
- ## 6. Memory & Self-Learning
79
-
80
- - `Harness/MEMORY.md` is the resource index. Detailed durable memory lives in `Harness/memory/`.
81
- - **Tool reflection trigger**: record a lightweight reflection when the same tool/use pattern fails 3+ times, or when a better command pattern/environment fix is found. Write it newest-first in `Harness/memory/tool-usage-reflections.md`.
82
- - **User correction trigger**: record a lightweight preference/correction when the user asks to remember it, or when the user corrects the same assumption/pattern 2+ times. Write it newest-first in `Harness/memory/user-corrections-preferences.md`.
83
- - **Agent lesson trigger**: record reusable lessons from review/debug loops in `Harness/memory/agent-lessons-patterns.md` when they would prevent recurrence.
84
- - **WF auto-trigger**: before WF closeout, dispatch `context-master` then `memory-master` (or use `/wf-learn`). The old "3x same failure" auto-trigger is unreliable — make this a mandatory closeout gate.
85
- - **Context threshold trigger**: when context approaches ~85% of the window, dispatch `context-master` to analyze and write a non-blocking compression suggestion to `Harness/tasks/<task-id>/PROGRESS.md#Heartbeat`.
86
- - **Closeout trigger**: during WF closeout, dispatch `context-master` to extract durable knowledge, then `memory-master` to consolidate into `Harness/memory/*`.
87
- - Never record secrets, credentials, tokens, or private data in memory.
88
-
89
- ## 7. CEO Constraints
90
-
91
- - Never call `EnterPlanMode` — delegate planning to `planner` subagents (see `Harness/WF.md`).
92
- - Never write code directly in `/wf` or `/wf-max` mode — delegate all implementation to subagents (see `Harness/WF-MAX.md`).
93
- - **Enforcement**: `.claude/settings.json` denies `EnterPlanMode` via the `deny` list. CEO contract is in [Section 1a](#1a-ceo-contract-read-before-any-tool-use) — read it first.
94
- - WF-MAX hooks in `.claude/settings.json` block CEO Edit/Write/MultiEdit/Bash on source files. `Harness/.runtime/current-mode.json` persists mode state across sessions.
1
+ # CLAUDE.md
2
+
3
+ This repository dogfoods the generated Harness scaffold. Scaffold source files live under `templates/common/` and `templates/optional/`; generated dogfood runtime files live under root `Harness/` and `.claude/`.
4
+
5
+ ## 1. Harness Binding & Startup
6
+
7
+ - If `Harness/` exists, this repository is governed by the Harness contract. Treat these files as mandatory operating instructions, not optional references.
8
+ - Every session: load `Harness/MEMORY.md` first, then `Harness/README.md`.
9
+ - If `Harness/SETUP.md` exists, follow it before normal project work; it is the install/bootstrap contract and may be deleted after setup is complete.
10
+
11
+ ### 1a. CEO Contract (READ BEFORE ANY TOOL USE)
12
+
13
+ `/wf-max` active → you are **CEO, not implementer** (enforced by hooks + `.runtime/current-mode.json`).
14
+
15
+ | ALLOWED (W0) | FORBIDDEN (always on source) |
16
+ |---|---|
17
+ | Read Harness docs, CLAUDE.md | Edit / Write / MultiEdit |
18
+ | Grep/Glob for scoping | Bash (except `ls`/`dir`/`tree`/`git`) |
19
+ | Agent spawn (ONE message) | Deep source reads → delegate to Worker |
20
+ | Write PLAN.md / PROGRESS.md | Sequential spawn (AP6) |
21
+
22
+ **Tempted to edit source? STOP. Spawn a Worker.**
23
+
24
+ - `Harness/MEMORY.md` is the memory/resource router: agents, skills, durable memories, and cross-session lessons. Follow its registrations when selecting agents/skills or recording memory.
25
+ - `Harness/README.md` is the task router. For every request, check `Harness/README.md#Load By Task`; if a row matches, read and follow those docs before acting.
26
+ - `Harness/PROGRESS.md` is the global task index. Load at session start to see active task and task history.
27
+ - If work spans more than one step, create a task capsule from `Harness/tasks/_template/` and update `Harness/tasks/<task-id>/PROGRESS.md`.
28
+ - Use `/wf <task>`, `/wf-review [focus]`, `wf mode`, `workflow mode`, or `wk mode` for long, difficult, uncertain, multi-file, or repeated-failure work.
29
+ - Use `/wf-max [task]` for maximum parallelism — CEO→Manager→Worker hierarchy. CEO never writes code directly.
30
+ - Use `/wf-auto` for perpetual self-directed optimization — never stops, continuously improves until 8-angle exhaustion.
31
+ - Use `subagent-orchestrator` and `Harness/subagents.md` when coordinating multiple subagents.
32
+ - Use `/wf-update` to check for and apply scaffold updates from GitHub. See `.claude/skills/wf-update/SKILL.md`.
33
+ - Subagents are readers and reporters. Only the main agent writes to `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md`.
34
+ - For memory writing and consolidation (repeated failures, user corrections, closeout), dispatch `memory-master`.
35
+ - For context analysis and compression alerts (~85% window), dispatch `context-master`.
36
+ - Universal rules live in `.claude/rules/ecc/common.md`.
37
+ - Never bulk-read `Harness/`; route through `Harness/README.md` and `Harness/MEMORY.md`.
38
+ - Scaffold source files live under `templates/common/` and `templates/optional/`; generated dogfood runtime files live under root `Harness/` and `.claude/`.
39
+
40
+ ## 2. Think Before Coding
41
+
42
+ - You must have **>=95% confidence** in user intent before writing implementation code.
43
+ - If confidence is below 95%, stop and ask up to 3 blocking questions.
44
+ - If multiple valid approaches exist and the choice affects architecture, scope, stack, or user-facing behavior, present trade-offs instead of picking silently.
45
+ - State assumptions before implementation and record durable assumptions, decisions, blockers, handoffs, and verification evidence in `Harness/tasks/<task-id>/PLAN.md`.
46
+ - If something is unclear, stop. Name what is unclear and ask instead of guessing.
47
+ - Before asserting a fact about the codebase, read the file that proves it. If you cannot cite the file and line, do not assert.
48
+
49
+ ## 3. Simplicity First
50
+
51
+ - No features beyond what was asked.
52
+ - No abstractions for single-use code.
53
+ - No unrequested flexibility, configurability, or speculative error handling.
54
+ - Use explicit interfaces or state models only when they protect a real boundary, clarify ownership, or make verification/recovery simpler.
55
+ - If a simpler approach exists, say so and prefer the smallest change that satisfies the request.
56
+ - If the solution is growing faster than the problem, reduce scope before coding more.
57
+
58
+ ## 4. Surgical Changes
59
+
60
+ - Touch only files and lines required by the task.
61
+ - Do not improve adjacent code, comments, formatting, or architecture unless it is required for the task.
62
+ - Match existing style even when you would choose a different style in a new project.
63
+ - Clean up imports, variables, functions, and files made unused by your own changes; do not delete pre-existing dead code unless asked.
64
+ - Keep every changed line traceable to the user's request.
65
+
66
+ ## 5. Goal-Driven Execution
67
+
68
+ - Define verifiable success criteria before implementation.
69
+ - For bugs, reproduce the failure or document why reproduction is impossible before fixing.
70
+ - For multi-step work, keep `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md` current. The main agent is the only state committer; subagents return suggestions only.
71
+ - State assumptions before implementation and record durable assumptions, decisions, blockers, handoffs, and verification evidence in `Harness/tasks/<task-id>/PLAN.md`.
72
+ - Every task needs a test, build check, validator run, or recorded manual check.
73
+ - Do not claim web/UI acceptance without real-browser evidence from Chrome DevTools, CDP, Playwright, or documented manual browser checks.
74
+ - Do not place project build scripts, git conventions, run commands, or release process in this file. Put them in `README.md`.
75
+ - Do not place code architecture here. Put architecture in `Harness/architecture.md` or the current feature doc.
76
+ - If this file has accumulated unrelated project notes, pause and propose moving them to the right place: `README.md` for development operations, `Harness/architecture.md` for architecture, `Harness/WF.md` or `Harness/workflows/` for workflow rules.
77
+
78
+ ## 6. Memory & Self-Learning
79
+
80
+ - `Harness/MEMORY.md` is the resource index. Detailed durable memory lives in `Harness/memory/`.
81
+ - **Tool reflection trigger**: record a lightweight reflection when the same tool/use pattern fails 3+ times, or when a better command pattern/environment fix is found. Write it newest-first in `Harness/memory/tool-usage-reflections.md`.
82
+ - **User correction trigger**: record a lightweight preference/correction when the user asks to remember it, or when the user corrects the same assumption/pattern 2+ times. Write it newest-first in `Harness/memory/user-corrections-preferences.md`.
83
+ - **Agent lesson trigger**: record reusable lessons from review/debug loops in `Harness/memory/agent-lessons-patterns.md` when they would prevent recurrence.
84
+ - **WF auto-trigger**: before WF closeout, dispatch `context-master` then `memory-master` (or use `/wf-learn`). The old "3x same failure" auto-trigger is unreliable — make this a mandatory closeout gate.
85
+ - **Context threshold trigger**: when context approaches ~85% of the window, dispatch `context-master` to analyze and write a non-blocking compression suggestion to `Harness/tasks/<task-id>/PROGRESS.md#Heartbeat`.
86
+ - **Closeout trigger**: during WF closeout, dispatch `context-master` to extract durable knowledge, then `memory-master` to consolidate into `Harness/memory/*`.
87
+ - Never record secrets, credentials, tokens, or private data in memory.
88
+
89
+ ## 7. CEO Constraints
90
+
91
+ - Never call `EnterPlanMode` — delegate planning to `planner` subagents (see `Harness/WF.md`).
92
+ - Never write code directly in `/wf` or `/wf-max` mode — delegate all implementation to subagents (see `Harness/WF-MAX.md`).
93
+ - **Enforcement**: `.claude/settings.json` denies `EnterPlanMode` via the `deny` list. CEO contract is in [Section 1a](#1a-ceo-contract-read-before-any-tool-use) — read it first.
94
+ - WF-MAX hooks in `.claude/settings.json` block CEO Edit/Write/MultiEdit/Bash on source files. `Harness/.runtime/current-mode.json` persists mode state across sessions.
@@ -1,17 +1,17 @@
1
- # PROGRESS.md
2
-
3
- Global task index. Load at session start to see what is active and what was done.
4
-
5
- ## Active Task
6
-
7
- None — create a new task from `Harness/tasks/_template/` when work spans more than one step.
8
-
9
- ## Task Index
10
-
11
- | ID | Goal | Phase | Closed |
12
- |----|------|-------|--------|
13
-
14
- ## Cross-Task Decisions
15
-
16
- | Date | Decision | Reason |
17
- |------|----------|--------|
1
+ # PROGRESS.md
2
+
3
+ Global task index. Load at session start to see what is active and what was done.
4
+
5
+ ## Active Task
6
+
7
+ None — create a new task from `Harness/tasks/_template/` when work spans more than one step.
8
+
9
+ ## Task Index
10
+
11
+ | ID | Goal | Phase | Closed |
12
+ |----|------|-------|--------|
13
+
14
+ ## Cross-Task Decisions
15
+
16
+ | Date | Decision | Reason |
17
+ |------|----------|--------|
@@ -51,7 +51,7 @@ Keywords are retrieval hints, not project facts.
51
51
 
52
52
  Load the matching row only. Add adjacent docs only when the loaded doc directly names them.
53
53
 
54
- Routing priority: if a request explicitly says `/wf <task>`, `wf mode`, `workflow mode`, or `wk mode`, or is long, difficult, uncertain, repeated-failure, migration, architecture-heavy, browser-visible, or broad multi-agent implementation work, choose the WF row first. Load `Harness/WF.md` directly, then delegate subagent coordination to `subagent-orchestrator`.
54
+ Routing priority: if a request explicitly says `/wf <task>`, `$wf`, `wf mode`, `workflow mode`, or `wk mode`, or is long, difficult, uncertain, repeated-failure, migration, architecture-heavy, browser-visible, or broad multi-agent implementation work, choose the WF row first. Load `Harness/WF.md` directly, then delegate subagent coordination to `subagent-orchestrator`.
55
55
 
56
56
  | When to Read | Keywords | Load | Output |
57
57
  | --- | --- | --- | --- |
@@ -59,8 +59,8 @@ Routing priority: if a request explicitly says `/wf <task>`, `wf mode`, `workflo
59
59
  | Need market/tech direction | research, market, competitor, stack, library, pricing, policy | [research/README.md](research/README.md), [research/research-results.md](research/research-results.md) | research protocol, adopted/rejected choices |
60
60
  | Need MVP/spec | PRD, MVP, scope, requirement, acceptance, non-goal | [research/PRD.md](research/PRD.md) | one-page PRD with verifiable acceptance criteria |
61
61
  | Need architecture or boundaries | architecture, boundary, layer, port, adapter, dependency | [architecture.md](architecture.md) | layer map, ports, constraints |
62
- | Need WF mode | wf, /wf, wf mode, workflow mode, wk mode, long task, difficult, stuck, repeated failure | [WF.md](WF.md), [PROGRESS.md](PROGRESS.md), the current task `tasks/<id>/PROGRESS.md` and `tasks/<id>/PLAN.md` | exploration plan, second plan, heartbeat, recovery loop; explicit WF/WK loads subagent docs immediately |
63
- | Need peer review | /wf-review, peer review, second opinion, cross-check, stuck | `.claude/skills/wf-review/SKILL.md`, `Harness/README.md` | cross-model review via other CLI (Codex/Claude) |
62
+ | Need WF mode | wf, /wf, $wf, wf mode, workflow mode, wk mode, long task, difficult, stuck, repeated failure | [WF.md](WF.md), [PROGRESS.md](PROGRESS.md), the current task `tasks/<id>/PROGRESS.md` and `tasks/<id>/PLAN.md` | exploration plan, second plan, heartbeat, recovery loop; explicit WF/WK loads subagent docs immediately |
63
+ | Need peer review | /wf-review, $wf-review, peer review, second opinion, cross-check, stuck | `.claude/skills/wf-review/SKILL.md`, `.agents/skills/wf-review/SKILL.md`, `Harness/README.md` | cross-model review via other CLI (Codex/Claude) |
64
64
  | Adding harness to existing project | existing project, onboarding, migrate, bootstrap, preserve, conflict | [extension.md](extension.md), [PROGRESS.md](PROGRESS.md), root `README.md` and package/CI files | discovered project facts, preserved config, manual registration plan |
65
65
  | README optimization | README, docs, quickstart, install docs, architecture diagram, command table, documentation polish | root `README.md`, `.claude/skills/wf-readme/SKILL.md`, [PROGRESS.md](PROGRESS.md), [architecture.md](architecture.md) as needed | approved README mode, preserved sections, proposed diff plan |
66
66
  | Need implementation plan | plan, task, write set, verify, milestone, progress | [PROGRESS.md](PROGRESS.md), the current task `tasks/<id>/PROGRESS.md` and `tasks/<id>/PLAN.md`, [agent-workflow.md](agent-workflow.md) | tasks, write set, verification commands |
@@ -71,12 +71,12 @@ Routing priority: if a request explicitly says `/wf <task>`, `wf mode`, `workflo
71
71
  | Need feature work | feature, implementation, TDD, test, review, closeout | [tasks/_template/PLAN.md](tasks/_template/PLAN.md), [agent-workflow.md](agent-workflow.md) | task plan, tests, implementation loop |
72
72
  | Review or release check | review, release, finding, risk, evidence, verification | [agent-workflow.md](agent-workflow.md), current feature doc | findings, verification evidence |
73
73
  | Harness readiness check | validate, readiness, placeholder, missing file, release gate | `Harness/scripts/validate-harness.mjs`, `Harness/scripts/validate-harness.mjs --strict` | missing files and unresolved project placeholders |
74
- | Need harness update | update, /wf update, check for updates, harness version | `.claude/skills/wf-update/SKILL.md`, `Harness/.harness-version` | update plan, safe incremental update, merge candidates |
74
+ | Need harness update | update, /wf-update, $wf-update, check for updates, harness version | `.claude/skills/wf-update/SKILL.md`, `.agents/skills/wf-update/SKILL.md`, `Harness/.harness-version` | update plan, safe incremental update, merge candidates |
75
75
 
76
76
  ## Gates
77
77
 
78
78
  - Move phases in order unless the user asks for a fast lane.
79
- - Use `/wf <task>`, `/wf-max [task]`, `wf mode`, `workflow mode`, or `wk mode` when a task is long, difficult, uncertain, multi-file, or repeatedly failing.
79
+ - Use `/wf <task>` in Claude Code, `$wf` in Codex, `/wf-max [task]` or `$wf-max`, `wf mode`, `workflow mode`, or `wk mode` when a task is long, difficult, uncertain, multi-file, or repeatedly failing.
80
80
  - Do not code before the PRD has MVP, non-goals, and acceptance criteria.
81
81
  - Unsure whether to open a task? Read [agent-workflow.md](agent-workflow.md) Section 1.
82
82
  - Do not spawn a subagent without a role, read boundary, write boundary, and return contract.
@@ -99,13 +99,14 @@ Harness/PROGRESS.md global task index and cross-task decisions
99
99
  Harness/tasks/<id>/PROGRESS.md per-task progress, phase, heartbeat
100
100
  Harness/tasks/<id>/PLAN.md per-task implementation plan and evidence
101
101
  Harness/tasks/_template/ task capsule template (copy to create new task)
102
- Harness/WF.md long-task workflow and recovery loop
103
- Harness/WF-MAX.md max-parallelism workflow with wave dispatch
104
- .claude/skills/wf-max/SKILL.md max-parallelism skill loader
105
- .claude/skills/wf-review/SKILL.md cross-model peer review skill
106
- .claude/commands/wf-max.md /wf-max slash command bridge
107
- .claude/commands/learn.md /wf-learn slash command bridge
108
- .claude/commands/wf-review.md /wf-review slash command bridge
102
+ Harness/WF.md long-task workflow and recovery loop
103
+ Harness/WF-MAX.md max-parallelism workflow with wave dispatch
104
+ .claude/skills/wf/SKILL.md Claude Code WF skill command
105
+ .claude/skills/wf-max/SKILL.md Claude Code max-parallelism skill command
106
+ .claude/skills/wf-review/SKILL.md Claude Code cross-model peer review skill
107
+ .agents/skills/wf/SKILL.md Codex WF repo skill
108
+ .agents/skills/wf-max/SKILL.md Codex max-parallelism repo skill
109
+ .agents/skills/wf-review/SKILL.md Codex cross-model peer review repo skill
109
110
  Harness/lifecycle.md 0-1 product flow
110
111
  Harness/subagents.md controller-led subagent orchestration
111
112
  Harness/context-loading.md dynamic loading and subagent packs
@@ -122,10 +123,10 @@ Harness/memory/user-corrections-preferences.md durable user corrections and pref
122
123
  Harness/memory/agent-lessons-patterns.md reusable review/debug lessons
123
124
  Harness/scripts/validate-harness.mjs lightweight harness gate
124
125
  .claude/agents/* built-in common agents
125
- .claude/skills/* skill-style dynamic loaders
126
- .claude/skills/wf-readme/SKILL.md README preservation and optional structure pass
127
- .claude/commands/wf.md slash command bridge into WF mode
128
- .claude/skills/wf-update/SKILL.md GitHub-based harness update
129
- .claude/commands/wf-update.md /wf-update slash command bridge
126
+ .claude/skills/* Claude Code skill commands
127
+ .agents/skills/* Codex repo skills mirrored from .claude/skills
128
+ .claude/skills/wf-readme/SKILL.md README preservation and optional structure pass
129
+ .claude/skills/wf-update/SKILL.md GitHub-based harness update
130
+ .agents/skills/wf-update/SKILL.md Codex harness update skill
130
131
  Harness/.harness-version scaffold version and file checksums
131
132
  ```