create-harness-vibe-coding 0.6.2 → 0.6.4

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 (57) hide show
  1. package/package.json +1 -1
  2. package/src/generator.js +466 -466
  3. package/src/index.js +355 -355
  4. package/templates/common/.claude/agents/architect.md +31 -35
  5. package/templates/common/.claude/agents/context-master.md +0 -1
  6. package/templates/common/.claude/agents/debugger.md +0 -1
  7. package/templates/common/.claude/agents/docs-researcher.md +41 -43
  8. package/templates/common/.claude/agents/implementer.md +0 -1
  9. package/templates/common/.claude/agents/memory-master.md +0 -1
  10. package/templates/common/.claude/agents/planner.md +0 -1
  11. package/templates/common/.claude/agents/researcher.md +0 -1
  12. package/templates/common/.claude/agents/reviewer.md +34 -35
  13. package/templates/common/.claude/agents/test-writer.md +0 -1
  14. package/templates/common/.claude/agents/verifier.md +0 -1
  15. package/templates/common/.claude/commands/wf-max.md +7 -0
  16. package/templates/common/.claude/commands/{update.md → wf-update.md} +4 -0
  17. package/templates/common/.claude/commands/wf.md +10 -3
  18. package/templates/common/.claude/skills/subagent-orchestrator/SKILL.md +2 -1
  19. package/templates/common/.claude/skills/wf-max/SKILL.md +29 -70
  20. package/templates/common/.claude/skills/{readme-optimizer → wf-readme}/SKILL.md +1 -1
  21. package/templates/common/.claude/skills/wf-review/SKILL.md +50 -50
  22. package/templates/common/.claude/skills/wf-update/SKILL.md +58 -58
  23. package/templates/common/CLAUDE.md +77 -76
  24. package/templates/common/MEMORY.md +73 -76
  25. package/templates/common/README.md +1 -1
  26. package/templates/common/SETUP.md +273 -341
  27. package/templates/common/docs/README.md +131 -145
  28. package/templates/common/docs/harness/WF.md +13 -1
  29. package/templates/common/docs/harness/agent-workflow.md +94 -94
  30. package/templates/common/docs/harness/architecture.md +1 -1
  31. package/templates/common/docs/harness/context-loading.md +104 -108
  32. package/templates/common/docs/harness/extension.md +70 -79
  33. package/templates/common/docs/harness/lifecycle.md +33 -33
  34. package/templates/common/docs/harness/subagents.md +1 -1
  35. package/templates/common/docs/research/PRD.md +65 -65
  36. package/templates/common/docs/research/README.md +169 -169
  37. package/templates/common/scripts/validate-harness.mjs +439 -460
  38. package/templates/optional/skills/browser-e2e/.claude/commands/wf-browser.md +25 -0
  39. package/templates/optional/skills/browser-e2e/.claude/skills/browser-e2e/SKILL.md +42 -42
  40. package/templates/optional/skills/browser-e2e/.claude/skills/wf-browser/SKILL.md +194 -0
  41. package/templates/optional/skills/browser-e2e/docs/workflows/browser-e2e.md +55 -34
  42. package/templates/optional/skills/github-pr-review/.claude/skills/github-pr-review/SKILL.md +40 -40
  43. package/templates/optional/skills/python-backend/.claude/skills/python-backend/SKILL.md +40 -40
  44. package/templates/optional/skills/ts-react-frontend/.claude/skills/ts-react-frontend/SKILL.md +43 -43
  45. package/templates/optional/skills/ui-ux-review/.claude/skills/ui-ux-review/SKILL.md +40 -40
  46. package/templates/common/.claude/skills/harness-build-loop/SKILL.md +0 -23
  47. package/templates/common/.claude/skills/harness-context/SKILL.md +0 -26
  48. package/templates/common/.claude/skills/harness-lifecycle/SKILL.md +0 -20
  49. package/templates/common/.claude/skills/harness-research/SKILL.md +0 -30
  50. package/templates/common/.claude/skills/harness-router/SKILL.md +0 -16
  51. package/templates/common/.claude/skills/wf-mode/SKILL.md +0 -55
  52. package/templates/common/docs/domain/ports.md +0 -76
  53. package/templates/common/docs/features/_template.md +0 -177
  54. package/templates/common/docs/harness/PLAN.md +0 -52
  55. package/templates/common/docs/harness/data-flow.md +0 -59
  56. package/templates/common/docs/harness/state-machines.md +0 -58
  57. /package/templates/common/.claude/commands/{learn.md → wf-learn.md} +0 -0
@@ -1,58 +1,58 @@
1
- ---
2
- name: wf-update
3
- description: Use when the user says /wf update, wf update, update harness, or check for updates. Fetches latest template files from GitHub, compares against stored checksums, and applies incremental updates safely.
4
- ---
5
-
6
- # WF Update
7
-
8
- GitHub-based incremental harness update. Pulls latest template files and compares against stored checksums in `Harness/.harness-version`.
9
-
10
- ## Load
11
-
12
- - `Harness/.harness-version`
13
- - `Harness/README.md#Update Mechanism` row (when available)
14
-
15
- ## How It Works
16
-
17
- 1. Read `Harness/.harness-version` -- get current `generator` version and stored `checksums`.
18
- 2. Fetch the latest template file list from GitHub:
19
- - Base URL: `https://raw.githubusercontent.com/zingspark/create-harness-vibe-coding/main/templates/common/`
20
- - Fetch `.harness-version` from the repo first to get the latest version and expected file list.
21
- - If the repo version equals the local version, report "Already up to date."
22
- 3. For each file in the repo's checksums map:
23
- - Compute SHA-256 of the fetched file content (normalize line endings to LF).
24
- - Compare against the local stored checksum in `Harness/.harness-version`.
25
- 4. Classify each difference:
26
- - **SAFE** (TIER 1): Harness runtime files. If local checksum matches stored -> file is unmodified -> safe to overwrite with fetched version.
27
- - **PRESERVE** (TIER 2): User data files. Never overwrite. (`Harness/PROGRESS.md`, `Harness/tasks/**`, `Harness/memory/**`, `Harness/research/PRD.md`, `Harness/research/research-results.md`, `Harness/architecture.md`, `Harness/domain/ports.md`, `Harness/features/**`, root `README.md`, `.gitignore`)
28
- - **MERGE** (TIER 3): Dual-purpose files. If local checksum matches stored -> safe to overwrite. If mismatch -> user modified -> report as merge candidate, never auto-overwrite. (`CLAUDE.md`, `Harness/MEMORY.md`, `Harness/README.md`)
29
- 5. For files in the GitHub repo NOT in local checksums: classify as NEW, plan to create.
30
- 6. Report update plan: `updated/N, merge/N, created/N, skipped/N`
31
- 7. If `--check` flag: report only, do not write.
32
- 8. Apply updates:
33
- - SAFE files: overwrite with fetched content.
34
- - NEW files: create.
35
- - MERGE files with matching checksums: overwrite.
36
- - MERGE files with mismatched checksums: skip, warn user.
37
- - PRESERVE files: never touched.
38
- 9. Update `Harness/.harness-version`:
39
- - Update `generator` to latest version.
40
- - Update `generated` timestamp.
41
- - Recompute and store checksums for all updated files.
42
- 10. Record update in `Harness/tasks/harness-update/PROGRESS.md` (create task capsule if needed).
43
-
44
- ## Rules
45
-
46
- - Never overwrite PRESERVE files.
47
- - Never auto-overwrite MERGE files with mismatched checksums.
48
- - If offline (cannot reach GitHub), report and exit cleanly.
49
- - After update, suggest running `node Harness/scripts/validate-harness.mjs`.
50
- - Subagents are readers and reporters. Only the main agent writes updated files.
51
-
52
- ## Return
53
-
54
- - Update plan summary
55
- - Files updated
56
- - Files skipped (with reasons)
57
- - New version
58
- - Validation suggestion
1
+ ---
2
+ name: wf-update
3
+ description: Use when the user says /wf update, wf update, update harness, or check for updates. Fetches latest template files from GitHub, compares against stored checksums, and applies incremental updates safely.
4
+ ---
5
+
6
+ # WF Update
7
+
8
+ GitHub-based incremental harness update. Pulls latest template files and compares against stored checksums in `Harness/.harness-version`.
9
+
10
+ ## Load
11
+
12
+ - `Harness/.harness-version`
13
+ - `Harness/README.md#Update Mechanism` row (when available)
14
+
15
+ ## How It Works
16
+
17
+ 1. Read `Harness/.harness-version` -- get current `generator` version and stored `checksums`.
18
+ 2. Fetch the latest template file list from GitHub:
19
+ - Base URL: `https://raw.githubusercontent.com/zingspark/create-harness-vibe-coding/main/templates/common/`
20
+ - Fetch `.harness-version` from the repo first to get the latest version and expected file list.
21
+ - If the repo version equals the local version, report "Already up to date."
22
+ 3. For each file in the repo's checksums map:
23
+ - Compute SHA-256 of the fetched file content (normalize line endings to LF).
24
+ - Compare against the local stored checksum in `Harness/.harness-version`.
25
+ 4. Classify each difference:
26
+ - **SAFE** (TIER 1): Harness runtime files. If local checksum matches stored -> file is unmodified -> safe to overwrite with fetched version.
27
+ - **PRESERVE** (TIER 2): User data files. Never overwrite. (`Harness/PROGRESS.md`, `Harness/tasks/**`, `Harness/memory/**`, `Harness/research/PRD.md`, `Harness/research/research-results.md`, `Harness/architecture.md`, root `README.md`, `.gitignore`)
28
+ - **MERGE** (TIER 3): Dual-purpose files. If local checksum matches stored -> safe to overwrite. If mismatch -> user modified -> report as merge candidate, never auto-overwrite. (`CLAUDE.md`, `Harness/MEMORY.md`, `Harness/README.md`)
29
+ 5. For files in the GitHub repo NOT in local checksums: classify as NEW, plan to create.
30
+ 6. Report update plan: `updated/N, merge/N, created/N, skipped/N`
31
+ 7. If `--check` flag: report only, do not write.
32
+ 8. Apply updates:
33
+ - SAFE files: overwrite with fetched content.
34
+ - NEW files: create.
35
+ - MERGE files with matching checksums: overwrite.
36
+ - MERGE files with mismatched checksums: skip, warn user.
37
+ - PRESERVE files: never touched.
38
+ 9. Update `Harness/.harness-version`:
39
+ - Update `generator` to latest version.
40
+ - Update `generated` timestamp.
41
+ - Recompute and store checksums for all updated files.
42
+ 10. Record update in `Harness/tasks/harness-update/PROGRESS.md` (create task capsule if needed).
43
+
44
+ ## Rules
45
+
46
+ - Never overwrite PRESERVE files.
47
+ - Never auto-overwrite MERGE files with mismatched checksums.
48
+ - If offline (cannot reach GitHub), report and exit cleanly.
49
+ - After update, suggest running `node Harness/scripts/validate-harness.mjs`.
50
+ - Subagents are readers and reporters. Only the main agent writes updated files.
51
+
52
+ ## Return
53
+
54
+ - Update plan summary
55
+ - Files updated
56
+ - Files skipped (with reasons)
57
+ - New version
58
+ - Validation suggestion
@@ -1,76 +1,77 @@
1
- # CLAUDE.md
2
-
3
- Root entry for Claude Code. Keep this file short.
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
- - `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.
11
- - `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.
12
- - `Harness/PROGRESS.md` is the global task index. Load at session start to see active task and task history.
13
- - If work spans more than one step, create a task capsule from `Harness/tasks/_template/` and update `Harness/tasks/<task-id>/PROGRESS.md`.
14
- - Use `/wf <task>`, `/wf-max [task]`, `/wf-learn`, `/wf-review [focus]`, `wf mode`, `wf max`, `workflow mode`, `wk mode`, `Harness/WF.md`, or `Harness/WF-MAX.md` for long, difficult, uncertain, multi-file, or repeated-failure work.
15
- - Use `subagent-orchestrator` and `Harness/subagents.md` when coordinating multiple subagents.
16
- - Use `/wf update` to check for and apply scaffold updates from GitHub. See `.claude/skills/wf-update/SKILL.md`.
17
- - Subagents are readers and reporters. Only the main agent writes to `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md`.
18
- - For memory writing and consolidation (repeated failures, user corrections, closeout), dispatch `memory-master`.
19
- - For context analysis and compression alerts (~85% window), dispatch `context-master`.
20
- - Universal rules live in `.claude/rules/ecc/common.md`.
21
- - Never bulk-read `Harness/`; route through `Harness/README.md` and `Harness/MEMORY.md`.
22
-
23
- ## 2. Think Before Coding
24
-
25
- - You must have **>=95% confidence** in user intent before writing implementation code.
26
- - If confidence is below 95%, stop and ask up to 3 blocking questions.
27
- - If multiple valid approaches exist and the choice affects architecture, scope, stack, or user-facing behavior, present trade-offs instead of picking silently.
28
- - State assumptions before implementation and record durable assumptions, decisions, blockers, handoffs, and verification evidence in `Harness/tasks/<task-id>/PLAN.md`.
29
- - If something is unclear, stop. Name what is unclear and ask instead of guessing.
30
- - Before asserting a fact about the codebase, read the file that proves it. If you cannot cite the file and line, do not assert.
31
-
32
- ## 3. Simplicity First
33
-
34
- - No features beyond what was asked.
35
- - No abstractions for single-use code.
36
- - No unrequested flexibility, configurability, or speculative error handling.
37
- - Use explicit interfaces or state models only when they protect a real boundary, clarify ownership, or make verification/recovery simpler.
38
- - If a simpler approach exists, say so and prefer the smallest change that satisfies the request.
39
- - If the solution is growing faster than the problem, reduce scope before coding more.
40
-
41
- ## 4. Surgical Changes
42
-
43
- - Touch only files and lines required by the task.
44
- - Do not improve adjacent code, comments, formatting, or architecture unless it is required for the task.
45
- - Match existing style even when you would choose a different style in a new project.
46
- - Clean up imports, variables, functions, and files made unused by your own changes; do not delete pre-existing dead code unless asked.
47
- - Keep every changed line traceable to the user's request.
48
-
49
- ## 5. Goal-Driven Execution
50
-
51
- - Define verifiable success criteria before implementation.
52
- - For bugs, reproduce the failure or document why reproduction is impossible before fixing.
53
- - 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.
54
- - State assumptions before implementation and record durable assumptions, decisions, blockers, handoffs, and verification evidence in `Harness/tasks/<task-id>/PLAN.md`.
55
- - Every task needs a test, build check, validator run, or recorded manual check.
56
- - Do not claim web/UI acceptance without real-browser evidence from Chrome DevTools, CDP, Playwright, or documented manual browser checks.
57
- - Do not place project build scripts, git conventions, run commands, or release process in this file. Put them in `README.md`.
58
- - Do not place code architecture here. Put architecture in `Harness/architecture.md` or the current feature doc.
59
- - 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.
60
-
61
- ## 6. Memory & Self-Learning
62
-
63
- - `Harness/MEMORY.md` is the resource index. Detailed durable memory lives in `Harness/memory/`.
64
- - **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`.
65
- - **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`.
66
- - **Agent lesson trigger**: record reusable lessons from review/debug loops in `Harness/memory/agent-lessons-patterns.md` when they would prevent recurrence.
67
- - **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.
68
- - **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`.
69
- - **Closeout trigger**: during WF closeout, dispatch `context-master` to extract durable knowledge, then `memory-master` to consolidate into `Harness/memory/*`.
70
- - Never record secrets, credentials, tokens, or private data.
71
-
72
- ## 7. CEO Constraints
73
-
74
- - Never call `EnterPlanMode` — delegate planning to `planner` subagents (see `Harness/WF.md`).
75
- - Never write code directly in `/wf` or `/wf-max` mode — delegate all implementation to subagents (see `Harness/WF-MAX.md`).
76
- - **Enforcement**: `.claude/settings.json` hooks prevent `EnterPlanMode` calls. Settings include `allowTools: ["!EnterPlanMode"]` for the main session.
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
+ - `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.
11
+ - `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.
12
+ - `Harness/PROGRESS.md` is the global task index. Load at session start to see active task and task history.
13
+ - If work spans more than one step, create a task capsule from `Harness/tasks/_template/` and update `Harness/tasks/<task-id>/PROGRESS.md`.
14
+ - Use `/wf <task>`, `/wf-review [focus]`, `wf mode`, `workflow mode`, or `wk mode` for long, difficult, uncertain, multi-file, or repeated-failure work.
15
+ - Use `subagent-orchestrator` and `Harness/subagents.md` when coordinating multiple subagents.
16
+ - Use `/wf update` to check for and apply scaffold updates from GitHub. See `.claude/skills/wf-update/SKILL.md`.
17
+ - Subagents are readers and reporters. Only the main agent writes to `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md`.
18
+ - For memory writing and consolidation (repeated failures, user corrections, closeout), dispatch `memory-master`.
19
+ - For context analysis and compression alerts (~85% window), dispatch `context-master`.
20
+ - Universal rules live in `.claude/rules/ecc/common.md`.
21
+ - Never bulk-read `Harness/`; route through `Harness/README.md` and `Harness/MEMORY.md`.
22
+ - Scaffold source files live under `templates/common/` and `templates/optional/`; generated dogfood runtime files live under root `Harness/` and `.claude/`.
23
+
24
+ ## 2. Think Before Coding
25
+
26
+ - You must have **>=95% confidence** in user intent before writing implementation code.
27
+ - If confidence is below 95%, stop and ask up to 3 blocking questions.
28
+ - If multiple valid approaches exist and the choice affects architecture, scope, stack, or user-facing behavior, present trade-offs instead of picking silently.
29
+ - State assumptions before implementation and record durable assumptions, decisions, blockers, handoffs, and verification evidence in `Harness/tasks/<task-id>/PLAN.md`.
30
+ - If something is unclear, stop. Name what is unclear and ask instead of guessing.
31
+ - Before asserting a fact about the codebase, read the file that proves it. If you cannot cite the file and line, do not assert.
32
+
33
+ ## 3. Simplicity First
34
+
35
+ - No features beyond what was asked.
36
+ - No abstractions for single-use code.
37
+ - No unrequested flexibility, configurability, or speculative error handling.
38
+ - Use explicit interfaces or state models only when they protect a real boundary, clarify ownership, or make verification/recovery simpler.
39
+ - If a simpler approach exists, say so and prefer the smallest change that satisfies the request.
40
+ - If the solution is growing faster than the problem, reduce scope before coding more.
41
+
42
+ ## 4. Surgical Changes
43
+
44
+ - Touch only files and lines required by the task.
45
+ - Do not improve adjacent code, comments, formatting, or architecture unless it is required for the task.
46
+ - Match existing style even when you would choose a different style in a new project.
47
+ - Clean up imports, variables, functions, and files made unused by your own changes; do not delete pre-existing dead code unless asked.
48
+ - Keep every changed line traceable to the user's request.
49
+
50
+ ## 5. Goal-Driven Execution
51
+
52
+ - Define verifiable success criteria before implementation.
53
+ - For bugs, reproduce the failure or document why reproduction is impossible before fixing.
54
+ - 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.
55
+ - State assumptions before implementation and record durable assumptions, decisions, blockers, handoffs, and verification evidence in `Harness/tasks/<task-id>/PLAN.md`.
56
+ - Every task needs a test, build check, validator run, or recorded manual check.
57
+ - Do not claim web/UI acceptance without real-browser evidence from Chrome DevTools, CDP, Playwright, or documented manual browser checks.
58
+ - Do not place project build scripts, git conventions, run commands, or release process in this file. Put them in `README.md`.
59
+ - Do not place code architecture here. Put architecture in `Harness/architecture.md` or the current feature doc.
60
+ - 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.
61
+
62
+ ## 6. Memory & Self-Learning
63
+
64
+ - `Harness/MEMORY.md` is the resource index. Detailed durable memory lives in `Harness/memory/`.
65
+ - **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`.
66
+ - **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`.
67
+ - **Agent lesson trigger**: record reusable lessons from review/debug loops in `Harness/memory/agent-lessons-patterns.md` when they would prevent recurrence.
68
+ - **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.
69
+ - **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`.
70
+ - **Closeout trigger**: during WF closeout, dispatch `context-master` to extract durable knowledge, then `memory-master` to consolidate into `Harness/memory/*`.
71
+ - Never record secrets, credentials, tokens, or private data in memory.
72
+
73
+ ## 7. CEO Constraints
74
+
75
+ - Never call `EnterPlanMode` — delegate planning to `planner` subagents (see `Harness/WF.md`).
76
+ - Never write code directly in `/wf` or `/wf-max` mode delegate all implementation to subagents (see `Harness/WF-MAX.md`).
77
+ - **Enforcement**: `.claude/settings.json` denies `EnterPlanMode` via the `deny` list. No hooks or `allowTools` needed — the tool is blocked at the permission layer.
@@ -1,76 +1,73 @@
1
- # MEMORY.md - {{projectName}} Project Resource Index
2
-
3
- > The project fact source is reached via `CLAUDE.md -> Harness/README.md`. This file persists cross-session context: resource index, user preferences, tool usage standards.
4
- > Detailed memory lives in `Harness/memory/`. Keep entries short, newest first, and free of secrets.
5
-
6
- ## Agents (Sub-agents)
7
-
8
- - [researcher](../.claude/agents/researcher.md) — product, market, open-source, dependency, pricing, policy, and ecosystem research.
9
- - [docs-researcher](../.claude/agents/docs-researcher.md) — official docs, API, SDK, config, limits, errors, and examples verification.
10
- - [planner](../.claude/agents/planner.md) — task split, dependencies, write sets, and dispatch table.
11
- - [architect](../.claude/agents/architect.md) — boundaries, ports, data-flow, and state impact.
12
- - [test-writer](../.claude/agents/test-writer.md) — failing tests or manual verification before implementation.
13
- - [implementer](../.claude/agents/implementer.md) — bounded implementation inside declared write set.
14
- - [debugger](../.claude/agents/debugger.md) — smallest fix for a reproduced failure.
15
- - [reviewer](../.claude/agents/reviewer.md) — read-only diff review and closeout risk.
16
- - [verifier](../.claude/agents/verifier.md) — verification commands and evidence.
17
- - [memory-master](../.claude/agents/memory-master.md) — memory writing, dedup, consolidation, and cross-project knowledge extraction.
18
- - [context-master](../.claude/agents/context-master.md) — context analysis, compression alerts, and session knowledge extraction for memory-master.
19
-
20
- Stack-specific agents can be added after the product shape is known.
21
-
22
- ## Skills (Workflows)
23
-
24
- - [harness-router](../.claude/skills/harness-router/SKILL.md) — start-of-task routing to the smallest useful doc set.
25
- - [harness-lifecycle](../.claude/skills/harness-lifecycle/SKILL.md) — idea, PRD, scope, lifecycle, and feedback loops.
26
- - [harness-research](../.claude/skills/harness-research/SKILL.md) — market, product, stack, dependency, API, and open-source research.
27
- - [harness-context](../.claude/skills/harness-context/SKILL.md) — context splitting, subagent packs, and dispatch preparation.
28
- - [harness-build-loop](../.claude/skills/harness-build-loop/SKILL.md) — implementation, debugging, review, verification, and closeout.
29
- - [wf-mode](../.claude/skills/wf-mode/SKILL.md) — long-task workflow: exploration, second plan, implementation, review, verification, heartbeat, and recovery loop.
30
- - [subagent-orchestrator](../.claude/skills/subagent-orchestrator/SKILL.md) — controller-led subagent orchestration, parallel read-only passes, review gates, and recovery handoffs.
31
- - [readme-optimizer](../.claude/skills/readme-optimizer/SKILL.md) — README preservation, append-only development sections, structured tables, and approved architecture diagrams.
32
- - [wf-review](../.claude/skills/wf-review/SKILL.md) — cross-model peer review: invoke the other agent CLI (Codex/Claude) for independent review.
33
- - [wf-learn](../.claude/skills/wf-learn/SKILL.md) — force memory learning cycle: context-master memory-master project + global memory.
34
- - [wf-update](../.claude/skills/wf-update/SKILL.md) — GitHub-based incremental harness update, checksum comparison, and safe in-place updates.
35
- - [wf-max](../.claude/skills/wf-max/SKILL.md) — maximum-parallelism workflow: write-set coloring, wave dispatch, parallel review per dimension.
36
-
37
- Stack-specific skills can be added after the product shape is known.
38
-
39
- ## Rules (Harness Constraints)
40
-
41
- Located under `.claude/rules/ecc/`, auto-loaded by the CC engine:
42
-
43
- - [common.md](../.claude/rules/ecc/common.md) universal harness constraints for context loading, verification, subagents, and security (alwaysApply: true)
44
- - Language-specific rules pending Claude Code initialization (e.g. python.md, typescript.md, etc.)
45
-
46
- ## Harness (Runtime)
47
-
48
- - [Global progress](PROGRESS.md)
49
- - [Task directory](tasks/)
50
- - [Docs router](README.md)
51
- - [WF mode](WF.md)
52
- - [WF Max mode](WF-MAX.md)
53
- - [0-1 lifecycle](lifecycle.md)
54
- - [Research protocol](research/README.md)
55
- - [Context loading protocol](context-loading.md)
56
- - [Dispatch protocol](dispatch.md)
57
- - [Subagent orchestration](subagents.md)
58
- - [Extension contract](extension.md)
59
- - [Architecture docs](architecture.md)
60
- - [Agent workflow](agent-workflow.md)
61
- - [Harness validator](scripts/validate-harness.mjs)
62
- - [Version file](.harness-version)
63
-
64
- ## Memory Folder
65
-
66
- - [Tool usage/reflections](memory/tool-usage-reflections.md) - repeated tool failures, better command patterns, environment-specific fixes.
67
- - [User corrections/preferences](memory/user-corrections-preferences.md) - repeated user corrections, durable preferences, common-sense course corrections.
68
- - [Agent lessons/patterns](memory/agent-lessons-patterns.md) - reusable lessons from review, debugging, validation, and handoff loops.
69
-
70
- Write to the memory folder when the guidance should survive chat context loss:
71
-
72
- - Use `memory/tool-usage-reflections.md` when the same tool/use pattern fails 3+ times, a better command pattern is found, or an environment-specific fix should be reused.
73
- - Use `memory/user-corrections-preferences.md` when the user explicitly asks to remember a preference, or the user corrects the same assumption/pattern 2+ times.
74
- - Use `memory/agent-lessons-patterns.md` when a review/debug loop yields a reusable lesson or regression guard.
75
- - Use this file for the resource index and routing pointers, not long-form lessons.
76
- - Never record secrets, credentials, tokens, or private data. If a memory is ambiguous, ask before writing.
1
+ # MEMORY.md - create-harness-vibe-coding Project Resource Index
2
+
3
+ > The project fact source is reached via `CLAUDE.md -> Harness/README.md`. This file persists cross-session context: resource index, user preferences, tool usage standards.
4
+ > Detailed memory lives in `Harness/memory/`. Keep entries short, newest first, and free of secrets.
5
+
6
+ ## Agents (Sub-agents)
7
+
8
+ - [researcher](../.claude/agents/researcher.md) — product, market, open-source, dependency, pricing, policy, and ecosystem research.
9
+ - [docs-researcher](../.claude/agents/docs-researcher.md) — official docs, API, SDK, config, limits, errors, and examples verification.
10
+ - [planner](../.claude/agents/planner.md) — task split, dependencies, write sets, and dispatch table.
11
+ - [architect](../.claude/agents/architect.md) — boundaries, ports, data-flow, and state impact.
12
+ - [test-writer](../.claude/agents/test-writer.md) — failing tests or manual verification before implementation.
13
+ - [implementer](../.claude/agents/implementer.md) — bounded implementation inside declared write set.
14
+ - [debugger](../.claude/agents/debugger.md) — smallest fix for a reproduced failure.
15
+ - [reviewer](../.claude/agents/reviewer.md) — read-only diff review and closeout risk.
16
+ - [verifier](../.claude/agents/verifier.md) — verification commands and evidence.
17
+ - [memory-master](../.claude/agents/memory-master.md) — memory writing, dedup, consolidation, and cross-project knowledge extraction.
18
+ - [context-master](../.claude/agents/context-master.md) — context analysis, compression alerts, and session knowledge extraction for memory-master.
19
+
20
+ Stack-specific agents can be added after the product shape is known.
21
+
22
+ ## Skills (Workflows)
23
+
24
+ - [WF Mode](WF.md) — long-task workflow: exploration, second plan, implementation, review, verification, heartbeat, and recovery loop.
25
+ - [subagent-orchestrator](../.claude/skills/subagent-orchestrator/SKILL.md) — controller-led subagent orchestration, parallel read-only passes, review gates, and recovery handoffs.
26
+ - [wf-readme](../.claude/skills/wf-readme/SKILL.md) — README preservation, append-only development sections, structured tables, and approved architecture diagrams.
27
+ - [wf-review](../.claude/skills/wf-review/SKILL.md) — cross-model peer review: invoke the other agent CLI (Codex/Claude) for independent review.
28
+ - [wf-update](../.claude/skills/wf-update/SKILL.md) — GitHub-based incremental harness update, checksum comparison, and safe in-place updates.
29
+ - [wf-learn](../.claude/skills/wf-learn/SKILL.md) — force memory learning cycle: context-master -> memory-master -> project + global memory.
30
+ - [wf-max](../.claude/skills/wf-max/SKILL.md) — maximum-parallelism workflow: write-set coloring, wave dispatch, parallel review per dimension.
31
+ - learn: /wf-learn
32
+ - [wf-browser](../.claude/skills/wf-browser/SKILL.md) — AI-driven browser automation via Browser Use (89.1% WebVoyager): E2E testing, form filling, screenshots, web scraping. CLI mode (~50ms) + Python Agent API.
33
+ - [browser-use](~/.claude/skills/browser-use/SKILL.md) — external user-level skill (auto-installed via `pip install browser-use[cli]`): CLI commands, browser profiles, cloud browsers, daemon management.
34
+ - [browser-e2e](workflows/browser-e2e.md) — optional workflow contract: install guide, evidence contract, integration points, fallback paths.
35
+
36
+ Stack-specific skills can be added after the product shape is known.
37
+
38
+ ## Rules (Harness Constraints)
39
+
40
+ Located under `.claude/rules/ecc/`, auto-loaded by the CC engine:
41
+
42
+ - [common.md](../.claude/rules/ecc/common.md) — universal harness constraints for context loading, verification, subagents, and security (alwaysApply: true)
43
+ - Language-specific rules pending Claude Code initialization (e.g. python.md, typescript.md, etc.)
44
+
45
+ ## Harness (Runtime)
46
+
47
+ - [Docs router](README.md)
48
+ - [WF mode](WF.md)
49
+ - [WF Max mode](WF-MAX.md)
50
+ - [0-1 lifecycle](lifecycle.md)
51
+ - [Research protocol](research/README.md)
52
+ - [Context loading protocol](context-loading.md)
53
+ - [Dispatch protocol](dispatch.md)
54
+ - [Subagent orchestration](subagents.md)
55
+ - [Extension contract](extension.md)
56
+ - [Architecture docs](architecture.md)
57
+ - [Agent workflow](agent-workflow.md)
58
+ - [Harness validator](scripts/validate-harness.mjs)
59
+ - [Version file](.harness-version)
60
+
61
+ ## Memory Folder
62
+
63
+ - [Tool usage/reflections](memory/tool-usage-reflections.md) - repeated tool failures, better command patterns, environment-specific fixes.
64
+ - [User corrections/preferences](memory/user-corrections-preferences.md) - repeated user corrections, durable preferences, common-sense course corrections.
65
+ - [Agent lessons/patterns](memory/agent-lessons-patterns.md) - reusable lessons from review, debugging, validation, and handoff loops.
66
+
67
+ Write to the memory folder when the guidance should survive chat context loss:
68
+
69
+ - Use `memory/tool-usage-reflections.md` when the same tool/use pattern fails 3+ times, a better command pattern is found, or an environment-specific fix should be reused.
70
+ - Use `memory/user-corrections-preferences.md` when the user explicitly asks to remember a preference, or the user corrects the same assumption/pattern 2+ times.
71
+ - Use `memory/agent-lessons-patterns.md` when a review/debug loop yields a reusable lesson or regression guard.
72
+ - Use this file for the resource index and routing pointers, not long-form lessons.
73
+ - Never record secrets, credentials, tokens, or private data. If a memory is ambiguous, ask before writing.
@@ -27,7 +27,7 @@ Replace the examples with the real commands discovered from this project. If a c
27
27
  - Keep branch, commit, pull request, CI, and release conventions in this README.
28
28
  - Do not place build scripts, git policy, or project maintenance instructions in `CLAUDE.md`.
29
29
  - Keep code architecture notes in `Harness/architecture.md` or feature docs.
30
- - For README improvements, use `.claude/skills/readme-optimizer/SKILL.md`; preserve public docs unless a rewrite is approved.
30
+ - For README improvements, use `.claude/skills/wf-readme/SKILL.md`; preserve public docs unless a rewrite is approved.
31
31
 
32
32
  ## Harness
33
33