create-harness-vibe-coding 0.6.3 → 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 (56) 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/skills/browser-e2e/SKILL.md +42 -42
  39. package/templates/optional/skills/browser-e2e/.claude/skills/wf-browser/SKILL.md +30 -0
  40. package/templates/optional/skills/browser-e2e/docs/workflows/browser-e2e.md +1 -1
  41. package/templates/optional/skills/github-pr-review/.claude/skills/github-pr-review/SKILL.md +40 -40
  42. package/templates/optional/skills/python-backend/.claude/skills/python-backend/SKILL.md +40 -40
  43. package/templates/optional/skills/ts-react-frontend/.claude/skills/ts-react-frontend/SKILL.md +43 -43
  44. package/templates/optional/skills/ui-ux-review/.claude/skills/ui-ux-review/SKILL.md +40 -40
  45. package/templates/common/.claude/skills/harness-build-loop/SKILL.md +0 -23
  46. package/templates/common/.claude/skills/harness-context/SKILL.md +0 -26
  47. package/templates/common/.claude/skills/harness-lifecycle/SKILL.md +0 -20
  48. package/templates/common/.claude/skills/harness-research/SKILL.md +0 -30
  49. package/templates/common/.claude/skills/harness-router/SKILL.md +0 -16
  50. package/templates/common/.claude/skills/wf-mode/SKILL.md +0 -55
  51. package/templates/common/docs/domain/ports.md +0 -76
  52. package/templates/common/docs/features/_template.md +0 -177
  53. package/templates/common/docs/harness/PLAN.md +0 -52
  54. package/templates/common/docs/harness/data-flow.md +0 -59
  55. package/templates/common/docs/harness/state-machines.md +0 -58
  56. /package/templates/common/.claude/commands/{learn.md → wf-learn.md} +0 -0
@@ -1,42 +1,42 @@
1
- ---
2
- name: browser-e2e
3
- description: Mandatory real-browser smoke and end-to-end verification using Playwright, Chrome DevTools/CDP, or documented manual browser evidence.
4
- ---
5
-
6
- # Browser E2E
7
-
8
- ## When To Use
9
-
10
- Use this skill when a change affects browser-visible behavior, navigation, forms, routing, layout, or client-side integration. Web/UI acceptance requires loading the app in a real browser before claiming the UI is done.
11
-
12
- ## Docs To Load
13
-
14
- - `Harness/workflows/browser-e2e.md`
15
- - `Harness/PLAN.md`
16
- - Existing project test, build, and run instructions.
17
-
18
- ## Required Inputs
19
-
20
- - Target URL or command to start the app.
21
- - User flows or pages to verify.
22
- - Expected behavior and supported viewport/browser scope.
23
- - Selector contract: stable accessible labels/roles and `data-testid` hooks for critical inputs, buttons, filters, rows, empty/error/loading states, and other targetable UI states.
24
-
25
- ## Allowed Writes
26
-
27
- - Browser test files in the project's existing test locations.
28
- - Evidence artifacts such as screenshots, traces, or reports in existing artifact folders.
29
- - Notes in `Harness/PLAN.md` when the active task asks for plan tracking.
30
-
31
- ## Output Format
32
-
33
- Return changed files, commands run, browser evidence paths, verified flows, failures, and follow-up risks.
34
- Include the selectors used for CDP/Playwright/manual verification.
35
-
36
- ## PLAN.md Updates
37
-
38
- Update `Harness/PLAN.md` only when executing a tracked plan item or recording evidence requested by the current task.
39
-
40
- ## dispatch.md Usage
41
-
42
- Use `Harness/dispatch.md` only when splitting independent browser checks across workers is explicitly useful.
1
+ ---
2
+ name: browser-e2e
3
+ description: Mandatory real-browser smoke and end-to-end verification using Playwright, Chrome DevTools/CDP, or documented manual browser evidence.
4
+ ---
5
+
6
+ # Browser E2E
7
+
8
+ ## When To Use
9
+
10
+ Use this skill when a change affects browser-visible behavior, navigation, forms, routing, layout, or client-side integration. Web/UI acceptance requires loading the app in a real browser before claiming the UI is done.
11
+
12
+ ## Docs To Load
13
+
14
+ - `Harness/workflows/browser-e2e.md`
15
+ - `Harness/PROGRESS.md` and current task `tasks/<id>/PLAN.md`
16
+ - Existing project test, build, and run instructions.
17
+
18
+ ## Required Inputs
19
+
20
+ - Target URL or command to start the app.
21
+ - User flows or pages to verify.
22
+ - Expected behavior and supported viewport/browser scope.
23
+ - Selector contract: stable accessible labels/roles and `data-testid` hooks for critical inputs, buttons, filters, rows, empty/error/loading states, and other targetable UI states.
24
+
25
+ ## Allowed Writes
26
+
27
+ - Browser test files in the project's existing test locations.
28
+ - Evidence artifacts such as screenshots, traces, or reports in existing artifact folders.
29
+ - Notes in current task plan when the active task asks for plan tracking.
30
+
31
+ ## Output Format
32
+
33
+ Return changed files, commands run, browser evidence paths, verified flows, failures, and follow-up risks.
34
+ Include the selectors used for CDP/Playwright/manual verification.
35
+
36
+ ## PROGRESS.md & Task PLAN.md Updates
37
+
38
+ Update `Harness/tasks/<task-id>/PLAN.md` only when executing a tracked plan item or recording evidence requested by the current task.
39
+
40
+ ## dispatch.md Usage
41
+
42
+ Use `Harness/dispatch.md` only when splitting independent browser checks across workers is explicitly useful.
@@ -76,6 +76,36 @@ If you see `UnicodeEncodeError: 'gbk' codec can't encode character`, the install
76
76
  set PYTHONIOENCODING=utf-8
77
77
  ```
78
78
 
79
+ ### Windows Daemon Patches
80
+
81
+ Browser Use v0.13.1 has two known issues on Windows that are auto-patched on install. If `browser-use open` fails with "Failed to start daemon" or socket timeout, re-apply:
82
+
83
+ ```bash
84
+ python -c "
85
+ import browser_use.skill_cli.main as m
86
+ p = m.__file__
87
+ c = open(p, encoding='utf-8').read()
88
+ # Patch 1: auto-clean stale state on dead PID
89
+ c = c.replace(
90
+ 'probe = _probe_session(session)\n\n\t# Socket reachable',
91
+ 'probe = _probe_session(session)\n\n\t# Auto-clean stale state\n\tif not probe.socket_reachable and not probe.pid_alive and probe.phase:\n\t\t_clean_session_files(session)\n\t\tprobe = _probe_session(session)\n\n\t# Socket reachable'
92
+ )
93
+ # Patch 2: auto-recover from stale session instead of erroring
94
+ c = c.replace(
95
+ \"f'Error: Session {session!r} is alive (phase={probe.phase}) but socket unreachable.\",\"
96
+ \"f'Warning: Session {session!r} has stale state (phase={probe.phase}), auto-cleaning...\",\"
97
+ )
98
+ c = c.replace(
99
+ \"sys.exit(1)\n\n\t\telif probe.phase == 'shutting_down'\",
100
+ \"_terminate_pid(probe.pid)\n\t\t\t_clean_session_files(session)\n\n\t\telif probe.phase == 'shutting_down'\"
101
+ )
102
+ # Patch 3: extend daemon startup timeout (15s -> 30s)
103
+ c = c.replace('deadline = time.time() + 15', 'deadline = time.time() + 30')
104
+ open(p, 'w', encoding='utf-8').write(c)
105
+ print('Patches applied')
106
+ "
107
+ ```
108
+
79
109
  ### Requirements
80
110
 
81
111
  | Requirement | Version | Check |
@@ -46,7 +46,7 @@ If `browser-use` is not installed, fall back to:
46
46
 
47
47
  ## Integration Points
48
48
 
49
- - **wf-mode**: references this file at line 16 and 42 of `.claude/skills/wf-mode/SKILL.md`
49
+ - **WF mode**: when browser-visible changes are made, follow the evidence contract in `Harness/WF.md#Browser And API Evidence`
50
50
  - **wf-browser**: the `/wf-browser` slash command loads this workflow + the skill via `.claude/commands/wf-browser.md`
51
51
  - **MEMORY.md**: registered as optional workflow skill
52
52
  - **README.md**: routing table row "Browser E2E testing or automation" → browser-e2e
@@ -1,40 +1,40 @@
1
- ---
2
- name: github-pr-review
3
- description: GitHub pull request review workflow using available GitHub CLI, local git diff, checks, and CI evidence.
4
- ---
5
-
6
- # GitHub PR Review
7
-
8
- ## When To Use
9
-
10
- Use this skill when reviewing a GitHub pull request, responding to PR feedback, checking CI status, or summarizing review findings.
11
-
12
- ## Docs To Load
13
-
14
- - `Harness/workflows/github-pr-review.md`
15
- - `Harness/PLAN.md`
16
- - Repository contribution, test, and review guidelines.
17
-
18
- ## Required Inputs
19
-
20
- - PR number, branch, or comparison range.
21
- - Review goal: bug hunt, approval readiness, CI diagnosis, or feedback response.
22
- - Expected test and check requirements.
23
-
24
- ## Allowed Writes
25
-
26
- - Local files needed to address approved review feedback.
27
- - Review notes or evidence in existing docs only when requested.
28
- - `Harness/PLAN.md` when tracking review work.
29
-
30
- ## Output Format
31
-
32
- Return findings first by severity with file and line references, then open questions, tests/checks run, and change summary if edits were made.
33
-
34
- ## PLAN.md Updates
35
-
36
- Update `Harness/PLAN.md` only when the PR review is part of a tracked implementation plan.
37
-
38
- ## dispatch.md Usage
39
-
40
- Use `Harness/dispatch.md` when independent review areas can be assigned separately, such as backend, frontend, and CI.
1
+ ---
2
+ name: github-pr-review
3
+ description: GitHub pull request review workflow using available GitHub CLI, local git diff, checks, and CI evidence.
4
+ ---
5
+
6
+ # GitHub PR Review
7
+
8
+ ## When To Use
9
+
10
+ Use this skill when reviewing a GitHub pull request, responding to PR feedback, checking CI status, or summarizing review findings.
11
+
12
+ ## Docs To Load
13
+
14
+ - `Harness/workflows/github-pr-review.md`
15
+ - `Harness/PROGRESS.md` and current task `tasks/<id>/PLAN.md`
16
+ - Repository contribution, test, and review guidelines.
17
+
18
+ ## Required Inputs
19
+
20
+ - PR number, branch, or comparison range.
21
+ - Review goal: bug hunt, approval readiness, CI diagnosis, or feedback response.
22
+ - Expected test and check requirements.
23
+
24
+ ## Allowed Writes
25
+
26
+ - Local files needed to address approved review feedback.
27
+ - Review notes or evidence in existing docs only when requested.
28
+ - Current task `tasks/<id>/PLAN.md` when tracking review work.
29
+
30
+ ## Output Format
31
+
32
+ Return findings first by severity with file and line references, then open questions, tests/checks run, and change summary if edits were made.
33
+
34
+ ## PROGRESS.md & Task PLAN.md Updates
35
+
36
+ Update `Harness/tasks/<task-id>/PLAN.md` only when the PR review is part of a tracked implementation plan.
37
+
38
+ ## dispatch.md Usage
39
+
40
+ Use `Harness/dispatch.md` when independent review areas can be assigned separately, such as backend, frontend, and CI.
@@ -1,40 +1,40 @@
1
- ---
2
- name: python-backend
3
- description: Python backend workflow for API changes, service logic, FastAPI-style routes, and unittest or pytest verification.
4
- ---
5
-
6
- # Python Backend
7
-
8
- ## When To Use
9
-
10
- Use this skill when changing Python API routes, service logic, persistence boundaries, background jobs, or backend tests.
11
-
12
- ## Docs To Load
13
-
14
- - `Harness/workflows/python-backend.md`
15
- - `Harness/PLAN.md`
16
- - Project backend README, API docs, dependency files, and test configuration.
17
-
18
- ## Required Inputs
19
-
20
- - Target behavior, endpoint, service, or bug.
21
- - Existing test command and runtime setup.
22
- - Database, environment variable, or fixture constraints.
23
-
24
- ## Allowed Writes
25
-
26
- - Python source, tests, fixtures, and backend docs in the task scope.
27
- - Local evidence artifacts such as test output snippets.
28
- - `Harness/PLAN.md` when the task requires plan tracking.
29
-
30
- ## Output Format
31
-
32
- Return files changed, API or behavior summary, tests run, important logs, migration/config notes, and remaining risks.
33
-
34
- ## PLAN.md Updates
35
-
36
- Update `Harness/PLAN.md` only when executing a tracked plan item or recording required validation evidence.
37
-
38
- ## dispatch.md Usage
39
-
40
- Use `Harness/dispatch.md` for separable backend work such as API implementation, database changes, and test coverage.
1
+ ---
2
+ name: python-backend
3
+ description: Python backend workflow for API changes, service logic, FastAPI-style routes, and unittest or pytest verification.
4
+ ---
5
+
6
+ # Python Backend
7
+
8
+ ## When To Use
9
+
10
+ Use this skill when changing Python API routes, service logic, persistence boundaries, background jobs, or backend tests.
11
+
12
+ ## Docs To Load
13
+
14
+ - `Harness/workflows/python-backend.md`
15
+ - `Harness/PROGRESS.md` and current task `tasks/<id>/PLAN.md`
16
+ - Project backend README, API docs, dependency files, and test configuration.
17
+
18
+ ## Required Inputs
19
+
20
+ - Target behavior, endpoint, service, or bug.
21
+ - Existing test command and runtime setup.
22
+ - Database, environment variable, or fixture constraints.
23
+
24
+ ## Allowed Writes
25
+
26
+ - Python source, tests, fixtures, and backend docs in the task scope.
27
+ - Local evidence artifacts such as test output snippets.
28
+ - Current task `tasks/<id>/PLAN.md` when the task requires plan tracking.
29
+
30
+ ## Output Format
31
+
32
+ Return files changed, API or behavior summary, tests run, important logs, migration/config notes, and remaining risks.
33
+
34
+ ## PROGRESS.md & Task PLAN.md Updates
35
+
36
+ Update `Harness/tasks/<task-id>/PLAN.md` only when executing a tracked plan item or recording required validation evidence.
37
+
38
+ ## dispatch.md Usage
39
+
40
+ Use `Harness/dispatch.md` for separable backend work such as API implementation, database changes, and test coverage.
@@ -1,43 +1,43 @@
1
- ---
2
- name: ts-react-frontend
3
- description: TypeScript React frontend workflow for components, state, routing, typecheck, tests, builds, and browser smoke evidence.
4
- ---
5
-
6
- # TypeScript React Frontend
7
-
8
- ## When To Use
9
-
10
- Use this skill when changing React components, hooks, routes, client state, styling, build configuration, or frontend tests.
11
- For user-visible changes, typecheck, build, and unit tests are not enough; include real-browser smoke or screenshot evidence before claiming acceptance.
12
-
13
- ## Docs To Load
14
-
15
- - `Harness/workflows/ts-react-frontend.md`
16
- - `Harness/PLAN.md`
17
- - Existing frontend README, package scripts, design system, and test setup.
18
-
19
- ## Required Inputs
20
-
21
- - Screen, component, or flow being changed.
22
- - Expected behavior and acceptance criteria.
23
- - Existing package manager and verification commands.
24
- - Selector contract: stable accessible labels/roles and `data-testid` hooks for critical inputs, buttons, filters, rows, empty/error/loading states, and other targetable UI states.
25
-
26
- ## Allowed Writes
27
-
28
- - Frontend source, styles, tests, and focused docs in task scope.
29
- - Generated evidence such as screenshots or test reports in existing artifact paths.
30
- - `Harness/PLAN.md` when tracking a plan item.
31
-
32
- ## Output Format
33
-
34
- Return changed files, UI behavior summary, commands run, browser or test evidence, and unresolved risks.
35
- Include selectors added or verified for CDP/Playwright/manual checks.
36
-
37
- ## PLAN.md Updates
38
-
39
- Update `Harness/PLAN.md` only when executing a tracked task or recording required validation evidence.
40
-
41
- ## dispatch.md Usage
42
-
43
- Use `Harness/dispatch.md` when independent frontend tasks can run in parallel, such as components, tests, and browser checks.
1
+ ---
2
+ name: ts-react-frontend
3
+ description: TypeScript React frontend workflow for components, state, routing, typecheck, tests, builds, and browser smoke evidence.
4
+ ---
5
+
6
+ # TypeScript React Frontend
7
+
8
+ ## When To Use
9
+
10
+ Use this skill when changing React components, hooks, routes, client state, styling, build configuration, or frontend tests.
11
+ For user-visible changes, typecheck, build, and unit tests are not enough; include real-browser smoke or screenshot evidence before claiming acceptance.
12
+
13
+ ## Docs To Load
14
+
15
+ - `Harness/workflows/ts-react-frontend.md`
16
+ - `Harness/PROGRESS.md` and current task `tasks/<id>/PLAN.md`
17
+ - Existing frontend README, package scripts, design system, and test setup.
18
+
19
+ ## Required Inputs
20
+
21
+ - Screen, component, or flow being changed.
22
+ - Expected behavior and acceptance criteria.
23
+ - Existing package manager and verification commands.
24
+ - Selector contract: stable accessible labels/roles and `data-testid` hooks for critical inputs, buttons, filters, rows, empty/error/loading states, and other targetable UI states.
25
+
26
+ ## Allowed Writes
27
+
28
+ - Frontend source, styles, tests, and focused docs in task scope.
29
+ - Generated evidence such as screenshots or test reports in existing artifact paths.
30
+ - Current task `tasks/<id>/PLAN.md` when tracking a plan item.
31
+
32
+ ## Output Format
33
+
34
+ Return changed files, UI behavior summary, commands run, browser or test evidence, and unresolved risks.
35
+ Include selectors added or verified for CDP/Playwright/manual checks.
36
+
37
+ ## PROGRESS.md & Task PLAN.md Updates
38
+
39
+ Update `Harness/tasks/<task-id>/PLAN.md` only when executing a tracked task or recording required validation evidence.
40
+
41
+ ## dispatch.md Usage
42
+
43
+ Use `Harness/dispatch.md` when independent frontend tasks can run in parallel, such as components, tests, and browser checks.
@@ -1,40 +1,40 @@
1
- ---
2
- name: ui-ux-review
3
- description: Screenshot-driven UI and UX review for responsive behavior, accessibility, visual polish, and task clarity.
4
- ---
5
-
6
- # UI/UX Review
7
-
8
- ## When To Use
9
-
10
- Use this skill when reviewing or changing user-facing screens, layouts, visual hierarchy, interaction states, accessibility, or responsive behavior.
11
-
12
- ## Docs To Load
13
-
14
- - `Harness/workflows/ui-ux-review.md`
15
- - `Harness/PLAN.md`
16
- - Existing design system, component, or style documentation.
17
-
18
- ## Required Inputs
19
-
20
- - Screens, routes, or components under review.
21
- - Target users and primary tasks.
22
- - Breakpoints, themes, and accessibility expectations.
23
-
24
- ## Allowed Writes
25
-
26
- - UI code and style files already in scope for the task.
27
- - Screenshot or audit artifacts in existing evidence folders.
28
- - `Harness/PLAN.md` when the review is part of a tracked plan.
29
-
30
- ## Output Format
31
-
32
- Return prioritized findings with file or screen references, evidence, recommended fixes, commands run, and residual risks.
33
-
34
- ## PLAN.md Updates
35
-
36
- Update `Harness/PLAN.md` only for tracked review tasks or when recording required evidence.
37
-
38
- ## dispatch.md Usage
39
-
40
- Use `Harness/dispatch.md` only for independent review streams such as separate routes or breakpoints.
1
+ ---
2
+ name: ui-ux-review
3
+ description: Screenshot-driven UI and UX review for responsive behavior, accessibility, visual polish, and task clarity.
4
+ ---
5
+
6
+ # UI/UX Review
7
+
8
+ ## When To Use
9
+
10
+ Use this skill when reviewing or changing user-facing screens, layouts, visual hierarchy, interaction states, accessibility, or responsive behavior.
11
+
12
+ ## Docs To Load
13
+
14
+ - `Harness/workflows/ui-ux-review.md`
15
+ - `Harness/PROGRESS.md` and current task `tasks/<id>/PLAN.md`
16
+ - Existing design system, component, or style documentation.
17
+
18
+ ## Required Inputs
19
+
20
+ - Screens, routes, or components under review.
21
+ - Target users and primary tasks.
22
+ - Breakpoints, themes, and accessibility expectations.
23
+
24
+ ## Allowed Writes
25
+
26
+ - UI code and style files already in scope for the task.
27
+ - Screenshot or audit artifacts in existing evidence folders.
28
+ - Current task `tasks/<id>/PLAN.md` when the review is part of a tracked plan.
29
+
30
+ ## Output Format
31
+
32
+ Return prioritized findings with file or screen references, evidence, recommended fixes, commands run, and residual risks.
33
+
34
+ ## PROGRESS.md & Task PLAN.md Updates
35
+
36
+ Update current task `tasks/<id>/PLAN.md` only for tracked review tasks or when recording required evidence.
37
+
38
+ ## dispatch.md Usage
39
+
40
+ Use `Harness/dispatch.md` only for independent review streams such as separate routes or breakpoints.
@@ -1,23 +0,0 @@
1
- ---
2
- name: harness-build-loop
3
- description: Use for implementation, review, debugging, verification, and closing a feature.
4
- ---
5
-
6
- # Harness Build Loop
7
-
8
- Load:
9
-
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/PROGRESS.md`
14
- - `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md` when available
15
- - current feature doc if present
16
-
17
- Follow:
18
-
19
- ```text
20
- acceptance criteria -> failing test/manual check -> implementation -> verify -> review -> docs sync
21
- ```
22
-
23
- Close only with recorded verification evidence.
@@ -1,26 +0,0 @@
1
- ---
2
- name: harness-context
3
- description: Use before spawning subagents, splitting work, or when context is growing.
4
- ---
5
-
6
- # Harness Context
7
-
8
- Load:
9
-
10
- - `Harness/subagents.md`
11
- - `Harness/context-loading.md`
12
- - `Harness/dispatch.md` when more than one agent is useful
13
- - `Harness/PROGRESS.md`
14
- - `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md` when available
15
- - current feature doc if present
16
-
17
- For each subagent or bounded pass, provide:
18
-
19
- - role
20
- - task
21
- - mode
22
- - read boundary
23
- - write boundary
24
- - dependency
25
- - injected docs
26
- - return format
@@ -1,20 +0,0 @@
1
- ---
2
- name: harness-lifecycle
3
- description: Use for raw ideas, vague product requests, 0-1 planning, PRD work, scope decisions, or feedback loops.
4
- ---
5
-
6
- # Harness Lifecycle
7
-
8
- Load:
9
-
10
- - `Harness/lifecycle.md`
11
- - `Harness/research/PRD.md`
12
- - `Harness/PROGRESS.md`
13
- - `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md` when available
14
-
15
- Output:
16
-
17
- - current phase
18
- - blocking questions or recorded assumptions
19
- - next artifact to fill
20
- - gate before coding
@@ -1,30 +0,0 @@
1
- ---
2
- name: harness-research
3
- description: Use for market, product, stack, dependency, API, pricing, legal, security, or open-source research before PRD or architecture decisions.
4
- ---
5
-
6
- # Harness Research
7
-
8
- Load:
9
-
10
- - `Harness/research/README.md`
11
- - `Harness/research/research-results.md`
12
- - `Harness/PROGRESS.md`
13
- - `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md` when available
14
-
15
- Define:
16
-
17
- - research question
18
- - decision needed
19
- - source boundaries
20
- - tool choice: local / GitHub / Tavily / TinyFish / built-in web search / user-provided sources
21
- - fallback when the preferred tool is unavailable
22
- - return format
23
-
24
- Return:
25
-
26
- - queries and tools used
27
- - sources with links and source type
28
- - adopted / rejected / watch decisions
29
- - risks and unknowns
30
- - patch-ready `Harness/research/research-results.md` update
@@ -1,16 +0,0 @@
1
- ---
2
- name: harness-router
3
- description: Use at the start of any task, or when unsure which harness document applies. Keeps context small by routing to one primary doc.
4
- ---
5
-
6
- # Harness Router
7
-
8
- 1. Read `Harness/README.md`.
9
- 2. Identify the current situation from "Load By Task".
10
- 3. Apply routing priority before loading extra files:
11
- - `/wf`, `wf mode`, `workflow mode`, `wk mode`, 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/tasks/<task-id>/PROGRESS.md` and use `harness-context`.
15
-
16
- Do not bulk-read `Harness/`.
@@ -1,55 +0,0 @@
1
- ---
2
- name: wf-mode
3
- description: Use for /wf, wf mode, workflow mode, wk 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/PROGRESS.md`
12
- - `Harness/tasks/<task-id>/PROGRESS.md` and `Harness/tasks/<task-id>/PLAN.md` when active
13
- - `Harness/agent-workflow.md` when implementation, review, or verification starts
14
- - `Harness/subagents.md`, `Harness/dispatch.md`, and `Harness/context-loading.md` immediately for explicit WF/WK mode; otherwise only when coordinating subagents or bounded role passes
15
- - current feature doc when one exists
16
- - `Harness/workflows/browser-e2e.md` when browser-visible behavior is affected and the workflow is installed
17
-
18
- Follow:
19
-
20
- ```text
21
- intake + 95% confidence gate
22
- -> parallel read-only exploration
23
- -> synthesis and second plan
24
- -> failing test or manual check
25
- -> bounded implementation
26
- -> review
27
- -> verification
28
- -> debugger recovery loop when verification fails (dispatch context-master then memory-master, or use /wf-learn)
29
- -> context-master session analysis + knowledge extraction
30
- -> memory-master consolidation
31
- -> close with evidence
32
- ```
33
-
34
- Rules:
35
-
36
- - Update `Harness/tasks/<task-id>/PROGRESS.md#Heartbeat` before long commands, after failures, before handoff, and at closeout.
37
- - Explicit `/wf`, `wf mode`, `workflow mode`, or `wk mode` MUST use `subagent-orchestrator` and spawn at least 3 distinct subagents from `.claude/agents/` before second planning.
38
- - Use the 7:3 collaboration bias from `Harness/WF.md`: default to multi-agent collaboration for substantial work; use solo mode only for clearly small/local tasks outside explicit WF/WK mode.
39
- - Use `subagent-orchestrator` and `Harness/subagents.md` when the task has broad reading, cross-layer impact, independent review needs, or repeated failures.
40
- - Subagents return findings and PLAN patch suggestions. Only the main agent writes to task PROGRESS.md and PLAN.md.
41
- - If subagents are unavailable, emulate the same roles as separate bounded passes.
42
- - Do not claim browser/UI acceptance without real-browser evidence from Chrome DevTools, CDP, Playwright, or documented manual browser checks.
43
- - 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.
44
- - Before closeout, dispatch `context-master` then `memory-master` (or use `/wf-learn`) to extract and consolidate lessons. Do not skip — the auto-trigger is unreliable; make this a mandatory gate.
45
-
46
- Return:
47
-
48
- - changed files
49
- - agents or bounded passes used
50
- - memory-master / context-master dispatches
51
- - commands run
52
- - browser/API evidence when applicable
53
- - review findings
54
- - remaining risks
55
- - updated heartbeat status