@odarino/haren 1.6.0 → 1.8.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/CHANGELOG.md +35 -0
- package/README.md +71 -10
- package/content/agents/developer.md +4 -3
- package/content/agents/planner.md +3 -1
- package/content/agents/reviewer.md +2 -0
- package/content/skills/collect-components/SKILL.md +81 -0
- package/content/skills/evaluate/SKILL.md +4 -1
- package/content/skills/generate-mockup/SKILL.md +29 -1
- package/content/skills/implement/SKILL.md +38 -11
- package/content/skills/plan/SKILL.md +21 -4
- package/content/skills/read-context/SKILL.md +1 -1
- package/content/skills/update-tracking/SKILL.md +1 -0
- package/content/skills/validate-artifact/SKILL.md +13 -0
- package/content/skills/visual-companion/SKILL.md +2 -5
- package/content/templates/checklist.md +26 -0
- package/content/templates/component-catalog.md +41 -0
- package/content/templates/design.md +1 -0
- package/content/templates/task-brief.md +40 -0
- package/content/templates/tasks.md +2 -0
- package/dist/index.js +2003 -460
- package/package.json +4 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Each section lists what changed in one release. `haren upgrade` prints the sections between your old version and the new one.
|
|
4
|
+
|
|
5
|
+
## 1.8.0
|
|
6
|
+
|
|
7
|
+
Both new features are experimental and off by default. With the flags off, haren behaves as in 1.7.0.
|
|
8
|
+
|
|
9
|
+
### New
|
|
10
|
+
|
|
11
|
+
- **Experimental features** (`experimental:` in `manifest.yaml`): `haren experimental enable|disable|list <name>` and `haren init --experimental <a,b>`. Known: `multi-host`, `multi-model`. An unknown value prints a warning.
|
|
12
|
+
- **More coding agents (experimental, `multi-host`)**: `haren init --hosts <a,b>` installs haren for `agents-md`, `codex`, `qwen-code`, `opencode` and `kimi-code`, next to `claude-code` and `cursor`. The list is saved as `hosts:` in `manifest.yaml`; `haren upgrade` adds it to existing workspaces. Output for Claude Code and Cursor does not change.
|
|
13
|
+
- The brainstorm gate accepts `--host <id>` and understands Qwen Code and Codex tool names.
|
|
14
|
+
- **Multi-model (experimental, `multi-model`)**: Claude plans and reviews while another agent writes the code. `models.executor` in `manifest.yaml` names the runner (any host with a non-interactive mode), the model, env (`${VAR}` only for secrets), `maxRetries` and `timeoutMinutes`. `haren exec --module <m> --task <n> [--retry --feedback <file>] [--clean]` runs one task in its own git worktree, runs its `**Test:**` command, checks for writes to the haren folder and writes a result file. `haren-implement` reviews, merges or asks for a retry. New template `task-brief.md`; `tasks.md` gains optional `**Repo:**` and `**Test:**` lines.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- `haren upgrade` adds the `hosts:` list to `manifest.yaml` of existing workspaces.
|
|
19
|
+
|
|
20
|
+
## 1.7.0
|
|
21
|
+
|
|
22
|
+
### New
|
|
23
|
+
|
|
24
|
+
- **Component catalog** (`collect-components` skill): one file, `artifacts/03-modules/component-catalog.md`, lists the common UI components (with a short ASCII sketch), shared services and shared functions of your repos. The plan reads it before it designs new code. Implement updates it after each task.
|
|
25
|
+
- **Implementation checklist**: the plan writes `checklist.md` next to `tasks.md`, with concrete checks per task (tests, reuse, files, contract, edge cases). Implement ticks only what it verified. A difference from the plan is written as `— changed: {what and why}`, and a skip as `— skipped: {reason}`. Evaluate checks each tick.
|
|
26
|
+
- **Choose the mockup format**: with `ui.mockups: ask`, `generate-mockup` asks before the first mockup: ASCII, Claude Artifact or a local browser tab.
|
|
27
|
+
- **`artifact` UI mode**: `haren track ui-mode artifact` shows mockup options as a private Claude Artifact page (Claude Code with claude.ai only).
|
|
28
|
+
- **`haren track commit <module> <repoKey> --remove`** removes a stale repo key from `progress.json`.
|
|
29
|
+
- **What's new**: `haren upgrade` prints this changelog for the versions you skipped.
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- `haren track status` no longer crashes on a module status from an old `progress.json` (for example `specified`). Such a module can move to `decomposed` or `planned`.
|
|
34
|
+
- `track status --repos`, `track commit` and `track check` use the same repo key rule. When `manifest.yaml` has no `repos`, the key is `default`.
|
|
35
|
+
- The brainstorm gate no longer blocks writes to files outside the workspace.
|
package/README.md
CHANGED
|
@@ -177,13 +177,15 @@ every repo.
|
|
|
177
177
|
|
|
178
178
|
## Commands
|
|
179
179
|
|
|
180
|
-
| Command
|
|
181
|
-
|
|
|
182
|
-
| `haren init`
|
|
183
|
-
| `haren upgrade`
|
|
184
|
-
| `haren plugin`
|
|
185
|
-
| `haren migrate`
|
|
186
|
-
| `haren
|
|
180
|
+
| Command | What it does |
|
|
181
|
+
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
182
|
+
| `haren init` | Set up haren in the current directory: scaffold a new haren folder, or set up a cloned one. Interactive, or pass flags (below). |
|
|
183
|
+
| `haren upgrade` | Update framework files in an existing haren folder to the installed version, and migrate old `manifest.yaml` / `progress.json`. It also restores missing plugins from `plugins.json`, and prints what's new since your old version (from [CHANGELOG.md](CHANGELOG.md)). Use `--yes` to accept plugins from unofficial sources. |
|
|
184
|
+
| `haren plugin` | Manage plugins: `add <name\|source>`, `remove <name>`, `list`, `doctor`, `run <hook>`. See [PLUGINS.md](PLUGINS.md). |
|
|
185
|
+
| `haren migrate` | Migration mode only: `inventory [--module m]`, `extract <unit>`, `gate <unit> [--approve]`. It runs the adapter commands. See [Migration mode](#migration-mode). |
|
|
186
|
+
| `haren experimental` | Turn experimental features on or off: `enable <name>`, `disable <name>`, `list`. Known: `multi-host`, `multi-model`. See [More coding agents](#more-coding-agents-experimental). |
|
|
187
|
+
| `haren exec` | _(experimental, `multi-model`)_ Run one task with the executor model in its own git worktree: `--module <m> --task <n> [--retry --feedback <file>] [--clean]`. See [Multi-model](#multi-model-experimental). |
|
|
188
|
+
| `haren agent` | Manage the local agent bridge _(experimental — for the in-progress Haren Portal)_. |
|
|
187
189
|
|
|
188
190
|
`haren agent` works in both layouts. It uses the git remote of the haren repo as
|
|
189
191
|
the Portal project key.
|
|
@@ -197,7 +199,7 @@ haren init \
|
|
|
197
199
|
--project "my-app" \
|
|
198
200
|
--mode blueprint \ # blueprint | explore | inherit | migration | undecided
|
|
199
201
|
--language English \
|
|
200
|
-
--editor both \ # claude-code | cursor | both
|
|
202
|
+
--editor both \ # claude-code | cursor | both (or --hosts, see below)
|
|
201
203
|
--iterations \ # enable iteration-based planning
|
|
202
204
|
--duration "2 weeks" --start-date 2026-06-08 --demo-day Friday
|
|
203
205
|
```
|
|
@@ -397,7 +399,7 @@ Skills also write these types with `haren track event`: `ideate-complete`,
|
|
|
397
399
|
### Visual companion
|
|
398
400
|
|
|
399
401
|
The visual companion shows UI mockups in a browser. The plan and evaluate phases use it
|
|
400
|
-
when the UI mode allows it. Choose the UI mode with `haren track ui-mode <ask|ascii|browser>`.
|
|
402
|
+
when the UI mode allows it. Choose the UI mode with `haren track ui-mode <ask|ascii|browser|artifact>`.
|
|
401
403
|
The mode is stored in `manifest.yaml` as `ui.mockups`. The default is `ask`.
|
|
402
404
|
|
|
403
405
|
| Mode | What happens |
|
|
@@ -486,7 +488,8 @@ model behaves like the right specialist at the right time.
|
|
|
486
488
|
|
|
487
489
|
Skills are the procedures the agent follows — `discover` (brainstorming),
|
|
488
490
|
`research`, `decompose`, `plan`, `implement`, `evaluate`, `extract-stories`,
|
|
489
|
-
`generate-mockup`,
|
|
491
|
+
`generate-mockup`, `collect-components` (catalog of common UI components,
|
|
492
|
+
shared services and functions, updated after each task), and a set of artifact-management helpers
|
|
490
493
|
(`create-artifact`, `validate-artifact`, `search-artifact`, `update-tracking`,
|
|
491
494
|
and more).
|
|
492
495
|
|
|
@@ -562,6 +565,62 @@ root.
|
|
|
562
565
|
- **Cursor** → `.cursorrules` + `.cursor/rules/haren.mdc` + `.cursor/hooks.json`
|
|
563
566
|
(registers the gate via `beforeFileEdit`/`preToolUse`).
|
|
564
567
|
|
|
568
|
+
#### More coding agents (experimental)
|
|
569
|
+
|
|
570
|
+
With the `multi-host` experimental feature, `--hosts <a,b>` installs haren for
|
|
571
|
+
more agents. The list is saved as `hosts:` in `manifest.yaml`, and
|
|
572
|
+
`haren upgrade` refreshes each host. `--editor` still works and maps to
|
|
573
|
+
`--hosts`.
|
|
574
|
+
|
|
575
|
+
```bash
|
|
576
|
+
haren experimental enable multi-host # or: haren init --experimental multi-host
|
|
577
|
+
haren init --hosts claude-code,codex,opencode
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
| Host | Files | Gate hook |
|
|
581
|
+
| ------------- | --------------------------------------------------------------------------- | ----------------------- |
|
|
582
|
+
| `claude-code` | `CLAUDE.md`, `.claude/` | yes |
|
|
583
|
+
| `cursor` | `.cursorrules`, `.cursor/` | yes |
|
|
584
|
+
| `agents-md` | `AGENTS.md` | no (instructions only) |
|
|
585
|
+
| `codex` | `AGENTS.md`, `.agents/skills/`, `.codex/agents/*.toml`, `.codex/hooks.json` | yes |
|
|
586
|
+
| `qwen-code` | `AGENTS.md`, `.agents/skills/`, `.qwen/agents/`, `.qwen/settings.json` | yes |
|
|
587
|
+
| `opencode` | `AGENTS.md`, `.agents/skills/`, `.opencode/agents/` | no (init prints a note) |
|
|
588
|
+
| `kimi-code` | `AGENTS.md`, `.agents/skills/`, `.agents/agents/` | no (init prints a note) |
|
|
589
|
+
|
|
590
|
+
Several hosts share one haren block in `AGENTS.md` and one copy of the skills
|
|
591
|
+
in `.agents/skills/`. `haren experimental list` shows the features.
|
|
592
|
+
|
|
593
|
+
#### Multi-model (experimental)
|
|
594
|
+
|
|
595
|
+
With `multi-model` (it also needs `multi-host`), Claude plans and reviews, and
|
|
596
|
+
another coding agent writes the code. Add an executor to `manifest.yaml`:
|
|
597
|
+
|
|
598
|
+
```yaml
|
|
599
|
+
experimental: [multi-host, multi-model]
|
|
600
|
+
models:
|
|
601
|
+
executor:
|
|
602
|
+
runner: codex # any host with a non-interactive mode
|
|
603
|
+
model: gpt-5.4 # optional
|
|
604
|
+
env: # optional, passed only to the executor
|
|
605
|
+
ANTHROPIC_BASE_URL: https://api.example.com/anthropic
|
|
606
|
+
ANTHROPIC_AUTH_TOKEN: ${EXECUTOR_API_KEY}
|
|
607
|
+
maxRetries: 2 # default 2
|
|
608
|
+
timeoutMinutes: 30 # default 30
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
Secrets never go in `manifest.yaml`. An `env` key with `KEY`, `TOKEN` or
|
|
612
|
+
`SECRET` in its name must have a `${VAR}` value. The CLI reads the variable
|
|
613
|
+
at run time and never prints it.
|
|
614
|
+
|
|
615
|
+
`haren exec --module <m> --task <n>` runs one task of `tasks.md` in its own
|
|
616
|
+
git worktree (`.haren-worktrees/<m>-<n>`, branch `exec/<m>/<n>`), runs the
|
|
617
|
+
task's `**Test:**` command, checks that no file in the haren folder changed,
|
|
618
|
+
and writes `artifacts/05-exec/<m>/<n>/result-<k>.json`. `--retry --feedback <file>`
|
|
619
|
+
runs it again with review notes. `--clean` removes the worktree and the branch.
|
|
620
|
+
The `haren-implement` skill drives this loop: it reviews each diff, merges a
|
|
621
|
+
passing task with `git merge --no-ff`, and asks you before it fixes a task
|
|
622
|
+
that failed every retry. `haren exec` never merges and never pushes.
|
|
623
|
+
|
|
565
624
|
Both editors also get every haren skill and agent in their native folders:
|
|
566
625
|
`.claude/skills/haren-<skill>/`, `.claude/agents/haren-<agent>.md`, and the same
|
|
567
626
|
under `.cursor/`. The `haren-` prefix keeps them apart from your own skills and
|
|
@@ -589,6 +648,8 @@ also migrates an older project:
|
|
|
589
648
|
- `progress.json` moves to version 2: `lastCommit` becomes one commit per repo.
|
|
590
649
|
- The root files (`CLAUDE.md`, `.claude/`, `.cursor/`, and so on) are
|
|
591
650
|
regenerated.
|
|
651
|
+
- From 1.8.0, `manifest.yaml` gets a `hosts:` list (the coding agents haren is
|
|
652
|
+
installed for). Experimental features stay off until you turn them on.
|
|
592
653
|
|
|
593
654
|
Run `haren upgrade --dry-run` to see every step without writing anything. The
|
|
594
655
|
upgrade needs Bun ≥ 1.2.21.
|
|
@@ -54,12 +54,13 @@ At the beginning of each session, present the pending features and ask:
|
|
|
54
54
|
5. Delegate to superpowers:subagent-driven-development for execution. Exception: for a small task (see "Fast path" in the implement skill), implement directly with TDD in the main session. If the user asks for the full path, always delegate
|
|
55
55
|
6. At the start of each session, set up the branch `feat/{module-slug}` in every repo the module touches (see skill.md "Repos and Git" and the implement skill). Ask the user first if a repo has uncommitted changes. Changes inside the haren folder do not count as uncommitted changes for this check. Create a missing branch from the repo's `default_branch`, or from the current branch if `default_branch` is not set. If the module lists no repos, follow the skill.md "Repos and Git" "No repos listed" fallback (the key `default`). If the module depends on a module that is not merged yet, follow skill.md "Dependent modules". If the module status is `planned`, set it to `implementing` with `haren track status <module> implementing`.
|
|
56
56
|
7. After each feature:
|
|
57
|
+
- Before the code commit, tick each item of the task's section in `checklist.md` (active plan path) only after you verify it in the code or a test run, not from the design. An item the code does not match stays unticked with `— changed: {what and why}`. An item that does not apply stays unticked with `— skipped: {reason}`
|
|
57
58
|
- (a) Commit the code in each repo that changed, with a descriptive message. In the monorepo layout, make one code commit for all repo keys; see skill.md "Repos and Git"
|
|
58
|
-
- (b) Record each commit SHA in `lastCommit.<repoKey>` with `haren track commit <module> <repoKey> <sha>`. Set the feature status with `haren track feature <module> <feature> evaluating`
|
|
59
|
+
- (b) Record each commit SHA in `lastCommit.<repoKey>` with `haren track commit <module> <repoKey> <sha>`. Run the collect-components skill in incremental mode on the new code commits. Set the feature status with `haren track feature <module> <feature> evaluating`
|
|
59
60
|
- Append to the task's session log (`task-{N}-{slug}.md`) with what was done, decisions made, and the commit SHA per repo. If iterations are enabled (manifest.yaml has `iterations` block), include the **Iteration:** field in the session log header; if not enabled, omit it
|
|
60
61
|
- Append the "feature-ready" event: `haren track event feature-ready --module <module> --phase implement --feature <feature>`
|
|
61
|
-
- (c) Commit the haren files (session log, `progress.json` and `events/events.jsonl`) in the haren repo, listing the code commits in the message. In the monorepo layout the haren folder is in the same repo, so (a) and (c) are two commits on the same branch: the code commit first, then the haren commit. In the workspace layout, commit the haren files on the haren repo's current branch. Do not create a module branch in the haren repo.
|
|
62
|
-
8. Never modify files in the haren folder except session logs. Change `progress.json` and `events/events.jsonl` only with `haren track`. Never edit them with sed or jq. Never push. Never create pull requests unless the user asks.
|
|
62
|
+
- (c) Commit the haren files (session log, `checklist.md`, `component-catalog.md`, `progress.json` and `events/events.jsonl`) in the haren repo, listing the code commits in the message. In the monorepo layout the haren folder is in the same repo, so (a) and (c) are two commits on the same branch: the code commit first, then the haren commit. In the workspace layout, commit the haren files on the haren repo's current branch. Do not create a module branch in the haren repo.
|
|
63
|
+
8. Never modify files in the haren folder except session logs, the ticks in `checklist.md` and `component-catalog.md` (through the collect-components skill). Change `progress.json` and `events/events.jsonl` only with `haren track`. Never edit them with sed or jq. Never push. Never create pull requests unless the user asks.
|
|
63
64
|
9. If blocked, run `haren track feature <module> <feature> blocked` and surface to user
|
|
64
65
|
10. **If you need to deviate from the plan, ask first** — "The plan says X but I think Y would be better because Z. Should I deviate?" Don't deviate silently.
|
|
65
66
|
11. At session end, ask: "Should I continue with the next feature, or pause here?"
|
|
@@ -32,10 +32,12 @@ You are a technical planner within the Haren framework. Your job is to create de
|
|
|
32
32
|
## Outputs
|
|
33
33
|
|
|
34
34
|
- `artifacts/04-plans/{module}/design.md` — master design (full module scope)
|
|
35
|
-
- When iterations disabled: `artifacts/04-plans/{module}/tasks.md` — full task breakdown
|
|
35
|
+
- When iterations disabled: `artifacts/04-plans/{module}/tasks.md` — full task breakdown, and `checklist.md` — implementation checklist per task
|
|
36
36
|
- When iterations enabled:
|
|
37
37
|
- `artifacts/04-plans/{module}/iteration-{N}/design.md` — scoped subset per iteration
|
|
38
38
|
- `artifacts/04-plans/{module}/iteration-{N}/tasks.md` — tasks for that iteration only
|
|
39
|
+
- `artifacts/04-plans/{module}/iteration-{N}/checklist.md` — implementation checklist for those tasks
|
|
40
|
+
- Read `artifacts/03-modules/component-catalog.md` before the reuse inventory (collect-components skill)
|
|
39
41
|
- `artifacts/07-iterations/iteration-{N}.md` — iteration goal, deliverables, demo script
|
|
40
42
|
|
|
41
43
|
## Decision Protocol
|
|
@@ -49,6 +49,8 @@ You are a code reviewer and evaluator within the Haren framework. Your job is to
|
|
|
49
49
|
|
|
50
50
|
- [ ] Each acceptance criterion tested
|
|
51
51
|
- [ ] All tests run and pass
|
|
52
|
+
- [ ] Each ticked item in the task's `checklist.md` section is true in the code; unticked items have a `skipped:` or `changed:` reason, and no `changed:` item breaks the spec
|
|
53
|
+
- [ ] No new code duplicates an entry in `component-catalog.md`
|
|
52
54
|
- [ ] Changed screens match the chosen mockup in the spec (screenshot evidence when the app can run)
|
|
53
55
|
- [ ] Fixtures, examples, seeds and screenshots use synthetic data, with no real third-party personal data
|
|
54
56
|
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: collect-components
|
|
3
|
+
description: Collect the common UI components, shared services and shared functions of the target repos into one component catalog
|
|
4
|
+
type: utility
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Collect Components
|
|
8
|
+
|
|
9
|
+
Keep one catalog of the common building blocks in the target repos. The plan skill reads it before it designs new code. The implement skill updates it after each task.
|
|
10
|
+
|
|
11
|
+
**Output:** `artifacts/03-modules/component-catalog.md` (template: `templates/component-catalog.md`).
|
|
12
|
+
|
|
13
|
+
## When to Use
|
|
14
|
+
|
|
15
|
+
- **Incremental:** the implement skill runs it after the code commit of each task. Scan only the files that the task commits changed.
|
|
16
|
+
- **Full scan:** the catalog does not exist yet, the user asks for it, or the plan skill starts the reuse inventory (Step 4) on a repo that has code but no catalog. Scan all target repos in manifest.yaml `repos`.
|
|
17
|
+
|
|
18
|
+
## What Is Common
|
|
19
|
+
|
|
20
|
+
Add an item when one of these is true:
|
|
21
|
+
|
|
22
|
+
1. It is in a shared location: a `shared/`, `common/`, `components/ui/`, `lib/`, `utils/`, `core/` folder, or a shared package of the monorepo.
|
|
23
|
+
2. Two or more modules or features import it.
|
|
24
|
+
3. The design marks it as a reuse target ("reuse" or "extend" verdict in `## Existing Code`).
|
|
25
|
+
|
|
26
|
+
Do not add page-level screens, one-off helpers that one file uses, tests, generated code, or vendored code.
|
|
27
|
+
|
|
28
|
+
## Kinds
|
|
29
|
+
|
|
30
|
+
| Kind | Examples | API to record |
|
|
31
|
+
|------|----------|---------------|
|
|
32
|
+
| UI component | Button, DataTable, FormField, Modal, layout shell | Props (name, type, required, default), slots/children, variants, states |
|
|
33
|
+
| Shared service | API client, auth, notification, mail, file storage, audit log, numbering | Public methods with signature, side effects, tables it writes |
|
|
34
|
+
| Shared function | date/number/currency format, validation, mapping, hooks | Signature, return value, one-line purpose |
|
|
35
|
+
|
|
36
|
+
A route guard or a wrapper that renders JSX (for example `RoleGuard`) is a UI component. A client state store (Zustand, Redux slice, Pinia) is a shared service. A hook that only computes values is a shared function.
|
|
37
|
+
|
|
38
|
+
## Process
|
|
39
|
+
|
|
40
|
+
1. Read `artifacts/03-modules/component-catalog.md`. If it does not exist, create it from `templates/component-catalog.md` and do a full scan.
|
|
41
|
+
2. Get the repo keys from manifest.yaml `repos`. If `repos` is empty (common in the monorepo layout), use the key `default` for the repo that holds the haren folder (see skill.md "No repos listed"). Do not make up keys. If an existing entry uses a key that breaks this rule (for example `backend` when `repos` is empty), re-key every entry in one pass, then continue
|
|
42
|
+
3. Get the files to scan:
|
|
43
|
+
- Incremental: `git -C <repo> show --name-only --format= <sha>` for each code commit SHA of the task
|
|
44
|
+
- Full scan: list the source files of each repo. Skip `node_modules`, build output, tests and generated folders
|
|
45
|
+
4. For each candidate, apply "What Is Common". To count importers, search all target repos for the import path or the symbol name
|
|
46
|
+
5. For each common item, write or update its entry (see "Entry format")
|
|
47
|
+
6. Remove an entry when its file or symbol no longer exists. If it moved, update the path. Search for the symbol name before you remove it
|
|
48
|
+
7. Update `Used by` from the import search, not from memory
|
|
49
|
+
8. On every run, re-sort each whole kind section A-Z, not only the new entries. Sort by the `### ` heading name, case-insensitive (Combobox before ConfirmationDialog, ResizableTable before RichTextEditor). Check the order of every section before you save
|
|
50
|
+
9. Update the front matter `updated:` date and the `last_scan:` line: `full`, or `incremental <repoKey>@<sha>, ...`
|
|
51
|
+
10. Register the catalog once: `haren track artifact component-catalog --type component-catalog --path artifacts/03-modules/component-catalog.md --status approved`. Run it again only if the row is missing
|
|
52
|
+
|
|
53
|
+
## Entry Format
|
|
54
|
+
|
|
55
|
+
Each entry is one self-contained block. Keep entries sorted by kind, then by name (A-Z). Then two developers who add different entries do not touch the same lines.
|
|
56
|
+
|
|
57
|
+
````markdown
|
|
58
|
+
### Button
|
|
59
|
+
- **Kind:** UI component
|
|
60
|
+
- **Path:** `frontend:src/components/ui/Button.tsx:12`
|
|
61
|
+
- **API:** `variant: "primary" | "secondary" | "danger" = "primary"`, `size: "sm" | "md"`, `loading?: boolean`, `onClick`
|
|
62
|
+
- **Use for:** every action button. Do not style a raw `<button>`
|
|
63
|
+
- **Used by:** checkout, profile
|
|
64
|
+
- **Sketch:**
|
|
65
|
+
```
|
|
66
|
+
[ Save ] [ Cancel ] [ ⟳ Saving… ]
|
|
67
|
+
primary secondary loading
|
|
68
|
+
```
|
|
69
|
+
````
|
|
70
|
+
|
|
71
|
+
- **Path** uses the repo key from manifest.yaml (`default` when `repos` is empty), then the file and the line of the declaration
|
|
72
|
+
- **Use for** is one rule that tells a developer when to pick this item over writing new code
|
|
73
|
+
- **Sketch** is for UI components only. Draw a small ASCII sketch of the variants and states, 8 lines or fewer. Follow the alignment rule of the generate-mockup skill. Omit it for a component with no visual part (a provider, a context)
|
|
74
|
+
- **Screenshot** (optional): only when the user asks and the app can run. Save it under `artifacts/03-modules/components/<name>.png` and link it from the entry. Never take screenshots in the incremental run
|
|
75
|
+
|
|
76
|
+
## Rules
|
|
77
|
+
|
|
78
|
+
- Do not change code in the target repos. This skill reads code and writes only the catalog
|
|
79
|
+
- One entry per item. If two items do the same job, keep both entries and add `**Duplicate of:** <name>` to the newer one, so the plan can merge them
|
|
80
|
+
- Record what the code does now, not what the plan intends
|
|
81
|
+
- Keep each entry short. The catalog is an index, not documentation
|
|
@@ -28,6 +28,8 @@ Run through each criterion:
|
|
|
28
28
|
- Check edge cases mentioned in the spec
|
|
29
29
|
2. **Completeness**: Are all spec requirements addressed?
|
|
30
30
|
- Cross-reference spec checklist against implementation
|
|
31
|
+
- Read the task's section in `checklist.md` (active plan path). Treat each tick as a claim, not as evidence. Check it in the code. A false tick, or an unticked item without a `skipped:` or `changed:` reason, is a finding. Check each `changed:` item against the spec: a change that breaks the spec is a finding
|
|
32
|
+
- Reuse: if the code adds a UI component, service or function that duplicates an entry in `artifacts/03-modules/component-catalog.md`, that is a finding
|
|
31
33
|
3. **Correctness**: Do tests pass?
|
|
32
34
|
- Run the test suite
|
|
33
35
|
- Check test coverage for the feature
|
|
@@ -38,7 +40,8 @@ Run through each criterion:
|
|
|
38
40
|
- If the app can run, start it and take a screenshot of each changed screen. Save it under `artifacts/06-evaluation/{module}/screens/` and link it in the review
|
|
39
41
|
- If the app cannot run, say so in the review and compare the code with the mockup
|
|
40
42
|
- A difference from the chosen mockup is a fail unless the session log records a reason the user approved
|
|
41
|
-
- Read `ui.mockups` in `manifest.yaml`. On `ask`, follow the offer in the
|
|
43
|
+
- Read `ui.mockups` in `manifest.yaml`. On `ask`, follow the offer in the generate-mockup skill
|
|
44
|
+
- Artifact mode (`ui.mockups` is `artifact`, or the user chose a Claude Artifact): publish one private Artifact page per changed screen with the chosen mockup and the screenshot side by side (see "Artifact mode" in the generate-mockup skill). Ask the user for the pass or fail verdict in the terminal
|
|
42
45
|
- Browser mode (`ui.mockups` is `browser`, or the user chose the browser): push one `.compare` screen per changed screen with the visual-companion skill (chosen mockup | screenshot). Rebuild the chosen option from the ASCII wireframe in design.md with the HTML mock elements. Read the `pass` or `fail` click from `state_dir/events`. Confirm the verdict with the user in the terminal
|
|
43
46
|
- ASCII mode: compare as above in the terminal
|
|
44
47
|
- No screenshot (the app cannot run): use the ASCII path. Run the `ui-review` skill on the screen derived from the code, or record in the review that the screen check was skipped and why. Do not push `.compare`.
|
|
@@ -31,7 +31,35 @@ Read `ui.mockups` in `manifest.yaml`. If the key is missing, use `ask`.
|
|
|
31
31
|
|
|
32
32
|
- `ascii`: use the ASCII steps in this skill only.
|
|
33
33
|
- `browser`: write the ASCII wireframes into design.md as before. Also push one options screen with the visual-companion skill. Use `.options` or `.cards`, with one `.mockup` per option. Build each mockup from the HTML mock elements of the visual-companion skill. Read the click from `state_dir/events`. After the pick, write the chosen option as ASCII into design.md.
|
|
34
|
-
- `
|
|
34
|
+
- `artifact`: write the ASCII wireframes into design.md as before. Also publish the options as a Claude Artifact page. See "Artifact mode".
|
|
35
|
+
- `ask`: ask the user before the first mockup of the session. See "Ask the user".
|
|
36
|
+
|
|
37
|
+
### Ask the user
|
|
38
|
+
|
|
39
|
+
<HARD-GATE>
|
|
40
|
+
On `ask`, do not draw the first mockup of the session before the user picks a format. Never fall back to ASCII without asking.
|
|
41
|
+
</HARD-GATE>
|
|
42
|
+
|
|
43
|
+
Send the offer as its own message, with nothing else. List only the formats that work here: list Claude Artifact only if you have the `Artifact` tool, and the browser tab only if `haren companion` can run.
|
|
44
|
+
|
|
45
|
+
> How do you want to see the mockups? (1) ASCII in the terminal and in design.md, (2) Claude Artifact: a private web page on claude.ai, (3) local browser tab with clickable options. Add "always" to save the choice.
|
|
46
|
+
|
|
47
|
+
- With "always": run `haren track ui-mode <ascii|artifact|browser>`. Without it: use the choice for this session only.
|
|
48
|
+
- If only ASCII works here, say so in one line and use ASCII. Do not ask.
|
|
49
|
+
|
|
50
|
+
### Artifact mode
|
|
51
|
+
|
|
52
|
+
Needs the `Artifact` tool (Claude Code with claude.ai). If the tool is missing, tell the user and use ASCII.
|
|
53
|
+
|
|
54
|
+
Use a plain HTML page, not an Artifact type such as Design or Slides, and skip the quickstart for a type. The page file must stay in `artifacts/04-plans/{module}/mockups/`. Give the page a `<title>` of 2-4 words (for example `Checkout Layout Options`) and the icon `layout`.
|
|
55
|
+
|
|
56
|
+
1. Draw the ASCII options first (Options mode below). They stay the source of truth in design.md.
|
|
57
|
+
2. Build one HTML page: one card per option, side by side on wide screens and stacked on phones. Label each card `Option A`/`B`/`C` and show its trade-off line. Mark the recommended option. Use synthetic data only.
|
|
58
|
+
3. Render each option as a real UI mock (HTML/CSS), not as ASCII in a `<pre>`. Follow the artifact-design skill for the page rules.
|
|
59
|
+
4. Write the page to `artifacts/04-plans/{module}/mockups/{screen}.html` and publish it with the `Artifact` tool. Publish again from the same path for a new round, so the URL stays the same. Do not register the page with `haren track artifact`: the `.html` files in `mockups/` are working files, and `haren track check` only checks `.md` files. design.md is the registered record
|
|
60
|
+
5. Give the user the link. Tell the user that the page is private until they share it. Ask for the pick in the terminal.
|
|
61
|
+
6. After the pick, write the chosen option as ASCII into design.md `## Screens`. Put the link under `**Chosen:**` in this format: `**Mockup page:** <url> (Claude Artifact, private)`.
|
|
62
|
+
7. If the pick is not the recommended option, check that it does not change a reuse verdict or a task. If it does, update `## Existing Code`, tasks.md and checklist.md, and tell the user what changed.
|
|
35
63
|
|
|
36
64
|
### Options mode
|
|
37
65
|
|
|
@@ -15,12 +15,13 @@ Execute the implementation plan for a module, one feature at a time.
|
|
|
15
15
|
## Pre-Implementation (every session)
|
|
16
16
|
|
|
17
17
|
1. Run read-context skill to orient
|
|
18
|
-
2. Read tasks from the **active plan path** (see skill.md Plan Paths convention)
|
|
19
|
-
3. Read `
|
|
20
|
-
4. Read `
|
|
21
|
-
5.
|
|
22
|
-
6.
|
|
23
|
-
7.
|
|
18
|
+
2. Read tasks and `checklist.md` from the **active plan path** (see skill.md Plan Paths convention). If checklist.md is missing, tell the user and ask to run the plan skill or continue without it
|
|
19
|
+
3. Read `artifacts/03-modules/component-catalog.md` if it exists. Use its entries before you write new UI components, services or functions
|
|
20
|
+
4. Read `progress.json` to find current feature status
|
|
21
|
+
5. Read `artifacts/05-implementation/{module}/task-{N}-{slug}.md` if it exists for the target feature (previous session context)
|
|
22
|
+
6. If iterations enabled, also read the **master plan path** for broader module context if needed
|
|
23
|
+
7. Pick the highest-priority feature in "pending" status
|
|
24
|
+
8. Set up the module branch. Follow skill.md "Repos and Git":
|
|
24
25
|
- Read the module's repos from the `repos:` front matter of `artifacts/03-modules/{module}/module.md`. If it lists no repos, follow "No repos listed" in skill.md "Repos and Git"
|
|
25
26
|
- For each repo: if it has uncommitted changes, stop and ask the user what to do. Changes inside the haren folder do not count as uncommitted changes for this check
|
|
26
27
|
- For each repo: if the branch `feat/{module-slug}` does not exist, create it from the repo's `default_branch`, or from the current branch if `default_branch` is not set. Then switch to it
|
|
@@ -40,16 +41,42 @@ For each feature:
|
|
|
40
41
|
1. Update feature status: `haren track feature <module> <feature> in-progress`
|
|
41
42
|
2. Choose the path by task size (see "Fast path" below):
|
|
42
43
|
- **Small task:** implement it directly in the main session with superpowers:test-driven-development
|
|
43
|
-
- **Other tasks:** delegate to superpowers:subagent-driven-development. Pass the full task description from tasks.md and the design context from design.md. Ensure TDD discipline via superpowers:test-driven-development
|
|
44
|
-
3.
|
|
44
|
+
- **Other tasks:** delegate to superpowers:subagent-driven-development. Pass the full task description from tasks.md, the checklist section of the task and the design context from design.md. Ensure TDD discipline via superpowers:test-driven-development
|
|
45
|
+
3. Before the code commit, go through the task's section in `checklist.md`. Tick an item (`- [x]`) only when you verified it in the code or in a test run. Do not tick from the design alone. If the code differs from the item, keep it unticked and add `— changed: {what and why}`. If an item does not apply or you cannot do it, keep it unticked and add `— skipped: {reason}`. Do not commit while an item is unticked without a reason. The main session ticks the items, also when a subagent wrote the code
|
|
46
|
+
4. After implementation:
|
|
45
47
|
- (a) Commit the code in each repo that the feature changed: `git -C <repo> commit` with a descriptive message. In the monorepo layout, make one code commit for all repo keys; see skill.md "Repos and Git"
|
|
46
|
-
- (b) Record each new commit SHA in `lastCommit.<repoKey
|
|
48
|
+
- (b) Record each new commit SHA in `lastCommit.<repoKey>`. The repo key is a key of manifest.yaml `repos`, or `default` when `repos` is empty. Never guess a key such as `backend`: `haren track commit <module> <repoKey> <sha>`
|
|
49
|
+
- Run the collect-components skill in incremental mode on the new code commits. It updates `artifacts/03-modules/component-catalog.md`
|
|
47
50
|
- Update feature status: `haren track feature <module> <feature> evaluating`
|
|
48
51
|
- Append to task session log (`task-{N}-{slug}.md`): what was done, decisions made, any deviations from plan, and the commit SHA for each repo
|
|
49
52
|
- Append the "feature-ready" event: `haren track event feature-ready --module <module> --phase implement --feature <feature>`
|
|
50
|
-
- (c) Commit the haren files (session log, `progress.json` and `events/events.jsonl`) in the haren repo. List the code commits in the message, for example `docs(checkout): task 2 session log — backend@abc1234, frontend@def5678`. In the monorepo layout the haren folder is in the same repo, so (a) and (c) are two commits on the same branch: the code commit first, then the haren commit. In the workspace layout, commit the haren files on the haren repo's current branch. Do not create a module branch in the haren repo.
|
|
53
|
+
- (c) Commit the haren files (session log, `checklist.md`, `component-catalog.md`, `progress.json` and `events/events.jsonl`) in the haren repo. List the code commits in the message, for example `docs(checkout): task 2 session log — backend@abc1234, frontend@def5678`. In the monorepo layout the haren folder is in the same repo, so (a) and (c) are two commits on the same branch: the code commit first, then the haren commit. In the workspace layout, commit the haren files on the haren repo's current branch. Do not create a module branch in the haren repo.
|
|
51
54
|
- Never push
|
|
52
55
|
|
|
56
|
+
## Multi-model executor (experimental)
|
|
57
|
+
|
|
58
|
+
Use this section only when `manifest.yaml` has `multi-model` in `experimental` and a `models.executor` block, and the runner is not `claude-code` with no `env`. In all other cases, skip this section.
|
|
59
|
+
|
|
60
|
+
In this mode another model writes the code. You review it. Replace step 2 of the Implementation Loop with these steps for each task:
|
|
61
|
+
|
|
62
|
+
1. Run `haren exec --module <module> --task <n>`. Do not write the code yourself. Do not write to the haren folder while it runs (no session log, no `haren track`): the CLI reports any change there as a violation.
|
|
63
|
+
2. Read the result file that the command prints (`artifacts/05-exec/<module>/<n>/result-<k>.json`). Read the diff: `git -C <repo> diff <baseBranch>...<branch>`, with `baseBranch` and `branch` from the result.
|
|
64
|
+
3. Review the diff against the spec stories and the task. A result with `pass: false` is a FAIL. A result with `pass: true` can still FAIL your review.
|
|
65
|
+
4. PASS:
|
|
66
|
+
- Run `git -C <repo> merge --no-ff <branch>` on `baseBranch`.
|
|
67
|
+
- Run `haren exec --clean --module <module> --task <n>`. It removes the worktree and the branch, and moves the run files to `cleaned-<time>/`.
|
|
68
|
+
- Go on with step 3 of the Implementation Loop (checklist, tracking, session log). The merge commit is the code commit of the task.
|
|
69
|
+
5. FAIL and `retriesLeft` > 0:
|
|
70
|
+
- Write the review points to `artifacts/05-exec/<module>/<n>/feedback-<k>.md`. Each point names the file, the problem and the expected behavior.
|
|
71
|
+
- Run `haren exec --module <module> --task <n> --retry --feedback <that file>`. Then go back to step 2.
|
|
72
|
+
6. FAIL and `retriesLeft` = 0: stop. Ask the user to choose one option, and wait for the answer:
|
|
73
|
+
- A) Claude fixes the task in the worktree. Commit the fix on `<branch>` in the worktree (`git -C <worktree> commit`), then merge as in step 4.
|
|
74
|
+
- B) Skip the task: `haren track feature <module> <feature> blocked`.
|
|
75
|
+
- C) The user handles the task.
|
|
76
|
+
Never fix the task yourself without this answer.
|
|
77
|
+
|
|
78
|
+
The CLI counts the retries. Do not count them yourself. `haren exec` never merges and never pushes. A failed run keeps its worktree, so you and the user can read it.
|
|
79
|
+
|
|
53
80
|
## Fast path
|
|
54
81
|
|
|
55
82
|
A task is **small** when it changes about 30 lines or fewer, adds no new external dependency and has no schema migration. The plan marks a small module (see the plan skill). For a small task, skip superpowers:subagent-driven-development. Write the failing test, implement, verify and commit in the main session. TDD and the commit steps stay the same. If the user asks for the full path, use superpowers:subagent-driven-development for every task.
|
|
@@ -83,5 +110,5 @@ If iterations are enabled (check manifest.yaml for `iterations` block), include
|
|
|
83
110
|
- Always write tests before implementation (TDD)
|
|
84
111
|
- If blocked, run `haren track feature <module> <feature> blocked` and surface to user — don't guess
|
|
85
112
|
- If you need to deviate from the plan, document why in the session log
|
|
86
|
-
- Never modify files in the haren folder except session logs. Change `progress.json` and `events/events.jsonl` only with `haren track` (see update-tracking skill). Never edit them with sed or jq
|
|
113
|
+
- Never modify files in the haren folder except session logs, the ticks in `checklist.md` and `component-catalog.md` (through the collect-components skill). Change `progress.json` and `events/events.jsonl` only with `haren track` (see update-tracking skill). Never edit them with sed or jq
|
|
87
114
|
- Never push. Never create pull requests unless the user asks
|
|
@@ -30,11 +30,12 @@ Do not write design.md or tasks.md before the reuse inventory is done.
|
|
|
30
30
|
A plan that builds behavior which already exists in a target repo is a defect.
|
|
31
31
|
</HARD-GATE>
|
|
32
32
|
|
|
33
|
+
0. Read `artifacts/03-modules/component-catalog.md`. If it does not exist and a target repo has code, run the collect-components skill (full scan) first. Use the catalog entries as the first candidates for reuse
|
|
33
34
|
1. List every table the module writes and every side effect it triggers (notification, SMS, mail, file, external API, audit log, numbering)
|
|
34
35
|
2. For each item, search ALL target repos in manifest.yaml `repos`. Do not stop at the module's own package or at class names that match the screen name. Search by table name, by side effect (for example `send`, `notify`, `mail`), and by the shared service folders
|
|
35
36
|
3. Record each hit with `file:line` and one verdict: reuse, extend, supersede or duplicate. Record "none found" with the search command that you ran
|
|
36
37
|
4. Read the hits that are a shared service. Check its doc comment for a caller/shared split
|
|
37
|
-
5. Put the result in the `## Existing Code` section of design.md. Tasks must use the verdicts: no task builds a "reuse" item again
|
|
38
|
+
5. List the UI components, shared services and shared functions from the catalog that the module will use. Put the result in the `## Existing Code` section of design.md. Tasks must use the verdicts: no task builds a "reuse" item again
|
|
38
39
|
6. If the inventory is large, also write it as a research artifact `artifacts/01-research/{module}-reuse-audit.md` and link it from the design
|
|
39
40
|
|
|
40
41
|
### Step 5: Gather decisions BEFORE writing artifacts
|
|
@@ -65,7 +66,7 @@ mockup option per changed screen before you write the spec or the design.
|
|
|
65
66
|
5. Document each decision in the design artifact with rationale
|
|
66
67
|
|
|
67
68
|
**UI decisions (only if the module adds or changes screens):**
|
|
68
|
-
1. Read `ui.mockups` in `manifest.yaml` (`ask` | `ascii` | `browser`, default `ask`). On `ask`, follow the offer in the
|
|
69
|
+
1. Read `ui.mockups` in `manifest.yaml` (`ask` | `ascii` | `browser` | `artifact`, default `ask`). On `ask`, follow the offer in the generate-mockup skill
|
|
69
70
|
2. List the changed screens from the spec, the module definition and the stories
|
|
70
71
|
3. For each screen, use the `generate-mockup` skill in options mode. Make 2-3 labeled options (A, B, C). Give each option a one-line trade-off and mark your recommendation
|
|
71
72
|
4. Show the options:
|
|
@@ -132,6 +133,20 @@ Using `templates/tasks.md`:
|
|
|
132
133
|
- Every task MUST reference at least one STORY-ID from the spec
|
|
133
134
|
- Tasks should be small enough for one implementation session
|
|
134
135
|
- Include test tasks alongside implementation tasks
|
|
136
|
+
- **Multi-model (experimental):** when `manifest.yaml` has `multi-model` in `experimental`, another model builds each task from its brief alone. Then each task also has:
|
|
137
|
+
- `**Test:**` with the command that runs the tests of this task only
|
|
138
|
+
- `**Interfaces:**` with the functions, types or endpoints the task must expose or use
|
|
139
|
+
- `**Files:**` with every file to create, modify or test
|
|
140
|
+
- `**Repo:**` with the repo key, when the module has more than one repo
|
|
141
|
+
|
|
142
|
+
#### Checklist (implementation checklist)
|
|
143
|
+
Write to: the active plan path, next to tasks.md, as `checklist.md`. When iterations are enabled, write it in Step 9 for each iteration, not at the root level.
|
|
144
|
+
|
|
145
|
+
Using `templates/checklist.md`:
|
|
146
|
+
- One `## Task N` section per task in tasks.md, with the same number and title
|
|
147
|
+
- Each item is a concrete check, not a generic one. Name the test file and cases, the catalog entries to reuse, the files, the contract and the edge cases of that task
|
|
148
|
+
- The Reuse item takes its entries from `## Existing Code` and the component catalog
|
|
149
|
+
- Add project-specific items from the design (for example i18n, audit log, migration rollback)
|
|
135
150
|
|
|
136
151
|
#### Register the drafts
|
|
137
152
|
|
|
@@ -139,11 +154,12 @@ Register each artifact right after you write it, before the user approves it. Th
|
|
|
139
154
|
|
|
140
155
|
- `haren track artifact <id> --type design --path artifacts/04-plans/{module}/design.md --module <module> --status draft`
|
|
141
156
|
- `haren track artifact <id> --type tasks --path <path of tasks.md> --module <module> --status draft`
|
|
157
|
+
- `haren track artifact <id> --type checklist --path <path of checklist.md> --module <module> --status draft`
|
|
142
158
|
- If you wrote spec.md: `haren track artifact <id> --type spec --path artifacts/03-modules/{module}/spec.md --module <module> --status draft`
|
|
143
159
|
|
|
144
160
|
### Step 7: Review with user
|
|
145
161
|
|
|
146
|
-
**Small module:** the module has 3 tasks or fewer, each task changes about 30 lines or fewer, it adds no new external dependency and it has no schema migration. For a small module, show the design and the
|
|
162
|
+
**Small module:** the module has 3 tasks or fewer, each task changes about 30 lines or fewer, it adds no new external dependency and it has no schema migration. For a small module, show the design, the tasks and the checklist in one message and ask for one approval. Write "Size: small" in the design. The implement skill then uses its fast path.
|
|
147
163
|
|
|
148
164
|
**Other modules:** present each artifact section by section. Ask "does this look right?" after each.
|
|
149
165
|
Only proceed to the next artifact after the current one is approved.
|
|
@@ -152,7 +168,7 @@ The user can always ask for the full path. Then review section by section.
|
|
|
152
168
|
|
|
153
169
|
### Step 8: Finalize
|
|
154
170
|
|
|
155
|
-
1. Validate all
|
|
171
|
+
1. Validate all plan artifacts (spec, design, tasks, checklist) with validate-artifact skill. This runs `haren track check`
|
|
156
172
|
2. After the user approves an artifact, run the same `haren track artifact <id> ...` command with `--status approved`. Register an artifact that has no row yet in the same way
|
|
157
173
|
3. Set the module status: `haren track status <module> planned`. Never edit progress.json by hand
|
|
158
174
|
4. If `plugins.json` exists in the haren folder, run `haren plugin run after-plan --payload '{"module":"<module>","tasksFile":"<path of tasks.md relative to the haren folder>"}'` and show its output lines. A warning does not block the plan. The CLI adds the missing features to progress.json, so do not add them yourself
|
|
@@ -177,6 +193,7 @@ After creating the master spec and design, and after all tasks are defined:
|
|
|
177
193
|
- Create `artifacts/04-plans/{module}/iteration-{N}/design.md` — filtered subset of master design containing only decisions relevant to this iteration's tasks
|
|
178
194
|
- Create `artifacts/04-plans/{module}/iteration-{N}/tasks.md` — only the tasks assigned to this iteration, each referencing STORY-IDs
|
|
179
195
|
- Each scoped design must include: `Master: artifacts/04-plans/{module}/design.md` as a cross-reference
|
|
196
|
+
- Create `artifacts/04-plans/{module}/iteration-{N}/checklist.md` — the checklist sections of the tasks in this iteration
|
|
180
197
|
- Each scoped tasks file must include: `Spec: artifacts/03-modules/{module}/spec.md` as a cross-reference
|
|
181
198
|
- Note: iteration-scoped specs are NOT created — the spec in `03-modules/` is the single source of truth (BA-owned)
|
|
182
199
|
|
|
@@ -12,7 +12,7 @@ Orient yourself at the start of every session or before taking any action.
|
|
|
12
12
|
|
|
13
13
|
1. **Read manifest.yaml**
|
|
14
14
|
- Project name, mode, repos, sources
|
|
15
|
-
- The ui mode: `ui.mockups` (`ask` | `ascii` | `browser`). If the key is missing, report `ask`
|
|
15
|
+
- The ui mode: `ui.mockups` (`ask` | `ascii` | `browser` | `artifact`). If the key is missing, report `ask`
|
|
16
16
|
- Resolve each repo folder as in skill.md "Repos and Git". Warn if a folder is missing, and suggest `haren init` (it clones missing repos)
|
|
17
17
|
|
|
18
18
|
2. **Read progress.json**
|
|
@@ -22,6 +22,7 @@ Run every command from the haren folder.
|
|
|
22
22
|
| Add a feature (status `pending`) | `haren track feature <module> <feature>` |
|
|
23
23
|
| Set feature status | `haren track feature <module> <feature> <status>` |
|
|
24
24
|
| Record a commit | `haren track commit <module> <repoKey> <sha>` |
|
|
25
|
+
| Remove a stale repo key | `haren track commit <module> <repoKey> --remove` |
|
|
25
26
|
| Register an artifact | `haren track artifact <id> --type <type> --path <path> [--module <m>] [--status <s>]` |
|
|
26
27
|
| Append another event | `haren track event <type> [--module m] [--phase p] [--feature f] [--data '<json>']` |
|
|
27
28
|
| Open the code gate for a user request | `haren track override on --reason "<text>" [--hours <n>]` |
|
|
@@ -53,6 +53,19 @@ Required:
|
|
|
53
53
|
- [ ] Each task has: title, description, files
|
|
54
54
|
- [ ] Tasks are ordered
|
|
55
55
|
|
|
56
|
+
### Checklist (04-plans)
|
|
57
|
+
Required:
|
|
58
|
+
- [ ] One `## Task N` section for each task in tasks.md of the same plan path, with the same number
|
|
59
|
+
- [ ] Each section has a Tests item and a Reuse item. Generic items only ("write tests") → FAIL
|
|
60
|
+
- [ ] After implement: each unticked item has `— skipped: {reason}` or `— changed: {what and why}`
|
|
61
|
+
- [ ] The Reuse items name entries that exist in `## Existing Code` or in `artifacts/03-modules/component-catalog.md`, or say "none"
|
|
62
|
+
|
|
63
|
+
### Component Catalog (03-modules)
|
|
64
|
+
Required:
|
|
65
|
+
- [ ] Front matter `updated:` and `last_scan:`
|
|
66
|
+
- [ ] Each entry has Kind, Path (`repoKey:file:line`), API, Use for, Used by
|
|
67
|
+
- [ ] Each Path exists in the repo
|
|
68
|
+
|
|
56
69
|
### Iteration-Scoped Design (04-plans, iterations only)
|
|
57
70
|
Iteration-scoped designs are filtered subsets of the master design. Relaxed checks:
|
|
58
71
|
- [ ] Architecture overview (can reference master for full detail)
|
|
@@ -35,14 +35,11 @@ A question about a UI topic is not automatically a visual question. "What kind o
|
|
|
35
35
|
Read `ui.mockups` in `manifest.yaml`.
|
|
36
36
|
|
|
37
37
|
- `ascii`: never use the browser. Use ASCII wireframes (see generate-mockup/).
|
|
38
|
+
- `artifact`: do not start the companion. Use a Claude Artifact page (see "Artifact mode" in generate-mockup/).
|
|
38
39
|
- `browser`: use the browser for visual questions. Do not ask first.
|
|
39
40
|
- `ask`: at the first visual question in a session, send the offer as its own message, with nothing else:
|
|
40
41
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
- On (1): use the browser for this session.
|
|
44
|
-
- On (2): run `haren track ui-mode browser`, then use the browser.
|
|
45
|
-
- On (3): ask "Always use ASCII?". If yes, run `haren track ui-mode ascii`. Use ASCII.
|
|
42
|
+
use the offer in the generate-mockup skill ("Ask the user"). It lists ASCII, Claude Artifact and the browser tab.
|
|
46
43
|
|
|
47
44
|
## How It Works
|
|
48
45
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
module: {module name}
|
|
3
|
+
date: {date}
|
|
4
|
+
tasks: {path of tasks.md}
|
|
5
|
+
owner: Dev
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Implementation Checklist: {module name}
|
|
9
|
+
|
|
10
|
+
The developer ticks each item before the code commit of the task. The reviewer checks each ticked item against the code. An item that is not ticked and has no reason is a finding.
|
|
11
|
+
|
|
12
|
+
Tick an item only after you verify it in the code or a test run. If the code differs from the item, keep it unticked and add `— changed: {what and why}`. To skip an item, keep it unticked and add `— skipped: {reason}`.
|
|
13
|
+
|
|
14
|
+
## Task 1: {title}
|
|
15
|
+
|
|
16
|
+
- [ ] Tests: {test file and the cases to cover, from the acceptance criteria of STORY-NNN}
|
|
17
|
+
- [ ] Reuse: {catalog entries or `## Existing Code` items to use, for example `Button`, `NotificationService.send`}. No new copy of them
|
|
18
|
+
- [ ] Files: {files to create or modify, from tasks.md}
|
|
19
|
+
- [ ] Contract: {interface, API shape or schema that must match the spec}
|
|
20
|
+
- [ ] Edge cases: {error, empty and permission cases from the spec}
|
|
21
|
+
- [ ] UI states (screens only): {loading, empty, error, matches the chosen mockup}
|
|
22
|
+
- [ ] Quality: lint, type check and the full test suite pass
|
|
23
|
+
- [ ] {project-specific item, for example i18n keys, audit log, migration rollback}
|
|
24
|
+
|
|
25
|
+
## Task 2: {title}
|
|
26
|
+
...
|