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,169 +1,169 @@
1
- # Research Protocol
2
-
3
- Purpose: guide agent research. Record conclusions in [research-results.md](research-results.md); do not put raw search notes there.
4
-
5
- ## When To Research
6
-
7
- Use this before PRD, stack choice, external API use, public dependency choice, pricing/legal/security assumptions, or any fact likely to change.
8
-
9
- Skip only when the task is local, narrow, and fully answerable from existing project files. Record the skip reason in `Harness/tasks/<task-id>/PLAN.md`.
10
-
11
- ## Research Agent
12
-
13
- Spawn a Research Agent, or emulate one in a bounded pass, when any are true:
14
-
15
- - more than two external sources are needed
16
- - the answer depends on current docs, releases, pricing, policy, or community practice
17
- - a framework, API, architecture, or dependency choice affects implementation
18
-
19
- Built-in agents:
20
-
21
- - `.claude/agents/researcher.md`: product, market, open-source, dependency, pricing, policy, and ecosystem research.
22
- - `.claude/agents/docs-researcher.md`: official docs, API, SDK, config, limits, errors, and examples verification.
23
-
24
- For multi-agent research plus build work, create the dispatch table in `Harness/tasks/<task-id>/PLAN.md` and follow `Harness/dispatch.md`.
25
-
26
- Research Agent input:
27
-
28
- - question
29
- - decision needed
30
- - source boundaries
31
- - allowed tools
32
- - output format
33
-
34
- Research Agent output:
35
-
36
- - searched queries and tools used
37
- - source list with links and source type
38
- - adopted / rejected / watch decisions
39
- - risks, unknowns, and follow-up questions
40
- - patch-ready updates for [research-results.md](research-results.md)
41
-
42
- ## Tool Order
43
-
44
- 1. Local first: inspect this repo, existing docs, lockfiles, tests, and package metadata.
45
- 2. GitHub / open source: prefer official repos, docs folders, examples, issues with maintainer answers, releases, and active forks.
46
- 3. Tavily: use when configured for broad web search or source discovery.
47
- 4. TinyFish: use when configured for rendered pages, dynamic sites, browser workflows, or structured extraction.
48
- 5. Built-in web search: free fallback when no external research tool is configured; expect less structure and verify more carefully.
49
- 6. Ask the user for sources when network or tool access is unavailable.
50
-
51
- Do not require paid tools. If Tavily or TinyFish is unavailable, use the fallback and record the limitation.
52
-
53
- ## Optional Tool Setup
54
-
55
- Tavily:
56
-
57
- ```text
58
- # Optional: requires a Tavily API key or configured CLI/tool.
59
- tvly search "query" --depth advanced --max-results 10 --json
60
- tvly search "query" --include-domains github.com,docs.github.com --json
61
- ```
62
-
63
- TinyFish:
64
-
65
- ```bash
66
- # Optional: requires TINYFISH_API_KEY or tinyfish auth login.
67
- npm install -g @tiny-fish/cli
68
- tinyfish auth login
69
- tinyfish agent run --url "https://example.com" "Extract product data. Return JSON."
70
- ```
71
-
72
- GitHub CLI:
73
-
74
- ```bash
75
- gh search repos "topic keywords" --archived=false --json fullName,url,description,stargazersCount,pushedAt
76
- gh search code "symbol or config" --repo owner/name
77
- ```
78
-
79
- Fallback web search examples:
80
-
81
- ```text
82
- site:github.com <framework> starter template
83
- site:github.com <library> examples
84
- site:docs.<vendor>.com <api> limits errors
85
- <product category> alternatives pricing docs
86
- ```
87
-
88
- ## Source Rules
89
-
90
- - Prefer primary sources: official docs, official GitHub repos, standards, papers, release notes.
91
- - Use community sources for pitfalls and adoption signals only; label them as community evidence.
92
- - Check dates for unstable facts.
93
- - Compare at least three sources, or record why fewer are enough.
94
- - Do not copy large source text. Summarize the decision-relevant facts.
95
-
96
- ## Requirement Quality
97
-
98
- Use these patterns when turning research into PRD or feature docs:
99
-
100
- - PRD: why, target user, MVP, non-goals, success measures, acceptance criteria.
101
- - EARS: `When <trigger>, the <system> shall <response>` for precise requirements.
102
- - Gherkin: `Given / When / Then` for testable behavior scenarios.
103
- - Spec-first: requirements before plan, plan before tasks, tasks before implementation.
104
-
105
- ## Write Target
106
-
107
- - Research process, queries, and limitations: this file or `Harness/tasks/<task-id>/PLAN.md`.
108
- - Final research decisions: [research-results.md](research-results.md).
109
- - Product scope: [PRD.md](PRD.md).
110
- - Architecture consequences: `Harness/architecture.md` and `Harness/domain/ports.md`.
111
-
112
- ## Architecture Decision References
113
-
114
- When filling `Harness/architecture.md`, `Harness/domain/ports.md`, and `Harness/research/research-results.md`, use these high-trust sources as starting points. Search within them; do not read them whole.
115
-
116
- ### System Design & Architecture Patterns
117
-
118
- | Source | Stars | What To Use It For |
119
- |--------|-------|--------------------|
120
- | [donnemartin/system-design-primer](https://github.com/donnemartin/system-design-primer) | 266k+ | System design fundamentals, trade-off frameworks, scalability patterns |
121
- | [ByteByteGoHq/system-design-101](https://github.com/ByteByteGoHq/system-design-101) | 65k+ | Visual system design concepts, communication protocols, database patterns |
122
- | [DovAmir/awesome-design-patterns](https://github.com/DovAmir/awesome-design-patterns) | 47k+ | Curated design patterns: general arch, cloud, serverless, microservices, front-end, security |
123
- | [mehdihadeli/awesome-software-architecture](https://github.com/mehdihadeli/awesome-software-architecture) | high | Design patterns deep-dive: CQRS, Outbox, Saga, Circuit Breaker, BFF, scaling, caching |
124
- | [ashishps1/awesome-system-design-resources](https://github.com/ashishps1/awesome-system-design-resources) | 30k+ | System design interview prep: networking, API design, database, caching, distributed systems |
125
-
126
- ### Front-End Architecture
127
-
128
- | Source | Stars | What To Use It For |
129
- |--------|-------|--------------------|
130
- | [greatfrontend/awesome-front-end-system-design](https://github.com/greatfrontend/awesome-front-end-system-design) | high | Front-end system design: news feed, e-commerce, chat, video streaming, SDUI |
131
-
132
- ### Architecture Decision Records (ADR)
133
-
134
- | Source | Purpose |
135
- |--------|---------|
136
- | [adr.github.io](https://adr.github.io) | ADR overview, templates (MADR, Nygard, Y-Statement), tooling |
137
- | [architecture-decision-record/architecture-decision-record](https://github.com/architecture-decision-record/architecture-decision-record) | Canonical ADR repo with git-based workflow |
138
- | [adr/madr](https://github.com/adr/madr) | Markdown Architectural Decision Records template |
139
-
140
- ### Agent Skills (Stack-Specific)
141
-
142
- > When the architecture stage reveals a specific stack, search for matching agent skills. Skills extend Claude Code / Codex with stack-aware patterns, testing conventions, and design rules.
143
-
144
- | Source | Purpose |
145
- |--------|---------|
146
- | [travisvn/awesome-claude-skills](https://github.com/travisvn/awesome-claude-skills) | Curated Claude Skills directory |
147
- | [Composio — Top Design Skills](https://composio.dev/content/top-design-skills) | UI/UX design skills for Claude Code and Codex |
148
- | `npx skills search "<stack>"` | Built-in skill discovery (if available) |
149
-
150
- Search patterns for agent skill discovery:
151
-
152
- ```text
153
- site:github.com "claude code" OR codex skill <stack> architecture
154
- site:github.com SKILL.md <framework> design patterns
155
- site:npmjs.com "claude-code" OR "codex" skill <domain>
156
- ```
157
-
158
- ---
159
-
160
- ## Method References
161
-
162
- - GitHub Spec Kit: spec-first phases and AI coding-agent workflow: https://github.github.com/spec-kit/
163
- - Atlassian PRD guidance: goals, assumptions, user stories, out-of-scope, success criteria: https://www.atlassian.com/agile/requirements
164
- - EARS: structured textual requirements: https://alistairmavin.com/ears/
165
- - Cucumber Gherkin: `Given / When / Then` executable examples: https://cucumber.io/docs/gherkin/reference
166
- - Tavily search docs: search depth, domain filters, max results, raw content: https://docs.tavily.com/documentation/api-reference/endpoint/search
167
- - Tavily CLI docs: `tvly search`, crawl, map, extract: https://docs.tavily.com/documentation/tavily-cli
168
- - TinyFish CLI docs: web search and browser-agent runs: https://docs.tinyfish.ai/cli
169
- - GitHub CLI search docs: repository and code search from terminal: https://cli.github.com/manual/gh_search_repos
1
+ # Research Protocol
2
+
3
+ Purpose: guide agent research. Record conclusions in [research-results.md](research-results.md); do not put raw search notes there.
4
+
5
+ ## When To Research
6
+
7
+ Use this before PRD, stack choice, external API use, public dependency choice, pricing/legal/security assumptions, or any fact likely to change.
8
+
9
+ Skip only when the task is local, narrow, and fully answerable from existing project files. Record the skip reason in `Harness/tasks/<task-id>/PLAN.md`.
10
+
11
+ ## Research Agent
12
+
13
+ Spawn a Research Agent, or emulate one in a bounded pass, when any are true:
14
+
15
+ - more than two external sources are needed
16
+ - the answer depends on current docs, releases, pricing, policy, or community practice
17
+ - a framework, API, architecture, or dependency choice affects implementation
18
+
19
+ Built-in agents:
20
+
21
+ - `.claude/agents/researcher.md`: product, market, open-source, dependency, pricing, policy, and ecosystem research.
22
+ - `.claude/agents/docs-researcher.md`: official docs, API, SDK, config, limits, errors, and examples verification.
23
+
24
+ For multi-agent research plus build work, create the dispatch table in `Harness/tasks/<task-id>/PLAN.md` and follow `Harness/dispatch.md`.
25
+
26
+ Research Agent input:
27
+
28
+ - question
29
+ - decision needed
30
+ - source boundaries
31
+ - allowed tools
32
+ - output format
33
+
34
+ Research Agent output:
35
+
36
+ - searched queries and tools used
37
+ - source list with links and source type
38
+ - adopted / rejected / watch decisions
39
+ - risks, unknowns, and follow-up questions
40
+ - patch-ready updates for [research-results.md](research-results.md)
41
+
42
+ ## Tool Order
43
+
44
+ 1. Local first: inspect this repo, existing docs, lockfiles, tests, and package metadata.
45
+ 2. GitHub / open source: prefer official repos, docs folders, examples, issues with maintainer answers, releases, and active forks.
46
+ 3. Tavily: use when configured for broad web search or source discovery.
47
+ 4. TinyFish: use when configured for rendered pages, dynamic sites, browser workflows, or structured extraction.
48
+ 5. Built-in web search: free fallback when no external research tool is configured; expect less structure and verify more carefully.
49
+ 6. Ask the user for sources when network or tool access is unavailable.
50
+
51
+ Do not require paid tools. If Tavily or TinyFish is unavailable, use the fallback and record the limitation.
52
+
53
+ ## Optional Tool Setup
54
+
55
+ Tavily:
56
+
57
+ ```text
58
+ # Optional: requires a Tavily API key or configured CLI/tool.
59
+ tvly search "query" --depth advanced --max-results 10 --json
60
+ tvly search "query" --include-domains github.com,docs.github.com --json
61
+ ```
62
+
63
+ TinyFish:
64
+
65
+ ```bash
66
+ # Optional: requires TINYFISH_API_KEY or tinyfish auth login.
67
+ npm install -g @tiny-fish/cli
68
+ tinyfish auth login
69
+ tinyfish agent run --url "https://example.com" "Extract product data. Return JSON."
70
+ ```
71
+
72
+ GitHub CLI:
73
+
74
+ ```bash
75
+ gh search repos "topic keywords" --archived=false --json fullName,url,description,stargazersCount,pushedAt
76
+ gh search code "symbol or config" --repo owner/name
77
+ ```
78
+
79
+ Fallback web search examples:
80
+
81
+ ```text
82
+ site:github.com <framework> starter template
83
+ site:github.com <library> examples
84
+ site:docs.<vendor>.com <api> limits errors
85
+ <product category> alternatives pricing docs
86
+ ```
87
+
88
+ ## Source Rules
89
+
90
+ - Prefer primary sources: official docs, official GitHub repos, standards, papers, release notes.
91
+ - Use community sources for pitfalls and adoption signals only; label them as community evidence.
92
+ - Check dates for unstable facts.
93
+ - Compare at least three sources, or record why fewer are enough.
94
+ - Do not copy large source text. Summarize the decision-relevant facts.
95
+
96
+ ## Requirement Quality
97
+
98
+ Use these patterns when turning research into PRD or feature docs:
99
+
100
+ - PRD: why, target user, MVP, non-goals, success measures, acceptance criteria.
101
+ - EARS: `When <trigger>, the <system> shall <response>` for precise requirements.
102
+ - Gherkin: `Given / When / Then` for testable behavior scenarios.
103
+ - Spec-first: requirements before plan, plan before tasks, tasks before implementation.
104
+
105
+ ## Write Target
106
+
107
+ - Research process, queries, and limitations: this file or `Harness/tasks/<task-id>/PLAN.md`.
108
+ - Final research decisions: [research-results.md](research-results.md).
109
+ - Product scope: [PRD.md](PRD.md).
110
+ - Architecture consequences: `Harness/architecture.md`.
111
+
112
+ ## Architecture Decision References
113
+
114
+ When filling `Harness/architecture.md` and `Harness/research/research-results.md`, use these high-trust sources as starting points. Search within them; do not read them whole.
115
+
116
+ ### System Design & Architecture Patterns
117
+
118
+ | Source | Stars | What To Use It For |
119
+ |--------|-------|--------------------|
120
+ | [donnemartin/system-design-primer](https://github.com/donnemartin/system-design-primer) | 266k+ | System design fundamentals, trade-off frameworks, scalability patterns |
121
+ | [ByteByteGoHq/system-design-101](https://github.com/ByteByteGoHq/system-design-101) | 65k+ | Visual system design concepts, communication protocols, database patterns |
122
+ | [DovAmir/awesome-design-patterns](https://github.com/DovAmir/awesome-design-patterns) | 47k+ | Curated design patterns: general arch, cloud, serverless, microservices, front-end, security |
123
+ | [mehdihadeli/awesome-software-architecture](https://github.com/mehdihadeli/awesome-software-architecture) | high | Design patterns deep-dive: CQRS, Outbox, Saga, Circuit Breaker, BFF, scaling, caching |
124
+ | [ashishps1/awesome-system-design-resources](https://github.com/ashishps1/awesome-system-design-resources) | 30k+ | System design interview prep: networking, API design, database, caching, distributed systems |
125
+
126
+ ### Front-End Architecture
127
+
128
+ | Source | Stars | What To Use It For |
129
+ |--------|-------|--------------------|
130
+ | [greatfrontend/awesome-front-end-system-design](https://github.com/greatfrontend/awesome-front-end-system-design) | high | Front-end system design: news feed, e-commerce, chat, video streaming, SDUI |
131
+
132
+ ### Architecture Decision Records (ADR)
133
+
134
+ | Source | Purpose |
135
+ |--------|---------|
136
+ | [adr.github.io](https://adr.github.io) | ADR overview, templates (MADR, Nygard, Y-Statement), tooling |
137
+ | [architecture-decision-record/architecture-decision-record](https://github.com/architecture-decision-record/architecture-decision-record) | Canonical ADR repo with git-based workflow |
138
+ | [adr/madr](https://github.com/adr/madr) | Markdown Architectural Decision Records template |
139
+
140
+ ### Agent Skills (Stack-Specific)
141
+
142
+ > When the architecture stage reveals a specific stack, search for matching agent skills. Skills extend Claude Code / Codex with stack-aware patterns, testing conventions, and design rules.
143
+
144
+ | Source | Purpose |
145
+ |--------|---------|
146
+ | [travisvn/awesome-claude-skills](https://github.com/travisvn/awesome-claude-skills) | Curated Claude Skills directory |
147
+ | [Composio — Top Design Skills](https://composio.dev/content/top-design-skills) | UI/UX design skills for Claude Code and Codex |
148
+ | `npx skills search "<stack>"` | Built-in skill discovery (if available) |
149
+
150
+ Search patterns for agent skill discovery:
151
+
152
+ ```text
153
+ site:github.com "claude code" OR codex skill <stack> architecture
154
+ site:github.com SKILL.md <framework> design patterns
155
+ site:npmjs.com "claude-code" OR "codex" skill <domain>
156
+ ```
157
+
158
+ ---
159
+
160
+ ## Method References
161
+
162
+ - GitHub Spec Kit: spec-first phases and AI coding-agent workflow: https://github.github.com/spec-kit/
163
+ - Atlassian PRD guidance: goals, assumptions, user stories, out-of-scope, success criteria: https://www.atlassian.com/agile/requirements
164
+ - EARS: structured textual requirements: https://alistairmavin.com/ears/
165
+ - Cucumber Gherkin: `Given / When / Then` executable examples: https://cucumber.io/docs/gherkin/reference
166
+ - Tavily search docs: search depth, domain filters, max results, raw content: https://docs.tavily.com/documentation/api-reference/endpoint/search
167
+ - Tavily CLI docs: `tvly search`, crawl, map, extract: https://docs.tavily.com/documentation/tavily-cli
168
+ - TinyFish CLI docs: web search and browser-agent runs: https://docs.tinyfish.ai/cli
169
+ - GitHub CLI search docs: repository and code search from terminal: https://cli.github.com/manual/gh_search_repos