qualia-framework 6.2.9 → 6.2.10
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 +14 -11
- package/agents/builder.md +7 -7
- package/agents/planner.md +39 -3
- package/agents/research-synthesizer.md +1 -1
- package/agents/researcher.md +3 -3
- package/agents/roadmapper.md +7 -7
- package/agents/verifier.md +18 -6
- package/agents/visual-evaluator.md +8 -7
- package/bin/cli.js +111 -14
- package/bin/contract-runner.js +219 -0
- package/bin/host-adapters.js +66 -0
- package/bin/install.js +99 -152
- package/bin/plan-contract.js +99 -2
- package/bin/planning-hygiene.js +262 -0
- package/bin/runtime-manifest.js +32 -0
- package/bin/state-ledger.js +184 -0
- package/bin/state.js +299 -20
- package/bin/trust-score.js +276 -0
- package/docs/onboarding.html +5 -4
- package/guide.md +3 -2
- package/package.json +1 -1
- package/qualia-design/design-rubric.md +17 -5
- package/qualia-design/frontend.md +5 -1
- package/qualia-design/graphics.md +47 -0
- package/rules/command-output.md +35 -0
- package/skills/qualia/SKILL.md +10 -10
- package/skills/qualia-build/SKILL.md +20 -14
- package/skills/qualia-debug/SKILL.md +16 -8
- package/skills/qualia-discuss/SKILL.md +10 -10
- package/skills/qualia-doctor/SKILL.md +140 -0
- package/skills/qualia-feature/SKILL.md +23 -21
- package/skills/qualia-fix/SKILL.md +216 -0
- package/skills/qualia-flush/SKILL.md +9 -9
- package/skills/qualia-handoff/SKILL.md +9 -9
- package/skills/qualia-help/SKILL.md +3 -3
- package/skills/qualia-hook-gen/SKILL.md +1 -1
- package/skills/qualia-idk/SKILL.md +4 -4
- package/skills/qualia-issues/SKILL.md +2 -2
- package/skills/qualia-learn/SKILL.md +10 -10
- package/skills/qualia-map/SKILL.md +2 -2
- package/skills/qualia-milestone/SKILL.md +15 -15
- package/skills/qualia-new/REFERENCE.md +9 -9
- package/skills/qualia-new/SKILL.md +14 -14
- package/skills/qualia-optimize/REFERENCE.md +1 -1
- package/skills/qualia-optimize/SKILL.md +23 -16
- package/skills/qualia-pause/SKILL.md +2 -2
- package/skills/qualia-plan/SKILL.md +23 -13
- package/skills/qualia-polish/REFERENCE.md +14 -14
- package/skills/qualia-polish/SKILL.md +64 -19
- package/skills/qualia-polish/scripts/loop.mjs +3 -3
- package/skills/qualia-polish/scripts/score.mjs +9 -3
- package/skills/qualia-postmortem/SKILL.md +9 -9
- package/skills/qualia-report/SKILL.md +23 -23
- package/skills/qualia-research/SKILL.md +5 -5
- package/skills/qualia-resume/SKILL.md +4 -4
- package/skills/qualia-review/SKILL.md +28 -12
- package/skills/qualia-road/SKILL.md +18 -5
- package/skills/qualia-ship/SKILL.md +22 -22
- package/skills/qualia-skill-new/SKILL.md +13 -13
- package/skills/qualia-test/SKILL.md +5 -5
- package/skills/qualia-triage/SKILL.md +1 -1
- package/skills/qualia-verify/SKILL.md +37 -23
- package/skills/qualia-vibe/SKILL.md +13 -10
- package/skills/qualia-vibe/scripts/extract.mjs +1 -1
- package/skills/zoho-workflow/SKILL.md +1 -1
- package/templates/help.html +12 -10
- package/tests/bin.test.sh +34 -4
- package/tests/install-smoke.test.sh +22 -2
- package/tests/lib.test.sh +290 -0
- package/tests/runner.js +3 -0
- package/tests/skills.test.sh +4 -4
- package/tests/state.test.sh +65 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qualia-flush
|
|
3
|
-
description: "Promote daily-log raw entries to the curated knowledge tier — Karpathy-style raw→wiki flush. Reads
|
|
3
|
+
description: "Promote daily-log raw entries to the curated knowledge tier — Karpathy-style raw→wiki flush. Reads ${QUALIA_KNOWLEDGE}/daily-log/*.md, identifies recurring patterns and decisions, writes them to ${QUALIA_KNOWLEDGE}/concepts/{topic}.md, updates index.md. Trigger on 'flush memory', 'promote learnings', 'consolidate logs', 'qualia-flush', 'process daily logs', or run weekly."
|
|
4
4
|
allowed-tools:
|
|
5
5
|
- Bash
|
|
6
6
|
- Read
|
|
@@ -14,11 +14,11 @@ allowed-tools:
|
|
|
14
14
|
|
|
15
15
|
Closes the **raw → wiki** loop in the Qualia memory layer. The Stop hook
|
|
16
16
|
(`hooks/stop-session-log.js`) appends mechanical session checkpoints to
|
|
17
|
-
|
|
17
|
+
`${QUALIA_KNOWLEDGE}/daily-log/{date}.md`.
|
|
18
18
|
Those entries accumulate but stay raw — they describe what happened, not
|
|
19
19
|
what to do about it. This skill reads the recent daily-log entries with an
|
|
20
20
|
LLM (you) and writes durable concepts that the builder, planner, and
|
|
21
|
-
debug skills will surface later via `node
|
|
21
|
+
debug skills will surface later via `node ${QUALIA_BIN}/knowledge.js`.
|
|
22
22
|
|
|
23
23
|
Inspired by Karpathy's LLM knowledge bases and Cole Medin's self-evolving
|
|
24
24
|
Claude memory pattern (NotebookLM, 2026-04-25). Both run a daily/weekly
|
|
@@ -47,7 +47,7 @@ all projects. Show a one-line preview before writing anything destructive.
|
|
|
47
47
|
### 1. Banner + check the floor
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
|
-
node
|
|
50
|
+
node ${QUALIA_BIN}/qualia-ui.js banner flush 2>/dev/null || true
|
|
51
51
|
|
|
52
52
|
# Resolve the knowledge dir. Fail loud if it doesn't exist — flush is
|
|
53
53
|
# meaningless without a daily-log to read.
|
|
@@ -112,7 +112,7 @@ Things to **NOT** promote:
|
|
|
112
112
|
For each thing worth promoting, use the loader's `append`:
|
|
113
113
|
|
|
114
114
|
```bash
|
|
115
|
-
node
|
|
115
|
+
node ${QUALIA_BIN}/knowledge.js append \
|
|
116
116
|
--type {pattern|fix|client} \
|
|
117
117
|
--title "{Concise title — what's the recurring thing?}" \
|
|
118
118
|
--body "{The promoted lesson. Be specific. Include the project name(s) and dates where this pattern was observed so future you can verify.}" \
|
|
@@ -122,13 +122,13 @@ node ~/.claude/bin/knowledge.js append \
|
|
|
122
122
|
|
|
123
123
|
For a brand-new topic that doesn't fit pattern/fix/client (e.g. a Stripe
|
|
124
124
|
integration approach worth its own file), Write to
|
|
125
|
-
|
|
125
|
+
`${QUALIA_KNOWLEDGE}/concepts/{topic}.md`. Then **update `index.md`** so the
|
|
126
126
|
new file is reachable — list it under "What's where" with one line:
|
|
127
127
|
|
|
128
128
|
```bash
|
|
129
129
|
# After writing concepts/stripe-checkout.md:
|
|
130
|
-
node
|
|
131
|
-
# Returned path =
|
|
130
|
+
node ${QUALIA_BIN}/knowledge.js path stripe-checkout
|
|
131
|
+
# Returned path = ${QUALIA_KNOWLEDGE}/stripe-checkout.md (NOTE: top-level, not concepts/)
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
> **Loader behavior:** `knowledge.js load <name>` resolves bare names by walking
|
|
@@ -181,7 +181,7 @@ Format:
|
|
|
181
181
|
- **Mass-promoting everything:** if you found "promotions" for 90% of
|
|
182
182
|
daily-log entries, you're labeling, not promoting. Be selective.
|
|
183
183
|
- **Re-promoting on every flush:** before appending, run
|
|
184
|
-
`node
|
|
184
|
+
`node ${QUALIA_BIN}/knowledge.js search "{title keywords}"` to check if
|
|
185
185
|
the pattern already exists. If it does, either update it (find by `**ID:**`
|
|
186
186
|
line) or skip — never duplicate.
|
|
187
187
|
- **Hand-writing to `learned-patterns.md` etc. directly:** always go
|
|
@@ -31,7 +31,7 @@ Every Handoff milestone must produce these. They are checked against in `REQUIRE
|
|
|
31
31
|
## Process
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
|
-
node
|
|
34
|
+
node ${QUALIA_BIN}/qualia-ui.js banner handoff
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
### 1. Verify Production URL (Deliverable 1)
|
|
@@ -39,13 +39,13 @@ node ~/.claude/bin/qualia-ui.js banner handoff
|
|
|
39
39
|
```bash
|
|
40
40
|
URL=$(node -e "const t=JSON.parse(require('fs').readFileSync('.planning/tracking.json','utf8'));console.log(t.deployed_url||'')")
|
|
41
41
|
if [ -z "$URL" ]; then
|
|
42
|
-
node
|
|
42
|
+
node ${QUALIA_BIN}/qualia-ui.js fail "No deployed_url — run /qualia-ship first"
|
|
43
43
|
exit 1
|
|
44
44
|
fi
|
|
45
45
|
HTTP=$(curl -s -o /dev/null -w "%{http_code}" "$URL")
|
|
46
46
|
LATENCY=$(curl -s -o /dev/null -w "%{time_total}" "$URL")
|
|
47
47
|
AUTH=$(curl -s -o /dev/null -w "%{http_code}" "$URL/api/auth/callback" 2>/dev/null || echo "N/A")
|
|
48
|
-
node
|
|
48
|
+
node ${QUALIA_BIN}/qualia-ui.js ok "URL: $URL (HTTP $HTTP, ${LATENCY}s, auth:$AUTH)"
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
If HTTP is not 2xx or latency > 1.0s → halt; deliverable fails.
|
|
@@ -119,7 +119,7 @@ git push
|
|
|
119
119
|
### 5. Update State
|
|
120
120
|
|
|
121
121
|
```bash
|
|
122
|
-
node
|
|
122
|
+
node ${QUALIA_BIN}/state.js transition --to handed_off
|
|
123
123
|
```
|
|
124
124
|
|
|
125
125
|
Do NOT manually edit STATE.md or tracking.json — state.js handles both.
|
|
@@ -131,11 +131,11 @@ Trigger the final `/qualia-report`. This uploads the closing state to the ERP wi
|
|
|
131
131
|
In `--auto` mode, inline-invoke `/qualia-report` now. In guided mode, show the next step:
|
|
132
132
|
|
|
133
133
|
```bash
|
|
134
|
-
node
|
|
135
|
-
node
|
|
136
|
-
node
|
|
137
|
-
node
|
|
138
|
-
node
|
|
134
|
+
node ${QUALIA_BIN}/qualia-ui.js ok "Production URL verified"
|
|
135
|
+
node ${QUALIA_BIN}/qualia-ui.js ok "Documentation updated"
|
|
136
|
+
node ${QUALIA_BIN}/qualia-ui.js ok "Client assets archived + handoff doc written"
|
|
137
|
+
node ${QUALIA_BIN}/qualia-ui.js ok "Ready for final ERP report"
|
|
138
|
+
node ${QUALIA_BIN}/qualia-ui.js end "DELIVERED" "/qualia-report"
|
|
139
139
|
```
|
|
140
140
|
|
|
141
141
|
## Rules
|
|
@@ -58,9 +58,9 @@ fi
|
|
|
58
58
|
### 3. Confirm
|
|
59
59
|
|
|
60
60
|
```bash
|
|
61
|
-
node
|
|
62
|
-
node
|
|
63
|
-
node
|
|
61
|
+
node ${QUALIA_BIN}/qualia-ui.js banner router
|
|
62
|
+
node ${QUALIA_BIN}/qualia-ui.js ok "Reference guide opened in browser"
|
|
63
|
+
node ${QUALIA_BIN}/qualia-ui.js info "File: /tmp/qualia-help.html"
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
If the browser does not open automatically, tell the user the file path so they can open it manually.
|
|
@@ -128,7 +128,7 @@ Two scopes:
|
|
|
128
128
|
| Scope | Action |
|
|
129
129
|
|---|---|
|
|
130
130
|
| `--scope project` (default for project rules) | Add the patch to `.claude/settings.json` in the project root |
|
|
131
|
-
| `--scope global` | Add to
|
|
131
|
+
| `--scope global` | Add to `${QUALIA_HOME}/settings.json`. Use only if rule applies to ALL projects |
|
|
132
132
|
|
|
133
133
|
Use the existing settings-merge logic from `bin/install.js:756-778` (preserves user fields, atomic write, backup-before-overwrite).
|
|
134
134
|
|
|
@@ -29,8 +29,8 @@ Run `/qualia` first when the user knows what they're trying to do. Run `/qualia-
|
|
|
29
29
|
### Step 0. Banner
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
node
|
|
33
|
-
node
|
|
32
|
+
node ${QUALIA_BIN}/qualia-ui.js banner router
|
|
33
|
+
node ${QUALIA_BIN}/qualia-ui.js spawn "diagnostic" "Reading planning and codebase in isolation..."
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
Say: **"Let me take a proper look."**
|
|
@@ -143,8 +143,8 @@ If one of these maps to an existing Qualia command, use it:
|
|
|
143
143
|
### Step 4. Close
|
|
144
144
|
|
|
145
145
|
```bash
|
|
146
|
-
node
|
|
147
|
-
node
|
|
146
|
+
node ${QUALIA_BIN}/qualia-ui.js divider
|
|
147
|
+
node ${QUALIA_BIN}/qualia-ui.js end "DIAGNOSED" "{top-recommended action if it's a command, else leave blank}"
|
|
148
148
|
```
|
|
149
149
|
|
|
150
150
|
## Rules
|
|
@@ -34,7 +34,7 @@ This skill cannot work meaningfully without:
|
|
|
34
34
|
|
|
35
35
|
### 1. Determine phase
|
|
36
36
|
|
|
37
|
-
Phase number from `$ARGUMENTS` if provided, else current from `node
|
|
37
|
+
Phase number from `$ARGUMENTS` if provided, else current from `node ${QUALIA_BIN}/state.js check`.
|
|
38
38
|
|
|
39
39
|
### 2. Load substrate
|
|
40
40
|
|
|
@@ -138,7 +138,7 @@ Filed {date}. Status: open queue.
|
|
|
138
138
|
git add .planning/phase-{N}-issues.md
|
|
139
139
|
git commit -m "docs(phase-{N}): externalize {N_slices} slices to GH issue queue"
|
|
140
140
|
|
|
141
|
-
node
|
|
141
|
+
node ${QUALIA_BIN}/qualia-ui.js end "QUEUE FILED" "/qualia-triage"
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
## Rules
|
|
@@ -12,7 +12,7 @@ allowed-tools:
|
|
|
12
12
|
|
|
13
13
|
# /qualia-learn — Save Knowledge
|
|
14
14
|
|
|
15
|
-
Persist learnings across projects and sessions. Saved to
|
|
15
|
+
Persist learnings across projects and sessions. Saved to `${QUALIA_KNOWLEDGE}/`.
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
18
18
|
|
|
@@ -39,7 +39,7 @@ Client-specific preferences, design choices, requirements.
|
|
|
39
39
|
## Process
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
node
|
|
42
|
+
node ${QUALIA_BIN}/qualia-ui.js banner learn
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
### 1. Classify
|
|
@@ -60,7 +60,7 @@ unified loader, **never** raw `cat` or `grep` directly — the loader handles
|
|
|
60
60
|
missing-file edge cases and stays consistent across skills.
|
|
61
61
|
|
|
62
62
|
```bash
|
|
63
|
-
node
|
|
63
|
+
node ${QUALIA_BIN}/knowledge.js search "{title keywords}"
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
If a near-match exists:
|
|
@@ -76,7 +76,7 @@ detection, and the canonical entry format — one call, no shell escaping
|
|
|
76
76
|
concerns:
|
|
77
77
|
|
|
78
78
|
```bash
|
|
79
|
-
node
|
|
79
|
+
node ${QUALIA_BIN}/knowledge.js append \
|
|
80
80
|
--type {pattern|fix|client} \
|
|
81
81
|
--title "{Title}" \
|
|
82
82
|
--body "{The learning — be specific enough that future-you understands without context}" \
|
|
@@ -102,24 +102,24 @@ to bootstrap it.
|
|
|
102
102
|
|
|
103
103
|
## Reading Knowledge
|
|
104
104
|
|
|
105
|
-
**Always use the loader.** Hardcoded `cat
|
|
105
|
+
**Always use the loader.** Hardcoded `cat ${QUALIA_KNOWLEDGE}/X.md` is an
|
|
106
106
|
anti-pattern — it makes new files invisible (this was v4.1.0 audit finding
|
|
107
107
|
#3). The loader, by contrast, lets agents discover available knowledge via
|
|
108
108
|
the index.
|
|
109
109
|
|
|
110
110
|
```bash
|
|
111
111
|
# Print the index (entry point — read this first)
|
|
112
|
-
node
|
|
112
|
+
node ${QUALIA_BIN}/knowledge.js
|
|
113
113
|
|
|
114
114
|
# Print a specific file (accepts aliases: patterns, fixes, client)
|
|
115
|
-
node
|
|
116
|
-
node
|
|
115
|
+
node ${QUALIA_BIN}/knowledge.js load patterns
|
|
116
|
+
node ${QUALIA_BIN}/knowledge.js load common-fixes.md
|
|
117
117
|
|
|
118
118
|
# List everything available
|
|
119
|
-
node
|
|
119
|
+
node ${QUALIA_BIN}/knowledge.js list
|
|
120
120
|
|
|
121
121
|
# Search across all files
|
|
122
|
-
node
|
|
122
|
+
node ${QUALIA_BIN}/knowledge.js search "RLS"
|
|
123
123
|
```
|
|
124
124
|
|
|
125
125
|
The `/qualia-debug` skill should check `common-fixes.md` (`load fixes`) before
|
|
@@ -46,7 +46,7 @@ If `ALREADY_MAPPED`, ask:
|
|
|
46
46
|
### 2. Banner
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
|
-
node
|
|
49
|
+
node ${QUALIA_BIN}/qualia-ui.js banner map
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
### 3. Spawn 5 Mapper Agents (parallel)
|
|
@@ -175,7 +175,7 @@ git commit -m "docs: map existing codebase"
|
|
|
175
175
|
### 7. Route
|
|
176
176
|
|
|
177
177
|
```bash
|
|
178
|
-
node
|
|
178
|
+
node ${QUALIA_BIN}/qualia-ui.js end "CODEBASE MAPPED" "/qualia-new"
|
|
179
179
|
```
|
|
180
180
|
|
|
181
181
|
## What `/qualia-new` Does With This
|
|
@@ -29,7 +29,7 @@ Triggered after `/qualia-verify` passes on the LAST phase of the current milesto
|
|
|
29
29
|
### 1. Validate Readiness
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
node
|
|
32
|
+
node ${QUALIA_BIN}/state.js check
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
`state.js close-milestone` enforces two guards:
|
|
@@ -67,7 +67,7 @@ Roadmapper prompt for the extension:
|
|
|
67
67
|
|
|
68
68
|
```
|
|
69
69
|
Agent(prompt="
|
|
70
|
-
Read your role:
|
|
70
|
+
Read your role: @${QUALIA_AGENTS}/roadmapper.md
|
|
71
71
|
|
|
72
72
|
<mode>extend-demo-to-full</mode>
|
|
73
73
|
<existing_journey>.planning/JOURNEY.md</existing_journey>
|
|
@@ -95,8 +95,8 @@ milestone when /qualia-milestone opens each one.
|
|
|
95
95
|
**If "Demo only — close here":** treat the demo as a shipped-and-done project. Skip Steps 2-9 of the normal flow. Just run:
|
|
96
96
|
|
|
97
97
|
```bash
|
|
98
|
-
node
|
|
99
|
-
node
|
|
98
|
+
node ${QUALIA_BIN}/state.js close-milestone --force
|
|
99
|
+
node ${QUALIA_BIN}/qualia-ui.js end "DEMO SHIPPED" "/qualia-report"
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
In `--auto` mode, inline-invoke `/qualia-report` and stop.
|
|
@@ -104,7 +104,7 @@ In `--auto` mode, inline-invoke `/qualia-report` and stop.
|
|
|
104
104
|
**If "Pause":** stop, show:
|
|
105
105
|
|
|
106
106
|
```bash
|
|
107
|
-
node
|
|
107
|
+
node ${QUALIA_BIN}/qualia-ui.js info "Demo milestone left open. Run /qualia-milestone again when you decide."
|
|
108
108
|
```
|
|
109
109
|
|
|
110
110
|
If the demo branch did NOT fire (full project, or demo with multiple milestones already after extension), continue to Step 2.
|
|
@@ -112,8 +112,8 @@ If the demo branch did NOT fire (full project, or demo with multiple milestones
|
|
|
112
112
|
### 2. Banner + Confirm
|
|
113
113
|
|
|
114
114
|
```bash
|
|
115
|
-
node
|
|
116
|
-
node
|
|
115
|
+
node ${QUALIA_BIN}/qualia-ui.js banner milestone
|
|
116
|
+
node ${QUALIA_BIN}/qualia-ui.js journey-tree .planning/JOURNEY.md
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
The journey-tree shows the user WHERE they are on the ladder before asking the close question. Read `.planning/JOURNEY.md` to find the next milestone's name + scope. Show:
|
|
@@ -152,7 +152,7 @@ Edit `.planning/REQUIREMENTS.md`:
|
|
|
152
152
|
Closes current milestone's counters, appends a summary to `tracking.json` milestones[]:
|
|
153
153
|
|
|
154
154
|
```bash
|
|
155
|
-
node
|
|
155
|
+
node ${QUALIA_BIN}/state.js close-milestone
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
If all phases are verified and ≥ 2 phases exist, this succeeds without `--force`. Otherwise add `--force` (rare — usually means the user is closing a preview/demo milestone).
|
|
@@ -180,7 +180,7 @@ Spawn the roadmapper with the next milestone's JOURNEY.md sketch as input:
|
|
|
180
180
|
|
|
181
181
|
```
|
|
182
182
|
Agent(prompt="
|
|
183
|
-
Read your role:
|
|
183
|
+
Read your role: @${QUALIA_AGENTS}/roadmapper.md
|
|
184
184
|
|
|
185
185
|
<mode>next-milestone</mode>
|
|
186
186
|
<journey_file>.planning/JOURNEY.md</journey_file>
|
|
@@ -198,7 +198,7 @@ Do NOT re-plan completed milestones. Do NOT create a new JOURNEY.md — the
|
|
|
198
198
|
existing one stays the source of truth.
|
|
199
199
|
|
|
200
200
|
After writing ROADMAP.md, update STATE.md via:
|
|
201
|
-
node
|
|
201
|
+
node ${QUALIA_BIN}/state.js init --force \\
|
|
202
202
|
--project '{project}' --client '{client}' --type '{type}' \\
|
|
203
203
|
--milestone_name '{next name}' \\
|
|
204
204
|
--phases '<JSON: next milestone phases>' \\
|
|
@@ -221,8 +221,8 @@ git commit -m "milestone: close M{N} ({current name}) → open M{N+1} ({next nam
|
|
|
221
221
|
**Case A: this WAS the Handoff milestone closing → project is done.**
|
|
222
222
|
|
|
223
223
|
```bash
|
|
224
|
-
node
|
|
225
|
-
node
|
|
224
|
+
node ${QUALIA_BIN}/qualia-ui.js milestone-complete {N} "Handoff" ""
|
|
225
|
+
node ${QUALIA_BIN}/qualia-ui.js end "PROJECT SHIPPED" "/qualia-report"
|
|
226
226
|
```
|
|
227
227
|
|
|
228
228
|
In `--auto` mode, inline-invoke `/qualia-report` and stop. No further chaining — the project is done.
|
|
@@ -230,7 +230,7 @@ In `--auto` mode, inline-invoke `/qualia-report` and stop. No further chaining
|
|
|
230
230
|
**Case B: a non-final milestone just closed → next milestone is open.**
|
|
231
231
|
|
|
232
232
|
```bash
|
|
233
|
-
node
|
|
233
|
+
node ${QUALIA_BIN}/qualia-ui.js milestone-complete {N} "{current name}" "{next name}"
|
|
234
234
|
```
|
|
235
235
|
|
|
236
236
|
**In `--auto` mode**, pause here and ask (this is ONE of the two human gates in auto mode, the other being journey approval at `/qualia-new` time):
|
|
@@ -244,13 +244,13 @@ node ~/.claude/bin/qualia-ui.js milestone-complete {N} "{current name}" "{next n
|
|
|
244
244
|
If "Continue": the auto-chain resumes. If "Pause": stop, show:
|
|
245
245
|
|
|
246
246
|
```bash
|
|
247
|
-
node
|
|
247
|
+
node ${QUALIA_BIN}/qualia-ui.js end "M{N} CLOSED · M{N+1} READY" "/qualia-plan 1 --auto"
|
|
248
248
|
```
|
|
249
249
|
|
|
250
250
|
**In guided mode**, always stop and show the next step regardless of position:
|
|
251
251
|
|
|
252
252
|
```bash
|
|
253
|
-
node
|
|
253
|
+
node ${QUALIA_BIN}/qualia-ui.js end "M{N} CLOSED · M{N+1} OPEN" "/qualia-plan 1"
|
|
254
254
|
```
|
|
255
255
|
|
|
256
256
|
## What Stays, What Changes
|
|
@@ -9,7 +9,7 @@ Spawn all 4 as parallel `Agent()` calls in a single message. Each uses the same
|
|
|
9
9
|
|
|
10
10
|
```
|
|
11
11
|
Agent(prompt="
|
|
12
|
-
Read your role:
|
|
12
|
+
Read your role: @${QUALIA_AGENTS}/researcher.md
|
|
13
13
|
|
|
14
14
|
<dimension>stack</dimension>
|
|
15
15
|
<domain>{inferred domain from PROJECT.md}</domain>
|
|
@@ -19,7 +19,7 @@ Read your role: @~/.claude/agents/researcher.md
|
|
|
19
19
|
", subagent_type="qualia-researcher", description="Stack research")
|
|
20
20
|
|
|
21
21
|
Agent(prompt="
|
|
22
|
-
Read your role:
|
|
22
|
+
Read your role: @${QUALIA_AGENTS}/researcher.md
|
|
23
23
|
|
|
24
24
|
<dimension>features</dimension>
|
|
25
25
|
<domain>{inferred domain}</domain>
|
|
@@ -29,7 +29,7 @@ Read your role: @~/.claude/agents/researcher.md
|
|
|
29
29
|
", subagent_type="qualia-researcher", description="Features research")
|
|
30
30
|
|
|
31
31
|
Agent(prompt="
|
|
32
|
-
Read your role:
|
|
32
|
+
Read your role: @${QUALIA_AGENTS}/researcher.md
|
|
33
33
|
|
|
34
34
|
<dimension>architecture</dimension>
|
|
35
35
|
<domain>{inferred domain}</domain>
|
|
@@ -39,7 +39,7 @@ Read your role: @~/.claude/agents/researcher.md
|
|
|
39
39
|
", subagent_type="qualia-researcher", description="Architecture research")
|
|
40
40
|
|
|
41
41
|
Agent(prompt="
|
|
42
|
-
Read your role:
|
|
42
|
+
Read your role: @${QUALIA_AGENTS}/researcher.md
|
|
43
43
|
|
|
44
44
|
<dimension>pitfalls</dimension>
|
|
45
45
|
<domain>{inferred domain}</domain>
|
|
@@ -55,7 +55,7 @@ Spawn after all 4 researchers complete.
|
|
|
55
55
|
|
|
56
56
|
```
|
|
57
57
|
Agent(prompt="
|
|
58
|
-
Read your role:
|
|
58
|
+
Read your role: @${QUALIA_AGENTS}/research-synthesizer.md
|
|
59
59
|
|
|
60
60
|
Merge the 4 research files at .planning/research/ into .planning/research/SUMMARY.md.
|
|
61
61
|
This is a multi-milestone project -- the SUMMARY must suggest a FULL milestone arc
|
|
@@ -70,7 +70,7 @@ Spawn with full-journey mandate. If the user passed `--full-detail`, set `<full_
|
|
|
70
70
|
|
|
71
71
|
```
|
|
72
72
|
Agent(prompt="
|
|
73
|
-
Read your role:
|
|
73
|
+
Read your role: @${QUALIA_AGENTS}/roadmapper.md
|
|
74
74
|
|
|
75
75
|
<task>
|
|
76
76
|
Create the FULL JOURNEY for this project:
|
|
@@ -82,7 +82,7 @@ User-scoped v1 features:
|
|
|
82
82
|
{list of features selected in Step 9, grouped by category}
|
|
83
83
|
|
|
84
84
|
Template type: {template_type from config.json}
|
|
85
|
-
If set, use
|
|
85
|
+
If set, use ${QUALIA_TEMPLATES}/projects/{type}.md as the milestone arc starting point.
|
|
86
86
|
|
|
87
87
|
<full_detail>{true if --full-detail, else false}</full_detail>
|
|
88
88
|
- false (default): Milestone 1 gets full phase detail; M2..M{N-1} stay as sketches. Detail fills in when each milestone opens via /qualia-milestone.
|
|
@@ -92,7 +92,7 @@ The final milestone MUST be named 'Handoff' with the fixed 4 phases
|
|
|
92
92
|
(Polish, Content + SEO, Final QA, Handoff). Do not omit it.
|
|
93
93
|
|
|
94
94
|
After writing, update STATE.md via:
|
|
95
|
-
node
|
|
95
|
+
node ${QUALIA_BIN}/state.js init \
|
|
96
96
|
--project '{name}' --client '{client}' --type '{type}' \
|
|
97
97
|
--milestone_name '{Milestone 1 name}' \
|
|
98
98
|
--phases '<JSON: Milestone 1 phases only>' \
|
|
@@ -103,7 +103,7 @@ After writing, update STATE.md via:
|
|
|
103
103
|
|
|
104
104
|
## Journey ladder format
|
|
105
105
|
|
|
106
|
-
The branded journey ladder rendered in Step 11. Use `node
|
|
106
|
+
The branded journey ladder rendered in Step 11. Use `node ${QUALIA_BIN}/qualia-ui.js journey-tree .planning/JOURNEY.md` for the programmatic version. The manual ASCII fallback format is below.
|
|
107
107
|
|
|
108
108
|
```
|
|
109
109
|
## Proposed Journey
|
|
@@ -43,7 +43,7 @@ Initialize a project with the **entire arc mapped from kickoff to handoff**. All
|
|
|
43
43
|
### Step 0. Banner
|
|
44
44
|
|
|
45
45
|
```bash
|
|
46
|
-
node
|
|
46
|
+
node ${QUALIA_BIN}/qualia-ui.js banner new
|
|
47
47
|
```
|
|
48
48
|
|
|
49
49
|
Banner only. Do NOT ask anything yet. The next thing the user sees is the project-shape gate — not a free-text "tell me what to build". Shape gate first, content second, because the shape drives the question set.
|
|
@@ -122,7 +122,7 @@ If "More questions": re-invoke `/qualia-discuss` for additional rounds. Otherwis
|
|
|
122
122
|
|
|
123
123
|
### Step 5. Detect Project Type
|
|
124
124
|
|
|
125
|
-
From questioning answers, infer type → `website` | `ai-agent` | `voice-agent` | `mobile-app` | `null`. If matched, `cat
|
|
125
|
+
From questioning answers, infer type → `website` | `ai-agent` | `voice-agent` | `mobile-app` | `null`. If matched, `cat ${QUALIA_TEMPLATES}/projects/{type}.md` gives suggested milestone arc. Store `template_type` for Step 13.
|
|
126
126
|
|
|
127
127
|
### Step 6. Design Direction (frontend only)
|
|
128
128
|
|
|
@@ -140,7 +140,7 @@ Plus free-text: "Any brand colors or reference sites I should look at?"
|
|
|
140
140
|
|
|
141
141
|
If client, ask name. Check saved prefs:
|
|
142
142
|
```bash
|
|
143
|
-
node
|
|
143
|
+
node ${QUALIA_BIN}/knowledge.js search "{client name}"
|
|
144
144
|
```
|
|
145
145
|
|
|
146
146
|
### Step 8. Write PROJECT.md
|
|
@@ -159,11 +159,11 @@ The domain glossary is the single highest-leverage piece of substrate — every
|
|
|
159
159
|
|
|
160
160
|
```bash
|
|
161
161
|
# Copy template
|
|
162
|
-
cp
|
|
162
|
+
cp ${QUALIA_TEMPLATES}/CONTEXT.md .planning/CONTEXT.md
|
|
163
163
|
|
|
164
164
|
# Initialize ADR folder with the template available for reference
|
|
165
165
|
mkdir -p .planning/decisions
|
|
166
|
-
cp
|
|
166
|
+
cp ${QUALIA_TEMPLATES}/decisions/ADR-template.md .planning/decisions/_template.md
|
|
167
167
|
```
|
|
168
168
|
|
|
169
169
|
Then **seed the glossary from the questioning answers**. For each domain term that came up during the Step 4 `/qualia-discuss` interview — entities, actions, statuses, key nouns the user repeatedly said — add an entry to `.planning/CONTEXT.md` under `## Language` with:
|
|
@@ -252,7 +252,7 @@ git commit -m "docs: DESIGN.md — direction commit + OKLCH palette + tokens"
|
|
|
252
252
|
Only `/qualia-new --quick` skips this step.
|
|
253
253
|
|
|
254
254
|
```bash
|
|
255
|
-
node
|
|
255
|
+
node ${QUALIA_BIN}/qualia-ui.js banner research
|
|
256
256
|
mkdir -p .planning/research
|
|
257
257
|
```
|
|
258
258
|
|
|
@@ -275,7 +275,7 @@ git commit -m "docs: research synthesis (4 dimensions, multi-milestone scope)"
|
|
|
275
275
|
|
|
276
276
|
Show key findings:
|
|
277
277
|
```bash
|
|
278
|
-
node
|
|
278
|
+
node ${QUALIA_BIN}/qualia-ui.js ok "Research complete"
|
|
279
279
|
```
|
|
280
280
|
Display top 3 from SUMMARY.md (stack recommendation, table stakes, top pitfall).
|
|
281
281
|
|
|
@@ -300,7 +300,7 @@ Gather any additional requirements the user wants that research missed.
|
|
|
300
300
|
### Step 13. Run Roadmapper
|
|
301
301
|
|
|
302
302
|
```bash
|
|
303
|
-
node
|
|
303
|
+
node ${QUALIA_BIN}/qualia-ui.js banner roadmap
|
|
304
304
|
```
|
|
305
305
|
|
|
306
306
|
**Roadmapper output branches on `PROJECT_TYPE`:**
|
|
@@ -315,7 +315,7 @@ Spawn the roadmapper with `<project_type>$PROJECT_TYPE</project_type>` in the pr
|
|
|
315
315
|
Render the branded journey ladder:
|
|
316
316
|
|
|
317
317
|
```bash
|
|
318
|
-
node
|
|
318
|
+
node ${QUALIA_BIN}/qualia-ui.js journey-tree .planning/JOURNEY.md
|
|
319
319
|
```
|
|
320
320
|
|
|
321
321
|
This shows M1..M{N} as a vertical ladder: shipped milestones get a green dot, current gets a teal diamond with `[CURRENT]` tag, future get dim open circles. Handoff gets `[FINAL]` tag. Why-now + phase sketch render under current and final.
|
|
@@ -345,9 +345,9 @@ git commit -m "docs: journey + requirements + milestone 1 roadmap ({N} milestone
|
|
|
345
345
|
**After approval, show the progressive-detail reminder explicitly:**
|
|
346
346
|
|
|
347
347
|
```bash
|
|
348
|
-
node
|
|
349
|
-
node
|
|
350
|
-
node
|
|
348
|
+
node ${QUALIA_BIN}/qualia-ui.js info "Milestone 1 is fully planned now."
|
|
349
|
+
node ${QUALIA_BIN}/qualia-ui.js info "Milestones 2..{N-1} are sketched (names + one-line goals)."
|
|
350
|
+
node ${QUALIA_BIN}/qualia-ui.js info "Full phase detail for each later milestone gets written when /qualia-milestone opens it."
|
|
351
351
|
```
|
|
352
352
|
|
|
353
353
|
(Skip this block when `--full-detail` was used — all milestones are already fully planned in that case.)
|
|
@@ -368,7 +368,7 @@ git commit -m "chore: environment setup" 2>/dev/null
|
|
|
368
368
|
If invoked with `--auto`, skip straight into building Milestone 1:
|
|
369
369
|
|
|
370
370
|
```bash
|
|
371
|
-
node
|
|
371
|
+
node ${QUALIA_BIN}/qualia-ui.js info "Auto mode — chaining into /qualia-plan 1"
|
|
372
372
|
```
|
|
373
373
|
|
|
374
374
|
Then inline-invoke `/qualia-plan 1`. That skill will chain into `/qualia-build 1 → /qualia-verify 1 → /qualia-plan 2 → ...` until Milestone 1's last phase verifies, at which point the chain pauses at the milestone boundary and asks:
|
|
@@ -380,7 +380,7 @@ Then inline-invoke `/qualia-plan 1`. That skill will chain into `/qualia-build 1
|
|
|
380
380
|
**Without `--auto`**, end with a clear pointer:
|
|
381
381
|
|
|
382
382
|
```bash
|
|
383
|
-
node
|
|
383
|
+
node ${QUALIA_BIN}/qualia-ui.js end "JOURNEY READY" "/qualia-plan 1"
|
|
384
384
|
```
|
|
385
385
|
|
|
386
386
|
Show summary:
|
|
@@ -258,7 +258,7 @@ Constraints:
|
|
|
258
258
|
)
|
|
259
259
|
```
|
|
260
260
|
|
|
261
|
-
After all 3 return, present a comparison table to the user (see SKILL.md Step 5b). User picks 1, 2, 3, or hybrid. Then a single synthesizer agent writes the Refactor RFC to `.planning/REFACTOR-{slug}.md` honoring the user's pick.
|
|
261
|
+
After all 3 return, present a comparison table to the user (see SKILL.md Step 5b). User picks 1, 2, 3, or hybrid. Then a single synthesizer agent writes the Refactor RFC to `.planning/reports/refactor/REFACTOR-{slug}.md` honoring the user's pick.
|
|
262
262
|
|
|
263
263
|
**Token cost**: ~6K per variant × 3 variants = ~18K for the fan-out. Cached prefix (CONTEXT.md + ADRs + candidate block) is shared across the 3 spawns, so effective cost is closer to ~12K. The output rfc-pick stage adds ~3K. Total per-deepening-candidate: ~15K — well within Qualia's per-skill budget.
|
|
264
264
|
|