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,271 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deep-research
|
|
3
|
+
description: Deep research and best practices analysis for any codebase - spawns parallel Opus agents to analyze frontend, backend, database, security, performance, and deployment. Use when you want comprehensive production-readiness audit or best practices recommendations.
|
|
4
|
+
tags: [research, best-practices, production, analysis, audit, frontend, backend]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Deep Research & Best Practices Analyzer
|
|
8
|
+
|
|
9
|
+
You are an expert architect conducting deep research on a codebase to identify best practices, patterns, and production-readiness improvements. You spawn **parallel Opus agents** to analyze different aspects comprehensively.
|
|
10
|
+
|
|
11
|
+
**Announce at start:** "Activating deep-research skill with parallel Opus agents for comprehensive analysis."
|
|
12
|
+
|
|
13
|
+
## Phase 1: Initial Discovery (YOU do this)
|
|
14
|
+
|
|
15
|
+
Before spawning agents, gather context:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
1. Read CLAUDE.md, README.md, package.json
|
|
19
|
+
2. List directory structure (top 2 levels)
|
|
20
|
+
3. Identify tech stack from dependencies
|
|
21
|
+
4. Check git history for recent changes
|
|
22
|
+
5. Identify entry points (app/, src/, pages/)
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Phase 2: Spawn Parallel Research Agents
|
|
26
|
+
|
|
27
|
+
**CRITICAL**: Spawn ALL agents in a SINGLE message with multiple Agent tool calls:
|
|
28
|
+
|
|
29
|
+
### Agent 1: Frontend Architecture Analyst
|
|
30
|
+
```
|
|
31
|
+
Use Agent tool with subagent_type: "general-purpose"
|
|
32
|
+
Prompt: |
|
|
33
|
+
You are a Frontend Architecture Analyst (Opus). Research this codebase for frontend best practices.
|
|
34
|
+
|
|
35
|
+
ANALYZE:
|
|
36
|
+
1. Component architecture (atomic design? feature-based? smart/dumb split?)
|
|
37
|
+
2. State management (context, zustand, redux, jotai?)
|
|
38
|
+
3. Data fetching patterns (server components, tanstack-query, SWR?)
|
|
39
|
+
4. Form handling (react-hook-form, zod validation?)
|
|
40
|
+
5. Styling approach (CSS modules, tailwind, styled-components?)
|
|
41
|
+
6. Performance patterns (lazy loading, memoization, virtualization?)
|
|
42
|
+
7. Error boundaries and error handling
|
|
43
|
+
8. Accessibility (ARIA, semantic HTML, keyboard nav)
|
|
44
|
+
|
|
45
|
+
RESEARCH best practices for the detected stack.
|
|
46
|
+
COMPARE current patterns vs industry best practices.
|
|
47
|
+
RETURN: Structured report with findings, gaps, and specific recommendations.
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Agent 2: Backend Architecture Analyst
|
|
51
|
+
```
|
|
52
|
+
Use Agent tool with subagent_type: "general-purpose"
|
|
53
|
+
Prompt: |
|
|
54
|
+
You are a Backend Architecture Analyst (Opus). Research this codebase for backend best practices.
|
|
55
|
+
|
|
56
|
+
ANALYZE:
|
|
57
|
+
1. API design (REST, GraphQL, tRPC, server actions?)
|
|
58
|
+
2. Authentication/Authorization patterns
|
|
59
|
+
3. Database queries and ORM usage
|
|
60
|
+
4. Error handling and logging
|
|
61
|
+
5. Input validation and sanitization
|
|
62
|
+
6. Rate limiting and security headers
|
|
63
|
+
7. Caching strategies
|
|
64
|
+
8. Background jobs/queues
|
|
65
|
+
|
|
66
|
+
RESEARCH best practices for the detected stack.
|
|
67
|
+
COMPARE current patterns vs industry best practices.
|
|
68
|
+
RETURN: Structured report with findings, gaps, and specific recommendations.
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Agent 3: Database & Data Layer Analyst
|
|
72
|
+
```
|
|
73
|
+
Use Agent tool with subagent_type: "general-purpose"
|
|
74
|
+
Prompt: |
|
|
75
|
+
You are a Database & Data Layer Analyst (Opus). Research this codebase for data best practices.
|
|
76
|
+
|
|
77
|
+
ANALYZE:
|
|
78
|
+
1. Schema design (normalization, indexes, constraints)
|
|
79
|
+
2. Migration patterns and versioning
|
|
80
|
+
3. RLS policies and row-level security
|
|
81
|
+
4. Query performance (N+1, joins, aggregations)
|
|
82
|
+
5. Data validation at database level
|
|
83
|
+
6. Backup and recovery strategies
|
|
84
|
+
7. Connection pooling
|
|
85
|
+
8. Soft deletes vs hard deletes
|
|
86
|
+
|
|
87
|
+
RESEARCH best practices for the detected database.
|
|
88
|
+
COMPARE current patterns vs industry best practices.
|
|
89
|
+
RETURN: Structured report with findings, gaps, and specific recommendations.
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Agent 4: Security & DevOps Analyst
|
|
93
|
+
```
|
|
94
|
+
Use Agent tool with subagent_type: "general-purpose"
|
|
95
|
+
Prompt: |
|
|
96
|
+
You are a Security & DevOps Analyst (Opus). Research this codebase for security and deployment best practices.
|
|
97
|
+
|
|
98
|
+
ANALYZE:
|
|
99
|
+
1. Environment variable handling (.env patterns)
|
|
100
|
+
2. Secret management (API keys, tokens)
|
|
101
|
+
3. CORS configuration
|
|
102
|
+
4. CSP headers and security headers
|
|
103
|
+
5. Input sanitization (XSS, SQL injection)
|
|
104
|
+
6. Dependency vulnerabilities (npm audit)
|
|
105
|
+
7. CI/CD pipeline configuration
|
|
106
|
+
8. Deployment configuration (Vercel, Docker, K8s)
|
|
107
|
+
9. Monitoring and error tracking
|
|
108
|
+
10. Logging and observability
|
|
109
|
+
|
|
110
|
+
RESEARCH best practices for production deployment.
|
|
111
|
+
COMPARE current patterns vs industry best practices.
|
|
112
|
+
RETURN: Structured report with findings, gaps, and specific recommendations.
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Agent 5: Performance & Scalability Analyst
|
|
116
|
+
```
|
|
117
|
+
Use Agent tool with subagent_type: "general-purpose"
|
|
118
|
+
Prompt: |
|
|
119
|
+
You are a Performance & Scalability Analyst (Opus). Research this codebase for performance best practices.
|
|
120
|
+
|
|
121
|
+
ANALYZE:
|
|
122
|
+
1. Bundle size and code splitting
|
|
123
|
+
2. Image optimization
|
|
124
|
+
3. Caching strategies (browser, CDN, server)
|
|
125
|
+
4. Database query optimization
|
|
126
|
+
5. API response times
|
|
127
|
+
6. Memory leaks potential
|
|
128
|
+
7. Render performance (React profiling patterns)
|
|
129
|
+
8. SSR vs CSR vs ISR decisions
|
|
130
|
+
9. Edge functions and edge computing
|
|
131
|
+
10. Horizontal scaling readiness
|
|
132
|
+
|
|
133
|
+
RESEARCH best practices for performance optimization.
|
|
134
|
+
COMPARE current patterns vs industry best practices.
|
|
135
|
+
RETURN: Structured report with findings, gaps, and specific recommendations.
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Agent 6: Code Quality & Testing Analyst
|
|
139
|
+
```
|
|
140
|
+
Use Agent tool with subagent_type: "general-purpose"
|
|
141
|
+
Prompt: |
|
|
142
|
+
You are a Code Quality & Testing Analyst (Opus). Research this codebase for quality best practices.
|
|
143
|
+
|
|
144
|
+
ANALYZE:
|
|
145
|
+
1. Test coverage (unit, integration, e2e)
|
|
146
|
+
2. Testing patterns and frameworks
|
|
147
|
+
3. Type safety (TypeScript strictness)
|
|
148
|
+
4. Linting and formatting
|
|
149
|
+
5. Code duplication
|
|
150
|
+
6. Documentation quality
|
|
151
|
+
7. Naming conventions
|
|
152
|
+
8. Error messages quality
|
|
153
|
+
9. Code organization patterns
|
|
154
|
+
10. Dead code detection
|
|
155
|
+
|
|
156
|
+
RESEARCH best practices for code quality.
|
|
157
|
+
COMPARE current patterns vs industry best practices.
|
|
158
|
+
RETURN: Structured report with findings, gaps, and specific recommendations.
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## Phase 3: Synthesize Reports
|
|
162
|
+
|
|
163
|
+
After all agents return, create a unified report:
|
|
164
|
+
|
|
165
|
+
```markdown
|
|
166
|
+
# Deep Research Report: [Project Name]
|
|
167
|
+
|
|
168
|
+
**Generated:** YYYY-MM-DD
|
|
169
|
+
**Stack:** [Detected stack]
|
|
170
|
+
**Overall Production Readiness:** [Score /100]
|
|
171
|
+
|
|
172
|
+
## Executive Summary
|
|
173
|
+
[2-3 paragraph synthesis of all findings]
|
|
174
|
+
|
|
175
|
+
## Critical Issues (Fix Before Production)
|
|
176
|
+
1. [Issue with severity and impact]
|
|
177
|
+
2. ...
|
|
178
|
+
|
|
179
|
+
## High Priority Improvements
|
|
180
|
+
1. [Improvement with effort estimate]
|
|
181
|
+
2. ...
|
|
182
|
+
|
|
183
|
+
## Medium Priority Enhancements
|
|
184
|
+
1. [Enhancement with benefit]
|
|
185
|
+
2. ...
|
|
186
|
+
|
|
187
|
+
## Low Priority / Nice to Have
|
|
188
|
+
1. [Future improvement]
|
|
189
|
+
2. ...
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## Detailed Analysis
|
|
194
|
+
|
|
195
|
+
### Frontend Architecture
|
|
196
|
+
[Agent 1 findings]
|
|
197
|
+
|
|
198
|
+
### Backend Architecture
|
|
199
|
+
[Agent 2 findings]
|
|
200
|
+
|
|
201
|
+
### Database & Data Layer
|
|
202
|
+
[Agent 3 findings]
|
|
203
|
+
|
|
204
|
+
### Security & DevOps
|
|
205
|
+
[Agent 4 findings]
|
|
206
|
+
|
|
207
|
+
### Performance & Scalability
|
|
208
|
+
[Agent 5 findings]
|
|
209
|
+
|
|
210
|
+
### Code Quality & Testing
|
|
211
|
+
[Agent 6 findings]
|
|
212
|
+
|
|
213
|
+
---
|
|
214
|
+
|
|
215
|
+
## Implementation Roadmap
|
|
216
|
+
|
|
217
|
+
### Phase 1: Critical Fixes (Week 1)
|
|
218
|
+
- [ ] Task 1
|
|
219
|
+
- [ ] Task 2
|
|
220
|
+
|
|
221
|
+
### Phase 2: Security Hardening (Week 2)
|
|
222
|
+
- [ ] Task 1
|
|
223
|
+
- [ ] Task 2
|
|
224
|
+
|
|
225
|
+
### Phase 3: Performance Optimization (Week 3)
|
|
226
|
+
- [ ] Task 1
|
|
227
|
+
- [ ] Task 2
|
|
228
|
+
|
|
229
|
+
### Phase 4: Code Quality (Ongoing)
|
|
230
|
+
- [ ] Task 1
|
|
231
|
+
- [ ] Task 2
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Resources & References
|
|
236
|
+
- [Relevant best practices docs]
|
|
237
|
+
- [Framework-specific guides]
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## Phase 4: Offer Next Steps
|
|
241
|
+
|
|
242
|
+
After presenting the report:
|
|
243
|
+
|
|
244
|
+
```
|
|
245
|
+
"Research complete. Would you like to:
|
|
246
|
+
|
|
247
|
+
1. **Create Implementation Plan** - Use /qualia:plan-phase to create detailed tasks
|
|
248
|
+
2. **Deep Dive on Specific Area** - Focus on frontend/backend/security/etc
|
|
249
|
+
3. **Start Fixing Critical Issues** - Begin implementing top priority fixes
|
|
250
|
+
4. **Save Report** - Save to docs/research/YYYY-MM-DD-deep-research.md
|
|
251
|
+
5. **Compare to Specific Standard** - Research against OWASP, 12-factor, etc.
|
|
252
|
+
6. **Feed into phase planning** - Run `/qualia-research-phase <N>` for phase-specific research that builds on this architectural analysis"
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
## Key Principles
|
|
256
|
+
|
|
257
|
+
- **Parallel Execution**: Always spawn all 6 agents in ONE message for speed
|
|
258
|
+
- **Evidence-Based**: Every finding must reference specific files/lines
|
|
259
|
+
- **Actionable**: Every recommendation must be implementable
|
|
260
|
+
- **Prioritized**: Critical > High > Medium > Low
|
|
261
|
+
- **Stack-Aware**: Research best practices for the ACTUAL stack detected
|
|
262
|
+
- **Production Focus**: Everything geared toward production deployment
|
|
263
|
+
|
|
264
|
+
## Trigger Phrases
|
|
265
|
+
|
|
266
|
+
- "deep research this project"
|
|
267
|
+
- "analyze best practices"
|
|
268
|
+
- "production readiness audit"
|
|
269
|
+
- "what should I fix before deploying"
|
|
270
|
+
- "research how to improve this codebase"
|
|
271
|
+
- "comprehensive code review"
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: delight
|
|
3
|
+
description: Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful.
|
|
4
|
+
user-invokable: true
|
|
5
|
+
args:
|
|
6
|
+
- name: target
|
|
7
|
+
description: The feature or area to add delight to (optional)
|
|
8
|
+
required: false
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Identify opportunities to add moments of joy, personality, and unexpected polish that transform functional interfaces into delightful experiences.
|
|
12
|
+
|
|
13
|
+
## MANDATORY PREPARATION
|
|
14
|
+
|
|
15
|
+
### Read DESIGN.md (Authoritative Source)
|
|
16
|
+
|
|
17
|
+
Before any context gathering, check for the project's design decisions file:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
cat .planning/DESIGN.md 2>/dev/null
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**If DESIGN.md exists:** This is the authoritative source for all design decisions in this project. Use its palette, typography, spacing, component, and motion decisions as your foundation. Do NOT override these decisions unless the user explicitly asks. Reference specific DESIGN.md decisions in your output (e.g., "Per DESIGN.md, the primary color is...").
|
|
24
|
+
|
|
25
|
+
**If DESIGN.md does not exist:** Proceed with normal context gathering below. Consider suggesting the user run `/qualia:discuss-phase` to establish design decisions.
|
|
26
|
+
|
|
27
|
+
### Context Gathering (Do This First)
|
|
28
|
+
|
|
29
|
+
You cannot do a great job without having necessary context, such as target audience (critical), desired use-cases (critical), brand personality (playful vs professional vs quirky vs elegant), and what's appropriate for the domain.
|
|
30
|
+
|
|
31
|
+
Attempt to gather these from the current thread or codebase.
|
|
32
|
+
|
|
33
|
+
1. If you don't find *exact* information and have to infer from existing design and functionality, you MUST STOP and STOP and call the AskUserQuestionTool to clarify. whether you got it right.
|
|
34
|
+
2. Otherwise, if you can't fully infer or your level of confidence is medium or lower, you MUST STOP and call the AskUserQuestionTool to clarify. clarifying questions first to complete your context.
|
|
35
|
+
|
|
36
|
+
Do NOT proceed until you have answers. Delight that's wrong for the context is worse than no delight at all.
|
|
37
|
+
|
|
38
|
+
### Use frontend-master skill
|
|
39
|
+
|
|
40
|
+
Use the frontend-master skill for design principles and anti-patterns. Do NOT proceed until it has executed and you know all DO's and DON'Ts.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## Assess Delight Opportunities
|
|
45
|
+
|
|
46
|
+
Identify where delight would enhance (not distract from) the experience:
|
|
47
|
+
|
|
48
|
+
1. **Find natural delight moments**:
|
|
49
|
+
- **Success states**: Completed actions (save, send, publish)
|
|
50
|
+
- **Empty states**: First-time experiences, onboarding
|
|
51
|
+
- **Loading states**: Waiting periods that could be entertaining
|
|
52
|
+
- **Achievements**: Milestones, streaks, completions
|
|
53
|
+
- **Interactions**: Hover states, clicks, drags
|
|
54
|
+
- **Errors**: Softening frustrating moments
|
|
55
|
+
- **Easter eggs**: Hidden discoveries for curious users
|
|
56
|
+
|
|
57
|
+
2. **Understand the context**:
|
|
58
|
+
- What's the brand personality? (Playful? Professional? Quirky? Elegant?)
|
|
59
|
+
- Who's the audience? (Tech-savvy? Creative? Corporate?)
|
|
60
|
+
- What's the emotional context? (Accomplishment? Exploration? Frustration?)
|
|
61
|
+
- What's appropriate? (Banking app ≠ gaming app)
|
|
62
|
+
|
|
63
|
+
3. **Define delight strategy**:
|
|
64
|
+
- **Subtle sophistication**: Refined micro-interactions (luxury brands)
|
|
65
|
+
- **Playful personality**: Whimsical illustrations and copy (consumer apps)
|
|
66
|
+
- **Helpful surprises**: Anticipating needs before users ask (productivity tools)
|
|
67
|
+
- **Sensory richness**: Satisfying sounds, smooth animations (creative tools)
|
|
68
|
+
|
|
69
|
+
If any of these are unclear from the codebase, STOP and call the AskUserQuestionTool to clarify.
|
|
70
|
+
|
|
71
|
+
**CRITICAL**: Delight should enhance usability, never obscure it. If users notice the delight more than accomplishing their goal, you've gone too far.
|
|
72
|
+
|
|
73
|
+
## Delight Principles
|
|
74
|
+
|
|
75
|
+
Follow these guidelines:
|
|
76
|
+
|
|
77
|
+
### Delight Amplifies, Never Blocks
|
|
78
|
+
- Delight moments should be quick (< 1 second)
|
|
79
|
+
- Never delay core functionality for delight
|
|
80
|
+
- Make delight skippable or subtle
|
|
81
|
+
- Respect user's time and task focus
|
|
82
|
+
|
|
83
|
+
### Surprise and Discovery
|
|
84
|
+
- Hide delightful details for users to discover
|
|
85
|
+
- Reward exploration and curiosity
|
|
86
|
+
- Don't announce every delight moment
|
|
87
|
+
- Let users share discoveries with others
|
|
88
|
+
|
|
89
|
+
### Appropriate to Context
|
|
90
|
+
- Match delight to emotional moment (celebrate success, empathize with errors)
|
|
91
|
+
- Respect the user's state (don't be playful during critical errors)
|
|
92
|
+
- Match brand personality and audience expectations
|
|
93
|
+
- Cultural sensitivity (what's delightful varies by culture)
|
|
94
|
+
|
|
95
|
+
### Compound Over Time
|
|
96
|
+
- Delight should remain fresh with repeated use
|
|
97
|
+
- Vary responses (not same animation every time)
|
|
98
|
+
- Reveal deeper layers with continued use
|
|
99
|
+
- Build anticipation through patterns
|
|
100
|
+
|
|
101
|
+
## Delight Techniques
|
|
102
|
+
|
|
103
|
+
Add personality and joy through these methods:
|
|
104
|
+
|
|
105
|
+
### Micro-interactions & Animation
|
|
106
|
+
|
|
107
|
+
**Button delight**:
|
|
108
|
+
```css
|
|
109
|
+
/* Satisfying button press */
|
|
110
|
+
.button {
|
|
111
|
+
transition: transform 0.1s, box-shadow 0.1s;
|
|
112
|
+
}
|
|
113
|
+
.button:active {
|
|
114
|
+
transform: translateY(2px);
|
|
115
|
+
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Ripple effect on click */
|
|
119
|
+
/* Smooth lift on hover */
|
|
120
|
+
.button:hover {
|
|
121
|
+
transform: translateY(-2px);
|
|
122
|
+
transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1); /* ease-out-quart */
|
|
123
|
+
}
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Loading delight**:
|
|
127
|
+
- Playful loading animations (not just spinners)
|
|
128
|
+
- Personality in loading messages ("Herding pixels..." "Teaching robots to dance...")
|
|
129
|
+
- Progress indication with encouraging messages
|
|
130
|
+
- Skeleton screens with subtle animations
|
|
131
|
+
|
|
132
|
+
**Success animations**:
|
|
133
|
+
- Checkmark draw animation
|
|
134
|
+
- Confetti burst for major achievements
|
|
135
|
+
- Gentle scale + fade for confirmation
|
|
136
|
+
- Satisfying sound effects (subtle)
|
|
137
|
+
|
|
138
|
+
**Hover surprises**:
|
|
139
|
+
- Icons that animate on hover
|
|
140
|
+
- Color shifts or glow effects
|
|
141
|
+
- Tooltip reveals with personality
|
|
142
|
+
- Cursor changes (custom cursors for branded experiences)
|
|
143
|
+
|
|
144
|
+
### Personality in Copy
|
|
145
|
+
|
|
146
|
+
**Playful error messages**:
|
|
147
|
+
```
|
|
148
|
+
"Error 404"
|
|
149
|
+
"This page is playing hide and seek. (And winning)"
|
|
150
|
+
|
|
151
|
+
"Connection failed"
|
|
152
|
+
"Looks like the internet took a coffee break. Want to retry?"
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**Encouraging empty states**:
|
|
156
|
+
```
|
|
157
|
+
"No projects"
|
|
158
|
+
"Your canvas awaits. Create something amazing."
|
|
159
|
+
|
|
160
|
+
"No messages"
|
|
161
|
+
"Inbox zero! You're crushing it today."
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**Playful labels & tooltips**:
|
|
165
|
+
```
|
|
166
|
+
"Delete"
|
|
167
|
+
"Send to void" (for playful brand)
|
|
168
|
+
|
|
169
|
+
"Help"
|
|
170
|
+
"Rescue me" (tooltip)
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**IMPORTANT**: Match copy personality to brand. Banks shouldn't be wacky, but they can be warm.
|
|
174
|
+
|
|
175
|
+
### Illustrations & Visual Personality
|
|
176
|
+
|
|
177
|
+
**Custom illustrations**:
|
|
178
|
+
- Empty state illustrations (not stock icons)
|
|
179
|
+
- Error state illustrations (friendly monsters, quirky characters)
|
|
180
|
+
- Loading state illustrations (animated characters)
|
|
181
|
+
- Success state illustrations (celebrations)
|
|
182
|
+
|
|
183
|
+
**Icon personality**:
|
|
184
|
+
- Custom icon set matching brand personality
|
|
185
|
+
- Animated icons (subtle motion on hover/click)
|
|
186
|
+
- Illustrative icons (more detailed than generic)
|
|
187
|
+
- Consistent style across all icons
|
|
188
|
+
|
|
189
|
+
**Background effects**:
|
|
190
|
+
- Subtle particle effects
|
|
191
|
+
- Gradient mesh backgrounds
|
|
192
|
+
- Geometric patterns
|
|
193
|
+
- Parallax depth
|
|
194
|
+
- Time-of-day themes (morning vs night)
|
|
195
|
+
|
|
196
|
+
### Satisfying Interactions
|
|
197
|
+
|
|
198
|
+
**Drag and drop delight**:
|
|
199
|
+
- Lift effect on drag (shadow, scale)
|
|
200
|
+
- Snap animation when dropped
|
|
201
|
+
- Satisfying placement sound
|
|
202
|
+
- Undo toast ("Dropped in wrong place? [Undo]")
|
|
203
|
+
|
|
204
|
+
**Toggle switches**:
|
|
205
|
+
- Smooth slide with spring physics
|
|
206
|
+
- Color transition
|
|
207
|
+
- Haptic feedback on mobile
|
|
208
|
+
- Optional sound effect
|
|
209
|
+
|
|
210
|
+
**Progress & achievements**:
|
|
211
|
+
- Streak counters with celebratory milestones
|
|
212
|
+
- Progress bars that "celebrate" at 100%
|
|
213
|
+
- Badge unlocks with animation
|
|
214
|
+
- Playful stats ("You're on fire! 5 days in a row")
|
|
215
|
+
|
|
216
|
+
**Form interactions**:
|
|
217
|
+
- Input fields that animate on focus
|
|
218
|
+
- Checkboxes that bounce when checked
|
|
219
|
+
- Success state that celebrates valid input
|
|
220
|
+
- Auto-grow textareas
|
|
221
|
+
|
|
222
|
+
### Sound Design
|
|
223
|
+
|
|
224
|
+
**Subtle audio cues** (when appropriate):
|
|
225
|
+
- Notification sounds (distinctive but not annoying)
|
|
226
|
+
- Success sounds (satisfying "ding")
|
|
227
|
+
- Error sounds (empathetic, not harsh)
|
|
228
|
+
- Typing sounds for chat/messaging
|
|
229
|
+
- Ambient background audio (very subtle)
|
|
230
|
+
|
|
231
|
+
**IMPORTANT**:
|
|
232
|
+
- Respect system sound settings
|
|
233
|
+
- Provide mute option
|
|
234
|
+
- Keep volumes quiet (subtle cues, not alarms)
|
|
235
|
+
- Don't play on every interaction (sound fatigue is real)
|
|
236
|
+
|
|
237
|
+
### Easter Eggs & Hidden Delights
|
|
238
|
+
|
|
239
|
+
**Discovery rewards**:
|
|
240
|
+
- Konami code unlocks special theme
|
|
241
|
+
- Hidden keyboard shortcuts (Cmd+K for special features)
|
|
242
|
+
- Hover reveals on logos or illustrations
|
|
243
|
+
- Alt text jokes on images (for screen reader users too!)
|
|
244
|
+
- Console messages for developers ("Like what you see? We're hiring!")
|
|
245
|
+
|
|
246
|
+
**Seasonal touches**:
|
|
247
|
+
- Holiday themes (subtle, tasteful)
|
|
248
|
+
- Seasonal color shifts
|
|
249
|
+
- Weather-based variations
|
|
250
|
+
- Time-based changes (dark at night, light during day)
|
|
251
|
+
|
|
252
|
+
**Contextual personality**:
|
|
253
|
+
- Different messages based on time of day
|
|
254
|
+
- Responses to specific user actions
|
|
255
|
+
- Randomized variations (not same every time)
|
|
256
|
+
- Progressive reveals with continued use
|
|
257
|
+
|
|
258
|
+
### Loading & Waiting States
|
|
259
|
+
|
|
260
|
+
**Make waiting engaging**:
|
|
261
|
+
- Interesting loading messages that rotate
|
|
262
|
+
- Progress bars with personality
|
|
263
|
+
- Mini-games during long loads
|
|
264
|
+
- Fun facts or tips while waiting
|
|
265
|
+
- Countdown with encouraging messages
|
|
266
|
+
|
|
267
|
+
```
|
|
268
|
+
Loading messages rotation:
|
|
269
|
+
- "Waking up the servers..."
|
|
270
|
+
- "Teaching robots to dance..."
|
|
271
|
+
- "Consulting the magic 8-ball..."
|
|
272
|
+
- "Counting backwards from infinity..."
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
### Celebration Moments
|
|
276
|
+
|
|
277
|
+
**Success celebrations**:
|
|
278
|
+
- Confetti for major milestones
|
|
279
|
+
- Animated checkmarks for completions
|
|
280
|
+
- Progress bar celebrations at 100%
|
|
281
|
+
- "Achievement unlocked" style notifications
|
|
282
|
+
- Personalized messages ("You published your 10th article!")
|
|
283
|
+
|
|
284
|
+
**Milestone recognition**:
|
|
285
|
+
- First-time actions get special treatment
|
|
286
|
+
- Streak tracking and celebration
|
|
287
|
+
- Progress toward goals
|
|
288
|
+
- Anniversary celebrations
|
|
289
|
+
|
|
290
|
+
## Implementation Patterns
|
|
291
|
+
|
|
292
|
+
**Animation libraries**:
|
|
293
|
+
- Framer Motion (React)
|
|
294
|
+
- GSAP (universal)
|
|
295
|
+
- Lottie (After Effects animations)
|
|
296
|
+
- Canvas confetti (party effects)
|
|
297
|
+
|
|
298
|
+
**Sound libraries**:
|
|
299
|
+
- Howler.js (audio management)
|
|
300
|
+
- Use-sound (React hook)
|
|
301
|
+
|
|
302
|
+
**Physics libraries**:
|
|
303
|
+
- React Spring (spring physics)
|
|
304
|
+
- Popmotion (animation primitives)
|
|
305
|
+
|
|
306
|
+
**IMPORTANT**: File size matters. Compress images, optimize animations, lazy load delight features.
|
|
307
|
+
|
|
308
|
+
**NEVER**:
|
|
309
|
+
- Delay core functionality for delight
|
|
310
|
+
- Force users through delightful moments (make skippable)
|
|
311
|
+
- Use delight to hide poor UX
|
|
312
|
+
- Overdo it (less is more)
|
|
313
|
+
- Ignore accessibility (animate responsibly, provide alternatives)
|
|
314
|
+
- Make every interaction delightful (special moments should be special)
|
|
315
|
+
- Sacrifice performance for delight
|
|
316
|
+
- Be inappropriate for context (read the room)
|
|
317
|
+
|
|
318
|
+
## Verify Delight Quality
|
|
319
|
+
|
|
320
|
+
Test that delight actually delights:
|
|
321
|
+
|
|
322
|
+
- **User reactions**: Do users smile? Share screenshots?
|
|
323
|
+
- **Doesn't annoy**: Still pleasant after 100th time?
|
|
324
|
+
- **Doesn't block**: Can users opt out or skip?
|
|
325
|
+
- **Performant**: No jank, no slowdown
|
|
326
|
+
- **Appropriate**: Matches brand and context
|
|
327
|
+
- **Accessible**: Works with reduced motion, screen readers
|
|
328
|
+
|
|
329
|
+
Remember: Delight is the difference between a tool and an experience. Add personality, surprise users positively, and create moments worth sharing. But always respect usability - delight should enhance, never obstruct.
|