qualia-framework 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -0
- package/bin/cli.js +519 -0
- package/framework/agents/architecture-strategist.md +53 -0
- package/framework/agents/backend-agent.md +150 -0
- package/framework/agents/code-simplicity-reviewer.md +86 -0
- package/framework/agents/frontend-agent.md +111 -0
- package/framework/agents/kieran-typescript-reviewer.md +96 -0
- package/framework/agents/performance-oracle.md +111 -0
- package/framework/agents/qualia-codebase-mapper.md +760 -0
- package/framework/agents/qualia-debugger.md +1203 -0
- package/framework/agents/qualia-executor.md +881 -0
- package/framework/agents/qualia-integration-checker.md +423 -0
- package/framework/agents/qualia-phase-researcher.md +453 -0
- package/framework/agents/qualia-plan-checker.md +699 -0
- package/framework/agents/qualia-planner.md +1241 -0
- package/framework/agents/qualia-project-researcher.md +602 -0
- package/framework/agents/qualia-research-synthesizer.md +236 -0
- package/framework/agents/qualia-roadmapper.md +605 -0
- package/framework/agents/qualia-verifier.md +685 -0
- package/framework/agents/team-orchestrator.md +228 -0
- package/framework/agents/teams/full-stack-team.md +48 -0
- package/framework/agents/teams/optimize-team.md +53 -0
- package/framework/agents/teams/review-team.md +62 -0
- package/framework/agents/teams/ship-team.md +86 -0
- package/framework/agents/test-agent.md +182 -0
- package/framework/askpass.sh +2 -0
- package/framework/commands/design.md +53 -0
- package/framework/commands/quick-db.md +22 -0
- package/framework/config/retention.json +35 -0
- package/framework/core/PRINCIPLES.md +77 -0
- package/framework/hooks/auto-format.sh +45 -0
- package/framework/hooks/block-env-edit.sh +42 -0
- package/framework/hooks/branch-guard.sh +46 -0
- package/framework/hooks/confirm-delete.sh +56 -0
- package/framework/hooks/migration-validate.sh +68 -0
- package/framework/hooks/notification-speak.sh +15 -0
- package/framework/hooks/pre-commit.sh +80 -0
- package/framework/hooks/pre-compact.sh +55 -0
- package/framework/hooks/pre-deploy-gate.sh +151 -0
- package/framework/hooks/qualia-colors.sh +32 -0
- package/framework/hooks/retention-cleanup.sh +43 -0
- package/framework/hooks/save-session-state.sh +153 -0
- package/framework/hooks/session-context-loader.sh +28 -0
- package/framework/hooks/session-learn.sh +30 -0
- package/framework/knowledge/claudecode-bible.md +1384 -0
- package/framework/knowledge/client-prefs.md +22 -0
- package/framework/knowledge/common-fixes.md +25 -0
- package/framework/knowledge/deployment-map.md +35 -0
- package/framework/knowledge/email-signature.html +1 -0
- package/framework/knowledge/employees.md +8 -0
- package/framework/knowledge/learned-patterns.md +51 -0
- package/framework/knowledge/optimization-research-2026.md +137 -0
- package/framework/knowledge/qualia-context.md +67 -0
- package/framework/knowledge/supabase-patterns.md +50 -0
- package/framework/knowledge/voice-agent-patterns.md +46 -0
- package/framework/qualia-engine/VERSION +1 -0
- package/framework/qualia-engine/bin/qualia-tools.js +2160 -0
- package/framework/qualia-engine/bin/qualia-tools.test.js +1054 -0
- package/framework/qualia-engine/references/checkpoints.md +775 -0
- package/framework/qualia-engine/references/continuation-format.md +249 -0
- package/framework/qualia-engine/references/decimal-phase-calculation.md +65 -0
- package/framework/qualia-engine/references/design-quality.md +56 -0
- package/framework/qualia-engine/references/git-integration.md +254 -0
- package/framework/qualia-engine/references/git-planning-commit.md +50 -0
- package/framework/qualia-engine/references/model-profile-resolution.md +32 -0
- package/framework/qualia-engine/references/model-profiles.md +73 -0
- package/framework/qualia-engine/references/phase-argument-parsing.md +61 -0
- package/framework/qualia-engine/references/planning-config.md +195 -0
- package/framework/qualia-engine/references/questioning.md +141 -0
- package/framework/qualia-engine/references/tdd.md +263 -0
- package/framework/qualia-engine/references/ui-brand.md +160 -0
- package/framework/qualia-engine/references/verification-patterns.md +612 -0
- package/framework/qualia-engine/templates/DEBUG.md +159 -0
- package/framework/qualia-engine/templates/DESIGN.md +81 -0
- package/framework/qualia-engine/templates/UAT.md +247 -0
- package/framework/qualia-engine/templates/codebase/architecture.md +255 -0
- package/framework/qualia-engine/templates/codebase/concerns.md +310 -0
- package/framework/qualia-engine/templates/codebase/conventions.md +307 -0
- package/framework/qualia-engine/templates/codebase/integrations.md +280 -0
- package/framework/qualia-engine/templates/codebase/stack.md +186 -0
- package/framework/qualia-engine/templates/codebase/structure.md +285 -0
- package/framework/qualia-engine/templates/codebase/testing.md +480 -0
- package/framework/qualia-engine/templates/config.json +35 -0
- package/framework/qualia-engine/templates/context.md +283 -0
- package/framework/qualia-engine/templates/continue-here.md +78 -0
- package/framework/qualia-engine/templates/debug-subagent-prompt.md +91 -0
- package/framework/qualia-engine/templates/discovery.md +146 -0
- package/framework/qualia-engine/templates/milestone-archive.md +123 -0
- package/framework/qualia-engine/templates/milestone.md +115 -0
- package/framework/qualia-engine/templates/phase-prompt.md +567 -0
- package/framework/qualia-engine/templates/planner-subagent-prompt.md +117 -0
- package/framework/qualia-engine/templates/project.md +184 -0
- package/framework/qualia-engine/templates/projects/ai-agent.md +156 -0
- package/framework/qualia-engine/templates/projects/mobile-app.md +181 -0
- package/framework/qualia-engine/templates/projects/voice-agent.md +134 -0
- package/framework/qualia-engine/templates/projects/website.md +137 -0
- package/framework/qualia-engine/templates/requirements.md +231 -0
- package/framework/qualia-engine/templates/research-project/ARCHITECTURE.md +204 -0
- package/framework/qualia-engine/templates/research-project/FEATURES.md +147 -0
- package/framework/qualia-engine/templates/research-project/PITFALLS.md +200 -0
- package/framework/qualia-engine/templates/research-project/STACK.md +120 -0
- package/framework/qualia-engine/templates/research-project/SUMMARY.md +170 -0
- package/framework/qualia-engine/templates/research.md +552 -0
- package/framework/qualia-engine/templates/roadmap.md +202 -0
- package/framework/qualia-engine/templates/state.md +176 -0
- package/framework/qualia-engine/templates/summary-complex.md +59 -0
- package/framework/qualia-engine/templates/summary-minimal.md +41 -0
- package/framework/qualia-engine/templates/summary-standard.md +48 -0
- package/framework/qualia-engine/templates/summary.md +246 -0
- package/framework/qualia-engine/templates/user-setup.md +311 -0
- package/framework/qualia-engine/templates/verification-report.md +322 -0
- package/framework/qualia-engine/workflows/add-phase.md +179 -0
- package/framework/qualia-engine/workflows/add-todo.md +157 -0
- package/framework/qualia-engine/workflows/audit-milestone.md +241 -0
- package/framework/qualia-engine/workflows/check-todos.md +176 -0
- package/framework/qualia-engine/workflows/complete-milestone.md +858 -0
- package/framework/qualia-engine/workflows/diagnose-issues.md +219 -0
- package/framework/qualia-engine/workflows/discovery-phase.md +289 -0
- package/framework/qualia-engine/workflows/discuss-phase.md +534 -0
- package/framework/qualia-engine/workflows/execute-phase.md +559 -0
- package/framework/qualia-engine/workflows/execute-plan.md +438 -0
- package/framework/qualia-engine/workflows/help.md +470 -0
- package/framework/qualia-engine/workflows/insert-phase.md +220 -0
- package/framework/qualia-engine/workflows/list-phase-assumptions.md +178 -0
- package/framework/qualia-engine/workflows/map-codebase.md +327 -0
- package/framework/qualia-engine/workflows/new-milestone.md +363 -0
- package/framework/qualia-engine/workflows/new-project.md +1037 -0
- package/framework/qualia-engine/workflows/pause-work.md +122 -0
- package/framework/qualia-engine/workflows/plan-milestone-gaps.md +256 -0
- package/framework/qualia-engine/workflows/plan-phase.md +422 -0
- package/framework/qualia-engine/workflows/progress.md +354 -0
- package/framework/qualia-engine/workflows/quick.md +252 -0
- package/framework/qualia-engine/workflows/remove-phase.md +326 -0
- package/framework/qualia-engine/workflows/research-phase.md +74 -0
- package/framework/qualia-engine/workflows/resume-project.md +306 -0
- package/framework/qualia-engine/workflows/set-profile.md +80 -0
- package/framework/qualia-engine/workflows/settings.md +145 -0
- package/framework/qualia-engine/workflows/transition.md +556 -0
- package/framework/qualia-engine/workflows/update.md +197 -0
- package/framework/qualia-engine/workflows/verify-phase.md +195 -0
- package/framework/qualia-engine/workflows/verify-work.md +625 -0
- package/framework/rules/context7.md +11 -0
- package/framework/rules/deployment.md +29 -0
- package/framework/rules/frontend.md +33 -0
- package/framework/rules/security.md +12 -0
- package/framework/rules/speed.md +20 -0
- package/framework/scripts/__pycache__/say.cpython-314.pyc +0 -0
- package/framework/scripts/apply-retention.sh +120 -0
- package/framework/scripts/bootstrap-pop-os.sh +354 -0
- package/framework/scripts/claude-voice +13 -0
- package/framework/scripts/cleanup.sh +131 -0
- package/framework/scripts/cowork-mode.sh +141 -0
- package/framework/scripts/generate-project-claude-md.sh +153 -0
- package/framework/scripts/load-test-webhook.js +172 -0
- package/framework/scripts/say.py +236 -0
- package/framework/scripts/showcase-video-recorder/ffmpeg-builder.js +167 -0
- package/framework/scripts/showcase-video-recorder/playwright-helpers.js +216 -0
- package/framework/scripts/speak.py +55 -0
- package/framework/scripts/speak.sh +18 -0
- package/framework/scripts/status.sh +138 -0
- package/framework/scripts/sync-to-framework.sh +65 -0
- package/framework/scripts/voice-hotkey.py +227 -0
- package/framework/scripts/voice-input.sh +51 -0
- package/framework/skills/animate/SKILL.md +202 -0
- package/framework/skills/bolder/SKILL.md +144 -0
- package/framework/skills/browser-qa/SKILL.md +536 -0
- package/framework/skills/clarify/SKILL.md +179 -0
- package/framework/skills/colorize/SKILL.md +170 -0
- package/framework/skills/critique/SKILL.md +126 -0
- package/framework/skills/deep-research/SKILL.md +271 -0
- package/framework/skills/delight/SKILL.md +329 -0
- package/framework/skills/deploy/SKILL.md +261 -0
- package/framework/skills/deploy-verify/SKILL.md +377 -0
- package/framework/skills/deploy-verify/scripts/canary-check.sh +206 -0
- package/framework/skills/deploy-verify/scripts/check-console-errors.js +147 -0
- package/framework/skills/deploy-verify/scripts/check-cwv.js +139 -0
- package/framework/skills/deploy-verify/scripts/project-detect.sh +84 -0
- package/framework/skills/deploy-verify/scripts/verify.sh +548 -0
- package/framework/skills/design-quieter/SKILL.md +130 -0
- package/framework/skills/distill/SKILL.md +149 -0
- package/framework/skills/docs-lookup/SKILL.md +78 -0
- package/framework/skills/fcm-notifications/SKILL.md +125 -0
- package/framework/skills/financial-ledger/SKILL.md +1039 -0
- package/framework/skills/frontend-master/NOTICE.md +4 -0
- package/framework/skills/frontend-master/SKILL.md +127 -0
- package/framework/skills/frontend-master/reference/color-and-contrast.md +132 -0
- package/framework/skills/frontend-master/reference/interaction-design.md +123 -0
- package/framework/skills/frontend-master/reference/motion-design.md +99 -0
- package/framework/skills/frontend-master/reference/responsive-design.md +114 -0
- package/framework/skills/frontend-master/reference/spatial-design.md +100 -0
- package/framework/skills/frontend-master/reference/typography.md +131 -0
- package/framework/skills/frontend-master/reference/ux-writing.md +107 -0
- package/framework/skills/harden/SKILL.md +357 -0
- package/framework/skills/i18n-rtl/SKILL.md +752 -0
- package/framework/skills/learn/SKILL.md +71 -0
- package/framework/skills/memory/SKILL.md +50 -0
- package/framework/skills/mobile-expo/SKILL.md +864 -0
- package/framework/skills/mobile-expo/references/store-checklist.md +550 -0
- package/framework/skills/nestjs-backend/README.md +73 -0
- package/framework/skills/nestjs-backend/SKILL.md +446 -0
- package/framework/skills/nestjs-backend/references/templates.md +1173 -0
- package/framework/skills/normalize/SKILL.md +79 -0
- package/framework/skills/onboard/SKILL.md +242 -0
- package/framework/skills/polish/SKILL.md +209 -0
- package/framework/skills/pr/SKILL.md +66 -0
- package/framework/skills/qualia/SKILL.md +153 -0
- package/framework/skills/qualia-add-todo/SKILL.md +68 -0
- package/framework/skills/qualia-audit-milestone/SKILL.md +92 -0
- package/framework/skills/qualia-check-todos/SKILL.md +55 -0
- package/framework/skills/qualia-complete-milestone/SKILL.md +108 -0
- package/framework/skills/qualia-debug/SKILL.md +149 -0
- package/framework/skills/qualia-design/SKILL.md +203 -0
- package/framework/skills/qualia-discuss-phase/SKILL.md +72 -0
- package/framework/skills/qualia-execute-phase/SKILL.md +86 -0
- package/framework/skills/qualia-help/SKILL.md +67 -0
- package/framework/skills/qualia-idk/SKILL.md +352 -0
- package/framework/skills/qualia-list-phase-assumptions/SKILL.md +67 -0
- package/framework/skills/qualia-new-milestone/SKILL.md +72 -0
- package/framework/skills/qualia-new-project/SKILL.md +92 -0
- package/framework/skills/qualia-optimize/SKILL.md +417 -0
- package/framework/skills/qualia-pause-work/SKILL.md +96 -0
- package/framework/skills/qualia-plan-milestone-gaps/SKILL.md +57 -0
- package/framework/skills/qualia-plan-phase/SKILL.md +101 -0
- package/framework/skills/qualia-progress/SKILL.md +53 -0
- package/framework/skills/qualia-quick/SKILL.md +89 -0
- package/framework/skills/qualia-research-phase/SKILL.md +88 -0
- package/framework/skills/qualia-resume-work/SKILL.md +62 -0
- package/framework/skills/qualia-review/SKILL.md +263 -0
- package/framework/skills/qualia-start/SKILL.md +182 -0
- package/framework/skills/qualia-verify-work/SKILL.md +105 -0
- package/framework/skills/qualia-workflow/SKILL.md +130 -0
- package/framework/skills/rag/SKILL.md +750 -0
- package/framework/skills/responsive/SKILL.md +231 -0
- package/framework/skills/retro/SKILL.md +284 -0
- package/framework/skills/sakani-conventions/SKILL.md +136 -0
- package/framework/skills/sakani-conventions/evals/evals.json +23 -0
- package/framework/skills/sakani-conventions/references/entities.md +365 -0
- package/framework/skills/sakani-conventions/references/error-codes.md +95 -0
- package/framework/skills/seo-master/SKILL.md +490 -0
- package/framework/skills/seo-master/references/checklist.md +199 -0
- package/framework/skills/seo-master/references/structured-data.md +609 -0
- package/framework/skills/ship/SKILL.md +202 -0
- package/framework/skills/stack-researcher/SKILL.md +215 -0
- package/framework/skills/status/SKILL.md +154 -0
- package/framework/skills/status/scripts/health-check.sh +562 -0
- package/framework/skills/subscription-payments/SKILL.md +250 -0
- package/framework/skills/supabase/SKILL.md +973 -0
- package/framework/skills/supabase/references/templates.md +159 -0
- package/framework/skills/team/SKILL.md +67 -0
- package/framework/skills/test-runner/SKILL.md +202 -0
- package/framework/skills/voice-agent/SKILL.md +407 -0
- package/framework/skills/zoho-workflow/SKILL.md +51 -0
- package/framework/statusline-command.sh +117 -0
- package/package.json +24 -0
- package/profiles/fawzi.json +16 -0
- package/profiles/hasan.json +16 -0
- package/profiles/moayad.json +16 -0
- package/templates/CLAUDE-owner.md +52 -0
- package/templates/CLAUDE.md.hbs +58 -0
- package/templates/env.claude.template +12 -0
- package/templates/settings.json +141 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qualia
|
|
3
|
+
description: Smart Qualia router - reads project state and auto-routes to the right command
|
|
4
|
+
tags: [qualia, workflow, auto-route]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Qualia Smart Router
|
|
8
|
+
|
|
9
|
+
Single entry point that reads project state and routes to the appropriate Qualia action.
|
|
10
|
+
|
|
11
|
+
## How It Works
|
|
12
|
+
|
|
13
|
+
1. Detect if we're in a Qualia project (has .planning/)
|
|
14
|
+
2. Read STATE.md to find current position
|
|
15
|
+
3. Analyze what's needed next
|
|
16
|
+
4. Route to the correct /qualia: command OR execute directly
|
|
17
|
+
|
|
18
|
+
## Execution
|
|
19
|
+
|
|
20
|
+
### Step 1: Detect Project State
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# Check if .planning exists
|
|
24
|
+
if [ ! -d ".planning" ]; then
|
|
25
|
+
echo "NO_PROJECT"
|
|
26
|
+
exit 0
|
|
27
|
+
fi
|
|
28
|
+
|
|
29
|
+
# Check for STATE.md
|
|
30
|
+
if [ -f ".planning/STATE.md" ]; then
|
|
31
|
+
cat .planning/STATE.md
|
|
32
|
+
fi
|
|
33
|
+
|
|
34
|
+
# Check for ROADMAP.md
|
|
35
|
+
if [ -f ".planning/ROADMAP.md" ]; then
|
|
36
|
+
cat .planning/ROADMAP.md
|
|
37
|
+
fi
|
|
38
|
+
|
|
39
|
+
# List phase directories
|
|
40
|
+
ls -la .planning/phases/ 2>/dev/null || echo "NO_PHASES"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Step 2: Parse Current Position
|
|
44
|
+
|
|
45
|
+
From STATE.md, extract:
|
|
46
|
+
- `current_phase`: Which phase number we're on
|
|
47
|
+
- `phase_status`: planning | executing | verifying | complete
|
|
48
|
+
- `blockers`: Any blockers or decisions needed
|
|
49
|
+
|
|
50
|
+
From ROADMAP.md, extract:
|
|
51
|
+
- Total phases
|
|
52
|
+
- Which phases are complete
|
|
53
|
+
- Next phase info
|
|
54
|
+
|
|
55
|
+
### Step 3: Route Decision Tree
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
NO .planning/ directory?
|
|
59
|
+
→ "No Qualia project. Run /qualia-new-project to initialize."
|
|
60
|
+
|
|
61
|
+
Has .planning/ but no STATE.md?
|
|
62
|
+
→ "Project initialized but no state. Run /qualia-progress to diagnose."
|
|
63
|
+
|
|
64
|
+
STATE.md exists:
|
|
65
|
+
|
|
66
|
+
phase_status = "needs_discussion"?
|
|
67
|
+
→ Route to: /qualia-discuss-phase {current_phase}
|
|
68
|
+
|
|
69
|
+
phase_status = "discussed" or "needs_planning"?
|
|
70
|
+
→ Route to: /qualia-plan-phase {current_phase}
|
|
71
|
+
|
|
72
|
+
phase_status = "planned" or "needs_execution"?
|
|
73
|
+
→ Route to: /qualia-execute-phase {current_phase}
|
|
74
|
+
|
|
75
|
+
phase_status = "executed" or "needs_verification"?
|
|
76
|
+
→ Route to: /qualia-verify-work {current_phase}
|
|
77
|
+
|
|
78
|
+
phase_status = "verified" or "complete"?
|
|
79
|
+
→ Check if more phases exist
|
|
80
|
+
→ If yes: increment phase, route to discuss
|
|
81
|
+
→ If no: "Milestone complete! Run /qualia-complete-milestone"
|
|
82
|
+
|
|
83
|
+
blockers exist?
|
|
84
|
+
→ Show blockers, ask user how to proceed
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Step 4: Execute or Prompt
|
|
88
|
+
|
|
89
|
+
**If clear next action:**
|
|
90
|
+
Invoke the appropriate skill directly using:
|
|
91
|
+
```
|
|
92
|
+
Skill(skill="qualia-{action}", args="{phase_number}")
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**If ambiguous:**
|
|
96
|
+
Present options to user:
|
|
97
|
+
```
|
|
98
|
+
Current: Phase {N} - {status}
|
|
99
|
+
|
|
100
|
+
Options:
|
|
101
|
+
1. Continue with {recommended_action}
|
|
102
|
+
2. Check progress (/qualia-progress)
|
|
103
|
+
3. Quick task (/qualia-quick)
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Output Format
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
## Qualia Status
|
|
110
|
+
|
|
111
|
+
**Project:** {project_name from PROJECT.md or directory name}
|
|
112
|
+
**Phase:** {N} of {total} - {phase_name}
|
|
113
|
+
**Status:** {status_emoji} {status_description}
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
**Next:** /qualia:{action} {phase}
|
|
118
|
+
|
|
119
|
+
{If blockers: show them}
|
|
120
|
+
{If decision needed: present options}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Status Emojis
|
|
124
|
+
|
|
125
|
+
- `planning` - Planning phase
|
|
126
|
+
- `executing` - Building
|
|
127
|
+
- `verifying` - Testing
|
|
128
|
+
- `complete` - Done
|
|
129
|
+
- `blocked` - Needs input
|
|
130
|
+
|
|
131
|
+
## Quick Actions
|
|
132
|
+
|
|
133
|
+
If user provides argument:
|
|
134
|
+
|
|
135
|
+
- `/qualia plan` → Route to /qualia-plan-phase for current phase
|
|
136
|
+
- `/qualia exec` → Route to /qualia-execute-phase for current phase
|
|
137
|
+
- `/qualia verify` → Route to /qualia-verify-work for current phase
|
|
138
|
+
- `/qualia next` → Move to next phase
|
|
139
|
+
- `/qualia quick {description}` → Pass to /qualia-quick
|
|
140
|
+
- `/qualia optimize` → Route to /qualia-optimize (full optimization pass)
|
|
141
|
+
- `/qualia idk` → Route to /qualia-idk (what should I do next?)
|
|
142
|
+
|
|
143
|
+
## No Project Fallback
|
|
144
|
+
|
|
145
|
+
If no .planning/ exists:
|
|
146
|
+
|
|
147
|
+
```
|
|
148
|
+
No Qualia project detected in current directory.
|
|
149
|
+
|
|
150
|
+
Options:
|
|
151
|
+
1. /qualia-new-project - Initialize new project with full workflow
|
|
152
|
+
2. /qualia-quick - Run a quick task without project setup
|
|
153
|
+
```
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qualia-add-todo
|
|
3
|
+
description: "Capture ideas and tasks as structured todos in the .planning system. Use this skill whenever the user says 'add todo', 'remember this', 'note this down', 'add task', 'todo', or wants to capture an idea or task for later without acting on it now. Also trigger when user mentions 'backlog item', 'future task', or needs to save something for later in a structured way."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Qualia Add Todo — Structured Task Capture
|
|
7
|
+
|
|
8
|
+
Capture ideas and tasks as structured todo files in the `.planning/todos/` directory.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
`/qualia-add-todo "Add dark mode support"` — Capture a new todo
|
|
13
|
+
`/qualia-add-todo "Optimize image loading" --area=performance` — With explicit area
|
|
14
|
+
|
|
15
|
+
## Process
|
|
16
|
+
|
|
17
|
+
### 1. Setup
|
|
18
|
+
|
|
19
|
+
Ensure the todos directory exists:
|
|
20
|
+
```bash
|
|
21
|
+
mkdir -p .planning/todos
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Reference: `~/.claude/qualia-engine/workflows/add-todo.md`
|
|
25
|
+
|
|
26
|
+
### 2. Extract Content
|
|
27
|
+
|
|
28
|
+
Parse the user's input to determine:
|
|
29
|
+
- **Title** — Short description of the task
|
|
30
|
+
- **Details** — Any additional context provided
|
|
31
|
+
- **Area** — Infer from content if not specified (e.g., "dark mode" → `ui`, "API rate limiting" → `backend`, "fix typo" → `content`)
|
|
32
|
+
|
|
33
|
+
### 3. Check for Duplicates
|
|
34
|
+
|
|
35
|
+
Scan existing todos in `.planning/todos/` for similar items. If a near-duplicate exists, tell the user and ask if they want to update the existing one or create a new one.
|
|
36
|
+
|
|
37
|
+
### 4. Create Todo File
|
|
38
|
+
|
|
39
|
+
Write to `.planning/todos/{slug}.md`:
|
|
40
|
+
|
|
41
|
+
```markdown
|
|
42
|
+
---
|
|
43
|
+
title: "{title}"
|
|
44
|
+
area: "{area}"
|
|
45
|
+
priority: normal
|
|
46
|
+
status: pending
|
|
47
|
+
created: {YYYY-MM-DD}
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
# {title}
|
|
51
|
+
|
|
52
|
+
{details and context}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### 5. Update STATE.md
|
|
56
|
+
|
|
57
|
+
Add entry to the todos section of `.planning/STATE.md` (create section if it doesn't exist).
|
|
58
|
+
|
|
59
|
+
### 6. Commit
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
git add .planning/todos/{slug}.md .planning/STATE.md
|
|
63
|
+
git commit -m "todo: add {title}"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### 7. Confirm
|
|
67
|
+
|
|
68
|
+
> "Todo captured: {title}. Run `/qualia-check-todos` to review your backlog."
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qualia-audit-milestone
|
|
3
|
+
description: "Verify milestone definition of done — aggregate verification results, check tech debt, run integration tests. Use this skill whenever the user says 'audit milestone', 'check milestone', 'milestone review', 'are we done', or wants to verify that all phases of a milestone meet the definition of done before completing it. Also trigger when user mentions 'milestone audit', 'definition of done check', or needs to validate overall milestone readiness."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Qualia Audit Milestone — Milestone Verification
|
|
7
|
+
|
|
8
|
+
Orchestrate a full audit of the current milestone to verify all requirements are met before completion.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
`/qualia-audit-milestone` — Audit current milestone
|
|
13
|
+
|
|
14
|
+
## Process
|
|
15
|
+
|
|
16
|
+
### 1. Load Context
|
|
17
|
+
|
|
18
|
+
Read all project files:
|
|
19
|
+
- `.planning/PROJECT.md`
|
|
20
|
+
- `.planning/REQUIREMENTS.md` — Definition of Done
|
|
21
|
+
- `.planning/ROADMAP.md` — All phases
|
|
22
|
+
- `.planning/config.json`
|
|
23
|
+
|
|
24
|
+
Reference: `~/.claude/qualia-engine/workflows/audit-milestone.md`
|
|
25
|
+
|
|
26
|
+
### 2. Read Verification Results
|
|
27
|
+
|
|
28
|
+
For each completed phase, read its VERIFICATION.md or UAT.md files. Aggregate results:
|
|
29
|
+
- How many phases verified passing
|
|
30
|
+
- How many have outstanding issues
|
|
31
|
+
- What gaps remain
|
|
32
|
+
|
|
33
|
+
### 3. Check Requirements
|
|
34
|
+
|
|
35
|
+
Walk through every item in REQUIREMENTS.md Definition of Done:
|
|
36
|
+
- Is each requirement addressed by a completed phase?
|
|
37
|
+
- Is each requirement verified as working?
|
|
38
|
+
- Flag any unmet requirements
|
|
39
|
+
|
|
40
|
+
### 4. Tech Debt Aggregation
|
|
41
|
+
|
|
42
|
+
Scan phase summaries and verification files for noted tech debt, workarounds, or deferred items. Compile a tech debt list.
|
|
43
|
+
|
|
44
|
+
### 5. Shipping Checklist Audit
|
|
45
|
+
|
|
46
|
+
Run the full shipping checklist from `~/Projects/qualia-erp/docs/completion-checklists.md` as part of the audit.
|
|
47
|
+
|
|
48
|
+
Detect project type from `.planning/PROJECT.md` and load the matching checklist:
|
|
49
|
+
- **website** → "Website-Specific Checklist" + "Universal Checklist"
|
|
50
|
+
- **agent** → "AI Agent Checklist" + "Universal Checklist"
|
|
51
|
+
- **voice** → "Voice Agent Checklist" + "Universal Checklist"
|
|
52
|
+
- **mobile** → "Mobile App Checklist" + "Universal Checklist"
|
|
53
|
+
- **platform** → "Platform with LLM Checklist" + "Universal Checklist"
|
|
54
|
+
|
|
55
|
+
For every checklist item, run automated verification where possible. Include a "Shipping Checklist" section in the audit report with PASS/WARN/FAIL per item. FAIL items contribute to the overall PASS/FAIL decision.
|
|
56
|
+
|
|
57
|
+
### 6. Integration Check
|
|
58
|
+
|
|
59
|
+
Spawn an integration checker to verify cross-phase functionality:
|
|
60
|
+
- Do features from different phases work together?
|
|
61
|
+
- Are there any conflicts or regressions?
|
|
62
|
+
- End-to-end user flows work?
|
|
63
|
+
|
|
64
|
+
### 7. Produce Audit Report
|
|
65
|
+
|
|
66
|
+
Write `v{version}-MILESTONE-AUDIT.md`:
|
|
67
|
+
|
|
68
|
+
```markdown
|
|
69
|
+
# Milestone v{version} Audit
|
|
70
|
+
|
|
71
|
+
## Requirements Status
|
|
72
|
+
| Requirement | Phase | Verified | Status |
|
|
73
|
+
|------------|-------|----------|--------|
|
|
74
|
+
| ... | ... | ... | ✅/❌ |
|
|
75
|
+
|
|
76
|
+
## Gaps
|
|
77
|
+
- List of unmet requirements or failing tests
|
|
78
|
+
|
|
79
|
+
## Tech Debt
|
|
80
|
+
- Items deferred during implementation
|
|
81
|
+
|
|
82
|
+
## Integration Results
|
|
83
|
+
- Cross-phase test outcomes
|
|
84
|
+
|
|
85
|
+
## Overall: PASS / FAIL
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 8. Route
|
|
89
|
+
|
|
90
|
+
**If PASS**: "Milestone audit passed. Run `/qualia-complete-milestone` to archive and tag."
|
|
91
|
+
|
|
92
|
+
**If FAIL**: "Audit found gaps. Run `/qualia-plan-milestone-gaps` to create fix phases."
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qualia-check-todos
|
|
3
|
+
description: "List and manage pending todos with filtering and interactive routing. Use this skill whenever the user says 'check todos', 'show todos', 'what todos', 'backlog', 'pending tasks', or wants to review their captured todo items. Also trigger when user mentions 'todo list', 'what's in the backlog', or needs to pick a todo to work on."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Qualia Check Todos — Todo Review & Routing
|
|
7
|
+
|
|
8
|
+
List pending todos with area filtering, interactive selection, and action routing.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
`/qualia-check-todos` — Show all pending todos
|
|
13
|
+
`/qualia-check-todos --area=ui` — Filter by area
|
|
14
|
+
`/qualia-check-todos --priority=high` — Filter by priority
|
|
15
|
+
|
|
16
|
+
## Process
|
|
17
|
+
|
|
18
|
+
### 1. Load Todos
|
|
19
|
+
|
|
20
|
+
Read all files in `.planning/todos/`. Parse frontmatter for status, area, priority, created date.
|
|
21
|
+
|
|
22
|
+
Also read `.planning/STATE.md` and `.planning/ROADMAP.md` for project context.
|
|
23
|
+
|
|
24
|
+
Reference: `~/.claude/qualia-engine/workflows/check-todos.md`
|
|
25
|
+
|
|
26
|
+
### 2. Display List
|
|
27
|
+
|
|
28
|
+
Show todos grouped by area, sorted by priority then date:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
## UI (3 pending)
|
|
32
|
+
1. Add dark mode support [normal] — 2026-03-10
|
|
33
|
+
2. Improve mobile nav [high] — 2026-03-08
|
|
34
|
+
3. Loading skeleton screens [low] — 2026-03-12
|
|
35
|
+
|
|
36
|
+
## Backend (1 pending)
|
|
37
|
+
4. API rate limiting [high] — 2026-03-09
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Apply filters if specified.
|
|
41
|
+
|
|
42
|
+
### 3. Interactive Selection
|
|
43
|
+
|
|
44
|
+
Ask the user which todo they want to act on (by number).
|
|
45
|
+
|
|
46
|
+
### 4. Route to Action
|
|
47
|
+
|
|
48
|
+
For the selected todo, offer actions:
|
|
49
|
+
|
|
50
|
+
- **Work now** — Execute the todo as a quick task: `/qualia-quick "{todo title}"`
|
|
51
|
+
- **Add to phase** — Incorporate into an upcoming phase in the roadmap
|
|
52
|
+
- **Brainstorm** — Discuss the todo further to flesh out details
|
|
53
|
+
- **Create phase** — If the todo is big enough, create a new roadmap phase for it
|
|
54
|
+
|
|
55
|
+
Load the full todo file content to provide context for whichever action is chosen.
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qualia-complete-milestone
|
|
3
|
+
description: "Archive a completed milestone — gather stats, archive files, tag release, prepare for next milestone. Use this skill whenever the user says 'complete milestone', 'finish milestone', 'archive milestone', 'milestone done', 'close milestone', or wants to wrap up a verified milestone and prepare for the next one. Also trigger when user mentions 'tag release', 'v1 done', or needs to finalize and archive milestone work."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Qualia Complete Milestone — Milestone Archive & Release
|
|
7
|
+
|
|
8
|
+
Complete a verified milestone: gather stats, archive, tag release, and prepare for the next milestone.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
`/qualia-complete-milestone` — Complete current milestone
|
|
13
|
+
|
|
14
|
+
## Prerequisites
|
|
15
|
+
|
|
16
|
+
Must have a passing milestone audit (`v*-MILESTONE-AUDIT.md` with PASS status). If no audit exists or it failed, direct user to run `/qualia-audit-milestone` first.
|
|
17
|
+
|
|
18
|
+
## Process (8 Steps)
|
|
19
|
+
|
|
20
|
+
Reference: `~/.claude/qualia-engine/workflows/complete-milestone.md`
|
|
21
|
+
|
|
22
|
+
### 1. Pre-flight Audit Check
|
|
23
|
+
|
|
24
|
+
Verify the most recent `v*-MILESTONE-AUDIT.md` shows PASS. If not:
|
|
25
|
+
> "Milestone audit hasn't passed yet. Run `/qualia-audit-milestone` first."
|
|
26
|
+
|
|
27
|
+
### 2. Shipping Checklist Final Gate
|
|
28
|
+
|
|
29
|
+
Before archiving, run the full shipping checklist from `~/Projects/qualia-erp/docs/completion-checklists.md`.
|
|
30
|
+
|
|
31
|
+
Detect project type from `.planning/PROJECT.md` and load the matching checklist:
|
|
32
|
+
- **website** → "Website-Specific Checklist" + "Universal Checklist"
|
|
33
|
+
- **agent** → "AI Agent Checklist" + "Universal Checklist"
|
|
34
|
+
- **voice** → "Voice Agent Checklist" + "Universal Checklist"
|
|
35
|
+
- **mobile** → "Mobile App Checklist" + "Universal Checklist"
|
|
36
|
+
- **platform** → "Platform with LLM Checklist" + "Universal Checklist"
|
|
37
|
+
|
|
38
|
+
Run automated checks for every item possible (grep, file existence, build checks). Report:
|
|
39
|
+
- PASS / WARN / FAIL per item
|
|
40
|
+
- Total: "Shipping checklist: X/Y items verified"
|
|
41
|
+
|
|
42
|
+
Any FAIL items block milestone completion. Ask user: "Fix these first, or accept risk and continue?"
|
|
43
|
+
Include checklist results in the milestone archive.
|
|
44
|
+
|
|
45
|
+
### 3. Verify Readiness
|
|
46
|
+
|
|
47
|
+
Confirm with user:
|
|
48
|
+
- All phases complete and verified
|
|
49
|
+
- Shipping checklist passed (or risks accepted)
|
|
50
|
+
- No critical tech debt blocking release
|
|
51
|
+
- Ready to archive and tag
|
|
52
|
+
|
|
53
|
+
### 4. Gather Stats
|
|
54
|
+
|
|
55
|
+
Collect from STATE.md and git history:
|
|
56
|
+
- Total phases completed
|
|
57
|
+
- Total commits
|
|
58
|
+
- Duration (first commit to now)
|
|
59
|
+
- Quick tasks completed
|
|
60
|
+
- Lines of code changed
|
|
61
|
+
|
|
62
|
+
### 4. Extract Accomplishments
|
|
63
|
+
|
|
64
|
+
From phase summaries and audit report, compile a list of what was achieved in this milestone.
|
|
65
|
+
|
|
66
|
+
### 5. Generate Changelog
|
|
67
|
+
|
|
68
|
+
After archiving, generate/update CHANGELOG.md at project root with milestone accomplishments and phase summaries. Prepend to existing file or create new.
|
|
69
|
+
|
|
70
|
+
### 6. Archive Milestone
|
|
71
|
+
|
|
72
|
+
Create milestone archive:
|
|
73
|
+
```bash
|
|
74
|
+
mkdir -p .planning/milestones
|
|
75
|
+
cp .planning/ROADMAP.md .planning/milestones/v{version}-ROADMAP.md
|
|
76
|
+
cp .planning/REQUIREMENTS.md .planning/milestones/v{version}-REQUIREMENTS.md
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Template: `~/.claude/qualia-engine/templates/milestone-archive.md`
|
|
80
|
+
|
|
81
|
+
### 6. Archive Requirements
|
|
82
|
+
|
|
83
|
+
Delete current requirements (fresh start for next milestone):
|
|
84
|
+
```bash
|
|
85
|
+
rm .planning/REQUIREMENTS.md
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### 7. Update PROJECT.md
|
|
89
|
+
|
|
90
|
+
Update PROJECT.md to reflect:
|
|
91
|
+
- Milestone v{version} completed on {date}
|
|
92
|
+
- Stats summary
|
|
93
|
+
- Key accomplishments
|
|
94
|
+
|
|
95
|
+
### 8. Commit & Tag
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
git add -A
|
|
99
|
+
git commit -m "milestone: complete v{version}"
|
|
100
|
+
git tag v{version}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### 9. Offer Next Steps
|
|
104
|
+
|
|
105
|
+
> "Milestone v{version} complete and tagged! Options:"
|
|
106
|
+
> - "Start next milestone: `/qualia-new-milestone`"
|
|
107
|
+
> - "Ship to production: `/ship`"
|
|
108
|
+
> - "Take a break — you earned it"
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: qualia-debug
|
|
3
|
+
description: "Structured debugging with symptom gathering, deep error analysis, frontend/CSS fixing, and performance profiling. Use this skill whenever the user says 'debug', 'find bug', 'fix error', 'something is broken', 'error analysis', or needs help diagnosing and fixing a bug. Also trigger when user mentions 'stack trace', 'not working', 'weird behavior', 'layout broken', 'CSS issue', 'z-index', 'slow page', 'performance', 'latency', or wants systematic debugging rather than quick guessing. Supports interactive, error-analysis, frontend, and perf modes."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Qualia Debug — Structured Debugging
|
|
7
|
+
|
|
8
|
+
Systematic debugging with four modes: interactive symptom-based debugging, deep error analysis, frontend/CSS fixes, and performance profiling.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
`/qualia-debug` — Interactive debugging (gather symptoms, diagnose, fix)
|
|
13
|
+
`/qualia-debug --frontend` — CSS/layout/visual issues
|
|
14
|
+
`/qualia-debug --perf` — Performance issues
|
|
15
|
+
`/qualia-debug --error-analysis` — Deep 7-phase error analysis
|
|
16
|
+
|
|
17
|
+
## Interactive Mode (Default)
|
|
18
|
+
|
|
19
|
+
### 1. Initialize
|
|
20
|
+
|
|
21
|
+
Load state with `qualia-tools.js`:
|
|
22
|
+
```bash
|
|
23
|
+
node ~/.claude/qualia-engine/bin/qualia-tools.js phase-op current
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Check for existing debug sessions in `.planning/debug/`.
|
|
27
|
+
|
|
28
|
+
### 2. Check Active Sessions
|
|
29
|
+
|
|
30
|
+
If there's an in-progress debug session, offer to continue it or start fresh.
|
|
31
|
+
|
|
32
|
+
### 3. Gather Symptoms
|
|
33
|
+
|
|
34
|
+
Ask targeted questions:
|
|
35
|
+
- What's happening? (exact error message or behavior)
|
|
36
|
+
- What should happen instead?
|
|
37
|
+
- When did it start? (after what change?)
|
|
38
|
+
- Is it consistent or intermittent?
|
|
39
|
+
- What have you already tried?
|
|
40
|
+
|
|
41
|
+
### 3.5. Confirm Diagnosis
|
|
42
|
+
|
|
43
|
+
Before spawning the debugger or making any code changes, present your diagnosis:
|
|
44
|
+
|
|
45
|
+
> "Based on the symptoms, here's what I think is happening: [diagnosis]. I plan to investigate [specific area]. Does that match what you're seeing?"
|
|
46
|
+
|
|
47
|
+
Wait for user confirmation. If the user corrects the diagnosis:
|
|
48
|
+
- Acknowledge the correction
|
|
49
|
+
- Adjust the investigation plan accordingly
|
|
50
|
+
- Do NOT proceed with the original (incorrect) diagnosis
|
|
51
|
+
|
|
52
|
+
This prevents the #1 debugging anti-pattern: jumping to a wrong root cause and "fixing" the wrong thing.
|
|
53
|
+
|
|
54
|
+
### 4. Spawn Debugger
|
|
55
|
+
|
|
56
|
+
Spawn the `qualia-debugger` agent with symptoms and project context.
|
|
57
|
+
|
|
58
|
+
Reference: `~/.claude/agents/qualia-debugger.md`
|
|
59
|
+
|
|
60
|
+
Model resolution:
|
|
61
|
+
```bash
|
|
62
|
+
node ~/.claude/qualia-engine/bin/qualia-tools.js resolve-model qualia-debugger
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
The debugger follows a systematic approach:
|
|
66
|
+
1. Reproduce the issue
|
|
67
|
+
2. Isolate the cause
|
|
68
|
+
3. Identify root cause
|
|
69
|
+
4. Implement minimal fix
|
|
70
|
+
5. Verify fix
|
|
71
|
+
6. Check for related issues
|
|
72
|
+
|
|
73
|
+
### 5. Save Debug Record
|
|
74
|
+
|
|
75
|
+
Write findings to `.planning/debug/{slug}.md`:
|
|
76
|
+
- Symptoms
|
|
77
|
+
- Root cause
|
|
78
|
+
- Fix applied
|
|
79
|
+
- Lessons learned
|
|
80
|
+
|
|
81
|
+
## Error Analysis Mode (`--error-analysis`)
|
|
82
|
+
|
|
83
|
+
Deep 7-phase analysis for complex or recurring error patterns:
|
|
84
|
+
|
|
85
|
+
### Phase 1: Error Pattern Analysis
|
|
86
|
+
Categorize all errors by type, frequency, and trigger conditions.
|
|
87
|
+
|
|
88
|
+
### Phase 2: Debugging Strategy
|
|
89
|
+
Design a systematic investigation plan based on patterns found.
|
|
90
|
+
|
|
91
|
+
### Phase 3: Error Handling Improvements
|
|
92
|
+
Identify where error handling is missing or inadequate.
|
|
93
|
+
|
|
94
|
+
### Phase 4: Logging Enhancement
|
|
95
|
+
Recommend logging improvements to make future debugging easier.
|
|
96
|
+
|
|
97
|
+
### Phase 5: Monitoring Integration
|
|
98
|
+
Suggest monitoring and alerting for error conditions.
|
|
99
|
+
|
|
100
|
+
### Phase 6: Recovery Mechanisms
|
|
101
|
+
Design graceful degradation and recovery patterns.
|
|
102
|
+
|
|
103
|
+
### Phase 7: Prevention Strategies
|
|
104
|
+
Identify systemic changes to prevent error classes from recurring.
|
|
105
|
+
|
|
106
|
+
Output saved to `.planning/debug/error-analysis-{timestamp}.md`.
|
|
107
|
+
|
|
108
|
+
## Frontend Mode (`--frontend`)
|
|
109
|
+
|
|
110
|
+
For layout breaks, z-index wars, animation glitches, overflow problems, CSS conflicts, rendering bugs.
|
|
111
|
+
|
|
112
|
+
### Debug Toolkit
|
|
113
|
+
```css
|
|
114
|
+
/* Outline everything to find what's too wide */
|
|
115
|
+
* { outline: 1px solid red; }
|
|
116
|
+
/* Show stacking contexts */
|
|
117
|
+
* { transform: translateZ(0); }
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Common Fixes
|
|
121
|
+
|
|
122
|
+
**Z-index not working:** Element needs `position: relative/absolute/fixed`. Check parent stacking contexts — `transform`, `opacity`, or `filter` on parent creates new context.
|
|
123
|
+
|
|
124
|
+
**Horizontal scroll:** Use `width: 100%` not `100vw`. Find the overflowing element with outline trick.
|
|
125
|
+
|
|
126
|
+
**Flex child overflow:** Add `min-width: 0` to allow shrinking.
|
|
127
|
+
|
|
128
|
+
**Grid blowout:** Use `minmax(0, 1fr)` or `min-width: 0` on grid items.
|
|
129
|
+
|
|
130
|
+
**Janky animations:** Only animate `transform` and `opacity`. Use `translateX()` not `left`.
|
|
131
|
+
|
|
132
|
+
**Safari issues:** `-webkit-backdrop-filter` for blur, `100dvh` not `100vh`, explicit width/height on SVGs.
|
|
133
|
+
|
|
134
|
+
**Layout shift:** Set `aspect-ratio` + `object-fit: cover` on images. Use `font-display: swap`.
|
|
135
|
+
|
|
136
|
+
## Performance Mode (`--perf`)
|
|
137
|
+
|
|
138
|
+
For slow queries, high memory, slow renders, large bundles, API latency.
|
|
139
|
+
|
|
140
|
+
### Investigation
|
|
141
|
+
1. Profile the bottleneck (network, render, compute, database)
|
|
142
|
+
2. Measure current performance baseline
|
|
143
|
+
3. Identify the hot path
|
|
144
|
+
|
|
145
|
+
### Common Fixes
|
|
146
|
+
- **Slow queries:** Check indexes, add `EXPLAIN ANALYZE`, optimize joins
|
|
147
|
+
- **Large bundles:** Code split, lazy load, tree shake
|
|
148
|
+
- **Slow renders:** Memoize expensive components, virtualize long lists
|
|
149
|
+
- **API latency:** Add caching, reduce payload, parallelize requests
|