create-harness-vibe-coding 0.1.9 → 0.2.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 (57) hide show
  1. package/README.md +177 -32
  2. package/package.json +5 -2
  3. package/src/generator.js +407 -53
  4. package/src/index.js +236 -22
  5. package/templates/common/.claude/agents/architect.md +4 -4
  6. package/templates/common/.claude/agents/debugger.md +1 -1
  7. package/templates/common/.claude/agents/docs-researcher.md +4 -4
  8. package/templates/common/.claude/agents/implementer.md +1 -1
  9. package/templates/common/.claude/agents/planner.md +3 -3
  10. package/templates/common/.claude/agents/researcher.md +4 -4
  11. package/templates/common/.claude/agents/reviewer.md +1 -1
  12. package/templates/common/.claude/agents/test-writer.md +2 -2
  13. package/templates/common/.claude/agents/verifier.md +1 -1
  14. package/templates/common/.claude/commands/wf.md +18 -0
  15. package/templates/common/.claude/rules/ecc/common.md +16 -6
  16. package/templates/common/.claude/skills/harness-build-loop/SKILL.md +4 -3
  17. package/templates/common/.claude/skills/harness-context/SKILL.md +4 -3
  18. package/templates/common/.claude/skills/harness-lifecycle/SKILL.md +3 -3
  19. package/templates/common/.claude/skills/harness-research/SKILL.md +4 -4
  20. package/templates/common/.claude/skills/harness-router/SKILL.md +7 -5
  21. package/templates/common/.claude/skills/readme-optimizer/SKILL.md +48 -0
  22. package/templates/common/.claude/skills/subagent-orchestrator/SKILL.md +36 -0
  23. package/templates/common/.claude/skills/wf-mode/SKILL.md +48 -0
  24. package/templates/common/AGENTS.md +2 -2
  25. package/templates/common/CLAUDE.md +39 -71
  26. package/templates/common/MEMORY.md +42 -33
  27. package/templates/common/README.md +41 -0
  28. package/templates/common/SETUP.md +149 -41
  29. package/templates/common/docs/README.md +72 -47
  30. package/templates/common/docs/domain/ports.md +1 -1
  31. package/templates/common/docs/features/_template.md +20 -10
  32. package/templates/common/docs/harness/PLAN.md +25 -2
  33. package/templates/common/docs/harness/WF.md +136 -0
  34. package/templates/common/docs/harness/agent-workflow.md +8 -8
  35. package/templates/common/docs/harness/context-loading.md +17 -14
  36. package/templates/common/docs/harness/data-flow.md +1 -1
  37. package/templates/common/docs/harness/dispatch.md +6 -0
  38. package/templates/common/docs/harness/extension.md +20 -8
  39. package/templates/common/docs/harness/lifecycle.md +2 -2
  40. package/templates/common/docs/harness/subagents.md +140 -0
  41. package/templates/common/docs/research/PRD.md +1 -1
  42. package/templates/common/docs/research/README.md +5 -5
  43. package/templates/common/memory/agent-lessons-patterns.md +21 -0
  44. package/templates/common/memory/tool-usage-reflections.md +21 -0
  45. package/templates/common/memory/user-corrections-preferences.md +21 -0
  46. package/templates/common/scripts/validate-harness.mjs +217 -46
  47. package/templates/optional/catalog.json +43 -0
  48. package/templates/optional/skills/browser-e2e/.claude/skills/browser-e2e/SKILL.md +42 -0
  49. package/templates/optional/skills/browser-e2e/docs/workflows/browser-e2e.md +42 -0
  50. package/templates/optional/skills/github-pr-review/.claude/skills/github-pr-review/SKILL.md +40 -0
  51. package/templates/optional/skills/github-pr-review/docs/workflows/github-pr-review.md +28 -0
  52. package/templates/optional/skills/python-backend/.claude/skills/python-backend/SKILL.md +40 -0
  53. package/templates/optional/skills/python-backend/docs/workflows/python-backend.md +34 -0
  54. package/templates/optional/skills/ts-react-frontend/.claude/skills/ts-react-frontend/SKILL.md +43 -0
  55. package/templates/optional/skills/ts-react-frontend/docs/workflows/ts-react-frontend.md +35 -0
  56. package/templates/optional/skills/ui-ux-review/.claude/skills/ui-ux-review/SKILL.md +40 -0
  57. package/templates/optional/skills/ui-ux-review/docs/workflows/ui-ux-review.md +26 -0
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: subagent-orchestrator
3
+ description: Use when work needs bounded subagent coordination, parallel read-only exploration, independent review gates, broad context partitioning, or controlled handoffs after wf-mode has been selected when applicable.
4
+ ---
5
+
6
+ # Subagent Orchestrator
7
+
8
+ Load:
9
+
10
+ - `Harness/subagents.md`
11
+ - `Harness/dispatch.md`
12
+ - `Harness/context-loading.md`
13
+ - `Harness/PLAN.md`
14
+ - `Harness/agent-workflow.md`
15
+ - `Harness/WF.md` when in `/wf`, wf mode, or recovery loop
16
+
17
+ Follow:
18
+
19
+ - The main agent is the controller. It decomposes work, writes `Harness/PLAN.md`, integrates returns, and owns final verification.
20
+ - Use the efficiency ladder in `Harness/subagents.md`: solo pass -> single reviewer -> parallel read-only -> serial build lane -> isolated lanes.
21
+ - Every subagent dispatch needs a complete dispatch pack: role, goal, mode, read set, write set, forbidden scope, injected docs, dependencies, expected evidence, stop condition, and return format.
22
+ - Prefer parallel read-only exploration first. Run writing agents serially unless write sets are disjoint and isolated.
23
+ - Use two review gates after implementation: spec review first, then code-quality or architecture review.
24
+ - If verification fails, dispatch debugger/fixer with the smallest reproduced failure, then re-review and re-verify.
25
+ - If subagents are unavailable, emulate the same roles as separate bounded passes and record that fallback.
26
+ - When used outside `wf-mode`, update `Harness/PLAN.md#Parallel Dispatch`; update `Harness/PLAN.md#Heartbeat` only if an active heartbeat/recovery loop exists.
27
+
28
+ Return:
29
+
30
+ - agents or bounded passes used
31
+ - dispatch table status
32
+ - accepted/rejected findings
33
+ - conflicts and decisions
34
+ - commands and evidence
35
+ - remaining risks
36
+ - updated heartbeat or next recovery action
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: wf-mode
3
+ description: Use for /wf, wf mode, workflow mode, long difficult tasks, multi-file or multi-agent work, low-confidence decisions, repeated failures, migrations, architecture-heavy changes, browser-visible work, or any task that needs exploration -> second plan -> implementation -> review -> verification -> recovery.
4
+ ---
5
+
6
+ # WF Mode
7
+
8
+ Load:
9
+
10
+ - `Harness/WF.md`
11
+ - `Harness/PLAN.md`
12
+ - `Harness/agent-workflow.md` when implementation, review, or verification starts
13
+ - `Harness/subagents.md`, `Harness/dispatch.md`, and `Harness/context-loading.md` only when coordinating subagents or bounded role passes
14
+ - current feature doc when one exists
15
+ - `Harness/workflows/browser-e2e.md` when browser-visible behavior is affected and the workflow is installed
16
+
17
+ Follow:
18
+
19
+ ```text
20
+ intake + 95% confidence gate
21
+ -> parallel read-only exploration
22
+ -> synthesis and second plan
23
+ -> failing test or manual check
24
+ -> bounded implementation
25
+ -> review
26
+ -> verification
27
+ -> debugger recovery loop when verification fails
28
+ -> close with evidence
29
+ ```
30
+
31
+ Rules:
32
+
33
+ - Update `Harness/PLAN.md#Heartbeat` before long commands, after failures, before handoff, and at closeout.
34
+ - Use `subagent-orchestrator` and `Harness/subagents.md` when the task has broad reading, cross-layer impact, independent review needs, or repeated failures.
35
+ - If subagents are unavailable, emulate the same roles as separate bounded passes.
36
+ - Do not claim browser/UI acceptance without real-browser evidence from Chrome DevTools, CDP, Playwright, or documented manual browser checks.
37
+ - If `Harness/workflows/browser-e2e.md` is not installed, use `Harness/WF.md#Browser And API Evidence` as the fallback evidence contract or ask the user before adding the optional workflow.
38
+ - If the same failure class happens three times, stop blind fixes and ask the user with evidence-backed options.
39
+
40
+ Return:
41
+
42
+ - changed files
43
+ - agents or bounded passes used
44
+ - commands run
45
+ - browser/API evidence when applicable
46
+ - review findings
47
+ - remaining risks
48
+ - updated heartbeat status
@@ -2,6 +2,6 @@
2
2
 
3
3
  Entry point for coding agents.
4
4
 
5
- Read `CLAUDE.md` first, then `docs/README.md`.
5
+ Read `CLAUDE.md` first and follow its startup sequence: `Harness/MEMORY.md`, then `Harness/README.md`.
6
6
 
7
- Do not bulk-read `docs/`. Let `docs/README.md` route you to the smallest useful context.
7
+ Do not bulk-read `Harness/`. Let `Harness/README.md` route you to the smallest useful context.
@@ -1,91 +1,59 @@
1
1
  # CLAUDE.md
2
2
 
3
- ## 1. Startup
4
-
5
- - Every session: read `MEMORY.md`, then `docs/README.md`.
6
- - If `SETUP.md` exists in the project root, read it first.
7
- - All routing, role-based reading, and per-task doc loads live in `docs/README.md`. Not here.
8
- - If work spans more than one step, update `docs/harness/PLAN.md`.
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 only 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
+ - If work spans more than one step, update `Harness/PLAN.md`.
13
+ - Use `/wf`, `wf-mode`, or `Harness/WF.md` for long, difficult, uncertain, multi-file, or repeated-failure work.
14
+ - Use `subagent-orchestrator` and `Harness/subagents.md` when coordinating multiple subagents.
9
15
  - Universal rules live in `.claude/rules/ecc/common.md`.
10
- - Never bulk-read `docs/`.
11
-
12
- ---
13
-
14
- Behavioral guidelines to reduce common LLM coding mistakes. For trivial tasks, use judgment. These bias toward caution over speed.
16
+ - Never bulk-read `Harness/`; route through `Harness/README.md` and `Harness/MEMORY.md`.
15
17
 
16
18
  ## 2. Think Before Coding
17
19
 
18
- **Don't assume. Don't hide confusion. Surface tradeoffs.**
19
-
20
- ### 2.1 Confidence Threshold (Non-Negotiable)
21
-
22
- - You must have **≥95% confidence** in user intent before writing implementation code.
23
- - If confidence is below 95%, stop and ask. False confidence is worse than a question.
24
- - **Maximum 3 blocking questions per decision point.** Ask the highest-impact questions first.
25
- - If you catch yourself thinking *"this is probably what they want"* — that is a mandatory stop condition. Ask.
26
- - **Silent picks are forbidden.** When two valid approaches exist and you cannot decide with 95% confidence, present both trade-offs to the user.
27
- - Record every assumption explicitly in `docs/harness/PLAN.md` so the user can correct it.
28
-
29
- Before implementing:
30
- - State your assumptions explicitly. If uncertain, ask.
31
- - If multiple interpretations exist, present them - don't pick silently.
32
- - If a simpler approach exists, say so. Push back when warranted.
33
- - If something is unclear, stop. Name what's confusing. Ask.
20
+ - You must have **>=95% confidence** in user intent before writing implementation code.
21
+ - If confidence is below 95%, stop and ask up to 3 blocking questions.
22
+ - If multiple valid approaches exist and the choice affects architecture, scope, stack, or user-facing behavior, present trade-offs instead of picking silently.
23
+ - State assumptions before implementation and record durable assumptions, decisions, blockers, handoffs, and verification evidence in `Harness/PLAN.md`.
24
+ - If something is unclear, stop. Name what is unclear and ask instead of guessing.
34
25
 
35
26
  ## 3. Simplicity First
36
27
 
37
- **Minimum code that solves the problem. Nothing speculative.**
38
-
39
28
  - No features beyond what was asked.
40
29
  - No abstractions for single-use code.
41
- - No "flexibility" or "configurability" that wasn't requested.
42
- - No error handling for impossible scenarios.
43
- - If you write 200 lines and it could be 50, rewrite it.
44
-
45
- Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.
30
+ - No unrequested flexibility, configurability, or speculative error handling.
31
+ - If a simpler approach exists, say so and prefer the smallest change that satisfies the request.
32
+ - If the solution is growing faster than the problem, reduce scope before coding more.
46
33
 
47
34
  ## 4. Surgical Changes
48
35
 
49
- **Touch only what you must. Clean up only your own mess.**
50
-
51
- When editing existing code:
52
- - Don't "improve" adjacent code, comments, or formatting.
53
- - Don't refactor things that aren't broken.
54
- - Match existing style, even if you'd do it differently.
55
- - If you notice unrelated dead code, mention it - don't delete it.
56
-
57
- When your changes create orphans:
58
- - Remove imports/variables/functions that YOUR changes made unused.
59
- - Don't remove pre-existing dead code unless asked.
60
-
61
- The test: Every changed line should trace directly to the user's request.
36
+ - Touch only files and lines required by the task.
37
+ - Do not improve adjacent code, comments, formatting, or architecture unless it is required for the task.
38
+ - Match existing style even when you would choose a different style in a new project.
39
+ - Clean up imports, variables, functions, and files made unused by your own changes; do not delete pre-existing dead code unless asked.
40
+ - Keep every changed line traceable to the user's request.
62
41
 
63
42
  ## 5. Goal-Driven Execution
64
43
 
65
- **Define success criteria. Loop until verified.**
66
-
67
- Transform tasks into verifiable goals:
68
- - "Add validation" "Write tests for invalid inputs, then make them pass"
69
- - "Fix the bug" "Write a test that reproduces it, then make it pass"
70
- - "Refactor X" "Ensure tests pass before and after"
71
-
72
- For multi-step tasks, state a brief plan:
73
- ```
74
- 1. [Step] → verify: [check]
75
- 2. [Step] → verify: [check]
76
- 3. [Step] → verify: [check]
77
- ```
78
-
79
- Strong success criteria let you loop independently. Weak criteria ("make it work") require constant clarification.
80
-
81
- ---
82
-
83
- **These guidelines are working if:** fewer unnecessary changes in diffs, fewer rewrites due to overcomplication, and clarifying questions come before implementation rather than after mistakes.
84
-
85
- ---
44
+ - Define verifiable success criteria before implementation.
45
+ - For bugs, reproduce the failure or document why reproduction is impossible before fixing.
46
+ - For multi-step work, keep `Harness/PLAN.md` current with loaded context, task state, assumptions, and verification.
47
+ - Every task needs a test, build check, validator run, or recorded manual check.
48
+ - Do not claim web/UI acceptance without real-browser evidence from Chrome DevTools, CDP, Playwright, or documented manual browser checks.
49
+ - Do not place project build scripts, git conventions, run commands, or release process in this file. Put them in `README.md`.
50
+ - Do not place code architecture here. Put architecture in `Harness/architecture.md` or the current feature doc.
51
+ - 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.
86
52
 
87
53
  ## 6. Memory & Self-Learning
88
54
 
89
- - **User memory**: triggers "remember", "never", "next time", "always", "I prefer" — persist newest-first under `MEMORY.md#User Mem`. Don't record ordinary chat. Ambiguous? Ask.
90
- - **Tool memory**: auto-record under `MEMORY.md#Tool Usage Standards` when a tool/pattern fails 3+ times or a better alternative is found. Update old entries, don't duplicate. Never record secrets.
91
- - Format details live in `MEMORY.md`, not here.
55
+ - `Harness/MEMORY.md` is the resource index. Detailed durable memory lives in `Harness/memory/`.
56
+ - **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`.
57
+ - **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`.
58
+ - **Agent lesson trigger**: record reusable lessons from review/debug loops in `Harness/memory/agent-lessons-patterns.md` when they would prevent recurrence.
59
+ - Never record secrets, credentials, tokens, or private data.
@@ -1,28 +1,32 @@
1
- # MEMORY.md {{projectName}} Project Resource Index
1
+ # MEMORY.md - {{projectName}} Project Resource Index
2
2
 
3
- > The project fact source is reached via `CLAUDE.md -> docs/README.md`. This file persists cross-session context: resource index, user preferences, tool usage standards.
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.
4
5
 
5
6
  ## Agents (Sub-agents)
6
7
 
7
- - [researcher](.claude/agents/researcher.md) — product, market, open-source, dependency, pricing, policy, and ecosystem research.
8
- - [docs-researcher](.claude/agents/docs-researcher.md) — official docs, API, SDK, config, limits, errors, and examples verification.
9
- - [planner](.claude/agents/planner.md) — task split, dependencies, write sets, and dispatch table.
10
- - [architect](.claude/agents/architect.md) — boundaries, ports, data-flow, and state impact.
11
- - [test-writer](.claude/agents/test-writer.md) — failing tests or manual verification before implementation.
12
- - [implementer](.claude/agents/implementer.md) — bounded implementation inside declared write set.
13
- - [debugger](.claude/agents/debugger.md) — smallest fix for a reproduced failure.
14
- - [reviewer](.claude/agents/reviewer.md) — read-only diff review and closeout risk.
15
- - [verifier](.claude/agents/verifier.md) — verification commands and evidence.
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.
16
17
 
17
18
  Stack-specific agents can be added after the product shape is known.
18
19
 
19
20
  ## Skills (Workflows)
20
21
 
21
- - [harness-router](.claude/skills/harness-router/SKILL.md) — start-of-task routing to the smallest useful doc set.
22
- - [harness-lifecycle](.claude/skills/harness-lifecycle/SKILL.md) — idea, PRD, scope, lifecycle, and feedback loops.
23
- - [harness-research](.claude/skills/harness-research/SKILL.md) — market, product, stack, dependency, API, and open-source research.
24
- - [harness-context](.claude/skills/harness-context/SKILL.md) — context splitting, subagent packs, and dispatch preparation.
25
- - [harness-build-loop](.claude/skills/harness-build-loop/SKILL.md) — implementation, debugging, review, verification, and closeout.
22
+ - [harness-router](../.claude/skills/harness-router/SKILL.md) — start-of-task routing to the smallest useful doc set.
23
+ - [harness-lifecycle](../.claude/skills/harness-lifecycle/SKILL.md) — idea, PRD, scope, lifecycle, and feedback loops.
24
+ - [harness-research](../.claude/skills/harness-research/SKILL.md) — market, product, stack, dependency, API, and open-source research.
25
+ - [harness-context](../.claude/skills/harness-context/SKILL.md) — context splitting, subagent packs, and dispatch preparation.
26
+ - [harness-build-loop](../.claude/skills/harness-build-loop/SKILL.md) — implementation, debugging, review, verification, and closeout.
27
+ - [wf-mode](../.claude/skills/wf-mode/SKILL.md) — long-task workflow: exploration, second plan, implementation, review, verification, heartbeat, and recovery loop.
28
+ - [subagent-orchestrator](../.claude/skills/subagent-orchestrator/SKILL.md) — controller-led subagent orchestration, parallel read-only passes, review gates, and recovery handoffs.
29
+ - [readme-optimizer](../.claude/skills/readme-optimizer/SKILL.md) — README preservation, append-only development sections, structured tables, and approved architecture diagrams.
26
30
 
27
31
  Stack-specific skills can be added after the product shape is known.
28
32
 
@@ -30,29 +34,34 @@ Stack-specific skills can be added after the product shape is known.
30
34
 
31
35
  Located under `.claude/rules/ecc/`, auto-loaded by the CC engine:
32
36
 
33
- - [common.md](.claude/rules/ecc/common.md) — universal harness constraints for context loading, verification, subagents, and security (alwaysApply: true)
37
+ - [common.md](../.claude/rules/ecc/common.md) — universal harness constraints for context loading, verification, subagents, and security (alwaysApply: true)
34
38
  - Language-specific rules pending Claude Code initialization (e.g. python.md, typescript.md, etc.)
35
39
 
36
40
  ## Harness (Runtime)
37
41
 
38
- - [Active plan](docs/harness/PLAN.md)
39
- - [Docs router](docs/README.md)
40
- - [0-1 lifecycle](docs/harness/lifecycle.md)
41
- - [Research protocol](docs/research/README.md)
42
- - [Context loading protocol](docs/harness/context-loading.md)
43
- - [Dispatch protocol](docs/harness/dispatch.md)
44
- - [Extension contract](docs/harness/extension.md)
45
- - [Architecture docs](docs/harness/architecture.md)
46
- - [Agent workflow](docs/harness/agent-workflow.md)
42
+ - [Active plan](PLAN.md)
43
+ - [Docs router](README.md)
44
+ - [WF mode](WF.md)
45
+ - [0-1 lifecycle](lifecycle.md)
46
+ - [Research protocol](research/README.md)
47
+ - [Context loading protocol](context-loading.md)
48
+ - [Dispatch protocol](dispatch.md)
49
+ - [Subagent orchestration](subagents.md)
50
+ - [Extension contract](extension.md)
51
+ - [Architecture docs](architecture.md)
52
+ - [Agent workflow](agent-workflow.md)
47
53
  - [Harness validator](scripts/validate-harness.mjs)
48
54
 
49
- ## User Mem
55
+ ## Memory Folder
50
56
 
51
- > User preferences, habits, corrections. Written by CLAUDE.md §5.1 triggers, newest first.
52
- > No entries yet awaiting first "remember…" instruction.
57
+ - [Tool usage/reflections](memory/tool-usage-reflections.md) - repeated tool failures, better command patterns, environment-specific fixes.
58
+ - [User corrections/preferences](memory/user-corrections-preferences.md) - repeated user corrections, durable preferences, common-sense course corrections.
59
+ - [Agent lessons/patterns](memory/agent-lessons-patterns.md) - reusable lessons from review, debugging, validation, and handoff loops.
53
60
 
54
- ## Tool Usage Standards
61
+ Write to the memory folder when the guidance should survive chat context loss:
55
62
 
56
- > Claude Code self-learning: high-frequency tool/MCP/skill pitfalls, alternatives, common error fix templates.
57
- > Written by CLAUDE.md §5.2 triggers.
58
- > No entries yet awaiting first auto-discovery.
63
+ - 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.
64
+ - 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.
65
+ - Use `memory/agent-lessons-patterns.md` when a review/debug loop yields a reusable lesson or regression guard.
66
+ - Use this file for the resource index and routing pointers, not long-form lessons.
67
+ - Never record secrets, credentials, tokens, or private data. If a memory is ambiguous, ask before writing.
@@ -0,0 +1,41 @@
1
+ # {{projectName}}
2
+
3
+ Project development notes belong here.
4
+
5
+ ## Development Commands
6
+
7
+ Record the real project commands after bootstrap:
8
+
9
+ ```bash
10
+ # Install dependencies
11
+ # e.g. npm install
12
+
13
+ # Run locally
14
+ # e.g. npm run dev
15
+
16
+ # Run tests
17
+ # e.g. npm test
18
+
19
+ # Build
20
+ # e.g. npm run build
21
+ ```
22
+
23
+ Replace the examples with the real commands discovered from this project. If a command is unknown, record the open question in `Harness/PLAN.md`.
24
+
25
+ ## Git And Release Notes
26
+
27
+ - Keep branch, commit, pull request, CI, and release conventions in this README.
28
+ - Do not place build scripts, git policy, or project maintenance instructions in `CLAUDE.md`.
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.
31
+
32
+ ## Harness
33
+
34
+ The agentic engineering harness lives in `Harness/`.
35
+
36
+ - Follow `Harness/SETUP.md` before normal work while it exists.
37
+ - Start at `Harness/README.md`.
38
+ - Load memory and resource registrations from `Harness/MEMORY.md`.
39
+ - Track active work in `Harness/PLAN.md`.
40
+ - Use `Harness/WF.md` or `/wf` for long, difficult, multi-agent work.
41
+ - Use `Harness/subagents.md` when coordinating multiple agents.