qualia-framework 2.4.0 → 2.4.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/bin/collect-metrics.sh +62 -0
- package/framework/agents/qualia-phase-researcher.md +6 -3
- package/framework/agents/qualia-planner.md +10 -7
- package/framework/agents/qualia-research-synthesizer.md +110 -147
- package/framework/agents/red-team-qa.md +130 -0
- package/framework/hooks/auto-format.sh +9 -1
- package/framework/hooks/migration-validate.sh +21 -16
- package/framework/hooks/pre-commit.sh +13 -5
- package/framework/hooks/pre-deploy-gate.sh +23 -1
- package/framework/hooks/retention-cleanup.sh +4 -4
- package/framework/hooks/save-session-state.sh +18 -10
- package/framework/hooks/session-context-loader.sh +21 -0
- package/framework/hooks/skill-announce.sh +2 -0
- package/framework/install.ps1 +6 -6
- package/framework/install.sh +6 -4
- package/framework/qualia-engine/VERSION +1 -1
- package/framework/qualia-engine/bin/collect-metrics.sh +71 -0
- package/framework/qualia-engine/bin/qualia-tools.js +104 -63
- package/framework/qualia-engine/references/continuation-prompt.md +97 -0
- package/framework/qualia-engine/references/employee-guide.md +167 -0
- package/framework/qualia-engine/templates/lab-notes.md +16 -0
- package/framework/qualia-engine/templates/roadmap.md +2 -8
- package/framework/qualia-engine/workflows/execute-phase.md +17 -17
- package/framework/qualia-engine/workflows/new-project.md +37 -114
- package/framework/qualia-engine/workflows/progress.md +63 -28
- package/framework/skills/client-handoff/SKILL.md +13 -3
- package/framework/skills/deep-research/SKILL.md +34 -71
- package/framework/skills/learn/SKILL.md +29 -5
- package/framework/skills/qualia/SKILL.md +57 -17
- package/framework/skills/qualia-complete-milestone/SKILL.md +29 -7
- package/framework/skills/qualia-evolve/SKILL.md +200 -0
- package/framework/skills/qualia-execute-phase/SKILL.md +1 -1
- package/framework/skills/qualia-guide/SKILL.md +32 -0
- package/framework/skills/qualia-help/SKILL.md +62 -60
- package/framework/skills/qualia-new-project/SKILL.md +32 -30
- package/framework/skills/qualia-report/SKILL.md +217 -0
- package/framework/skills/qualia-start/SKILL.md +31 -59
- package/framework/skills/qualia-verify-work/SKILL.md +20 -3
- package/package.json +1 -1
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qualia-evolve
|
|
3
|
+
description: "Self-optimization loop — analyzes metrics, Lab Notes, and session history across all shipped projects, then proposes framework improvements. The Karpathy loop for the framework itself. Use after shipping a project, or periodically to improve the framework."
|
|
4
|
+
user-invocable: true
|
|
5
|
+
args:
|
|
6
|
+
- name: project
|
|
7
|
+
description: "Project to collect metrics from (defaults to current directory)"
|
|
8
|
+
required: false
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Qualia Evolve — Framework Self-Optimization
|
|
12
|
+
|
|
13
|
+
The recursive improvement loop. Reads real project outcomes, identifies what's working and what's failing, and proposes targeted changes to skill prompts, agent instructions, templates, and defaults.
|
|
14
|
+
|
|
15
|
+
**This is NOT code optimization.** This optimizes the FRAMEWORK — the prompts, the flow, the defaults, the instructions that shape how every future project runs.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
`/qualia-evolve` — Full optimization cycle (collect + analyze + propose)
|
|
20
|
+
`/qualia-evolve --collect` — Just collect metrics from current project
|
|
21
|
+
`/qualia-evolve --analyze` — Just analyze existing metrics (no collection)
|
|
22
|
+
|
|
23
|
+
## Process
|
|
24
|
+
|
|
25
|
+
### 1. Collect Metrics (if not --analyze only)
|
|
26
|
+
|
|
27
|
+
Run the metrics harness on the current project:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
bash ~/.claude/qualia-framework/bin/collect-metrics.sh "$(pwd)"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
This appends a row to `~/.claude/knowledge/framework-metrics.md`.
|
|
34
|
+
|
|
35
|
+
### 2. Load All Evidence
|
|
36
|
+
|
|
37
|
+
Read these files — they're the raw data for optimization:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
# Framework metrics (all shipped projects)
|
|
41
|
+
cat ~/.claude/knowledge/framework-metrics.md 2>/dev/null
|
|
42
|
+
|
|
43
|
+
# Session digest (recent sessions across all projects)
|
|
44
|
+
cat ~/.claude/knowledge/session-digest.md 2>/dev/null
|
|
45
|
+
|
|
46
|
+
# Global learned patterns
|
|
47
|
+
cat ~/.claude/knowledge/learned-patterns.md 2>/dev/null
|
|
48
|
+
|
|
49
|
+
# Optimization objective (what "better" means)
|
|
50
|
+
cat ~/.claude/qualia-framework/OBJECTIVE.md
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Also scan for Lab Notes across all projects:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
find ~/Projects/*/. -name "LAB-NOTES.md" -path "*/.planning/*" 2>/dev/null | while read f; do
|
|
57
|
+
echo "=== $(dirname $(dirname $f) | xargs basename) ==="
|
|
58
|
+
cat "$f"
|
|
59
|
+
done
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 3. Spawn Analysis Agents (Fan-out)
|
|
63
|
+
|
|
64
|
+
Spawn 3 parallel agents to analyze different dimensions:
|
|
65
|
+
|
|
66
|
+
**Agent 1: Flow Efficiency Analyst**
|
|
67
|
+
```
|
|
68
|
+
Analyze framework metrics and session digests.
|
|
69
|
+
- Which projects took the most sessions? Why?
|
|
70
|
+
- Where do employees get stuck? (look for /qualia-idk calls, long sessions, repeated phases)
|
|
71
|
+
- Which phases consistently need gap-fix plans? (high deviation signal)
|
|
72
|
+
- Are preferences defaults working? (do people customize, or use recommended?)
|
|
73
|
+
- What's the trend? Is the framework getting faster or slower?
|
|
74
|
+
Return: top 3 flow bottlenecks with evidence.
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Agent 2: Failure Pattern Analyst**
|
|
78
|
+
```
|
|
79
|
+
Analyze Lab Notes across all projects and learned-patterns.md.
|
|
80
|
+
- What approaches keep failing? Are we still recommending them in skill prompts?
|
|
81
|
+
- Are there common anti-patterns that multiple projects hit?
|
|
82
|
+
- Which agent instructions lead to the most deviations?
|
|
83
|
+
- Are there failure categories? (e.g., "auth always needs 2 tries", "Supabase RLS is always missed first pass")
|
|
84
|
+
Return: top 3 recurring failure patterns with root cause.
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Agent 3: Quality Gate Analyst**
|
|
88
|
+
```
|
|
89
|
+
Analyze verification pass rates and post-deploy issues.
|
|
90
|
+
- Which phases fail verification most often? What type of failures?
|
|
91
|
+
- Are the quality gates catching real issues or adding overhead?
|
|
92
|
+
- Is the red-team QA agent finding things the verifier misses?
|
|
93
|
+
- What gets caught at /qualia-review that should have been caught earlier?
|
|
94
|
+
Return: top 3 quality gaps with evidence.
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### 4. Synthesize Findings
|
|
98
|
+
|
|
99
|
+
Spawn the synthesizer agent with all 3 reports:
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
Downstream consumer: Fawzi reviewing framework improvement proposals.
|
|
103
|
+
Cross-reference findings. Identify root causes that explain multiple symptoms.
|
|
104
|
+
A flow bottleneck might be caused by a failure pattern which is caused by a quality gap.
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### 5. Propose Framework Changes
|
|
108
|
+
|
|
109
|
+
For each finding, propose a SPECIFIC change:
|
|
110
|
+
|
|
111
|
+
```markdown
|
|
112
|
+
## Proposed Changes
|
|
113
|
+
|
|
114
|
+
### Change 1: [title]
|
|
115
|
+
**Evidence:** [metrics/lab notes that support this]
|
|
116
|
+
**Root cause:** [why this is happening]
|
|
117
|
+
**Proposed fix:** [exact file + exact change]
|
|
118
|
+
**Expected impact:** [which metric improves and by how much]
|
|
119
|
+
**Risk:** [what could go wrong]
|
|
120
|
+
|
|
121
|
+
### Change 2: ...
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Rules for proposals:
|
|
125
|
+
- Every change must cite evidence from metrics or Lab Notes
|
|
126
|
+
- Every change must target a specific file (skill, agent, template, or default)
|
|
127
|
+
- Every change must predict which metric it improves
|
|
128
|
+
- Maximum 5 changes per cycle (don't over-optimize)
|
|
129
|
+
- Never change OBJECTIVE.md or collect-metrics.sh (those are the fixed harness)
|
|
130
|
+
|
|
131
|
+
### 6. Present to Fawzi for Approval
|
|
132
|
+
|
|
133
|
+
Show the proposals with evidence. For each one:
|
|
134
|
+
|
|
135
|
+
```
|
|
136
|
+
"Change [N]: [title]
|
|
137
|
+
Evidence: [data]
|
|
138
|
+
File: [path]
|
|
139
|
+
Change: [what specifically changes]
|
|
140
|
+
|
|
141
|
+
Apply? (yes/no/modify)"
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### 7. Apply Approved Changes
|
|
145
|
+
|
|
146
|
+
For each approved change:
|
|
147
|
+
1. Read the target file
|
|
148
|
+
2. Make the specific edit
|
|
149
|
+
3. Sync to `~/Projects/qualia-framework/` (the git-tracked copy)
|
|
150
|
+
4. Log the change to `~/.claude/knowledge/framework-evolution.md`
|
|
151
|
+
|
|
152
|
+
### 8. Commit Evolution
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
cd ~/Projects/qualia-framework && git add -A && git commit -m "evolve: [summary of changes]"
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Evolution Log
|
|
159
|
+
|
|
160
|
+
Every change gets logged to `~/.claude/knowledge/framework-evolution.md`:
|
|
161
|
+
|
|
162
|
+
```markdown
|
|
163
|
+
## [Date] — Cycle [N]
|
|
164
|
+
|
|
165
|
+
**Trigger:** Post-ship analysis of [project]
|
|
166
|
+
**FQS before:** [score]
|
|
167
|
+
|
|
168
|
+
### Changes Applied
|
|
169
|
+
1. [change description] → [file modified]
|
|
170
|
+
2. ...
|
|
171
|
+
|
|
172
|
+
### Changes Rejected
|
|
173
|
+
1. [change description] — Reason: [why]
|
|
174
|
+
|
|
175
|
+
### Predicted Impact
|
|
176
|
+
- [metric]: [expected change]
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
This log is read in future cycles to track whether changes actually helped.
|
|
180
|
+
|
|
181
|
+
## Bounded Time Budget
|
|
182
|
+
|
|
183
|
+
The optimization pass should complete in ~10 minutes:
|
|
184
|
+
- Metrics collection: 30 seconds
|
|
185
|
+
- Evidence loading: 1 minute
|
|
186
|
+
- 3 analysis agents (parallel): 3-5 minutes
|
|
187
|
+
- Synthesis: 2 minutes
|
|
188
|
+
- Proposal + approval: 2-3 minutes
|
|
189
|
+
|
|
190
|
+
Do NOT spend more than 15 minutes total. If analysis is taking too long, present what you have.
|
|
191
|
+
|
|
192
|
+
## Agents Used
|
|
193
|
+
|
|
194
|
+
| Agent | Role |
|
|
195
|
+
|-------|------|
|
|
196
|
+
| `general-purpose` (x3) | Flow, Failure, Quality analysis |
|
|
197
|
+
| `qualia-research-synthesizer` | Cross-cutting synthesis |
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
> Run `/qualia-evolve` after shipping a project. The framework gets smarter every time.
|
|
@@ -86,4 +86,4 @@ Update `.planning/STATE.md` phase status to `executed`.
|
|
|
86
86
|
Domain skill context from PLAN.md `@skill` references is automatically resolved and inlined into each executor subagent prompt. Plans referencing skills like `frontend-design`, `supabase`, `financial-ledger`, etc. will have those patterns available to executors.
|
|
87
87
|
|
|
88
88
|
---
|
|
89
|
-
> Stuck? Type `/qualia-idk` · Lost? Type `/qualia-help`
|
|
89
|
+
> Stuck? Type `/qualia-idk` · Lost? Type `/qualia-help` · Done for today? Type `/qualia-report`
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qualia-guide
|
|
3
|
+
description: "Show the developer guide — how the Qualia framework works, the full project flow, and the 10 commands that matter. Use this skill whenever the user says 'guide', 'how does this work', 'explain the framework', 'qualia guide', 'show me the flow', or is confused about how to use the framework."
|
|
4
|
+
user-invocable: true
|
|
5
|
+
args: []
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Qualia Developer Guide
|
|
9
|
+
|
|
10
|
+
Display the employee guide that explains how the full workflow works.
|
|
11
|
+
|
|
12
|
+
## Process
|
|
13
|
+
|
|
14
|
+
1. Read `~/.claude/qualia-framework/references/employee-guide.md`
|
|
15
|
+
2. Output its contents directly — this IS the guide, formatted for terminal display
|
|
16
|
+
3. If in a project with `.planning/`, also show current position:
|
|
17
|
+
- Read STATE.md
|
|
18
|
+
- Show which step of the flow they're currently on
|
|
19
|
+
- Highlight the next command to run
|
|
20
|
+
|
|
21
|
+
## Output Enhancement
|
|
22
|
+
|
|
23
|
+
After showing the guide, if in a project, add:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
── YOUR CURRENT POSITION ───────────────
|
|
27
|
+
You are at: [phase/step name]
|
|
28
|
+
Next command: /[command]
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
> Stuck? Type `/qualia-idk` · Lost? Type `/qualia-help` · Done for today? Type `/qualia-report`
|
|
@@ -13,100 +13,102 @@ Display the complete reference of all available Qualia workflow skills, organize
|
|
|
13
13
|
|
|
14
14
|
## Output
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
Display the command reference below. Output only — no analysis, no suggestions, just the reference.
|
|
16
|
+
Display the command reference below. Organized in two sections: **Essential** (the commands you actually use) and **Advanced** (everything else).
|
|
19
17
|
|
|
20
18
|
---
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
| `/qualia-new-milestone` | Start a new milestone on an existing project |
|
|
20
|
+
```
|
|
21
|
+
◆ QUALIA COMMAND REFERENCE
|
|
22
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
23
|
+
```
|
|
27
24
|
|
|
28
|
-
###
|
|
29
|
-
| Command | What it does |
|
|
30
|
-
|---------|-------------|
|
|
31
|
-
| `/qualia-plan-phase` | Create detailed execution plans for the next phase |
|
|
32
|
-
| `/qualia-execute-phase` | Build the phase (spawns subagents, runs in waves) |
|
|
33
|
-
| `/qualia-discuss-phase` | Clarify decisions before planning |
|
|
34
|
-
| `/qualia-list-phase-assumptions` | Surface hidden assumptions before planning |
|
|
35
|
-
| `/qualia-research-phase` | Research a topic before planning |
|
|
36
|
-
| `/qualia-quick` | Quick one-off tasks without full phase workflow |
|
|
25
|
+
### ESSENTIAL — The commands you need every day
|
|
37
26
|
|
|
38
|
-
### "I finished building — what now?"
|
|
39
27
|
| Command | What it does |
|
|
40
28
|
|---------|-------------|
|
|
41
|
-
| `/qualia
|
|
42
|
-
| `/qualia-
|
|
43
|
-
| `/qualia` |
|
|
29
|
+
| `/qualia` | **"What do I do next?"** — reads state, tells you the exact next command |
|
|
30
|
+
| `/qualia-new-project` | Start a new project from scratch |
|
|
31
|
+
| `/qualia-plan-phase N` | Plan a phase |
|
|
32
|
+
| `/qualia-execute-phase N` | Build a phase |
|
|
33
|
+
| `/qualia-verify-work N` | Test a phase |
|
|
34
|
+
| `/critique` | Review the design |
|
|
35
|
+
| `/polish` | Fix spacing, alignment, details |
|
|
36
|
+
| `/harden` | Handle edge cases, errors |
|
|
37
|
+
| `/qualia-review --web` | Code quality + security audit |
|
|
38
|
+
| `/pr` | Create a pull request |
|
|
39
|
+
|
|
40
|
+
### NAVIGATION — When you're lost or stuck
|
|
44
41
|
|
|
45
|
-
### "I need to review and fix quality"
|
|
46
42
|
| Command | What it does |
|
|
47
43
|
|---------|-------------|
|
|
48
|
-
| `/qualia-
|
|
49
|
-
| `/qualia-
|
|
50
|
-
| `/qualia-
|
|
51
|
-
| `/qualia-
|
|
44
|
+
| `/qualia-guide` | **New to the framework?** Shows how everything works |
|
|
45
|
+
| `/qualia-idk` | **Stuck?** Analyzes your situation, suggests what to do |
|
|
46
|
+
| `/qualia-progress` | See how far along the project is |
|
|
47
|
+
| `/qualia-debug` | Structured debugging when something is broken |
|
|
48
|
+
|
|
49
|
+
### SESSION — Starting and ending your day
|
|
52
50
|
|
|
53
|
-
### "I need to deploy"
|
|
54
51
|
| Command | What it does |
|
|
55
52
|
|---------|-------------|
|
|
56
|
-
| `/
|
|
57
|
-
| `/
|
|
58
|
-
| `/
|
|
53
|
+
| `/qualia-report` | Log what you did today (Fawzi reviews these) |
|
|
54
|
+
| `/qualia-pause-work` | Save context before ending session |
|
|
55
|
+
| `/qualia-resume-work` | Pick up where you left off |
|
|
56
|
+
|
|
57
|
+
---
|
|
59
58
|
|
|
60
|
-
|
|
59
|
+
<details>
|
|
60
|
+
<summary>ADVANCED — Full command reference (you rarely need these)</summary>
|
|
61
|
+
|
|
62
|
+
### Planning
|
|
61
63
|
| Command | What it does |
|
|
62
64
|
|---------|-------------|
|
|
63
|
-
| `/qualia-
|
|
64
|
-
| `/qualia-
|
|
65
|
-
| `/
|
|
66
|
-
| `/qualia-
|
|
65
|
+
| `/qualia-discuss-phase` | Clarify decisions before planning |
|
|
66
|
+
| `/qualia-list-phase-assumptions` | Surface hidden assumptions |
|
|
67
|
+
| `/qualia-research-phase` | Research a topic before planning |
|
|
68
|
+
| `/qualia-quick` | Quick one-off tasks without full workflow |
|
|
67
69
|
|
|
68
|
-
###
|
|
70
|
+
### Quality & Design
|
|
69
71
|
| Command | What it does |
|
|
70
72
|
|---------|-------------|
|
|
71
|
-
| `/qualia-
|
|
72
|
-
| `/qualia-
|
|
73
|
-
| `/qualia-
|
|
74
|
-
| `/qualia-progress` | See where the project stands |
|
|
73
|
+
| `/qualia-design` | One-shot design fix (critique + polish + harden + responsive) |
|
|
74
|
+
| `/qualia-optimize` | Find perf, design, and code issues |
|
|
75
|
+
| `/qualia-production-check` | Final audit before client handoff |
|
|
75
76
|
|
|
76
|
-
###
|
|
77
|
+
### Milestone Lifecycle
|
|
77
78
|
| Command | What it does |
|
|
78
79
|
|---------|-------------|
|
|
79
|
-
| `/qualia-
|
|
80
|
-
| `/qualia-
|
|
80
|
+
| `/qualia-audit-milestone` | Verify all requirements met |
|
|
81
|
+
| `/qualia-complete-milestone` | Archive milestone, tag release |
|
|
82
|
+
| `/qualia-plan-milestone-gaps` | Create fix phases from audit gaps |
|
|
83
|
+
| `/qualia-new-milestone` | Start next milestone on existing project |
|
|
84
|
+
| `/client-handoff` | Generate client delivery document |
|
|
81
85
|
|
|
82
|
-
###
|
|
86
|
+
### Deploy (Fawzi only)
|
|
83
87
|
| Command | What it does |
|
|
84
88
|
|---------|-------------|
|
|
85
|
-
| `/
|
|
86
|
-
| `/
|
|
87
|
-
| `/
|
|
88
|
-
| `/memory` | See what Claude remembers |
|
|
89
|
+
| `/ship` | Full deploy pipeline with quality gates |
|
|
90
|
+
| `/deploy` | Quick deploy without gates |
|
|
91
|
+
| `/deploy-verify` | Post-deploy verification |
|
|
89
92
|
|
|
90
|
-
###
|
|
93
|
+
### Specialized Builders
|
|
91
94
|
| Command | What it does |
|
|
92
95
|
|---------|-------------|
|
|
93
|
-
| `/frontend-master` | Premium
|
|
96
|
+
| `/frontend-master` | Premium UI components |
|
|
94
97
|
| `/voice-agent` | Retell AI + ElevenLabs voice agent |
|
|
95
98
|
| `/openrouter-agent` | AI chatbot with OpenRouter |
|
|
96
99
|
| `/mobile-expo` | React Native / Expo mobile app |
|
|
97
100
|
| `/supabase` | Database, auth, edge functions, RLS |
|
|
98
101
|
| `/seo-master` | SEO audit and optimization |
|
|
99
|
-
| `/rag` | RAG system (embeddings + retrieval) |
|
|
100
102
|
|
|
101
|
-
###
|
|
102
|
-
|
|
|
103
|
-
|
|
104
|
-
|
|
|
105
|
-
|
|
|
106
|
-
|
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
### Notes & Memory
|
|
104
|
+
| Command | What it does |
|
|
105
|
+
|---------|-------------|
|
|
106
|
+
| `/qualia-add-todo` | Capture a task for later |
|
|
107
|
+
| `/qualia-check-todos` | Review pending todos |
|
|
108
|
+
| `/learn` | Save a lesson from a mistake |
|
|
109
|
+
|
|
110
|
+
</details>
|
|
109
111
|
|
|
110
112
|
---
|
|
111
113
|
|
|
112
|
-
**Tip:** Most of the time, just describe what you want in plain language.
|
|
114
|
+
**Tip:** Most of the time, just describe what you want in plain language. Or type `/qualia` — it always knows what's next.
|
|
@@ -31,7 +31,7 @@ Parse JSON for: `researcher_model`, `synthesizer_model`, `roadmapper_model`, `pr
|
|
|
31
31
|
**Scan for uploaded files** (PDFs, docs, images). If they mention a non-Qualia stack, ask:
|
|
32
32
|
> "The document mentions {stack}. Use the Qualia stack (Next.js + Supabase + Vercel) or the document's stack?"
|
|
33
33
|
|
|
34
|
-
**Brownfield detection:** If existing code found without a codebase map,
|
|
34
|
+
**Brownfield detection:** If existing code found without a codebase map, scan the codebase structure before proceeding.
|
|
35
35
|
|
|
36
36
|
### 1. Deep Questioning
|
|
37
37
|
|
|
@@ -88,18 +88,24 @@ node ~/.claude/qualia-framework/bin/qualia-tools.js commit "docs: initialize pro
|
|
|
88
88
|
|
|
89
89
|
### 4. Workflow Preferences
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
Use sensible defaults. Only ask ONE question:
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
```
|
|
94
|
+
"Use recommended settings? (Interactive mode, standard depth, all quality agents, balanced profile)"
|
|
95
|
+
→ Yes (Recommended) — use all defaults
|
|
96
|
+
→ Customize — show individual options
|
|
97
|
+
```
|
|
97
98
|
|
|
98
|
-
**
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
99
|
+
**Defaults** (written to `.planning/config.json`):
|
|
100
|
+
- Mode: Interactive
|
|
101
|
+
- Depth: Standard (5-8 phases)
|
|
102
|
+
- Execution: Parallel
|
|
103
|
+
- Researcher: enabled
|
|
104
|
+
- Plan Checker: enabled
|
|
105
|
+
- Verifier: enabled
|
|
106
|
+
- Model Profile: Balanced
|
|
107
|
+
|
|
108
|
+
**If "Customize":** Show the individual options as AskUserQuestion. Otherwise skip straight to config.json creation.
|
|
103
109
|
|
|
104
110
|
Write `.planning/config.json` with all settings.
|
|
105
111
|
|
|
@@ -145,19 +151,9 @@ node ~/.claude/qualia-framework/bin/qualia-tools.js commit "docs: define v1 requ
|
|
|
145
151
|
|
|
146
152
|
Spawn qualia-roadmapper agent with PROJECT.md, REQUIREMENTS.md, research, config, and the project type template.
|
|
147
153
|
|
|
148
|
-
**
|
|
149
|
-
|
|
150
|
-
After all feature phases, the roadmap must always end with:
|
|
154
|
+
**Roadmap contains FEATURE PHASES ONLY.** Do NOT add review, deploy, or handoff phases to the roadmap. The finish line system (`/qualia-complete-milestone` → polish → review → PR → deploy → handoff) handles the 70%-to-100% journey automatically after all feature phases are done. Adding them to the roadmap would cause employees to do them twice.
|
|
151
155
|
|
|
152
|
-
|
|
153
|
-
|-------|------|---------|
|
|
154
|
-
| N-2 | **Quality Review & Polish** | Run `/qualia-review`, fix issues, run design polish (`/critique` → `/polish` → `/harden`). No new features. |
|
|
155
|
-
| N-1 | **Deploy & Verify** | Run `/ship` to production. Post-deploy verification (HTTP 200, auth, console, latency, UptimeRobot). |
|
|
156
|
-
| N | **Client Handoff** | Run `/client-handoff` to generate delivery document. Final production check (`/qualia-production-check`). Hand credentials, docs, and access to client. |
|
|
157
|
-
|
|
158
|
-
These are NOT optional. Every client project needs review, deploy, and handoff. The employee should never have to discover these steps on their own.
|
|
159
|
-
|
|
160
|
-
**If using a project type template:** Use its phases as the feature scaffold, then append the 3 mandatory final phases.
|
|
156
|
+
**If using a project type template:** Use its phases as the feature scaffold.
|
|
161
157
|
|
|
162
158
|
**Present roadmap to employee for approval.** Show phase table with goals, requirements mapped, and success criteria. Loop until approved.
|
|
163
159
|
|
|
@@ -181,9 +177,16 @@ Walk the employee through setup. If they want to skip: note `env_setup: pending`
|
|
|
181
177
|
|
|
182
178
|
### 9. Design Context (frontend projects)
|
|
183
179
|
|
|
184
|
-
If the project involves frontend work (detected from roadmap or project type):
|
|
180
|
+
If the project involves frontend work (detected from roadmap or project type), create `.planning/DESIGN.md` with a brief design consultation:
|
|
181
|
+
|
|
182
|
+
Ask the employee 3 questions using AskUserQuestion:
|
|
183
|
+
1. **Aesthetic direction** — "What feel should this project have?" (options: Clean/minimal, Bold/striking, Warm/friendly, Corporate/professional)
|
|
184
|
+
2. **Color palette** — "Any brand colors or preferences?" (freeform — or offer to pick based on aesthetic)
|
|
185
|
+
3. **Reference sites** — "Any websites you'd like it to look/feel like?" (freeform)
|
|
186
|
+
|
|
187
|
+
Write `.planning/DESIGN.md` with the answers. This is read by the frontend guard before any UI work.
|
|
185
188
|
|
|
186
|
-
|
|
189
|
+
**Do NOT run `/critique` here** — there's no code to critique yet. Design consultation creates the brief; `/critique` reviews implemented UI later.
|
|
187
190
|
|
|
188
191
|
### 10. Done — Present Summary
|
|
189
192
|
|
|
@@ -208,10 +211,9 @@ Run `/critique` to gather design context — brand colors, typography preference
|
|
|
208
211
|
|
|
209
212
|
## The Full Journey
|
|
210
213
|
|
|
211
|
-
Phase 1-{N
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
Phase {N}: Client Handoff
|
|
214
|
+
Phase 1-{N}: Feature phases (build the product)
|
|
215
|
+
↓ after all phases verified
|
|
216
|
+
Finish Line: Polish → Review → PR → Deploy → Handoff (automated by /qualia)
|
|
215
217
|
|
|
216
218
|
## ▶ Next
|
|
217
219
|
|
|
@@ -224,7 +226,7 @@ Run `/qualia-plan-phase 1` to plan the first phase.
|
|
|
224
226
|
|-------|------|------|
|
|
225
227
|
| `qualia-project-researcher` | `~/.claude/agents/qualia-project-researcher.md` | Domain ecosystem research (4 parallel) |
|
|
226
228
|
| `qualia-research-synthesizer` | `~/.claude/agents/qualia-research-synthesizer.md` | Synthesizes parallel research |
|
|
227
|
-
| `qualia-roadmapper` | `~/.claude/agents/qualia-roadmapper.md` | Creates ROADMAP.md with
|
|
229
|
+
| `qualia-roadmapper` | `~/.claude/agents/qualia-roadmapper.md` | Creates ROADMAP.md with feature phases |
|
|
228
230
|
|
|
229
231
|
---
|
|
230
232
|
> Stuck? Type `/qualia-idk` · Lost? Type `/qualia-help`
|