create-harness-vibe-coding 0.1.10 → 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.
- package/README.md +86 -35
- package/package.json +1 -1
- package/src/generator.js +72 -12
- package/src/index.js +30 -11
- package/templates/common/.claude/agents/architect.md +4 -4
- package/templates/common/.claude/agents/debugger.md +1 -1
- package/templates/common/.claude/agents/docs-researcher.md +4 -4
- package/templates/common/.claude/agents/implementer.md +1 -1
- package/templates/common/.claude/agents/planner.md +3 -3
- package/templates/common/.claude/agents/researcher.md +4 -4
- package/templates/common/.claude/agents/reviewer.md +1 -1
- package/templates/common/.claude/agents/test-writer.md +2 -2
- package/templates/common/.claude/agents/verifier.md +1 -1
- package/templates/common/.claude/commands/wf.md +18 -0
- package/templates/common/.claude/rules/ecc/common.md +11 -10
- package/templates/common/.claude/skills/harness-build-loop/SKILL.md +4 -3
- package/templates/common/.claude/skills/harness-context/SKILL.md +4 -3
- package/templates/common/.claude/skills/harness-lifecycle/SKILL.md +3 -3
- package/templates/common/.claude/skills/harness-research/SKILL.md +4 -4
- package/templates/common/.claude/skills/harness-router/SKILL.md +7 -5
- package/templates/common/.claude/skills/readme-optimizer/SKILL.md +48 -0
- package/templates/common/.claude/skills/subagent-orchestrator/SKILL.md +36 -0
- package/templates/common/.claude/skills/wf-mode/SKILL.md +48 -0
- package/templates/common/AGENTS.md +2 -2
- package/templates/common/CLAUDE.md +39 -73
- package/templates/common/MEMORY.md +32 -27
- package/templates/common/README.md +41 -0
- package/templates/common/SETUP.md +95 -72
- package/templates/common/docs/README.md +71 -54
- package/templates/common/docs/domain/ports.md +1 -1
- package/templates/common/docs/features/_template.md +10 -10
- package/templates/common/docs/harness/PLAN.md +25 -2
- package/templates/common/docs/harness/WF.md +136 -0
- package/templates/common/docs/harness/agent-workflow.md +8 -8
- package/templates/common/docs/harness/context-loading.md +16 -16
- package/templates/common/docs/harness/data-flow.md +1 -1
- package/templates/common/docs/harness/dispatch.md +5 -2
- package/templates/common/docs/harness/extension.md +14 -14
- package/templates/common/docs/harness/lifecycle.md +2 -2
- package/templates/common/docs/harness/subagents.md +140 -0
- package/templates/common/docs/research/PRD.md +1 -1
- package/templates/common/docs/research/README.md +5 -5
- package/templates/common/scripts/validate-harness.mjs +131 -56
- package/templates/optional/skills/browser-e2e/.claude/skills/browser-e2e/SKILL.md +5 -5
- package/templates/optional/skills/browser-e2e/docs/workflows/browser-e2e.md +1 -1
- package/templates/optional/skills/github-pr-review/.claude/skills/github-pr-review/SKILL.md +5 -5
- package/templates/optional/skills/python-backend/.claude/skills/python-backend/SKILL.md +5 -5
- package/templates/optional/skills/ts-react-frontend/.claude/skills/ts-react-frontend/SKILL.md +5 -5
- package/templates/optional/skills/ui-ux-review/.claude/skills/ui-ux-review/SKILL.md +5 -5
|
@@ -7,9 +7,10 @@ description: Use for implementation, review, debugging, verification, and closin
|
|
|
7
7
|
|
|
8
8
|
Load:
|
|
9
9
|
|
|
10
|
-
- `
|
|
11
|
-
- `
|
|
12
|
-
- `
|
|
10
|
+
- `Harness/agent-workflow.md`
|
|
11
|
+
- `Harness/subagents.md` when more than one agent, reviewer, or recovery pass is useful
|
|
12
|
+
- `Harness/dispatch.md` when more than one agent is useful
|
|
13
|
+
- `Harness/PLAN.md`
|
|
13
14
|
- current feature doc if present
|
|
14
15
|
|
|
15
16
|
Follow:
|
|
@@ -7,9 +7,10 @@ description: Use before spawning subagents, splitting work, or when context is g
|
|
|
7
7
|
|
|
8
8
|
Load:
|
|
9
9
|
|
|
10
|
-
- `
|
|
11
|
-
- `
|
|
12
|
-
- `
|
|
10
|
+
- `Harness/subagents.md`
|
|
11
|
+
- `Harness/context-loading.md`
|
|
12
|
+
- `Harness/dispatch.md` when more than one agent is useful
|
|
13
|
+
- `Harness/PLAN.md`
|
|
13
14
|
- current feature doc if present
|
|
14
15
|
|
|
15
16
|
For each subagent or bounded pass, provide:
|
|
@@ -7,9 +7,9 @@ description: Use for raw ideas, vague product requests, 0-1 planning, PRD work,
|
|
|
7
7
|
|
|
8
8
|
Load:
|
|
9
9
|
|
|
10
|
-
- `
|
|
11
|
-
- `
|
|
12
|
-
- `
|
|
10
|
+
- `Harness/lifecycle.md`
|
|
11
|
+
- `Harness/research/PRD.md`
|
|
12
|
+
- `Harness/PLAN.md`
|
|
13
13
|
|
|
14
14
|
Output:
|
|
15
15
|
|
|
@@ -7,9 +7,9 @@ description: Use for market, product, stack, dependency, API, pricing, legal, se
|
|
|
7
7
|
|
|
8
8
|
Load:
|
|
9
9
|
|
|
10
|
-
- `
|
|
11
|
-
- `
|
|
12
|
-
- `
|
|
10
|
+
- `Harness/research/README.md`
|
|
11
|
+
- `Harness/research/research-results.md`
|
|
12
|
+
- `Harness/PLAN.md`
|
|
13
13
|
|
|
14
14
|
Define:
|
|
15
15
|
|
|
@@ -26,4 +26,4 @@ Return:
|
|
|
26
26
|
- sources with links and source type
|
|
27
27
|
- adopted / rejected / watch decisions
|
|
28
28
|
- risks and unknowns
|
|
29
|
-
- patch-ready `
|
|
29
|
+
- patch-ready `Harness/research/research-results.md` update
|
|
@@ -5,10 +5,12 @@ description: Use at the start of any task, or when unsure which harness document
|
|
|
5
5
|
|
|
6
6
|
# Harness Router
|
|
7
7
|
|
|
8
|
-
1. Read `
|
|
8
|
+
1. Read `Harness/README.md`.
|
|
9
9
|
2. Identify the current situation from "Load By Task".
|
|
10
|
-
3.
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
3. Apply routing priority before loading extra files:
|
|
11
|
+
- `/wf`, long, difficult, uncertain, repeated-failure, migration, architecture-heavy, browser-visible, or broad multi-agent implementation work routes to `wf-mode` first.
|
|
12
|
+
- Bounded subagent-only coordination routes to `subagent-orchestrator`.
|
|
13
|
+
4. Load only the listed primary doc(s). Let `wf-mode` decide when to load subagent docs.
|
|
14
|
+
5. If the task grows, update `Harness/PLAN.md` and use `harness-context`.
|
|
13
15
|
|
|
14
|
-
Do not bulk-read `
|
|
16
|
+
Do not bulk-read `Harness/`.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: readme-optimizer
|
|
3
|
+
description: Use when a project README already exists and the user asks to preserve, merge, modernize, optimize, or clarify repository documentation during harness install or documentation work.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# README Optimizer
|
|
7
|
+
|
|
8
|
+
Improve `README.md` without breaking project-owned public docs.
|
|
9
|
+
|
|
10
|
+
## Load
|
|
11
|
+
|
|
12
|
+
- root `README.md`
|
|
13
|
+
- package files and scripts (`package.json`, `pyproject.toml`, `go.mod`, etc.)
|
|
14
|
+
- CI files when present
|
|
15
|
+
- `Harness/PLAN.md`
|
|
16
|
+
- `Harness/architecture.md` only when an architecture summary or diagram is requested
|
|
17
|
+
|
|
18
|
+
## Mode
|
|
19
|
+
|
|
20
|
+
Ask the user which mode they approve when the existing README is meaningful:
|
|
21
|
+
|
|
22
|
+
| Mode | Use when | Allowed edit |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| Preserve + append | default for existing projects | Add only a compact Development, Test, Build, Git, or Harness section |
|
|
25
|
+
| Structure pass | README is stale, hard to scan, or missing operational docs | Reorganize with headings, tables, command blocks, and links while preserving facts |
|
|
26
|
+
| Full rewrite | user explicitly wants a polished public README | Rewrite after approval; keep claims source-backed |
|
|
27
|
+
|
|
28
|
+
If unanswered, use Preserve + append.
|
|
29
|
+
|
|
30
|
+
## Rules
|
|
31
|
+
|
|
32
|
+
- Preserve existing product, package, API, and public-facing content unless the user approves a rewrite.
|
|
33
|
+
- Do not invent features, benchmarks, roadmap, support policy, badges, install commands, or CI status.
|
|
34
|
+
- Use tables for command matrices, environment variables, endpoints, and deployment notes when facts are known.
|
|
35
|
+
- Use Mermaid or ASCII architecture diagrams only when the structure is observed or approved; label uncertain diagrams as proposed.
|
|
36
|
+
- Keep detailed architecture in `Harness/architecture.md`; README may link to it or show a short overview.
|
|
37
|
+
- Keep agent rules in `CLAUDE.md`/`AGENTS.md`, not README.
|
|
38
|
+
- Record the chosen mode and any skipped README improvements in `Harness/PLAN.md`.
|
|
39
|
+
|
|
40
|
+
## Output
|
|
41
|
+
|
|
42
|
+
Before broad edits, return:
|
|
43
|
+
|
|
44
|
+
1. chosen mode
|
|
45
|
+
2. sections to preserve
|
|
46
|
+
3. sections to add or reorganize
|
|
47
|
+
4. facts still unknown
|
|
48
|
+
5. verification command or manual review step
|
|
@@ -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
|
|
5
|
+
Read `CLAUDE.md` first and follow its startup sequence: `Harness/MEMORY.md`, then `Harness/README.md`.
|
|
6
6
|
|
|
7
|
-
Do not bulk-read `
|
|
7
|
+
Do not bulk-read `Harness/`. Let `Harness/README.md` route you to the smallest useful context.
|
|
@@ -1,93 +1,59 @@
|
|
|
1
1
|
# CLAUDE.md
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
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 `
|
|
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
|
-
**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
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
|
|
42
|
-
-
|
|
43
|
-
- If
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
-
|
|
53
|
-
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
- `MEMORY.md` is the index. Detailed durable memory lives in `memory/`.
|
|
90
|
-
- **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 `memory/tool-usage-reflections.md`.
|
|
91
|
-
- **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 `memory/user-corrections-preferences.md`.
|
|
92
|
-
- **Agent lesson trigger**: record reusable lessons from review/debug loops in `memory/agent-lessons-patterns.md` when they would prevent recurrence.
|
|
93
|
-
-
|
|
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,29 +1,32 @@
|
|
|
1
1
|
# MEMORY.md - {{projectName}} Project Resource Index
|
|
2
2
|
|
|
3
|
-
> The project fact source is reached via `CLAUDE.md ->
|
|
4
|
-
> Detailed memory lives in `memory/`. Keep entries short, newest first, and free of secrets.
|
|
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
5
|
|
|
6
6
|
## Agents (Sub-agents)
|
|
7
7
|
|
|
8
|
-
- [researcher](
|
|
9
|
-
- [docs-researcher](
|
|
10
|
-
- [planner](
|
|
11
|
-
- [architect](
|
|
12
|
-
- [test-writer](
|
|
13
|
-
- [implementer](
|
|
14
|
-
- [debugger](
|
|
15
|
-
- [reviewer](
|
|
16
|
-
- [verifier](
|
|
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
17
|
|
|
18
18
|
Stack-specific agents can be added after the product shape is known.
|
|
19
19
|
|
|
20
20
|
## Skills (Workflows)
|
|
21
21
|
|
|
22
|
-
- [harness-router](
|
|
23
|
-
- [harness-lifecycle](
|
|
24
|
-
- [harness-research](
|
|
25
|
-
- [harness-context](
|
|
26
|
-
- [harness-build-loop](
|
|
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.
|
|
27
30
|
|
|
28
31
|
Stack-specific skills can be added after the product shape is known.
|
|
29
32
|
|
|
@@ -31,20 +34,22 @@ Stack-specific skills can be added after the product shape is known.
|
|
|
31
34
|
|
|
32
35
|
Located under `.claude/rules/ecc/`, auto-loaded by the CC engine:
|
|
33
36
|
|
|
34
|
-
- [common.md](
|
|
37
|
+
- [common.md](../.claude/rules/ecc/common.md) — universal harness constraints for context loading, verification, subagents, and security (alwaysApply: true)
|
|
35
38
|
- Language-specific rules pending Claude Code initialization (e.g. python.md, typescript.md, etc.)
|
|
36
39
|
|
|
37
40
|
## Harness (Runtime)
|
|
38
41
|
|
|
39
|
-
- [Active plan](
|
|
40
|
-
- [Docs router](
|
|
41
|
-
- [
|
|
42
|
-
- [
|
|
43
|
-
- [
|
|
44
|
-
- [
|
|
45
|
-
- [
|
|
46
|
-
- [
|
|
47
|
-
- [
|
|
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)
|
|
48
53
|
- [Harness validator](scripts/validate-harness.mjs)
|
|
49
54
|
|
|
50
55
|
## Memory Folder
|
|
@@ -58,5 +63,5 @@ Write to the memory folder when the guidance should survive chat context loss:
|
|
|
58
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.
|
|
59
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.
|
|
60
65
|
- Use `memory/agent-lessons-patterns.md` when a review/debug loop yields a reusable lesson or regression guard.
|
|
61
|
-
- Use
|
|
66
|
+
- Use this file for the resource index and routing pointers, not long-form lessons.
|
|
62
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.
|