hool-cli 0.3.1 → 0.3.2
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/package.json +1 -1
- package/prompts/orchestrator.md +43 -6
package/package.json
CHANGED
package/prompts/orchestrator.md
CHANGED
|
@@ -209,6 +209,23 @@ Rules:
|
|
|
209
209
|
- Preserve existing memory entries — append, don't overwrite
|
|
210
210
|
- Use the standard tags: `[PATTERN]`, `[GOTCHA]`, `[ARCH-*]` for best-practices; plain text for issues
|
|
211
211
|
|
|
212
|
+
### Content Migration Rule (Onboarding Only)
|
|
213
|
+
|
|
214
|
+
When onboarding a project that already has structured documentation (e.g., `docs/design-cards/`, `docs/api/`, `docs/flows/`, OpenAPI specs, ADRs), you MUST migrate that content into the corresponding phase structure — do NOT ignore it or flatten it into a single summary file.
|
|
215
|
+
|
|
216
|
+
Migration mapping:
|
|
217
|
+
- `docs/design-cards/` or similar → `phases/03-design/cards/`
|
|
218
|
+
- `docs/api/`, OpenAPI/Swagger specs → `phases/04-architecture/contracts/`
|
|
219
|
+
- `docs/flows/`, sequence diagrams → `phases/04-architecture/flows/` or `phases/03-design/flows/`
|
|
220
|
+
- `docs/architecture/`, ADRs → `phases/04-architecture/`
|
|
221
|
+
- Existing test plans, QA docs → `phases/07-test-plan/cases/`
|
|
222
|
+
|
|
223
|
+
Rules:
|
|
224
|
+
- Preserve the source structure — one source file maps to one phase file (don't merge multiple sources into one)
|
|
225
|
+
- Adapt format to HOOL conventions (markdown, standard headings) but preserve content
|
|
226
|
+
- If source content is richer than what HOOL phases specify, keep the extra detail — don't strip it
|
|
227
|
+
- Reference the original source path in the migrated file for traceability
|
|
228
|
+
|
|
212
229
|
### Onboarding Gate
|
|
213
230
|
|
|
214
231
|
After all tasks complete:
|
|
@@ -301,7 +318,7 @@ After all tasks complete:
|
|
|
301
318
|
|
|
302
319
|
### Writes
|
|
303
320
|
- `phases/02-spec/spec.md` — index: overview, data model, NFRs
|
|
304
|
-
- `phases/02-spec/features/` — per-feature user stories (for
|
|
321
|
+
- `phases/02-spec/features/` — per-feature user stories (REQUIRED for projects with >5 stories)
|
|
305
322
|
|
|
306
323
|
### Process (interactive mode)
|
|
307
324
|
1. Read all prior phase docs
|
|
@@ -322,6 +339,11 @@ After all tasks complete:
|
|
|
322
339
|
7. Log to cold log, rebuild hot log
|
|
323
340
|
8. Advance to Phase 3 immediately — no sign-off
|
|
324
341
|
|
|
342
|
+
### Gate
|
|
343
|
+
- `spec.md` exists with user stories and acceptance criteria
|
|
344
|
+
- **IF >5 user stories:** `features/` MUST contain ≥1 file per feature group. A single `spec.md` is NOT sufficient — split by feature domain.
|
|
345
|
+
- All stories have acceptance criteria
|
|
346
|
+
|
|
325
347
|
---
|
|
326
348
|
|
|
327
349
|
## Phase 3: Design
|
|
@@ -333,8 +355,8 @@ After all tasks complete:
|
|
|
333
355
|
|
|
334
356
|
### Writes
|
|
335
357
|
- `phases/03-design/design.md` — index: design system, screen inventory, components
|
|
336
|
-
- `phases/03-design/cards/*.html` — design cards (one per screen/component)
|
|
337
|
-
- `phases/03-design/flows/` — per-feature user flow diagrams (for
|
|
358
|
+
- `phases/03-design/cards/*.html` — design cards (REQUIRED: one per screen/component)
|
|
359
|
+
- `phases/03-design/flows/` — per-feature user flow diagrams (REQUIRED for projects with >3 user journeys)
|
|
338
360
|
|
|
339
361
|
### Process (interactive mode)
|
|
340
362
|
1. Read all prior phase docs
|
|
@@ -355,6 +377,11 @@ After all tasks complete:
|
|
|
355
377
|
7. Log to cold log, rebuild hot log
|
|
356
378
|
8. Advance to Phase 4 immediately — no sign-off
|
|
357
379
|
|
|
380
|
+
### Gate
|
|
381
|
+
- `design.md` exists with screen inventory and design system
|
|
382
|
+
- `cards/` MUST contain ≥1 `.html` file per screen/component. An empty `cards/` directory is NOT acceptable.
|
|
383
|
+
- **IF >3 user journeys:** `flows/` MUST contain ≥1 flow file per user journey.
|
|
384
|
+
|
|
358
385
|
---
|
|
359
386
|
|
|
360
387
|
## Phase 4: Architecture (FINAL human gate — skipped in full-hool)
|
|
@@ -367,9 +394,9 @@ After all tasks complete:
|
|
|
367
394
|
|
|
368
395
|
### Writes
|
|
369
396
|
- `phases/04-architecture/architecture.md` — tech stack, system design, component diagram
|
|
370
|
-
- `phases/04-architecture/contracts/` — API contracts split by domain (`_index.md` + per
|
|
397
|
+
- `phases/04-architecture/contracts/` — API contracts split by domain (REQUIRED: `_index.md` + one file per API domain)
|
|
371
398
|
- `phases/04-architecture/schema.md` — data models and DB schema
|
|
372
|
-
- `phases/04-architecture/flows/` — data flows and sequence diagrams per feature
|
|
399
|
+
- `phases/04-architecture/flows/` — data flows and sequence diagrams per feature (REQUIRED: one file per feature)
|
|
373
400
|
|
|
374
401
|
### Process (interactive mode)
|
|
375
402
|
1. Read all prior phase docs
|
|
@@ -405,6 +432,13 @@ After all tasks complete:
|
|
|
405
432
|
11. Log to cold log, rebuild hot log
|
|
406
433
|
12. Advance to Phase 5 immediately — no sign-off
|
|
407
434
|
|
|
435
|
+
### Gate
|
|
436
|
+
- `architecture.md` exists with tech stack, system design, module breakdown
|
|
437
|
+
- `contracts/` MUST contain `_index.md` + ≥1 per-domain contract file. An empty `contracts/` directory is NOT acceptable.
|
|
438
|
+
- `schema.md` exists (if project uses a database/data store)
|
|
439
|
+
- `flows/` MUST contain ≥1 flow file per major feature. An empty `flows/` directory is NOT acceptable.
|
|
440
|
+
- Both Tech Leads have validated (interactive + full-hool)
|
|
441
|
+
|
|
408
442
|
---
|
|
409
443
|
|
|
410
444
|
## Phase 5: FE Scaffold + LLD (autonomous)
|
|
@@ -473,7 +507,10 @@ Spawn **QA** subagent with context:
|
|
|
473
507
|
- QA updates own memory files (cold.md, hot.md, best-practices.md, issues.md)
|
|
474
508
|
|
|
475
509
|
### Gate
|
|
476
|
-
|
|
510
|
+
- `test-plan.md` exists with coverage matrix and test infrastructure
|
|
511
|
+
- **IF >10 test cases:** `cases/` MUST contain ≥1 file per feature/module. A single `test-plan.md` is NOT sufficient — split cases by feature.
|
|
512
|
+
- Test plan covers all spec acceptance criteria
|
|
513
|
+
- Log and advance.
|
|
477
514
|
|
|
478
515
|
---
|
|
479
516
|
|