qualia-framework 2.6.0 → 3.2.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/CLAUDE.md +64 -0
- package/README.md +103 -30
- package/agents/builder.md +110 -0
- package/agents/planner.md +134 -0
- package/agents/qa-browser.md +186 -0
- package/agents/verifier.md +221 -0
- package/bin/cli.js +336 -531
- package/bin/install.js +570 -0
- package/bin/qualia-ui.js +299 -0
- package/bin/state.js +630 -0
- package/bin/statusline.js +252 -0
- package/guide.md +63 -0
- package/hooks/auto-update.js +139 -0
- package/hooks/branch-guard.js +47 -0
- package/hooks/migration-guard.js +60 -0
- package/hooks/pre-compact.js +32 -0
- package/hooks/pre-deploy-gate.js +110 -0
- package/hooks/pre-push.js +33 -0
- package/hooks/session-start.js +170 -0
- package/package.json +29 -20
- package/rules/design-reference.md +179 -0
- package/rules/frontend.md +126 -0
- package/skills/qualia/SKILL.md +87 -0
- package/skills/qualia-build/SKILL.md +97 -0
- package/skills/qualia-debug/SKILL.md +87 -0
- package/skills/qualia-design/SKILL.md +93 -0
- package/skills/qualia-handoff/SKILL.md +66 -0
- package/skills/qualia-idk/SKILL.md +8 -0
- package/skills/qualia-learn/SKILL.md +88 -0
- package/skills/qualia-new/SKILL.md +323 -0
- package/{framework/skills → skills}/qualia-optimize/SKILL.md +1 -1
- package/skills/qualia-pause/SKILL.md +63 -0
- package/skills/qualia-plan/SKILL.md +101 -0
- package/skills/qualia-polish/SKILL.md +157 -0
- package/skills/qualia-quick/SKILL.md +37 -0
- package/skills/qualia-report/SKILL.md +105 -0
- package/skills/qualia-resume/SKILL.md +49 -0
- package/skills/qualia-review/SKILL.md +76 -0
- package/skills/qualia-ship/SKILL.md +90 -0
- package/skills/qualia-skill-new/SKILL.md +167 -0
- package/skills/qualia-task/SKILL.md +91 -0
- package/skills/qualia-verify/SKILL.md +113 -0
- package/templates/DESIGN.md +137 -0
- package/templates/plan.md +28 -0
- package/templates/project.md +22 -0
- package/templates/state.md +27 -0
- package/templates/tracking.json +20 -0
- package/tests/bin.test.sh +673 -0
- package/tests/hooks.test.sh +315 -0
- package/tests/state.test.sh +535 -0
- package/tests/statusline.test.sh +243 -0
- package/bin/collect-metrics.sh +0 -62
- package/framework/.claudeignore +0 -51
- package/framework/CLAUDE.md +0 -51
- package/framework/MCP_SETUP.md +0 -229
- package/framework/agents/architecture-strategist.md +0 -53
- package/framework/agents/backend-agent.md +0 -150
- package/framework/agents/code-simplicity-reviewer.md +0 -86
- package/framework/agents/frontend-agent.md +0 -111
- package/framework/agents/kieran-typescript-reviewer.md +0 -96
- package/framework/agents/performance-oracle.md +0 -111
- package/framework/agents/qualia-codebase-mapper.md +0 -761
- package/framework/agents/qualia-debugger.md +0 -1204
- package/framework/agents/qualia-executor.md +0 -882
- package/framework/agents/qualia-integration-checker.md +0 -424
- package/framework/agents/qualia-phase-researcher.md +0 -457
- package/framework/agents/qualia-plan-checker.md +0 -700
- package/framework/agents/qualia-planner.md +0 -1245
- package/framework/agents/qualia-project-researcher.md +0 -603
- package/framework/agents/qualia-research-synthesizer.md +0 -200
- package/framework/agents/qualia-roadmapper.md +0 -606
- package/framework/agents/qualia-verifier.md +0 -686
- package/framework/agents/red-team-qa.md +0 -130
- package/framework/agents/security-auditor.md +0 -72
- package/framework/agents/team-orchestrator.md +0 -229
- package/framework/agents/teams/framework-audit-team.md +0 -66
- package/framework/agents/teams/full-stack-team.md +0 -48
- package/framework/agents/teams/optimize-team.md +0 -53
- package/framework/agents/teams/review-team.md +0 -70
- package/framework/agents/teams/ship-team.md +0 -86
- package/framework/agents/test-agent.md +0 -182
- package/framework/hooks/auto-format.sh +0 -54
- package/framework/hooks/block-env-edit.sh +0 -42
- package/framework/hooks/branch-guard.sh +0 -43
- package/framework/hooks/confirm-delete.sh +0 -59
- package/framework/hooks/migration-validate.sh +0 -77
- package/framework/hooks/notification-speak.sh +0 -16
- package/framework/hooks/pre-commit.sh +0 -100
- package/framework/hooks/pre-compact.sh +0 -56
- package/framework/hooks/pre-deploy-gate.sh +0 -160
- package/framework/hooks/qualia-colors.sh +0 -32
- package/framework/hooks/retention-cleanup.sh +0 -62
- package/framework/hooks/save-session-state.sh +0 -185
- package/framework/hooks/session-context-loader.sh +0 -96
- package/framework/hooks/session-learn.sh +0 -32
- package/framework/hooks/skill-announce.sh +0 -123
- package/framework/hooks/tool-error-announce.sh +0 -27
- package/framework/install.ps1 +0 -323
- package/framework/install.sh +0 -313
- package/framework/qualia-framework/VERSION +0 -1
- package/framework/qualia-framework/assets/qualia-logo.png +0 -0
- package/framework/qualia-framework/bin/collect-metrics.sh +0 -67
- package/framework/qualia-framework/bin/generate-report-docx.py +0 -429
- package/framework/qualia-framework/bin/qualia-tools.js +0 -2201
- package/framework/qualia-framework/bin/qualia-tools.test.js +0 -1054
- package/framework/qualia-framework/references/checkpoints.md +0 -775
- package/framework/qualia-framework/references/completion-checklists.md +0 -359
- package/framework/qualia-framework/references/continuation-format.md +0 -249
- package/framework/qualia-framework/references/continuation-prompt.md +0 -97
- package/framework/qualia-framework/references/decimal-phase-calculation.md +0 -65
- package/framework/qualia-framework/references/design-quality.md +0 -56
- package/framework/qualia-framework/references/employee-guide.md +0 -167
- package/framework/qualia-framework/references/git-integration.md +0 -254
- package/framework/qualia-framework/references/git-planning-commit.md +0 -50
- package/framework/qualia-framework/references/model-profile-resolution.md +0 -32
- package/framework/qualia-framework/references/model-profiles.md +0 -73
- package/framework/qualia-framework/references/phase-argument-parsing.md +0 -61
- package/framework/qualia-framework/references/planning-config.md +0 -195
- package/framework/qualia-framework/references/questioning.md +0 -141
- package/framework/qualia-framework/references/tdd.md +0 -263
- package/framework/qualia-framework/references/ui-brand.md +0 -160
- package/framework/qualia-framework/references/verification-patterns.md +0 -612
- package/framework/qualia-framework/templates/DEBUG.md +0 -159
- package/framework/qualia-framework/templates/DESIGN.md +0 -81
- package/framework/qualia-framework/templates/UAT.md +0 -247
- package/framework/qualia-framework/templates/codebase/architecture.md +0 -255
- package/framework/qualia-framework/templates/codebase/concerns.md +0 -310
- package/framework/qualia-framework/templates/codebase/conventions.md +0 -307
- package/framework/qualia-framework/templates/codebase/integrations.md +0 -280
- package/framework/qualia-framework/templates/codebase/stack.md +0 -186
- package/framework/qualia-framework/templates/codebase/structure.md +0 -285
- package/framework/qualia-framework/templates/codebase/testing.md +0 -480
- package/framework/qualia-framework/templates/config.json +0 -35
- package/framework/qualia-framework/templates/context.md +0 -283
- package/framework/qualia-framework/templates/continue-here.md +0 -78
- package/framework/qualia-framework/templates/debug-subagent-prompt.md +0 -91
- package/framework/qualia-framework/templates/discovery.md +0 -146
- package/framework/qualia-framework/templates/lab-notes.md +0 -16
- package/framework/qualia-framework/templates/milestone-archive.md +0 -123
- package/framework/qualia-framework/templates/milestone.md +0 -115
- package/framework/qualia-framework/templates/phase-prompt.md +0 -567
- package/framework/qualia-framework/templates/planner-subagent-prompt.md +0 -117
- package/framework/qualia-framework/templates/project.md +0 -184
- package/framework/qualia-framework/templates/projects/ai-agent.md +0 -156
- package/framework/qualia-framework/templates/projects/mobile-app.md +0 -181
- package/framework/qualia-framework/templates/projects/voice-agent.md +0 -134
- package/framework/qualia-framework/templates/projects/website.md +0 -137
- package/framework/qualia-framework/templates/requirements.md +0 -231
- package/framework/qualia-framework/templates/research-project/ARCHITECTURE.md +0 -204
- package/framework/qualia-framework/templates/research-project/FEATURES.md +0 -147
- package/framework/qualia-framework/templates/research-project/PITFALLS.md +0 -200
- package/framework/qualia-framework/templates/research-project/STACK.md +0 -120
- package/framework/qualia-framework/templates/research-project/SUMMARY.md +0 -170
- package/framework/qualia-framework/templates/research.md +0 -552
- package/framework/qualia-framework/templates/roadmap.md +0 -206
- package/framework/qualia-framework/templates/state.md +0 -179
- package/framework/qualia-framework/templates/summary-complex.md +0 -59
- package/framework/qualia-framework/templates/summary-minimal.md +0 -41
- package/framework/qualia-framework/templates/summary-standard.md +0 -48
- package/framework/qualia-framework/templates/summary.md +0 -246
- package/framework/qualia-framework/templates/user-setup.md +0 -311
- package/framework/qualia-framework/templates/verification-report.md +0 -322
- package/framework/qualia-framework/workflows/add-phase.md +0 -179
- package/framework/qualia-framework/workflows/add-todo.md +0 -157
- package/framework/qualia-framework/workflows/audit-milestone.md +0 -241
- package/framework/qualia-framework/workflows/check-todos.md +0 -176
- package/framework/qualia-framework/workflows/complete-milestone.md +0 -858
- package/framework/qualia-framework/workflows/diagnose-issues.md +0 -219
- package/framework/qualia-framework/workflows/discovery-phase.md +0 -289
- package/framework/qualia-framework/workflows/discuss-phase.md +0 -534
- package/framework/qualia-framework/workflows/execute-phase.md +0 -559
- package/framework/qualia-framework/workflows/execute-plan.md +0 -438
- package/framework/qualia-framework/workflows/help.md +0 -470
- package/framework/qualia-framework/workflows/insert-phase.md +0 -220
- package/framework/qualia-framework/workflows/list-phase-assumptions.md +0 -178
- package/framework/qualia-framework/workflows/map-codebase.md +0 -327
- package/framework/qualia-framework/workflows/new-milestone.md +0 -363
- package/framework/qualia-framework/workflows/new-project.md +0 -982
- package/framework/qualia-framework/workflows/pause-work.md +0 -122
- package/framework/qualia-framework/workflows/plan-milestone-gaps.md +0 -256
- package/framework/qualia-framework/workflows/plan-phase.md +0 -422
- package/framework/qualia-framework/workflows/progress.md +0 -389
- package/framework/qualia-framework/workflows/quick.md +0 -252
- package/framework/qualia-framework/workflows/remove-phase.md +0 -326
- package/framework/qualia-framework/workflows/research-phase.md +0 -74
- package/framework/qualia-framework/workflows/resume-project.md +0 -306
- package/framework/qualia-framework/workflows/set-profile.md +0 -80
- package/framework/qualia-framework/workflows/settings.md +0 -145
- package/framework/qualia-framework/workflows/transition.md +0 -556
- package/framework/qualia-framework/workflows/update.md +0 -197
- package/framework/qualia-framework/workflows/verify-phase.md +0 -195
- package/framework/qualia-framework/workflows/verify-work.md +0 -625
- package/framework/rules/context7.md +0 -14
- package/framework/rules/frontend.md +0 -33
- package/framework/rules/speed.md +0 -23
- package/framework/scripts/__pycache__/say.cpython-314.pyc +0 -0
- package/framework/scripts/apply-retention.sh +0 -120
- package/framework/scripts/bootstrap-pop-os.sh +0 -354
- package/framework/scripts/claude-voice +0 -13
- package/framework/scripts/cleanup.sh +0 -131
- package/framework/scripts/cowork-mode.sh +0 -141
- package/framework/scripts/generate-project-claude-md.sh +0 -153
- package/framework/scripts/load-test-webhook.js +0 -172
- package/framework/scripts/say.py +0 -236
- package/framework/scripts/showcase-video-recorder/ffmpeg-builder.js +0 -167
- package/framework/scripts/showcase-video-recorder/playwright-helpers.js +0 -216
- package/framework/scripts/speak.py +0 -55
- package/framework/scripts/speak.sh +0 -18
- package/framework/scripts/status.sh +0 -138
- package/framework/scripts/sync-to-framework.sh +0 -65
- package/framework/scripts/voice-hotkey.py +0 -227
- package/framework/scripts/voice-input.sh +0 -51
- package/framework/skills/animate/SKILL.md +0 -202
- package/framework/skills/bolder/SKILL.md +0 -144
- package/framework/skills/browser-qa/SKILL.md +0 -536
- package/framework/skills/clarify/SKILL.md +0 -179
- package/framework/skills/client-handoff/SKILL.md +0 -135
- package/framework/skills/collab-onboard/SKILL.md +0 -111
- package/framework/skills/colorize/SKILL.md +0 -170
- package/framework/skills/critique/SKILL.md +0 -126
- package/framework/skills/deep-research/SKILL.md +0 -240
- package/framework/skills/delight/SKILL.md +0 -329
- package/framework/skills/deploy/SKILL.md +0 -261
- package/framework/skills/deploy-verify/SKILL.md +0 -377
- package/framework/skills/deploy-verify/scripts/canary-check.sh +0 -206
- package/framework/skills/deploy-verify/scripts/check-console-errors.js +0 -147
- package/framework/skills/deploy-verify/scripts/check-cwv.js +0 -139
- package/framework/skills/deploy-verify/scripts/project-detect.sh +0 -84
- package/framework/skills/deploy-verify/scripts/verify.sh +0 -548
- package/framework/skills/design-quieter/SKILL.md +0 -130
- package/framework/skills/distill/SKILL.md +0 -149
- package/framework/skills/docs-lookup/SKILL.md +0 -79
- package/framework/skills/fcm-notifications/SKILL.md +0 -125
- package/framework/skills/financial-ledger/SKILL.md +0 -1039
- package/framework/skills/frontend-master/NOTICE.md +0 -4
- package/framework/skills/frontend-master/SKILL.md +0 -127
- package/framework/skills/frontend-master/reference/color-and-contrast.md +0 -132
- package/framework/skills/frontend-master/reference/interaction-design.md +0 -123
- package/framework/skills/frontend-master/reference/motion-design.md +0 -99
- package/framework/skills/frontend-master/reference/responsive-design.md +0 -114
- package/framework/skills/frontend-master/reference/spatial-design.md +0 -100
- package/framework/skills/frontend-master/reference/typography.md +0 -131
- package/framework/skills/frontend-master/reference/ux-writing.md +0 -107
- package/framework/skills/harden/SKILL.md +0 -357
- package/framework/skills/i18n-rtl/SKILL.md +0 -752
- package/framework/skills/learn/SKILL.md +0 -95
- package/framework/skills/memory/SKILL.md +0 -50
- package/framework/skills/mobile-expo/SKILL.md +0 -977
- package/framework/skills/mobile-expo/references/store-checklist.md +0 -550
- package/framework/skills/nestjs-backend/README.md +0 -73
- package/framework/skills/nestjs-backend/SKILL.md +0 -446
- package/framework/skills/nestjs-backend/references/templates.md +0 -1173
- package/framework/skills/normalize/SKILL.md +0 -79
- package/framework/skills/onboard/SKILL.md +0 -242
- package/framework/skills/openrouter-agent/SKILL.md +0 -922
- package/framework/skills/polish/SKILL.md +0 -209
- package/framework/skills/pr/SKILL.md +0 -66
- package/framework/skills/qualia/SKILL.md +0 -199
- package/framework/skills/qualia-add-todo/SKILL.md +0 -68
- package/framework/skills/qualia-audit-milestone/SKILL.md +0 -95
- package/framework/skills/qualia-check-todos/SKILL.md +0 -55
- package/framework/skills/qualia-complete-milestone/SKILL.md +0 -134
- package/framework/skills/qualia-debug/SKILL.md +0 -149
- package/framework/skills/qualia-design/SKILL.md +0 -203
- package/framework/skills/qualia-discuss-phase/SKILL.md +0 -72
- package/framework/skills/qualia-evolve/SKILL.md +0 -200
- package/framework/skills/qualia-execute-phase/SKILL.md +0 -89
- package/framework/skills/qualia-framework-audit/SKILL.md +0 -604
- package/framework/skills/qualia-guide/SKILL.md +0 -32
- package/framework/skills/qualia-help/SKILL.md +0 -114
- package/framework/skills/qualia-idk/SKILL.md +0 -352
- package/framework/skills/qualia-list-phase-assumptions/SKILL.md +0 -67
- package/framework/skills/qualia-new-milestone/SKILL.md +0 -72
- package/framework/skills/qualia-new-project/SKILL.md +0 -232
- package/framework/skills/qualia-pause-work/SKILL.md +0 -96
- package/framework/skills/qualia-plan-milestone-gaps/SKILL.md +0 -57
- package/framework/skills/qualia-plan-phase/SKILL.md +0 -104
- package/framework/skills/qualia-production-check/SKILL.md +0 -0
- package/framework/skills/qualia-progress/SKILL.md +0 -53
- package/framework/skills/qualia-quick/SKILL.md +0 -89
- package/framework/skills/qualia-report/SKILL.md +0 -166
- package/framework/skills/qualia-research-phase/SKILL.md +0 -88
- package/framework/skills/qualia-resume-work/SKILL.md +0 -62
- package/framework/skills/qualia-review/SKILL.md +0 -263
- package/framework/skills/qualia-start/SKILL.md +0 -161
- package/framework/skills/qualia-verify-work/SKILL.md +0 -132
- package/framework/skills/rag/SKILL.md +0 -750
- package/framework/skills/responsive/SKILL.md +0 -231
- package/framework/skills/retro/SKILL.md +0 -284
- package/framework/skills/sakani-conventions/SKILL.md +0 -136
- package/framework/skills/sakani-conventions/evals/evals.json +0 -23
- package/framework/skills/sakani-conventions/references/entities.md +0 -365
- package/framework/skills/sakani-conventions/references/error-codes.md +0 -95
- package/framework/skills/seo-master/SKILL.md +0 -490
- package/framework/skills/seo-master/references/checklist.md +0 -199
- package/framework/skills/seo-master/references/structured-data.md +0 -609
- package/framework/skills/ship/SKILL.md +0 -239
- package/framework/skills/stack-researcher/SKILL.md +0 -215
- package/framework/skills/status/SKILL.md +0 -154
- package/framework/skills/status/scripts/health-check.sh +0 -562
- package/framework/skills/subscription-payments/SKILL.md +0 -250
- package/framework/skills/supabase/SKILL.md +0 -973
- package/framework/skills/supabase/references/templates.md +0 -159
- package/framework/skills/team/SKILL.md +0 -67
- package/framework/skills/test-runner/SKILL.md +0 -202
- package/framework/skills/voice-agent/SKILL.md +0 -1312
- package/framework/skills/zoho-workflow/SKILL.md +0 -51
- package/framework/statusline-command.sh +0 -117
- package/framework/teams/default/inboxes/plan-04.json +0 -9
- package/framework/teams/review-team.md +0 -75
- package/framework/teams/ship-team.md +0 -86
- package/profiles/fawzi.json +0 -16
- package/profiles/hasan.json +0 -16
- package/profiles/moayad.json +0 -16
- package/templates/CLAUDE-owner.md +0 -52
- package/templates/CLAUDE.md.hbs +0 -58
- package/templates/env.claude.template +0 -12
- package/templates/settings.json +0 -172
- package/uninstall.sh +0 -90
- /package/{framework/rules → rules}/deployment.md +0 -0
- /package/{framework/rules → rules}/security.md +0 -0
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: zoho-workflow
|
|
3
|
-
description: Zoho Invoice and Mail operations - create invoices, send emails, manage contacts. Use when Fawzi mentions invoicing, email, or Zoho.
|
|
4
|
-
tags: [zoho, invoice, email, billing, crm]
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Zoho Workflow
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## Zoho Invoice
|
|
11
|
-
|
|
12
|
-
- Create, edit, send, and void invoices
|
|
13
|
-
- List and search invoices by client, status, date
|
|
14
|
-
- Manage items, taxes, contacts, and expenses
|
|
15
|
-
- Mark invoices as sent/paid, send payment reminders
|
|
16
|
-
- Generate invoice PDFs and email them to clients
|
|
17
|
-
- Create recurring invoices and credit notes
|
|
18
|
-
- When Fawzi says "invoice [client]" — create the full invoice, don't just explain how
|
|
19
|
-
- Default sender org: Qualia Solutions
|
|
20
|
-
|
|
21
|
-
## Zoho Mail
|
|
22
|
-
|
|
23
|
-
- Read inbox, sent, drafts, and folder contents
|
|
24
|
-
- Send emails and reply to threads
|
|
25
|
-
- Move, label, and organize messages
|
|
26
|
-
- Search emails by sender, subject, date
|
|
27
|
-
- When Fawzi says "email [someone]" or "check inbox" — do it directly
|
|
28
|
-
- Use Fawzi's primary Zoho Mail account
|
|
29
|
-
|
|
30
|
-
## Email Formatting Rules (MANDATORY)
|
|
31
|
-
|
|
32
|
-
- Always append Fawzi's signature at the bottom of every email
|
|
33
|
-
- Read signature HTML from `~/.claude/knowledge/email-signature.html`
|
|
34
|
-
- Never use dashes (---) or horizontal separators
|
|
35
|
-
- Never use emojis
|
|
36
|
-
- Professional, direct tone
|
|
37
|
-
- Keep it concise and action-oriented
|
|
38
|
-
|
|
39
|
-
## General Rules
|
|
40
|
-
|
|
41
|
-
- Always act, don't just describe. Execute operations directly.
|
|
42
|
-
- Fetch the organization ID first if needed (use the list/get org tools)
|
|
43
|
-
- If a tool call fails, debug it — check params, retry with fixes
|
|
44
|
-
|
|
45
|
-
## Trigger Phrases
|
|
46
|
-
|
|
47
|
-
- "invoice [client]" → Create and send invoice
|
|
48
|
-
- "email [someone]" → Compose and send email
|
|
49
|
-
- "check inbox" → Read inbox
|
|
50
|
-
- "send reminder" → Payment reminder
|
|
51
|
-
- "create contact" → New Zoho contact
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Qualia statusline — teal-branded, compact, informative
|
|
3
|
-
# Layout: ◆ dir branch [status] │ phase │ model ━━━━ 23%
|
|
4
|
-
|
|
5
|
-
input=$(cat)
|
|
6
|
-
|
|
7
|
-
USED_PCT=$(echo "$input" | jq -r '.context_window.used_percentage // empty')
|
|
8
|
-
MODEL=$(echo "$input" | jq -r '.model.display_name')
|
|
9
|
-
CWD=$(echo "$input" | jq -r '.workspace.current_dir')
|
|
10
|
-
|
|
11
|
-
[ -z "$USED_PCT" ] && exit 0
|
|
12
|
-
|
|
13
|
-
USED_INT=$(printf '%.0f' "$USED_PCT")
|
|
14
|
-
|
|
15
|
-
# Directory shortening (last 2 segments max)
|
|
16
|
-
DIR="$CWD"
|
|
17
|
-
DIR="${DIR/#$HOME/\~}"
|
|
18
|
-
DEPTH=$(echo "$DIR" | tr -cd '/' | wc -c)
|
|
19
|
-
if [ "$DEPTH" -gt 2 ]; then
|
|
20
|
-
DIR=$(echo "$DIR" | rev | cut -d'/' -f1-2 | rev)
|
|
21
|
-
DIR="…/$DIR"
|
|
22
|
-
fi
|
|
23
|
-
|
|
24
|
-
# ── Colors ──
|
|
25
|
-
T='\033[38;2;0;188;175m' # teal
|
|
26
|
-
TB='\033[38;2;45;226;210m' # teal bright
|
|
27
|
-
TD='\033[38;2;0;120;112m' # teal dim
|
|
28
|
-
W='\033[38;2;220;225;230m' # white
|
|
29
|
-
G='\033[38;2;70;78;88m' # gray
|
|
30
|
-
GR='\033[38;2;52;211;153m' # green
|
|
31
|
-
Y='\033[38;2;234;179;8m' # yellow
|
|
32
|
-
R='\033[38;2;239;68;68m' # red
|
|
33
|
-
P='\033[38;2;189;147;249m' # purple
|
|
34
|
-
X='\033[0m' # reset
|
|
35
|
-
|
|
36
|
-
# Context bar color
|
|
37
|
-
if [ "$USED_INT" -ge 70 ]; then CB="$R"
|
|
38
|
-
elif [ "$USED_INT" -ge 50 ]; then CB="$Y"
|
|
39
|
-
else CB="$T"; fi
|
|
40
|
-
|
|
41
|
-
# ── Project + phase detection ──
|
|
42
|
-
PROJECT=""
|
|
43
|
-
PHASE=""
|
|
44
|
-
|
|
45
|
-
if [ -f "$CWD/.planning/STATE.md" ]; then
|
|
46
|
-
PROJECT=$(grep -m1 "^Project:" "$CWD/.planning/STATE.md" 2>/dev/null | sed 's/^Project: *//')
|
|
47
|
-
# Get phase number only (e.g. "3 of 6") — not the full description
|
|
48
|
-
PHASE_RAW=$(grep -m1 "^Phase:" "$CWD/.planning/STATE.md" 2>/dev/null | sed 's/^Phase: *//')
|
|
49
|
-
if [ -n "$PHASE_RAW" ]; then
|
|
50
|
-
# Extract "N of M" pattern or just take first 12 chars
|
|
51
|
-
PHASE_SHORT=$(echo "$PHASE_RAW" | grep -oP '^\d+ of \d+' 2>/dev/null)
|
|
52
|
-
[ -z "$PHASE_SHORT" ] && PHASE_SHORT=$(echo "$PHASE_RAW" | head -c 12)
|
|
53
|
-
PHASE="$PHASE_SHORT"
|
|
54
|
-
fi
|
|
55
|
-
fi
|
|
56
|
-
|
|
57
|
-
[ -z "$PROJECT" ] && [ -f "$CWD/package.json" ] && PROJECT=$(node -e "try{console.log(require('$CWD/package.json').name||'')}catch(e){}" 2>/dev/null)
|
|
58
|
-
|
|
59
|
-
# Git branch
|
|
60
|
-
BRANCH=$(git -C "$CWD" --no-optional-locks branch --show-current 2>/dev/null)
|
|
61
|
-
GIT_STATUS=""
|
|
62
|
-
if [ -n "$BRANCH" ]; then
|
|
63
|
-
GIT_RAW=$(git -C "$CWD" --no-optional-locks status --porcelain 2>/dev/null | head -20)
|
|
64
|
-
if [ -n "$GIT_RAW" ]; then
|
|
65
|
-
M=$(echo "$GIT_RAW" | grep -c '^ M\|^MM\|^AM')
|
|
66
|
-
S=$(echo "$GIT_RAW" | grep -c '^[MARCD] ')
|
|
67
|
-
U=$(echo "$GIT_RAW" | grep -c '^??')
|
|
68
|
-
[ "$M" -gt 0 ] && GIT_STATUS+="!${M}"
|
|
69
|
-
[ "$S" -gt 0 ] && GIT_STATUS+="+${S}"
|
|
70
|
-
[ "$U" -gt 0 ] && GIT_STATUS+="?${U}"
|
|
71
|
-
fi
|
|
72
|
-
fi
|
|
73
|
-
|
|
74
|
-
# ── Context bar ──
|
|
75
|
-
BAR_W=10
|
|
76
|
-
FILLED=$(( USED_INT * BAR_W / 100 ))
|
|
77
|
-
[ "$FILLED" -gt "$BAR_W" ] && FILLED=$BAR_W
|
|
78
|
-
EMPTY=$(( BAR_W - FILLED ))
|
|
79
|
-
BAR=""; for ((i=0; i<FILLED; i++)); do BAR+="━"; done
|
|
80
|
-
EBAR=""; for ((i=0; i<EMPTY; i++)); do EBAR+="─"; done
|
|
81
|
-
|
|
82
|
-
# ── Build statusline ──
|
|
83
|
-
OUT=""
|
|
84
|
-
|
|
85
|
-
# ◆ brand mark
|
|
86
|
-
OUT+="${TB}◆${X} "
|
|
87
|
-
|
|
88
|
-
# Directory (teal)
|
|
89
|
-
OUT+="${T}${DIR}${X}"
|
|
90
|
-
|
|
91
|
-
# Git branch (purple, compact)
|
|
92
|
-
if [ -n "$BRANCH" ]; then
|
|
93
|
-
OUT+=" ${P}${BRANCH}${X}"
|
|
94
|
-
[ -n "$GIT_STATUS" ] && OUT+="${Y}[${GIT_STATUS}]${X}"
|
|
95
|
-
fi
|
|
96
|
-
|
|
97
|
-
# Separator
|
|
98
|
-
OUT+=" ${G}│${X} "
|
|
99
|
-
|
|
100
|
-
# Qualia mode + phase (teal, the important bit)
|
|
101
|
-
if [ -n "$PROJECT" ]; then
|
|
102
|
-
OUT+="${TB}${PROJECT}${X}"
|
|
103
|
-
[ -n "$PHASE" ] && OUT+=" ${TD}p${PHASE}${X}"
|
|
104
|
-
elif [ -n "$PHASE" ]; then
|
|
105
|
-
OUT+="${T}p${PHASE}${X}"
|
|
106
|
-
fi
|
|
107
|
-
|
|
108
|
-
# If neither project nor phase, show "ad-hoc"
|
|
109
|
-
[ -z "$PROJECT" ] && [ -z "$PHASE" ] && OUT+="${TD}ad-hoc${X}"
|
|
110
|
-
|
|
111
|
-
# Separator + model (compact)
|
|
112
|
-
OUT+=" ${G}│${X} ${G}${MODEL}${X}"
|
|
113
|
-
|
|
114
|
-
# Context bar
|
|
115
|
-
OUT+=" ${CB}${BAR}${G}${EBAR}${X} ${CB}${USED_INT}%%${X}"
|
|
116
|
-
|
|
117
|
-
printf "$OUT"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"from": "team-lead",
|
|
4
|
-
"text": "Checkpoint approved. All verification passed:\n- Server boots clean, 96 permissions cached\n- All 9 Phase 1.4 endpoints return 401 unauthenticated (tested with /api/v1/ prefix)\n- Health endpoint returns 200\n- pnpm check-types: 5/5 workspaces pass, 0 errors\n- Route ordering confirmed: /mine before /:claimId in startup logs\n\nContinue to create SUMMARY.md and update STATE.md.",
|
|
5
|
-
"summary": "Approve checkpoint, continue SUMMARY",
|
|
6
|
-
"timestamp": "2026-03-22T01:22:15.460Z",
|
|
7
|
-
"read": false
|
|
8
|
-
}
|
|
9
|
-
]
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# Review Team
|
|
2
|
-
|
|
3
|
-
> Five specialist reviewers analyze code in parallel, results synthesized into unified report.
|
|
4
|
-
|
|
5
|
-
## Agents
|
|
6
|
-
|
|
7
|
-
- **code-simplicity-reviewer**
|
|
8
|
-
- subagent_type: code-simplicity-reviewer
|
|
9
|
-
- role: Identify unnecessary complexity, premature abstractions, YAGNI violations, over-engineering
|
|
10
|
-
- focus: Code structure, abstractions, function complexity, dead code
|
|
11
|
-
|
|
12
|
-
- **performance-oracle**
|
|
13
|
-
- subagent_type: performance-oracle
|
|
14
|
-
- role: Identify performance bottlenecks, N+1 queries, memory leaks, missing indexes, bundle size issues
|
|
15
|
-
- focus: Database queries, API latency, rendering performance, caching opportunities
|
|
16
|
-
|
|
17
|
-
- **kieran-typescript-reviewer**
|
|
18
|
-
- subagent_type: kieran-typescript-reviewer
|
|
19
|
-
- role: TypeScript quality — strict types, naming conventions, pattern adherence, type safety gaps
|
|
20
|
-
- focus: Type definitions, generics usage, any/unknown, null handling, naming
|
|
21
|
-
|
|
22
|
-
- **security-auditor**
|
|
23
|
-
- subagent_type: security-auditor
|
|
24
|
-
- role: RLS policies, service_role exposure, auth patterns, input validation, secrets scanning, dependency vulnerabilities
|
|
25
|
-
- focus: Supabase security, auth flows, env var handling, XSS/injection prevention
|
|
26
|
-
|
|
27
|
-
- **red-team-qa** (optional — spawn when reviewing auth, payments, or user input)
|
|
28
|
-
- subagent_type: red-team-qa
|
|
29
|
-
- role: Adversarial QA — actively tries to break the implementation via edge cases, error paths, boundary conditions
|
|
30
|
-
- focus: Permission bypasses, unexpected inputs, race conditions, error handling gaps
|
|
31
|
-
|
|
32
|
-
## Pattern
|
|
33
|
-
|
|
34
|
-
fan-out (all 5 parallel) → synthesize into REVIEW-REPORT.md
|
|
35
|
-
|
|
36
|
-
## Shared Context
|
|
37
|
-
|
|
38
|
-
- .planning/STATE.md — what was built, current phase
|
|
39
|
-
- Recent git diff (last N commits relevant to the review scope)
|
|
40
|
-
|
|
41
|
-
## Coordination Rules
|
|
42
|
-
|
|
43
|
-
- Each reviewer produces findings independently — no coordination needed
|
|
44
|
-
- Reviewers are read-only — they analyze and report, they don't fix
|
|
45
|
-
- Findings should include file:line references
|
|
46
|
-
- Each reviewer rates findings: CRITICAL / HIGH / MEDIUM / LOW
|
|
47
|
-
|
|
48
|
-
## Output
|
|
49
|
-
|
|
50
|
-
REVIEW-REPORT.md in current directory with sections:
|
|
51
|
-
|
|
52
|
-
```markdown
|
|
53
|
-
# Review Report
|
|
54
|
-
|
|
55
|
-
## Summary
|
|
56
|
-
{Overall assessment — 1-2 sentences}
|
|
57
|
-
|
|
58
|
-
## Simplicity Review
|
|
59
|
-
{From code-simplicity-reviewer}
|
|
60
|
-
|
|
61
|
-
## Performance Review
|
|
62
|
-
{From performance-oracle}
|
|
63
|
-
|
|
64
|
-
## TypeScript Quality Review
|
|
65
|
-
{From kieran-typescript-reviewer}
|
|
66
|
-
|
|
67
|
-
## Security Review
|
|
68
|
-
{From security-auditor}
|
|
69
|
-
|
|
70
|
-
## Action Items
|
|
71
|
-
| # | Severity | Finding | File:Line | Reviewer |
|
|
72
|
-
|---|----------|---------|-----------|----------|
|
|
73
|
-
| 1 | Critical | ... | ... | ... |
|
|
74
|
-
| 2 | Warning | ... | ... | ... |
|
|
75
|
-
```
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# Ship Team
|
|
2
|
-
|
|
3
|
-
> Quality gate → Deploy → Verify. Pipeline pattern — abort if any step fails.
|
|
4
|
-
|
|
5
|
-
## Agents
|
|
6
|
-
|
|
7
|
-
- **quality-gate**
|
|
8
|
-
- subagent_type: test-agent
|
|
9
|
-
- role: Run tsc, eslint, build. Ensure no type errors, lint violations, or build failures.
|
|
10
|
-
- commands: |
|
|
11
|
-
npx tsc --noEmit
|
|
12
|
-
npx next lint (or eslint .)
|
|
13
|
-
npm run build (or next build)
|
|
14
|
-
- abort_on_fail: true
|
|
15
|
-
|
|
16
|
-
- **deploy**
|
|
17
|
-
- subagent_type: general-purpose
|
|
18
|
-
- role: Commit staged changes, push to remote, deploy to hosting platform
|
|
19
|
-
- commands: |
|
|
20
|
-
git add -A && git commit (if uncommitted changes)
|
|
21
|
-
git push origin {branch}
|
|
22
|
-
vercel --prod (default) OR wrangler deploy (if armenius)
|
|
23
|
-
- abort_on_fail: true
|
|
24
|
-
|
|
25
|
-
- **verify**
|
|
26
|
-
- subagent_type: test-agent
|
|
27
|
-
- role: Run 6-check post-deploy verification against production URL
|
|
28
|
-
- checks: |
|
|
29
|
-
1. HTTP 200 — homepage loads
|
|
30
|
-
2. Auth flow — login/signup endpoint responds
|
|
31
|
-
3. Console errors — no critical JS errors
|
|
32
|
-
4. API latency — key endpoints < 500ms
|
|
33
|
-
5. SSL — valid certificate
|
|
34
|
-
6. Build artifacts — no source maps exposed
|
|
35
|
-
- abort_on_fail: false (report issues but don't rollback)
|
|
36
|
-
|
|
37
|
-
## Pattern
|
|
38
|
-
|
|
39
|
-
pipeline: quality-gate → deploy → verify
|
|
40
|
-
|
|
41
|
-
Each step must succeed before the next begins. If quality-gate fails, deployment is blocked. If deploy fails, verification is skipped.
|
|
42
|
-
|
|
43
|
-
## Shared Context
|
|
44
|
-
|
|
45
|
-
- ~/.claude/knowledge/qualia-context.md — project inventory, deploy commands, Supabase refs
|
|
46
|
-
- .planning/STATE.md — current project state
|
|
47
|
-
- Project's local CLAUDE.md — project-specific deploy config
|
|
48
|
-
|
|
49
|
-
## Coordination Rules
|
|
50
|
-
|
|
51
|
-
- quality-gate runs ALL checks before passing — partial pass is a fail
|
|
52
|
-
- deploy detects hosting platform from project context (Vercel default, Cloudflare for armenius)
|
|
53
|
-
- verify uses the production URL from deploy output
|
|
54
|
-
- If Supabase project: deploy also runs `supabase db push` if pending migrations exist
|
|
55
|
-
|
|
56
|
-
## Output
|
|
57
|
-
|
|
58
|
-
SHIP-REPORT.md in current directory:
|
|
59
|
-
|
|
60
|
-
```markdown
|
|
61
|
-
# Ship Report
|
|
62
|
-
|
|
63
|
-
**Date:** {date}
|
|
64
|
-
**Branch:** {branch}
|
|
65
|
-
**Deploy URL:** {url}
|
|
66
|
-
|
|
67
|
-
## Quality Gate
|
|
68
|
-
- tsc: ✓ / ✗ ({error count})
|
|
69
|
-
- lint: ✓ / ✗ ({warning count})
|
|
70
|
-
- build: ✓ / ✗ ({duration})
|
|
71
|
-
|
|
72
|
-
## Deployment
|
|
73
|
-
- Platform: Vercel / Cloudflare
|
|
74
|
-
- URL: {production url}
|
|
75
|
-
- Commit: {sha}
|
|
76
|
-
|
|
77
|
-
## Verification
|
|
78
|
-
| Check | Status | Details |
|
|
79
|
-
|-------|--------|---------|
|
|
80
|
-
| HTTP 200 | ✓/✗ | {status code} |
|
|
81
|
-
| Auth flow | ✓/✗ | {details} |
|
|
82
|
-
| Console errors | ✓/✗ | {count} |
|
|
83
|
-
| API latency | ✓/✗ | {ms} |
|
|
84
|
-
| SSL | ✓/✗ | {expiry} |
|
|
85
|
-
| Source maps | ✓/✗ | {exposed?} |
|
|
86
|
-
```
|
package/profiles/fawzi.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"code": "QS-FAWZI-2024",
|
|
3
|
-
"name": "Fawzi",
|
|
4
|
-
"fullName": "Fawzi Goussous",
|
|
5
|
-
"role": "OWNER",
|
|
6
|
-
"since": "2024",
|
|
7
|
-
"location": "Nicosia, Cyprus",
|
|
8
|
-
"type": "founder",
|
|
9
|
-
"language": "ar-en",
|
|
10
|
-
"permissions": {
|
|
11
|
-
"canDeploy": true,
|
|
12
|
-
"canModifyFramework": true,
|
|
13
|
-
"canAccessAllProjects": true,
|
|
14
|
-
"canApproveWork": true
|
|
15
|
-
}
|
|
16
|
-
}
|
package/profiles/hasan.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"code": "QS-HASAN-2026",
|
|
3
|
-
"name": "Hasan",
|
|
4
|
-
"fullName": "Hasan",
|
|
5
|
-
"role": "DEVELOPER",
|
|
6
|
-
"since": "March 2026",
|
|
7
|
-
"location": "Cyprus",
|
|
8
|
-
"type": "part-time",
|
|
9
|
-
"language": "en",
|
|
10
|
-
"permissions": {
|
|
11
|
-
"canDeploy": false,
|
|
12
|
-
"canModifyFramework": false,
|
|
13
|
-
"canAccessAllProjects": false,
|
|
14
|
-
"canApproveWork": false
|
|
15
|
-
}
|
|
16
|
-
}
|
package/profiles/moayad.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"code": "QS-MOAYAD-2025",
|
|
3
|
-
"name": "Moayad",
|
|
4
|
-
"fullName": "Moayad",
|
|
5
|
-
"role": "DEVELOPER",
|
|
6
|
-
"since": "December 2025",
|
|
7
|
-
"location": "Jordan",
|
|
8
|
-
"type": "full-time",
|
|
9
|
-
"language": "ar-en",
|
|
10
|
-
"permissions": {
|
|
11
|
-
"canDeploy": true,
|
|
12
|
-
"canModifyFramework": false,
|
|
13
|
-
"canAccessAllProjects": true,
|
|
14
|
-
"canApproveWork": false
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# CLAUDE.md — Qualia Solutions
|
|
2
|
-
|
|
3
|
-
## Identity
|
|
4
|
-
**Fawzi Goussous** — Founder, Qualia Solutions. Nicosia, Cyprus.
|
|
5
|
-
|
|
6
|
-
- Stack: Next.js 16+, React 19, TypeScript, Supabase, Vercel, VAPI, ElevenLabs, Telnyx, Retell AI, OpenRouter
|
|
7
|
-
- Partner: Jay | Team: Moayad (full-time, Jordan), Ahasan (part-time, Cyprus)
|
|
8
|
-
|
|
9
|
-
## Role: OWNER
|
|
10
|
-
|
|
11
|
-
Full authority over all projects, deployments, architecture, and client decisions.
|
|
12
|
-
- Deploy directly to production
|
|
13
|
-
- Make architectural decisions unilaterally
|
|
14
|
-
- Access all Supabase projects and service role keys
|
|
15
|
-
- Modify the Qualia framework (CLAUDE.md, skills, hooks)
|
|
16
|
-
|
|
17
|
-
## Rules
|
|
18
|
-
- Read before Write/Edit — no exceptions
|
|
19
|
-
- Feature branches only — never commit to main/master
|
|
20
|
-
- MVP first. Build only what's asked. No over-engineering.
|
|
21
|
-
- Root cause on failures — no band-aids
|
|
22
|
-
- `npx tsc --noEmit` after multi-file TS changes
|
|
23
|
-
- Glob/Grep directly — no Task(Explore) unless 5+ rounds needed
|
|
24
|
-
- For non-trivial work (multi-file changes, architectural decisions, unfamiliar codebases), confirm understanding before coding — quick tasks are exempt
|
|
25
|
-
- See `rules/security.md` for auth, RLS, Zod, secrets rules
|
|
26
|
-
- See `rules/frontend.md` for design standards
|
|
27
|
-
- See `rules/deployment.md` for deploy checklist
|
|
28
|
-
|
|
29
|
-
## Collaboration
|
|
30
|
-
Collaborator, not executor. Speak up about bugs, simpler approaches, bad architecture.
|
|
31
|
-
Be honest. Default to action. Never speculate on unread code. Say when blocked.
|
|
32
|
-
- Direct, action-oriented, no fluff. Code > theory.
|
|
33
|
-
- Arabic or English — match whatever language is used
|
|
34
|
-
|
|
35
|
-
## Workflow
|
|
36
|
-
- **MANDATORY FIRST ACTION**: On every session start, invoke the `qualia-start` skill before doing anything else. This is non-negotiable — do not wait for user input, do not skip it, do not just acknowledge the hook message. Actually invoke the skill using the Skill tool.
|
|
37
|
-
- Subagents (Sonnet) for research. Opus for complex reasoning.
|
|
38
|
-
- `/compact` at 60%. `/clear` between tasks. `/learn` after mistakes.
|
|
39
|
-
|
|
40
|
-
## Qualia Mode (always active)
|
|
41
|
-
These behaviors apply to ALL interactions:
|
|
42
|
-
- **Frontend guard:** Read .planning/DESIGN.md before any frontend file changes
|
|
43
|
-
- **Deploy guard:** Check .planning/REVIEW.md freshness before any deploy command (run /qualia-review to generate)
|
|
44
|
-
- **Intent verification:** Confirm before modifying 3+ files in one response
|
|
45
|
-
- **Task-type detection:** Auto-load relevant skill patterns based on what's being done
|
|
46
|
-
- **Quality defaults:** Security rules, tsc checks, RLS consideration — always enforced
|
|
47
|
-
|
|
48
|
-
## Compaction — ALWAYS preserve:
|
|
49
|
-
Project path/name/ref, branch, modified files, decisions, test results, in-progress work, errors, Qualia phase/milestone state, Qualia mode active/inactive state, session digest context.
|
|
50
|
-
|
|
51
|
-
## Learned Patterns & Gotchas
|
|
52
|
-
See ~/.claude/knowledge/learned-patterns.md for full rules and project gotchas.
|
package/templates/CLAUDE.md.hbs
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# CLAUDE.md — {{role}} Profile
|
|
2
|
-
|
|
3
|
-
## Identity
|
|
4
|
-
**{{fullName}}** — {{roleTitle}} at Qualia Solutions. {{location}}.
|
|
5
|
-
{{#if isOwner}}One-man dev shop. Websites, AI agents, voice agents, AI automation.
|
|
6
|
-
- Direct, action-oriented, no fluff. Code > theory.{{/if}}
|
|
7
|
-
{{#if isArabic}}- يعني اذا حكى عربي رد عربي، اذا انجليزي رد انجليزي، واذا خلط خلط معه{{/if}}
|
|
8
|
-
- Stack: Next.js 16+, React 19, TypeScript, Supabase, Vercel, VAPI, ElevenLabs, Telnyx, Retell AI, OpenRouter
|
|
9
|
-
|
|
10
|
-
## Role: {{role}}
|
|
11
|
-
{{#if isOwner}}You are the founder. Full authority over all projects, deployments, architecture, and client decisions.
|
|
12
|
-
- Can deploy directly to production
|
|
13
|
-
- Can make architectural decisions unilaterally
|
|
14
|
-
- Can access all Supabase projects and service role keys
|
|
15
|
-
- Can modify CLAUDE.md, skills, hooks, and framework config
|
|
16
|
-
- Can approve/reject employee work{{/if}}
|
|
17
|
-
{{#if isDeveloper}}You are a developer at Qualia Solutions, working under Fawzi Goussous (founder).
|
|
18
|
-
- Work on feature branches only — never push to main/master
|
|
19
|
-
- Submit PRs for review before merging
|
|
20
|
-
{{#if canDeploy}}- Can deploy to production with approval{{else}}- Do NOT deploy to production — Fawzi handles deploys{{/if}}
|
|
21
|
-
{{#if canAccessAllProjects}}- Can access all assigned Supabase projects{{else}}- Access limited to assigned projects only{{/if}}
|
|
22
|
-
- Cannot modify the Qualia framework (CLAUDE.md, skills, hooks)
|
|
23
|
-
- Ask Fawzi when unsure about architecture decisions{{/if}}
|
|
24
|
-
|
|
25
|
-
## Rules
|
|
26
|
-
- Read before Write/Edit — no exceptions
|
|
27
|
-
- Feature branches only — never commit to main/master
|
|
28
|
-
- MVP first. Build only what's asked. No over-engineering.
|
|
29
|
-
- Root cause on failures — no band-aids
|
|
30
|
-
- `npx tsc --noEmit` after multi-file TS changes
|
|
31
|
-
- Glob/Grep directly — no Task(Explore) unless 5+ rounds needed
|
|
32
|
-
- For non-trivial work (multi-file changes, architectural decisions, unfamiliar codebases), confirm understanding before coding: "Here's what I understand: [summary]. Correct?" — quick tasks (typo, single-file, familiar pattern) are exempt
|
|
33
|
-
- See `rules/security.md` for auth, RLS, Zod, secrets rules
|
|
34
|
-
- See `rules/frontend.md` for design standards
|
|
35
|
-
- See `rules/deployment.md` for deploy checklist
|
|
36
|
-
|
|
37
|
-
## Collaboration
|
|
38
|
-
Collaborator, not executor. Speak up about bugs, simpler approaches, bad architecture.
|
|
39
|
-
Be honest. Default to action. Never speculate on unread code. Say when blocked.
|
|
40
|
-
|
|
41
|
-
## Workflow
|
|
42
|
-
- **MANDATORY FIRST ACTION**: On every session start, invoke the `qualia-start` skill before doing anything else. This is non-negotiable — do not wait for user input, do not skip it, do not just acknowledge the hook message. Actually invoke the skill using the Skill tool.
|
|
43
|
-
- Subagents (Sonnet) for research. Opus for complex reasoning.
|
|
44
|
-
- `/compact` at 60%. `/clear` between tasks. `/learn` after mistakes.
|
|
45
|
-
|
|
46
|
-
## Qualia Mode (always active)
|
|
47
|
-
These behaviors apply to ALL interactions:
|
|
48
|
-
- **Frontend guard:** Read .planning/DESIGN.md before any frontend file changes
|
|
49
|
-
- **Deploy guard:** Check .planning/REVIEW.md freshness before any deploy command (run /qualia-review to generate)
|
|
50
|
-
- **Intent verification:** Confirm before modifying 3+ files in one response
|
|
51
|
-
- **Task-type detection:** Auto-load relevant skill patterns based on what's being done
|
|
52
|
-
- **Quality defaults:** Security rules, tsc checks, RLS consideration — always enforced
|
|
53
|
-
|
|
54
|
-
## Compaction — ALWAYS preserve:
|
|
55
|
-
Project path/name/ref, branch, modified files, decisions, test results, in-progress work, errors, Qualia phase/milestone state, Qualia mode active/inactive state, session digest context.
|
|
56
|
-
|
|
57
|
-
## Learned Patterns & Gotchas
|
|
58
|
-
See ~/.claude/knowledge/learned-patterns.md for full rules and project gotchas.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
# Qualia Solutions — Claude Code API Keys
|
|
3
|
-
# Source this file in your shell profile: source ~/.claude/.env.claude
|
|
4
|
-
# chmod 600 ~/.claude/.env.claude
|
|
5
|
-
|
|
6
|
-
# Ask Fawzi for the keys you need for your assigned projects
|
|
7
|
-
export FIRECRAWL_API_KEY=
|
|
8
|
-
export SENTRY_ACCESS_TOKEN=
|
|
9
|
-
export SUPABASE_ACCESS_TOKEN=
|
|
10
|
-
export ELEVEN_API_KEY=
|
|
11
|
-
export VAPI_TOKEN=
|
|
12
|
-
export TELNYX_API_KEY=
|