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.
- package/README.md +177 -32
- package/package.json +5 -2
- package/src/generator.js +407 -53
- package/src/index.js +236 -22
- 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 +16 -6
- 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 -71
- package/templates/common/MEMORY.md +42 -33
- package/templates/common/README.md +41 -0
- package/templates/common/SETUP.md +149 -41
- package/templates/common/docs/README.md +72 -47
- package/templates/common/docs/domain/ports.md +1 -1
- package/templates/common/docs/features/_template.md +20 -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 +17 -14
- package/templates/common/docs/harness/data-flow.md +1 -1
- package/templates/common/docs/harness/dispatch.md +6 -0
- package/templates/common/docs/harness/extension.md +20 -8
- 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/memory/agent-lessons-patterns.md +21 -0
- package/templates/common/memory/tool-usage-reflections.md +21 -0
- package/templates/common/memory/user-corrections-preferences.md +21 -0
- package/templates/common/scripts/validate-harness.mjs +217 -46
- package/templates/optional/catalog.json +43 -0
- package/templates/optional/skills/browser-e2e/.claude/skills/browser-e2e/SKILL.md +42 -0
- package/templates/optional/skills/browser-e2e/docs/workflows/browser-e2e.md +42 -0
- package/templates/optional/skills/github-pr-review/.claude/skills/github-pr-review/SKILL.md +40 -0
- package/templates/optional/skills/github-pr-review/docs/workflows/github-pr-review.md +28 -0
- package/templates/optional/skills/python-backend/.claude/skills/python-backend/SKILL.md +40 -0
- package/templates/optional/skills/python-backend/docs/workflows/python-backend.md +34 -0
- package/templates/optional/skills/ts-react-frontend/.claude/skills/ts-react-frontend/SKILL.md +43 -0
- package/templates/optional/skills/ts-react-frontend/docs/workflows/ts-react-frontend.md +35 -0
- package/templates/optional/skills/ui-ux-review/.claude/skills/ui-ux-review/SKILL.md +40 -0
- package/templates/optional/skills/ui-ux-review/docs/workflows/ui-ux-review.md +26 -0
|
@@ -0,0 +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.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# TypeScript React Frontend Workflow
|
|
2
|
+
|
|
3
|
+
## Required Evidence
|
|
4
|
+
|
|
5
|
+
- Package manager and scripts detected.
|
|
6
|
+
- Typecheck, lint, test, or build results according to project conventions.
|
|
7
|
+
- Real-browser smoke or screenshot evidence for user-visible changes.
|
|
8
|
+
- Console/runtime error check result for the changed screen or flow.
|
|
9
|
+
- Notes on responsive behavior and important interaction states.
|
|
10
|
+
- Stable accessible labels/roles and stable test hooks such as `data-testid` are required for critical UI controls and states: inputs, buttons, filters, rows, empty/error/loading states.
|
|
11
|
+
|
|
12
|
+
Typecheck, build, and unit tests are necessary signals but are not enough for user-visible React changes. Before claiming UI acceptance, load the app in a real browser by Playwright, Chrome DevTools/CDP, or a documented manual run and capture screenshot/trace/console evidence.
|
|
13
|
+
For TS/React UI work, capture the selector contract in the feature doc before implementation so tests and manual checks can target stable selectors instead of component internals or brittle DOM paths.
|
|
14
|
+
|
|
15
|
+
## Common Commands
|
|
16
|
+
|
|
17
|
+
```powershell
|
|
18
|
+
npm run typecheck
|
|
19
|
+
npm run lint
|
|
20
|
+
npm test
|
|
21
|
+
npm run build
|
|
22
|
+
npm run dev
|
|
23
|
+
pnpm test
|
|
24
|
+
yarn test
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Use the package manager and scripts already present in the repository.
|
|
28
|
+
|
|
29
|
+
## Fallback
|
|
30
|
+
|
|
31
|
+
If no formal checks exist, run the closest available build or dev command, inspect the changed UI manually, and document the missing automation. Do not add dependencies unless the task requires it and the user approves.
|
|
32
|
+
|
|
33
|
+
## Windows Notes
|
|
34
|
+
|
|
35
|
+
Use PowerShell syntax for environment variables: `$env:VITE_API_URL='http://localhost:8000'; npm run dev`. Quote paths and prefer package scripts over shell-specific command chains.
|
|
@@ -0,0 +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.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UI/UX Review Workflow
|
|
2
|
+
|
|
3
|
+
## Required Evidence
|
|
4
|
+
|
|
5
|
+
- Screenshots for desktop and mobile views.
|
|
6
|
+
- Notes on layout, typography, interaction states, accessibility, and empty/loading/error states.
|
|
7
|
+
- Any automated accessibility, lint, or visual test output available in the project.
|
|
8
|
+
|
|
9
|
+
## Common Commands
|
|
10
|
+
|
|
11
|
+
```powershell
|
|
12
|
+
npm run dev
|
|
13
|
+
npm run lint
|
|
14
|
+
npm run test
|
|
15
|
+
npx playwright test
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Use the project's existing commands first. Browser screenshots may come from Playwright, CDP, framework tooling, or manual capture.
|
|
19
|
+
|
|
20
|
+
## Fallback
|
|
21
|
+
|
|
22
|
+
When automation is unavailable, inspect the running UI manually at representative viewport sizes and document findings with screenshots. Avoid adding design or test dependencies without approval.
|
|
23
|
+
|
|
24
|
+
## Windows Notes
|
|
25
|
+
|
|
26
|
+
PowerShell does not support POSIX inline environment variables. Use `$env:NAME='value'; command` and quote screenshot paths with spaces.
|