create-harness-vibe-coding 0.8.7 → 0.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.
Files changed (77) hide show
  1. package/README-CN.md +157 -105
  2. package/README.md +160 -244
  3. package/bin/create-harness-vibe-coding.js +2 -2
  4. package/docs/images/harness-architecture-light.png +0 -0
  5. package/docs/images/harness-architecture.drawio +164 -0
  6. package/package.json +46 -44
  7. package/src/generator.js +5 -5
  8. package/src/index.js +14 -9
  9. package/src/prompts.js +37 -37
  10. package/templates/common/.claude/agents/architect-manager.md +45 -45
  11. package/templates/common/.claude/agents/context-master.md +75 -75
  12. package/templates/common/.claude/agents/debugger.md +41 -41
  13. package/templates/common/.claude/agents/explore-manager.md +41 -41
  14. package/templates/common/.claude/agents/implement-manager.md +49 -49
  15. package/templates/common/.claude/agents/implementer.md +40 -40
  16. package/templates/common/.claude/agents/memory-master.md +64 -64
  17. package/templates/common/.claude/agents/planner.md +34 -34
  18. package/templates/common/.claude/agents/researcher.md +41 -41
  19. package/templates/common/.claude/agents/review-manager.md +56 -56
  20. package/templates/common/.claude/agents/verifier.md +29 -29
  21. package/templates/common/.claude/commands/wf-help.md +1 -1
  22. package/templates/common/.claude/rules/ecc/common.md +44 -44
  23. package/templates/common/.claude/skills/wf-auto/SKILL.md +8 -6
  24. package/templates/common/.claude/skills/wf-readme/SKILL.md +49 -49
  25. package/templates/common/.claude/skills/wf-remove/SKILL.md +7 -7
  26. package/templates/common/.harness-version +54 -14
  27. package/templates/common/.opencode/agents/architect-manager.md +52 -0
  28. package/templates/common/.opencode/agents/architect.md +35 -0
  29. package/templates/common/.opencode/agents/context-master.md +81 -0
  30. package/templates/common/.opencode/agents/debugger.md +43 -0
  31. package/templates/common/.opencode/agents/docs-researcher.md +42 -0
  32. package/templates/common/.opencode/agents/explore-manager.md +49 -0
  33. package/templates/common/.opencode/agents/implement-manager.md +56 -0
  34. package/templates/common/.opencode/agents/implementer.md +42 -0
  35. package/templates/common/.opencode/agents/memory-master.md +70 -0
  36. package/templates/common/.opencode/agents/planner.md +38 -0
  37. package/templates/common/.opencode/agents/reflector.md +39 -0
  38. package/templates/common/.opencode/agents/researcher.md +42 -0
  39. package/templates/common/.opencode/agents/review-manager.md +63 -0
  40. package/templates/common/.opencode/agents/reviewer.md +37 -0
  41. package/templates/common/.opencode/agents/tdd-guide.md +83 -0
  42. package/templates/common/.opencode/agents/test-writer.md +54 -0
  43. package/templates/common/.opencode/agents/verifier.md +37 -0
  44. package/templates/common/.opencode/commands/wf-help.md +23 -0
  45. package/templates/common/CLAUDE.md +85 -88
  46. package/templates/common/Harness/PROGRESS.md +17 -17
  47. package/templates/common/Harness/README.md +16 -5
  48. package/templates/common/Harness/WF-AUTO-ANGLES.md +170 -0
  49. package/templates/common/Harness/WF-AUTO-SPARK.md +5 -5
  50. package/templates/common/Harness/WF-AUTO.md +85 -96
  51. package/templates/common/Harness/architecture.md +124 -124
  52. package/templates/common/Harness/context-loading.md +111 -111
  53. package/templates/common/Harness/extension.md +66 -66
  54. package/templates/common/Harness/lifecycle.md +20 -20
  55. package/templates/common/Harness/research/PRD.md +56 -56
  56. package/templates/common/Harness/research/README.md +169 -169
  57. package/templates/common/Harness/research/research-results.md +66 -66
  58. package/templates/common/Harness/subagents.md +208 -208
  59. package/templates/common/Harness/tasks/_template/ARTIFACTS.md +2 -2
  60. package/templates/common/Harness/tasks/_template/NOTES.md +2 -2
  61. package/templates/common/MEMORY.md +1 -1
  62. package/templates/common/README.md +36 -36
  63. package/templates/common/memory/agent-lessons-patterns.md +21 -21
  64. package/templates/common/memory/tool-usage-reflections.md +21 -21
  65. package/templates/common/memory/user-corrections-preferences.md +21 -21
  66. package/templates/common/opencode.json +19 -0
  67. package/templates/common/scripts/scan-clean.mjs +415 -415
  68. package/templates/common/scripts/validate-harness.mjs +274 -245
  69. package/templates/common/scripts/wf-remove.mjs +56 -39
  70. package/templates/common/scripts/wf-update-check.mjs +599 -599
  71. package/templates/optional/catalog.json +41 -33
  72. package/templates/optional/skills/browser-e2e/.claude/skills/wf-browser/SKILL.md +193 -193
  73. package/templates/optional/skills/browser-e2e/Harness/workflows/browser-e2e.md +48 -48
  74. package/templates/optional/skills/github-pr-review/Harness/workflows/github-pr-review.md +28 -28
  75. package/templates/optional/skills/python-backend/Harness/workflows/python-backend.md +34 -34
  76. package/templates/optional/skills/ts-react-frontend/Harness/workflows/ts-react-frontend.md +34 -34
  77. package/templates/optional/skills/ui-ux-review/Harness/workflows/ui-ux-review.md +26 -26
@@ -1,142 +1,142 @@
1
- # Context Loading Protocol
2
-
3
- Use when context is growing, subagents are needed, or an agent is unsure which harness doc applies.
4
-
5
- ## Routing Authority
6
-
7
- `Harness/README.md` is the primary router. This file is a secondary context-splitting protocol for subagents and long tasks.
8
-
9
- If this file and `Harness/README.md` disagree, follow `Harness/README.md`, record the assumption in `Harness/tasks/<task-id>/PROGRESS.md`, and update this file later.
10
-
11
- project files are the only durable communication channel; chat/subagent transcript state is non-authoritative. Important assumptions, decisions, blockers, evidence, and handoffs must be written to `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md`, the current feature doc, `Harness/MEMORY.md`, or `Harness/memory/*` as appropriate.
12
-
13
- ## Main Context
14
-
15
- Always keep:
16
-
17
- - `CLAUDE.md`
18
- - `Harness/MEMORY.md`
19
- - `Harness/README.md`
20
- - `Harness/PROGRESS.md` when active
21
- - `Harness/tasks/<task-id>/PROGRESS.md` when active
22
- - `Harness/tasks/<task-id>/PLAN.md` when active
23
- - current feature doc when active
24
-
25
- Load other docs only by trigger.
26
-
27
- ## Trigger Matrix
28
-
29
- | Trigger | Load |
30
- | --- | --- |
1
+ # Context Loading Protocol
2
+
3
+ Use when context is growing, subagents are needed, or an agent is unsure which harness doc applies.
4
+
5
+ ## Routing Authority
6
+
7
+ `Harness/README.md` is the primary router. This file is a secondary context-splitting protocol for subagents and long tasks.
8
+
9
+ If this file and `Harness/README.md` disagree, follow `Harness/README.md`, record the assumption in `Harness/tasks/<task-id>/PROGRESS.md`, and update this file later.
10
+
11
+ project files are the only durable communication channel; chat/subagent transcript state is non-authoritative. Important assumptions, decisions, blockers, evidence, and handoffs must be written to `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md`, the current feature doc, `Harness/MEMORY.md`, or `Harness/memory/*` as appropriate.
12
+
13
+ ## Main Context
14
+
15
+ Always keep:
16
+
17
+ - `CLAUDE.md`
18
+ - `Harness/MEMORY.md`
19
+ - `Harness/README.md`
20
+ - `Harness/PROGRESS.md` when active
21
+ - `Harness/tasks/<task-id>/PROGRESS.md` when active
22
+ - `Harness/tasks/<task-id>/PLAN.md` when active
23
+ - current feature doc when active
24
+
25
+ Load other docs only by trigger.
26
+
27
+ ## Trigger Matrix
28
+
29
+ | Trigger | Load |
30
+ | --- | --- |
31
31
  | idea, scope, MVP | `Harness/lifecycle.md`, `Harness/research/PRD.md`, `Harness/ACCEPTANCE_PROTOCOL.md` |
32
32
  | acceptance, AC, criteria, contract, validation matrix | `Harness/ACCEPTANCE_PROTOCOL.md`, `Harness/AGENT_ISOLATION.md`, `Harness/HARNESS_BRIDGE.md` as needed |
33
33
  | research, competitors, stack choice | `Harness/research/README.md`, `Harness/research/research-results.md` |
34
- | task split, owner, write set | `Harness/tasks/<task-id>/PROGRESS.md`, `Harness/tasks/<task-id>/PLAN.md`, `Harness/agent-workflow.md` |
35
- | parallel agents, dispatch, worktree decision | `Harness/subagents.md`, `Harness/dispatch.md`, `Harness/tasks/<task-id>/PLAN.md` |
36
- | `/wf` mode, long task, multi-file, multi-agent | `Harness/WF.md`, `Harness/subagents.md`, `Harness/dispatch.md`, `Harness/tasks/<task-id>/PLAN.md` |
37
- | `/wf max`, 5+ disjoint files, maximum parallelism | `Harness/WF-MAX.md`, `Harness/subagents.md`, `Harness/dispatch.md`, `Harness/tasks/<task-id>/PLAN.md` |
34
+ | task split, owner, write set | `Harness/tasks/<task-id>/PROGRESS.md`, `Harness/tasks/<task-id>/PLAN.md`, `Harness/agent-workflow.md` |
35
+ | parallel agents, dispatch, worktree decision | `Harness/subagents.md`, `Harness/dispatch.md`, `Harness/tasks/<task-id>/PLAN.md` |
36
+ | `/wf` mode, long task, multi-file, multi-agent | `Harness/WF.md`, `Harness/subagents.md`, `Harness/dispatch.md`, `Harness/tasks/<task-id>/PLAN.md` |
37
+ | `/wf max`, 5+ disjoint files, maximum parallelism | `Harness/WF-MAX.md`, `Harness/subagents.md`, `Harness/dispatch.md`, `Harness/tasks/<task-id>/PLAN.md` |
38
38
  | memory, scenario memory, repeated tool failure, repeated user correction, reusable lesson | `Harness/MEMORY.md`, `Harness/MEMORY_PROTOCOL.md`, the relevant `Harness/memory/*.md` file |
39
39
  | subagent spawn | `Harness/subagents.md`, `Harness/AGENT_ISOLATION.md`, this file plus the role pack below |
40
-
41
- ## ECC Rules Per Role
42
-
43
- Each subagent role loads a specific ECC rule subset. The dispatcher MUST include
44
- `ecc` in the dispatch packet so the subagent knows which rules to read first.
45
-
46
- | Role | Frontend Task | Backend Task | Full-Stack Task |
47
- |------|--------------|-------------|-----------------|
48
- | **Explorer** | `web/patterns.md`, `web/design-quality.md` | `common/patterns.md`, stack patterns | All |
49
- | **Planner** | `common/patterns.md`, `web/patterns.md` | `common/patterns.md`, stack patterns | All |
50
- | **Architect** | `web/patterns.md`, `web/performance.md` | `common/patterns.md`, `python/fastapi.md` or `golang/patterns.md` | All + API contract |
51
- | **Implementer (FE)** | `web/design-quality.md`, `web/patterns.md`, `web/performance.md`, `typescript/patterns.md` | N/A | Frontend subset |
52
- | **Implementer (BE)** | N/A | `common/patterns.md`, `python/fastapi.md` or `golang/patterns.md` | Backend subset |
53
- | **Test Writer** | `web/testing.md`, `typescript/testing.md` | Stack testing rules | Both |
54
- | **Reviewer** | `web/design-quality.md`, `web/security.md`, `web/performance.md` | Stack security + testing rules | All |
40
+
41
+ ## ECC Rules Per Role
42
+
43
+ Each subagent role loads a specific ECC rule subset. The dispatcher MUST include
44
+ `ecc` in the dispatch packet so the subagent knows which rules to read first.
45
+
46
+ | Role | Frontend Task | Backend Task | Full-Stack Task |
47
+ |------|--------------|-------------|-----------------|
48
+ | **Explorer** | `web/patterns.md`, `web/design-quality.md` | `common/patterns.md`, stack patterns | All |
49
+ | **Planner** | `common/patterns.md`, `web/patterns.md` | `common/patterns.md`, stack patterns | All |
50
+ | **Architect** | `web/patterns.md`, `web/performance.md` | `common/patterns.md`, `python/fastapi.md` or `golang/patterns.md` | All + API contract |
51
+ | **Implementer (FE)** | `web/design-quality.md`, `web/patterns.md`, `web/performance.md`, `typescript/patterns.md` | N/A | Frontend subset |
52
+ | **Implementer (BE)** | N/A | `common/patterns.md`, `python/fastapi.md` or `golang/patterns.md` | Backend subset |
53
+ | **Test Writer** | `web/testing.md`, `typescript/testing.md` | Stack testing rules | Both |
54
+ | **Reviewer** | `web/design-quality.md`, `web/security.md`, `web/performance.md` | Stack security + testing rules | All |
55
55
  | **Debugger** | Stack-specific coding-style + patterns | Stack-specific coding-style + patterns | Context-dependent |
56
- | **Verifier** | `web/testing.md` | Stack testing rules | Both |
57
-
58
- ## Subagent Packs
59
-
60
- Each pack now includes `ecc` — the ECC rule files this role MUST load first.
61
-
62
- Explorer Pass:
63
- - ecc: `common/patterns.md` + stack-specific patterns (see ECC Rules Per Role)
64
- - inject: question, read boundary, relevant docs
65
- - forbid: writes
66
- - return: files found, facts, risks, suggested tests
67
-
56
+ | **Verifier** | `web/testing.md` | Stack testing rules | Both |
57
+
58
+ ## Subagent Packs
59
+
60
+ Each pack now includes `ecc` — the ECC rule files this role MUST load first.
61
+
62
+ Explorer Pass:
63
+ - ecc: `common/patterns.md` + stack-specific patterns (see ECC Rules Per Role)
64
+ - inject: question, read boundary, relevant docs
65
+ - forbid: writes
66
+ - return: files found, facts, risks, suggested tests
67
+
68
68
  Planner:
69
69
  - ecc: `common/patterns.md` + `common/development-workflow.md`
70
70
  - inject: user goal, lifecycle phase, PRD or PLAN section, acceptance gate status, dispatch constraints
71
71
  - forbid: production code
72
72
  - return: tasks, dependencies, read/write sets, dispatch table, gates, open questions
73
-
74
- Researcher:
75
- - ecc: none (uses WebSearch/WebFetch, not code rules)
76
- - inject: question, decision needed, source boundaries, tool options
77
- - forbid: production code
78
- - return: sources, adopted/rejected/watch decisions, risks, research-results.md patch
79
-
80
- Docs Researcher:
81
- - ecc: none (uses official docs, not code rules)
82
- - inject: library/API/config, implementation question, version/date constraints
83
- - forbid: production code
84
- - return: official links, constraints, errors, examples, affected docs
85
-
86
- Architect:
87
- - ecc: `common/patterns.md` + stack-specific (web/patterns.md for FE, python/fastapi.md for BE)
88
- - inject: PRD, current architecture, ports
89
- - forbid: implementation
90
- - return: boundary decision, affected docs, risks
91
-
73
+
74
+ Researcher:
75
+ - ecc: none (uses WebSearch/WebFetch, not code rules)
76
+ - inject: question, decision needed, source boundaries, tool options
77
+ - forbid: production code
78
+ - return: sources, adopted/rejected/watch decisions, risks, research-results.md patch
79
+
80
+ Docs Researcher:
81
+ - ecc: none (uses official docs, not code rules)
82
+ - inject: library/API/config, implementation question, version/date constraints
83
+ - forbid: production code
84
+ - return: official links, constraints, errors, examples, affected docs
85
+
86
+ Architect:
87
+ - ecc: `common/patterns.md` + stack-specific (web/patterns.md for FE, python/fastapi.md for BE)
88
+ - inject: PRD, current architecture, ports
89
+ - forbid: implementation
90
+ - return: boundary decision, affected docs, risks
91
+
92
92
  Test Writer:
93
93
  - ecc: `common/testing.md` + stack-specific testing rules
94
94
  - inject: acceptance criteria, UI/API contracts, feature doc, test write set
95
95
  - forbid: production code
96
96
  - return: failing tests, AC ID mapping, and test intent
97
-
98
- Implementer (Frontend):
99
- - ecc: `web/design-quality.md`, `web/patterns.md`, `web/performance.md`, `typescript/patterns.md`
100
- - inject: task, tests, allowed write set, forbidden scope
101
- - forbid: unrelated refactor and test loosening
102
- - return: changed files and implementation notes
103
-
104
- Implementer (Backend):
105
- - ecc: `common/patterns.md`, stack-specific patterns (`python/fastapi.md` or `golang/patterns.md`)
106
- - inject: task, tests, allowed write set, forbidden scope
107
- - forbid: unrelated refactor and test loosening
108
- - return: changed files and implementation notes
109
-
97
+
98
+ Implementer (Frontend):
99
+ - ecc: `web/design-quality.md`, `web/patterns.md`, `web/performance.md`, `typescript/patterns.md`
100
+ - inject: task, tests, allowed write set, forbidden scope
101
+ - forbid: unrelated refactor and test loosening
102
+ - return: changed files and implementation notes
103
+
104
+ Implementer (Backend):
105
+ - ecc: `common/patterns.md`, stack-specific patterns (`python/fastapi.md` or `golang/patterns.md`)
106
+ - inject: task, tests, allowed write set, forbidden scope
107
+ - forbid: unrelated refactor and test loosening
108
+ - return: changed files and implementation notes
109
+
110
110
  Reviewer:
111
111
  - ecc: `web/design-quality.md` (FE), `web/security.md` (FE), `common/security.md`, stack security
112
112
  - inject: PRD, acceptance criteria, UI/API contracts, diff, test/validation evidence, architecture docs
113
113
  - forbid: writes
114
114
  - return: findings by severity, AC traceability, missing tests, boundary issues
115
-
115
+
116
116
  Debugger:
117
117
  - ecc: stack-specific coding-style + patterns
118
118
  - inject: failed AC ID, failing command, error output, trace/screenshot/network evidence, related files
119
119
  - forbid: broad rewrites
120
120
  - return: failure layer, root cause, fix, proof
121
-
121
+
122
122
  Verifier:
123
123
  - ecc: stack-specific testing rules
124
124
  - inject: verification commands, acceptance criteria, UI/API contracts, running app/API endpoint
125
125
  - forbid: code changes
126
126
  - return: commands run, AC-by-AC validation matrix, evidence paths, residual risk
127
-
128
- Memory Master:
129
- - inject: trigger reason, current failure/user-correction/closeout context, task PROGRESS.md section
130
- - forbid: source code, unrelated Harness docs
131
- - return: memory action summary, files written, cross-project flag
132
-
133
- Context Master:
134
- - inject: trigger reason (threshold % or closeout), current task PROGRESS.md, task phase
135
- - forbid: source code, memory files, MEMORY.md writes
136
- - return: context usage %, stale blocks, compressible blocks, durable knowledge candidates, compression suggestion
137
-
138
- ## Handoff Rule
139
-
140
- Only the subagent summary enters main context. If details are needed, load the named files directly instead of replaying the subagent conversation.
141
-
142
- Use the handoff format in [dispatch.md](dispatch.md) for every dispatched agent.
127
+
128
+ Memory Master:
129
+ - inject: trigger reason, current failure/user-correction/closeout context, task PROGRESS.md section
130
+ - forbid: source code, unrelated Harness docs
131
+ - return: memory action summary, files written, cross-project flag
132
+
133
+ Context Master:
134
+ - inject: trigger reason (threshold % or closeout), current task PROGRESS.md, task phase
135
+ - forbid: source code, memory files, MEMORY.md writes
136
+ - return: context usage %, stale blocks, compressible blocks, durable knowledge candidates, compression suggestion
137
+
138
+ ## Handoff Rule
139
+
140
+ Only the subagent summary enters main context. If details are needed, load the named files directly instead of replaying the subagent conversation.
141
+
142
+ Use the handoff format in [dispatch.md](dispatch.md) for every dispatched agent.
@@ -1,70 +1,70 @@
1
- # Extension Contract
2
-
1
+ # Extension Contract
2
+
3
3
  Purpose: keep stack-specific agents, skills, and rules compatible with this harness.
4
-
5
- Use during setup whenever adding assets from ECC, SuperClaude, toolboxes, or local project conventions.
6
-
7
- ## Non-Invasive Extension Rules
8
-
9
- Extensions must preserve project and harness ownership boundaries.
10
-
4
+
5
+ Use during setup whenever adding assets from ECC, SuperClaude, toolboxes, or local project conventions.
6
+
7
+ ## Non-Invasive Extension Rules
8
+
9
+ Extensions must preserve project and harness ownership boundaries.
10
+
11
11
  - Preserve existing `.claude/`, `CLAUDE.md`, `AGENTS.md`, `.gitignore`, `Harness/README.md`, `Harness/workflows/*.md`, settings, and local rules unless the user explicitly requests an overwrite.
12
- - Treat existing project config as project fact. Read it before adding assets, then adapt new assets to the project instead of replacing the project.
12
+ - Treat existing project config as project fact. Read it before adding assets, then adapt new assets to the project instead of replacing the project.
13
13
  - Register added agents, skills, workflows, and rules in `Harness/MEMORY.md` and this docs router where applicable.
14
- - Added assets may extend `.claude/skills/`, `.claude/agents/`, `.claude/rules/`, or `Harness/workflows/`, but they must not replace core harness docs.
15
- - Core harness docs are `Harness/README.md`, `Harness/PROGRESS.md`, `Harness/subagents.md`, `Harness/context-loading.md`, `Harness/dispatch.md`, `Harness/agent-workflow.md`, and this file.
16
- - If an optional workflow needs a new command or tool, document the command and fallback in `Harness/workflows/<name>.md` instead of changing core harness behavior.
17
-
18
- ## Agent Contract
19
-
20
- Every added agent must have frontmatter:
21
-
22
- ```yaml
23
- ---
24
- name: stack-agent-name
25
- description: Use when ...
26
- tools: Read, Grep, Glob
27
- model: sonnet
28
- ---
29
- ```
30
-
31
- Agent body must state:
32
-
33
- - load first
34
- - inputs required
35
- - allowed write set or read-only
36
- - forbidden scope
37
- - verification or evidence
38
- - return format from [subagents.md](subagents.md) and [dispatch.md](dispatch.md)
39
-
40
- ## Skill Contract
41
-
42
- Every added skill must state:
43
-
44
- - when to use
45
- - docs to load
46
- - required inputs
47
- - allowed writes
48
- - output format
49
- - whether to update `Harness/PROGRESS.md` and task files
50
- - whether to use [subagents.md](subagents.md) and [dispatch.md](dispatch.md)
51
-
14
+ - Added assets may extend `.claude/skills/`, `.claude/agents/`, `.claude/rules/`, or `Harness/workflows/`, but they must not replace core harness docs.
15
+ - Core harness docs are `Harness/README.md`, `Harness/PROGRESS.md`, `Harness/subagents.md`, `Harness/context-loading.md`, `Harness/dispatch.md`, `Harness/agent-workflow.md`, and this file.
16
+ - If an optional workflow needs a new command or tool, document the command and fallback in `Harness/workflows/<name>.md` instead of changing core harness behavior.
17
+
18
+ ## Agent Contract
19
+
20
+ Every added agent must have frontmatter:
21
+
22
+ ```yaml
23
+ ---
24
+ name: stack-agent-name
25
+ description: Use when ...
26
+ tools: Read, Grep, Glob
27
+ model: sonnet
28
+ ---
29
+ ```
30
+
31
+ Agent body must state:
32
+
33
+ - load first
34
+ - inputs required
35
+ - allowed write set or read-only
36
+ - forbidden scope
37
+ - verification or evidence
38
+ - return format from [subagents.md](subagents.md) and [dispatch.md](dispatch.md)
39
+
40
+ ## Skill Contract
41
+
42
+ Every added skill must state:
43
+
44
+ - when to use
45
+ - docs to load
46
+ - required inputs
47
+ - allowed writes
48
+ - output format
49
+ - whether to update `Harness/PROGRESS.md` and task files
50
+ - whether to use [subagents.md](subagents.md) and [dispatch.md](dispatch.md)
51
+
52
52
  Skills should extend the harness. They should not replace `Harness/README.md`, `Harness/PROGRESS.md`, `subagents.md`, `context-loading.md`, `dispatch.md`, or `agent-workflow.md`.
53
-
54
- ## Rules
55
-
56
- - Do not add broad agents that can write anywhere.
57
- - Do not add agents whose role overlaps an existing common agent without naming the difference.
58
- - Do not add tools that bypass project permissions or user approval.
59
- - Do not run stack-specific writing agents in parallel unless write sets are disjoint.
60
- - If an added asset conflicts with this harness, adapt the asset instead of changing the core contract.
61
-
62
- ## Registration
63
-
64
- After adding assets:
65
-
66
- - list agents in `Harness/MEMORY.md#Agents`
67
- - list skills in `Harness/MEMORY.md#Skills`
68
- - list workflows by path in `Harness/MEMORY.md` or `Harness/README.md`
69
- - update `Harness/PROGRESS.md` and `Harness/tasks/<task-id>/PROGRESS.md` when the asset affects current work
70
- - run `node Harness/scripts/validate-harness.mjs`
53
+
54
+ ## Rules
55
+
56
+ - Do not add broad agents that can write anywhere.
57
+ - Do not add agents whose role overlaps an existing common agent without naming the difference.
58
+ - Do not add tools that bypass project permissions or user approval.
59
+ - Do not run stack-specific writing agents in parallel unless write sets are disjoint.
60
+ - If an added asset conflicts with this harness, adapt the asset instead of changing the core contract.
61
+
62
+ ## Registration
63
+
64
+ After adding assets:
65
+
66
+ - list agents in `Harness/MEMORY.md#Agents`
67
+ - list skills in `Harness/MEMORY.md#Skills`
68
+ - list workflows by path in `Harness/MEMORY.md` or `Harness/README.md`
69
+ - update `Harness/PROGRESS.md` and `Harness/tasks/<task-id>/PROGRESS.md` when the asset affects current work
70
+ - run `node Harness/scripts/validate-harness.mjs`
@@ -1,12 +1,12 @@
1
- # 0-1 Product Lifecycle
2
-
3
- Use when starting a new product, clarifying a vague idea, or deciding the next phase.
4
-
5
- ## Phase Contract
6
-
7
- | Phase | Input | Output | Gate |
8
- | --- | --- | --- | --- |
9
- | Idea | user intent | problem, target user, non-goals | unclear points asked or assumptions recorded |
1
+ # 0-1 Product Lifecycle
2
+
3
+ Use when starting a new product, clarifying a vague idea, or deciding the next phase.
4
+
5
+ ## Phase Contract
6
+
7
+ | Phase | Input | Output | Gate |
8
+ | --- | --- | --- | --- |
9
+ | Idea | user intent | problem, target user, non-goals | unclear points asked or assumptions recorded |
10
10
  | Research | problem and constraints | `research/research-results.md` | `research/README.md` followed; at least 3 references or explicit reason not possible |
11
11
  | PRD | research decision | `research/PRD.md` or task Mini PRD | goal, scope, non-scope, user flow, and verification commands are explicit |
12
12
  | Acceptance | PRD | AC IDs in `ACCEPTANCE.md` section, feature doc, or task PLAN | every user-visible behavior has Given/When/Then and evidence method |
@@ -18,22 +18,22 @@ Use when starting a new product, clarifying a vague idea, or deciding the next p
18
18
  | Independent Validation | running slice | acceptance result matrix, screenshots/traces/logs | validator is not implementer; no unresolved critical/high findings |
19
19
  | Debug | failed AC evidence | root-cause handoff and smallest fix | failing layer identified before edits |
20
20
  | Memory | verified or repeated failure | concise memory entry or no-op rationale | durable lessons recorded without secrets |
21
-
22
- ## Operating Rules
23
-
24
- - Move one phase at a time unless the user explicitly asks for a fast lane.
21
+
22
+ ## Operating Rules
23
+
24
+ - Move one phase at a time unless the user explicitly asks for a fast lane.
25
25
  - Start coding only after PRD-GATE, AC-GATE, CONTRACT-GATE, TEST-GATE, and minimum architecture gates pass.
26
26
  - Prefer one thin vertical slice over broad scaffolding.
27
27
  - If feedback changes scope, update PRD and acceptance criteria before implementation.
28
28
  - If implementation reveals a boundary problem, update architecture or ports before continuing.
29
29
  - If implementation reveals incorrect acceptance criteria or contracts, stop and use Change Request from `ACCEPTANCE_PROTOCOL.md`; do not let the implementer rewrite truth files directly.
30
-
31
- ## Fast Lane
32
-
33
- Small edits may skip full lifecycle when all are true:
34
-
35
- - user intent is clear
36
- - one file or one narrow behavior
30
+
31
+ ## Fast Lane
32
+
33
+ Small edits may skip full lifecycle when all are true:
34
+
35
+ - user intent is clear
36
+ - one file or one narrow behavior
37
37
  - no architecture, permission, or public API change
38
38
  - one verification command or one manual check is enough
39
39
  - Mini PRD, AC IDs, and verification evidence still fit inside the task PLAN
@@ -1,47 +1,47 @@
1
- # PRD: {{projectName}}
2
-
3
- > **Audience**: AI + future you. Not for PM approval — for implementation and review.
4
- > **Principle**: One page max. Use checkboxes, not prose. Negative definitions > positive definitions.
5
- >
6
- > Philosophy source: Miqdad Jaffer (OpenAI)'s lean PRD template for the AI era.
7
-
8
- ---
9
-
10
- ## 1. Why
11
-
12
- {{WHY_THIS_PROJECT_EXISTS}}
13
-
14
- ## 2. MVP Scope
15
-
16
- ### v0.1 Must Be Able To
17
-
18
- > Each item below should have a task capsule created from `Harness/tasks/_template/` with its own `PROGRESS.md` and `PLAN.md`.
19
-
20
- - [ ] {{MUST_1}}
21
- - [ ] {{MUST_2}}
22
- - [ ] {{MUST_3}}
23
-
24
- ### Explicitly Out of Scope
25
-
26
- - {{NON_GOAL_1}}
27
- - {{NON_GOAL_2}}
28
- - {{NON_GOAL_3}}
29
-
30
- ## 3. Decision Priorities
31
-
32
- 1. **Security Boundary** — No bypassing permissions, security gates, or audit.
33
- 2. **Architecture Boundary** — Domain must not depend on harness/infrastructure/interfaces, and harness must not make domain judgments.
34
- 3. **Verifiability** — New behavior must have tests or explicit manual verification records.
35
- 4. **Correctness** — Behavior must match design docs, port contracts, data flows, and state machines.
36
- 5. **Simplicity** — Minimum code to solve the current MVP. No abstractions pre-built for future scenarios.
37
-
38
- ## 4. Users & Usage Scenarios
39
-
40
- | User Role | Core Scenario | Frequency | Pain Point |
41
- | --- | --- | --- | --- |
42
- | {{USER_ROLE_1}} | {{SCENARIO}} | {{FREQUENCY}} | {{PAIN}} |
43
- | {{USER_ROLE_2}} | {{SCENARIO}} | {{FREQUENCY}} | {{PAIN}} |
44
-
1
+ # PRD: {{projectName}}
2
+
3
+ > **Audience**: AI + future you. Not for PM approval — for implementation and review.
4
+ > **Principle**: One page max. Use checkboxes, not prose. Negative definitions > positive definitions.
5
+ >
6
+ > Philosophy source: Miqdad Jaffer (OpenAI)'s lean PRD template for the AI era.
7
+
8
+ ---
9
+
10
+ ## 1. Why
11
+
12
+ {{WHY_THIS_PROJECT_EXISTS}}
13
+
14
+ ## 2. MVP Scope
15
+
16
+ ### v0.1 Must Be Able To
17
+
18
+ > Each item below should have a task capsule created from `Harness/tasks/_template/` with its own `PROGRESS.md` and `PLAN.md`.
19
+
20
+ - [ ] {{MUST_1}}
21
+ - [ ] {{MUST_2}}
22
+ - [ ] {{MUST_3}}
23
+
24
+ ### Explicitly Out of Scope
25
+
26
+ - {{NON_GOAL_1}}
27
+ - {{NON_GOAL_2}}
28
+ - {{NON_GOAL_3}}
29
+
30
+ ## 3. Decision Priorities
31
+
32
+ 1. **Security Boundary** — No bypassing permissions, security gates, or audit.
33
+ 2. **Architecture Boundary** — Domain must not depend on harness/infrastructure/interfaces, and harness must not make domain judgments.
34
+ 3. **Verifiability** — New behavior must have tests or explicit manual verification records.
35
+ 4. **Correctness** — Behavior must match design docs, port contracts, data flows, and state machines.
36
+ 5. **Simplicity** — Minimum code to solve the current MVP. No abstractions pre-built for future scenarios.
37
+
38
+ ## 4. Users & Usage Scenarios
39
+
40
+ | User Role | Core Scenario | Frequency | Pain Point |
41
+ | --- | --- | --- | --- |
42
+ | {{USER_ROLE_1}} | {{SCENARIO}} | {{FREQUENCY}} | {{PAIN}} |
43
+ | {{USER_ROLE_2}} | {{SCENARIO}} | {{FREQUENCY}} | {{PAIN}} |
44
+
45
45
  ## 5. Acceptance Criteria
46
46
 
47
47
  - [ ] AC-001: {{GIVEN_WHEN_THEN_SUMMARY_1}}
@@ -55,18 +55,18 @@
55
55
  | UI | Critical controls have `data-testid` or stable accessible roles. | AC-001 |
56
56
  | API | Endpoint method, URL, payload, success, and failure behavior are explicit. | AC-002 |
57
57
  | State | URL, DOM, store, localStorage, database, or side effects are observable. | AC-003 |
58
-
59
- ## 6. Non-Functional Requirements
60
-
61
- | Dimension | Target | Measurement |
62
- | --- | --- | --- |
63
- | {{DIMENSION_1}} | {{TARGET}} | {{MEASUREMENT}} |
64
- | {{DIMENSION_2}} | {{TARGET}} | {{MEASUREMENT}} |
65
-
66
- ---
67
-
68
- ## Fill Completion Standard
69
-
58
+
59
+ ## 6. Non-Functional Requirements
60
+
61
+ | Dimension | Target | Measurement |
62
+ | --- | --- | --- |
63
+ | {{DIMENSION_1}} | {{TARGET}} | {{MEASUREMENT}} |
64
+ | {{DIMENSION_2}} | {{TARGET}} | {{MEASUREMENT}} |
65
+
66
+ ---
67
+
68
+ ## Fill Completion Standard
69
+
70
70
  - [ ] MVP and Non-goals are project facts; no `{{...}}` placeholders remain.
71
71
  - [ ] Decision priorities guide tradeoffs, not generic platitudes.
72
72
  - [ ] Every acceptance criterion has an AC ID and is verifiable by test, command, or manual step.