tribunal-kit 5.8.5 β 6.0.1
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/.agent/.manifest.json +78 -0
- package/.agent/ARCHITECTURE.md +32 -253
- package/.agent/agents/accessibility-reviewer.md +66 -151
- package/.agent/agents/ai-code-reviewer.md +22 -2
- package/.agent/agents/anti-pattern-reviewer.md +99 -0
- package/.agent/agents/api-architect.md +19 -2
- package/.agent/agents/backend-specialist.md +25 -3
- package/.agent/agents/cloud-engineer.md +21 -0
- package/.agent/agents/code-archaeologist.md +20 -3
- package/.agent/agents/complexity-reviewer.md +22 -2
- package/.agent/agents/database-architect.md +24 -3
- package/.agent/agents/db-latency-auditor.md +22 -2
- package/.agent/agents/debugger.md +19 -3
- package/.agent/agents/dependency-reviewer.md +19 -2
- package/.agent/agents/devops-engineer.md +24 -3
- package/.agent/agents/documentation-writer.md +21 -3
- package/.agent/agents/explorer-agent.md +21 -3
- package/.agent/agents/frontend-reviewer.md +19 -3
- package/.agent/agents/frontend-specialist.md +72 -224
- package/.agent/agents/game-developer.md +22 -3
- package/.agent/agents/interaction-reviewer.md +118 -0
- package/.agent/agents/logic-reviewer.md +18 -3
- package/.agent/agents/minimalist-reviewer.md +98 -0
- package/.agent/agents/mobile-developer.md +21 -3
- package/.agent/agents/mobile-reviewer.md +22 -2
- package/.agent/agents/orchestrator.md +19 -3
- package/.agent/agents/penetration-tester.md +22 -3
- package/.agent/agents/performance-optimizer.md +21 -3
- package/.agent/agents/performance-reviewer.md +2 -0
- package/.agent/agents/precedence-reviewer.md +19 -5
- package/.agent/agents/product-manager.md +20 -3
- package/.agent/agents/product-owner.md +22 -1
- package/.agent/agents/product-reviewer.md +98 -0
- package/.agent/agents/project-planner.md +19 -3
- package/.agent/agents/qa-automation-engineer.md +24 -3
- package/.agent/agents/resilience-reviewer.md +21 -2
- package/.agent/agents/schema-reviewer.md +21 -2
- package/.agent/agents/security-auditor.md +7 -1
- package/.agent/agents/seo-specialist.md +18 -3
- package/.agent/agents/sql-reviewer.md +22 -2
- package/.agent/agents/supervisor-agent.md +22 -3
- package/.agent/agents/swarm-worker-registry.md +7 -0
- package/.agent/agents/system-architect.md +19 -0
- package/.agent/agents/test-coverage-reviewer.md +22 -2
- package/.agent/agents/test-engineer.md +21 -2
- package/.agent/agents/throughput-optimizer.md +22 -2
- package/.agent/agents/type-safety-reviewer.md +21 -2
- package/.agent/agents/ui-ux-auditor.md +44 -242
- package/.agent/agents/ui-visual-auditor.md +99 -0
- package/.agent/agents/ux-reviewer.md +104 -0
- package/.agent/agents/visual-reviewer.md +98 -0
- package/.agent/agents/vitals-reviewer.md +23 -2
- package/.agent/history/README.md +53 -0
- package/.agent/history/case-law/cases/template-case.json +19 -0
- package/.agent/history/integrity_manifest.json +63 -33
- package/.agent/history/memory/.memory.idx +2701 -1
- package/.agent/history/memory/MEMORY.md +179 -1
- package/.agent/routing_index.json +273 -690
- package/.agent/rules/GEMINI.md +11 -13
- package/.agent/rules/GEMINI_PLANNER.md +84 -0
- package/.agent/scripts/case_law_manager.js +2 -0
- package/.agent/scripts/context_broker.js +152 -0
- package/.agent/scripts/guardrail_engine.js +59 -4
- package/.agent/scripts/impact_classifier.js +167 -0
- package/.agent/scripts/minimal_change_engine.js +437 -0
- package/.agent/scripts/pipeline_engine.js +856 -0
- package/.agent/scripts/socratic_gate_policy.js +60 -0
- package/.agent/scripts/token_budget_broker.js +52 -0
- package/.agent/scripts/verify_all.js +13 -0
- package/.agent/scripts/visual_audit.js +92 -0
- package/.agent/skill_topic_map.json +218 -0
- package/.agent/skills/12-principles-of-animation/SKILL.md +19 -10
- package/.agent/skills/60fps-animation/SKILL.md +19 -10
- package/.agent/skills/accessible-animation/SKILL.md +19 -10
- package/.agent/skills/adapt/SKILL.md +19 -10
- package/.agent/skills/advanced-rag-pipelines/SKILL.md +21 -3
- package/.agent/skills/agent-organizer/SKILL.md +21 -7
- package/.agent/skills/agentic-patterns/SKILL.md +19 -7
- package/.agent/skills/agentic-workflows-2026/SKILL.md +76 -0
- package/.agent/skills/ai-app-hardening/SKILL.md +58 -0
- package/.agent/skills/ai-prompt-injection-defense/SKILL.md +21 -7
- package/.agent/skills/animation-on-scroll/SKILL.md +19 -10
- package/.agent/skills/animation-systems/SKILL.md +19 -10
- package/.agent/skills/antfu-conventions/SKILL.md +21 -10
- package/.agent/skills/api-patterns/SKILL.md +21 -7
- package/.agent/skills/api-security-auditor/SKILL.md +21 -7
- package/.agent/skills/app-builder/SKILL.md +21 -7
- package/.agent/skills/apple-design/SKILL.md +19 -10
- package/.agent/skills/architecture/SKILL.md +21 -7
- package/.agent/skills/audit-and-fix/SKILL.md +19 -10
- package/.agent/skills/authentication-best-practices/SKILL.md +21 -7
- package/.agent/skills/backend-security-expert/SKILL.md +21 -7
- package/.agent/skills/baseline-ui/SKILL.md +19 -10
- package/.agent/skills/bash-linux/SKILL.md +21 -7
- package/.agent/skills/behavioral-modes/SKILL.md +19 -7
- package/.agent/skills/better-colors/SKILL.md +19 -10
- package/.agent/skills/better-ui/SKILL.md +19 -10
- package/.agent/skills/bolder/SKILL.md +19 -10
- package/.agent/skills/brainstorming/SKILL.md +17 -7
- package/.agent/skills/browser-native-ai/SKILL.md +19 -3
- package/.agent/skills/build-primitive/SKILL.md +19 -10
- package/.agent/skills/building-native-ui/SKILL.md +21 -7
- package/.agent/skills/cicd-pro/SKILL.md +21 -10
- package/.agent/skills/clarify/SKILL.md +19 -10
- package/.agent/skills/clean-code/SKILL.md +21 -7
- package/.agent/skills/cloud-architect/SKILL.md +21 -10
- package/.agent/skills/cobejs/SKILL.md +19 -10
- package/.agent/skills/code-review-checklist/SKILL.md +21 -7
- package/.agent/skills/codebase-design/SKILL.md +21 -10
- package/.agent/skills/colorize/SKILL.md +19 -10
- package/.agent/skills/compact-landing/SKILL.md +19 -10
- package/.agent/skills/company-logos/SKILL.md +19 -10
- package/.agent/skills/config-validator/SKILL.md +21 -7
- package/.agent/skills/containerization-pro/SKILL.md +21 -10
- package/.agent/skills/context-engineering-pro/SKILL.md +69 -0
- package/.agent/skills/create-design-md/SKILL.md +19 -10
- package/.agent/skills/critique/SKILL.md +19 -10
- package/.agent/skills/csharp-developer/SKILL.md +21 -7
- package/.agent/skills/data-validation-schemas/SKILL.md +21 -7
- package/.agent/skills/database-design/SKILL.md +21 -7
- package/.agent/skills/delight/SKILL.md +19 -10
- package/.agent/skills/deployment-procedures/SKILL.md +21 -7
- package/.agent/skills/design-lab/SKILL.md +21 -10
- package/.agent/skills/devops-engineer/SKILL.md +21 -7
- package/.agent/skills/devops-incident-responder/SKILL.md +21 -7
- package/.agent/skills/diagnosing-bugs/SKILL.md +21 -10
- package/.agent/skills/distill/SKILL.md +19 -10
- package/.agent/skills/documentation-templates/SKILL.md +21 -7
- package/.agent/skills/domain-modeling/SKILL.md +21 -10
- package/.agent/skills/duckdb-analytical-sql/SKILL.md +55 -0
- package/.agent/skills/edge-ai-mobile/SKILL.md +46 -0
- package/.agent/skills/edge-computing/SKILL.md +21 -7
- package/.agent/skills/emil-design-eng/SKILL.md +19 -10
- package/.agent/skills/error-resilience/SKILL.md +21 -7
- package/.agent/skills/expo-router-v4/SKILL.md +80 -0
- package/.agent/skills/extract-design-system/SKILL.md +21 -7
- package/.agent/skills/fabel-protocol/SKILL.md +19 -2
- package/.agent/skills/fixing-accessibility/SKILL.md +19 -10
- package/.agent/skills/fixing-metadata/SKILL.md +19 -10
- package/.agent/skills/fixing-motion-performance/SKILL.md +19 -10
- package/.agent/skills/framer-motion-expert/SKILL.md +19 -6
- package/.agent/skills/frontend-design/SKILL.md +64 -201
- package/.agent/skills/frontend-security-expert/SKILL.md +21 -7
- package/.agent/skills/game-design-expert/SKILL.md +21 -7
- package/.agent/skills/game-engineering-expert/SKILL.md +21 -7
- package/.agent/skills/generative-ui-expert/SKILL.md +19 -3
- package/.agent/skills/geo-fundamentals/SKILL.md +21 -7
- package/.agent/skills/git-pro/SKILL.md +21 -10
- package/.agent/skills/github-operations/SKILL.md +21 -7
- package/.agent/skills/gpt-taste/SKILL.md +19 -10
- package/.agent/skills/gsap-core/SKILL.md +21 -4
- package/.agent/skills/gsap-frameworks/SKILL.md +21 -4
- package/.agent/skills/gsap-performance/SKILL.md +20 -5
- package/.agent/skills/gsap-plugins/SKILL.md +20 -5
- package/.agent/skills/gsap-react/SKILL.md +20 -5
- package/.agent/skills/gsap-scrolltrigger/SKILL.md +21 -4
- package/.agent/skills/gsap-timeline/SKILL.md +20 -5
- package/.agent/skills/gsap-utils/SKILL.md +20 -5
- package/.agent/skills/harden/SKILL.md +19 -10
- package/.agent/skills/harness-protocol/SKILL.md +20 -4
- package/.agent/skills/i18n-localization/SKILL.md +21 -7
- package/.agent/skills/impeccable/SKILL.md +19 -10
- package/.agent/skills/improve-codebase-architecture/SKILL.md +21 -10
- package/.agent/skills/improve-ui/SKILL.md +19 -10
- package/.agent/skills/intelligent-routing/SKILL.md +19 -7
- package/.agent/skills/knowledge-graph/SKILL.md +20 -4
- package/.agent/skills/landing-page/SKILL.md +20 -10
- package/.agent/skills/lint-and-validate/SKILL.md +21 -7
- package/.agent/skills/llm-engineering/SKILL.md +21 -7
- package/.agent/skills/local-first/SKILL.md +21 -7
- package/.agent/skills/local-first-architecture/SKILL.md +19 -10
- package/.agent/skills/lottie-animation/SKILL.md +19 -10
- package/.agent/skills/marquee-loop/SKILL.md +19 -10
- package/.agent/skills/masked-reveal/SKILL.md +19 -10
- package/.agent/skills/mcp-builder/SKILL.md +21 -7
- package/.agent/skills/micro-interaction/SKILL.md +19 -10
- package/.agent/skills/mobile-design/SKILL.md +21 -6
- package/.agent/skills/monorepo-management/SKILL.md +21 -7
- package/.agent/skills/morphing-icons/SKILL.md +19 -10
- package/.agent/skills/motion-engineering/SKILL.md +20 -7
- package/.agent/skills/nextjs-react-expert/SKILL.md +19 -7
- package/.agent/skills/nodejs-best-practices/SKILL.md +21 -7
- package/.agent/skills/observability/SKILL.md +21 -7
- package/.agent/skills/opentelemetry-observability/SKILL.md +58 -0
- package/.agent/skills/page-transition-animation/SKILL.md +19 -10
- package/.agent/skills/parallel-agents/SKILL.md +23 -7
- package/.agent/skills/performance-profiling/SKILL.md +21 -7
- package/.agent/skills/plan-writing/SKILL.md +21 -7
- package/.agent/skills/platform-engineer/SKILL.md +21 -7
- package/.agent/skills/platform-engineering-opentofu/SKILL.md +67 -0
- package/.agent/skills/playwright-ai-e2e/SKILL.md +59 -0
- package/.agent/skills/playwright-best-practices/SKILL.md +21 -7
- package/.agent/skills/polish/SKILL.md +19 -10
- package/.agent/skills/powershell-windows/SKILL.md +21 -7
- package/.agent/skills/pricing-page/SKILL.md +19 -10
- package/.agent/skills/product-aware-heuristics/SKILL.md +358 -0
- package/.agent/skills/progressive-blur/SKILL.md +19 -10
- package/.agent/skills/project-idioms/SKILL.md +20 -8
- package/.agent/skills/property-based-testing/SKILL.md +60 -0
- package/.agent/skills/python-patterns/SKILL.md +21 -7
- package/.agent/skills/python-pro/SKILL.md +21 -6
- package/.agent/skills/quieter/SKILL.md +19 -10
- package/.agent/skills/react-doctor/SKILL.md +19 -10
- package/.agent/skills/react-specialist/SKILL.md +19 -6
- package/.agent/skills/readme-builder/SKILL.md +21 -7
- package/.agent/skills/realtime-patterns/SKILL.md +21 -7
- package/.agent/skills/red-team-tactics/SKILL.md +21 -7
- package/.agent/skills/redesign-skill/SKILL.md +19 -10
- package/.agent/skills/review-animations/SKILL.md +21 -10
- package/.agent/skills/rust-pro/SKILL.md +21 -7
- package/.agent/skills/seo-fundamentals/SKILL.md +21 -7
- package/.agent/skills/server-management/SKILL.md +21 -7
- package/.agent/skills/shadcn-ui-expert/SKILL.md +21 -7
- package/.agent/skills/shape/SKILL.md +19 -10
- package/.agent/skills/skill-creator/SKILL.md +21 -7
- package/.agent/skills/soft-skill/SKILL.md +19 -10
- package/.agent/skills/sounds-on-the-web/SKILL.md +19 -10
- package/.agent/skills/sql-pro/SKILL.md +21 -7
- package/.agent/skills/supabase-postgres-best-practices/SKILL.md +21 -7
- package/.agent/skills/svg-animation/SKILL.md +19 -10
- package/.agent/skills/swiftui-expert/SKILL.md +21 -7
- package/.agent/skills/swiss-design/SKILL.md +19 -10
- package/.agent/skills/system-design-pro/SKILL.md +21 -9
- package/.agent/skills/systematic-debugging/SKILL.md +21 -7
- package/.agent/skills/tailwind-patterns/SKILL.md +21 -7
- package/.agent/skills/taste-skill/SKILL.md +19 -10
- package/.agent/skills/tdd-workflow/SKILL.md +21 -10
- package/.agent/skills/test-result-analyzer/SKILL.md +18 -6
- package/.agent/skills/testing-patterns/SKILL.md +21 -7
- package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +21 -10
- package/.agent/skills/thinking-protocol/SKILL.md +20 -8
- package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +19 -10
- package/.agent/skills/transitions-dev/SKILL.md +19 -10
- package/.agent/skills/trend-researcher/SKILL.md +17 -6
- package/.agent/skills/typescript-advanced/SKILL.md +21 -7
- package/.agent/skills/typeset/SKILL.md +19 -10
- package/.agent/skills/ui-reasoning-engine/SKILL.md +154 -0
- package/.agent/skills/ui-skill-packs/SKILL.md +77 -0
- package/.agent/skills/ui-skills-root/SKILL.md +21 -9
- package/.agent/skills/ui-ux-pro-max/SKILL.md +62 -583
- package/.agent/skills/ui-ux-researcher/SKILL.md +17 -6
- package/.agent/skills/vector-search-pgvector/SKILL.md +77 -0
- package/.agent/skills/vue-expert/SKILL.md +19 -6
- package/.agent/skills/vulnerability-scanner/SKILL.md +21 -7
- package/.agent/skills/web-accessibility-auditor/SKILL.md +21 -7
- package/.agent/skills/web-design-guidelines/SKILL.md +32 -206
- package/.agent/skills/web-quality-audit/SKILL.md +19 -10
- package/.agent/skills/webapp-testing/SKILL.md +21 -7
- package/.agent/skills/webgpu-performance/SKILL.md +19 -3
- package/.agent/skills/whimsy-injector/SKILL.md +20 -10
- package/.agent/skills/workflow-optimizer/SKILL.md +16 -6
- package/.agent/skills/zero-trust-passkeys/SKILL.md +85 -0
- package/.agent/templates/DESIGN.md +292 -0
- package/.agent/templates/design-tokens.json +137 -0
- package/.agent/workflows/acf.md +13 -6
- package/.agent/workflows/api-tester.md +15 -8
- package/.agent/workflows/audit.md +19 -8
- package/.agent/workflows/brainstorm.md +14 -9
- package/.agent/workflows/changelog.md +14 -8
- package/.agent/workflows/create.md +16 -8
- package/.agent/workflows/debug.md +15 -10
- package/.agent/workflows/deploy.md +16 -8
- package/.agent/workflows/enhance.md +15 -10
- package/.agent/workflows/fix.md +15 -8
- package/.agent/workflows/generate.md +17 -11
- package/.agent/workflows/marathon.md +15 -8
- package/.agent/workflows/migrate.md +16 -8
- package/.agent/workflows/minimal.md +94 -0
- package/.agent/workflows/orchestrate.md +15 -8
- package/.agent/workflows/performance-benchmarker.md +15 -8
- package/.agent/workflows/pipeline.md +155 -0
- package/.agent/workflows/plan.md +14 -10
- package/.agent/workflows/preview.md +14 -7
- package/.agent/workflows/refactor.md +16 -8
- package/.agent/workflows/review-ai.md +15 -7
- package/.agent/workflows/review.md +15 -7
- package/.agent/workflows/session.md +14 -7
- package/.agent/workflows/status.md +13 -7
- package/.agent/workflows/strengthen-skills.md +15 -6
- package/.agent/workflows/super-prompt.md +19 -10
- package/.agent/workflows/swarm.md +15 -7
- package/.agent/workflows/test.md +15 -8
- package/.agent/workflows/tribunal-backend.md +16 -9
- package/.agent/workflows/tribunal-database.md +15 -8
- package/.agent/workflows/tribunal-frontend.md +26 -11
- package/.agent/workflows/tribunal-full.md +41 -26
- package/.agent/workflows/tribunal-mobile.md +15 -8
- package/.agent/workflows/tribunal-performance.md +15 -8
- package/.agent/workflows/tribunal-speed.md +16 -9
- package/.agent/workflows/tribunal-ui.md +82 -0
- package/.agent/workflows/ui-ux-pro-max.md +51 -107
- package/CONTRIBUTING.md +2 -2
- package/README.md +82 -60
- package/SECURITY.md +3 -3
- package/bin/mcp-server.js +253 -57
- package/bin/wrapper.js +24 -10
- package/dist/cli.js +29 -1
- package/dist/commands/compile.js +7 -0
- package/dist/commands/context.js +8 -3
- package/dist/commands/graph.js +8 -2
- package/dist/commands/init.js +13 -2
- package/dist/commands/memory.js +120 -68
- package/dist/commands/minimal.js +71 -0
- package/dist/commands/native.js +36 -0
- package/dist/commands/optimize.js +15 -5
- package/dist/esm/index.mjs +58 -32
- package/dist/index.d.ts +50 -2
- package/dist/utils/fs.js +10 -4
- package/dist/utils/helpers.js +10 -1
- package/dist/utils/version.js +9 -2
- package/mcp_config.json +10 -1
- package/package.json +16 -10
- package/scripts/benchmark.js +16 -0
- package/scripts/sync-version.js +1 -1
- package/scripts/visual_audit.js +126 -0
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Frontend and React specific Tribunal. Runs Logic + Security + Frontend + Type Safety + UI/UX + Motion reviewers. Use for React components, hooks, UI code, Next.js pages, Server Components, and Client Components.
|
|
3
|
-
|
|
2
|
+
description: Frontend and React specific Tribunal. Runs Logic + Security + Frontend + Type Safety + UI/UX + Motion + Visual Audit reviewers. Use for React components, hooks, UI code, Next.js pages, Server Components, and Client Components.
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- ui-skill-packs
|
|
8
|
+
- react-specialist
|
|
9
|
+
- nextjs-react-expert
|
|
10
|
+
- frontend-design
|
|
11
|
+
- review-animations
|
|
12
|
+
- emil-design-eng
|
|
13
|
+
scripts-binding:
|
|
14
|
+
- .agent/scripts/lint_runner.js
|
|
15
|
+
- .agent/scripts/security_scan.js
|
|
4
16
|
---
|
|
5
17
|
|
|
6
|
-
# /tribunal-frontend β Frontend Code Audit
|
|
18
|
+
# /tribunal-frontend β Frontend Code & Visual Audit
|
|
7
19
|
|
|
8
20
|
$ARGUMENTS
|
|
9
21
|
|
|
10
22
|
---
|
|
11
23
|
|
|
12
|
-
##
|
|
24
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
25
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
β‘ package.json β Verify frontend dependencies (framer-motion, radicle, etc.)
|
|
19
|
-
```
|
|
26
|
+
Before auditing React components or frontend UI logic, you MUST inspect:
|
|
27
|
+
1. Design Tokens & Styling Context (`globals.css`, `tailwind.config`) β Verify OKLCH color palettes, typography scale, and dark mode classes
|
|
28
|
+
2. Active UI Skill Pack (`.agent/skills/ui-skill-packs/SKILL.md`) β Load mandatory UI skill pack (Pack 1: Foundations, Pack 2: Motion, Pack 3: Systems)
|
|
29
|
+
3. 7-Reviewer Frontend Gate β Run logic, security, frontend-reviewer, type-safety, ui-ux-auditor, motion-reviewer, and visual-auditor before approving UI diffs
|
|
20
30
|
|
|
21
31
|
---
|
|
22
32
|
|
|
@@ -32,7 +42,7 @@ Read BEFORE frontend review:
|
|
|
32
42
|
|
|
33
43
|
---
|
|
34
44
|
|
|
35
|
-
##
|
|
45
|
+
## 7 Active Reviewers (All Run Simultaneously)
|
|
36
46
|
|
|
37
47
|
### precedence-reviewer β Checks local repo Case Law for past rejections
|
|
38
48
|
|
|
@@ -73,6 +83,11 @@ Read BEFORE frontend review:
|
|
|
73
83
|
- Color contrast below WCAG AA (4.5:1)
|
|
74
84
|
- Typography and spacing not following design system logic
|
|
75
85
|
|
|
86
|
+
### ui-visual-auditor (Closed-Loop Visual Gate)
|
|
87
|
+
|
|
88
|
+
- Runs `node scripts/visual_audit.js --file <target>` to verify OKLCH color compliance, surface depth layering (hairline borders + ambient shadows), and interactive state polish.
|
|
89
|
+
- Rejects flat card containers lacking depth or hex hacks without design tokens.
|
|
90
|
+
|
|
76
91
|
### review-animations (The Socratic Gate)
|
|
77
92
|
|
|
78
93
|
- Any UI animation exceeding 300ms budget
|
|
@@ -1,22 +1,37 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Runs ALL
|
|
3
|
-
|
|
2
|
+
description: Runs ALL 21 parallel reviewers simultaneously. Maximum hallucination coverage. Use before merging any AI-generated code, before production deployments, or when maximum confidence is required.
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- clean-code
|
|
8
|
+
- backend-security-expert
|
|
9
|
+
- frontend-design
|
|
10
|
+
- database-design
|
|
11
|
+
- mobile-design
|
|
12
|
+
- performance-profiling
|
|
13
|
+
scripts-binding:
|
|
14
|
+
- .agent/scripts/security_scan.js
|
|
15
|
+
- .agent/scripts/dependency_analyzer.js
|
|
16
|
+
- .agent/scripts/lint_runner.js
|
|
17
|
+
- .agent/scripts/schema_validator.js
|
|
18
|
+
- .agent/scripts/test_runner.js
|
|
19
|
+
- .agent/scripts/bundle_analyzer.js
|
|
20
|
+
- .agent/scripts/verify_all.js
|
|
4
21
|
---
|
|
5
22
|
|
|
6
|
-
# /tribunal-full β Complete
|
|
23
|
+
# /tribunal-full β Complete 21-Reviewer Audit
|
|
7
24
|
|
|
8
25
|
$ARGUMENTS
|
|
9
26
|
|
|
10
27
|
---
|
|
11
28
|
|
|
12
|
-
##
|
|
29
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
30
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
β‘ Config files β tsconfig, next.config, tailwind.config
|
|
19
|
-
```
|
|
31
|
+
Before launching the full 21-reviewer audit, you MUST inspect:
|
|
32
|
+
1. Pending Code Modifications (`git diff` / modified files) β Inspect diffs across all domains (frontend, backend, database, mobile)
|
|
33
|
+
2. Workspace Configuration Context (`package.json`, `tsconfig.json`, `tailwind.config`) β Verify project build contracts
|
|
34
|
+
3. 21-Reviewer Synthesis Gate β Execute all 21 specialized reviewers in parallel; halt on any security violation or critical bug before Human Gate approval
|
|
20
35
|
|
|
21
36
|
---
|
|
22
37
|
|
|
@@ -32,43 +47,43 @@ Read BEFORE full review:
|
|
|
32
47
|
|
|
33
48
|
---
|
|
34
49
|
|
|
35
|
-
##
|
|
50
|
+
## 21 Reviewers β Stage-Partitioned Execution (3 Waves)
|
|
51
|
+
|
|
52
|
+
To eliminate context window saturation and reviewer attention dilution, the 21 reviewers execute in 3 partitioned passes:
|
|
36
53
|
|
|
37
54
|
```
|
|
38
|
-
|
|
55
|
+
Wave 1: Core Integrity & Precedences (Pass 1)
|
|
39
56
|
βββ precedence-reviewer β Checks local repo Case Law for past rejections
|
|
40
57
|
βββ logic-reviewer β Hallucinated methods, impossible logic, undefined refs
|
|
41
|
-
βββ
|
|
58
|
+
βββ schema-reviewer β Missing input validation, loose schemas, raw req.body
|
|
42
59
|
βββ resilience-reviewer β Swallowed errors, unhandled rejections, missing retries
|
|
43
60
|
|
|
44
|
-
|
|
61
|
+
Wave 2: Security, Types & Code Quality (Pass 2)
|
|
62
|
+
βββ security-auditor β OWASP 2025, injection, JWT, SSRF, IDOR
|
|
45
63
|
βββ dependency-reviewer β Fabricated packages, supply chain, version compatibility
|
|
46
64
|
βββ type-safety-reviewer β 'any' epidemic, Zod parse vs cast, unguarded access
|
|
47
65
|
βββ complexity-reviewer β Enforces the Dependency Ladder to prevent over-engineering
|
|
48
|
-
βββ schema-reviewer β Missing input validation, loose schemas, raw req.body
|
|
49
66
|
βββ sql-reviewer β Injection, N+1, missing indexes, unscoped mutations
|
|
50
67
|
|
|
51
|
-
|
|
68
|
+
Wave 3: Domain, UI & Performance (Pass 3)
|
|
52
69
|
βββ frontend-reviewer β React 19 APIs, RSC violations, hook rules, hydration
|
|
53
|
-
βββ performance-reviewer β
|
|
70
|
+
βββ performance-reviewer β Core Web Vitals targets, re-render cascades, memory leaks
|
|
54
71
|
βββ mobile-reviewer β Reanimated thread safety, FlashList, safe area insets
|
|
55
72
|
βββ ai-code-reviewer β Model name hallucinations, prompt injection, cost explosion
|
|
56
73
|
βββ test-coverage-reviewer β Happy path only, brittle selectors, missing edge cases
|
|
57
74
|
βββ accessibility-reviewer β WCAG 2.2 AA, ARIA misuse, focus management, live regions
|
|
58
75
|
βββ ui-ux-auditor β Generic AI aesthetics, missing hover states, contrast
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
βββ db-latency-auditor β DB layer: N+1, unbounded queries, unindexed WHERE, pool config
|
|
64
|
-
βββ throughput-optimizer β Server runtime: event-loop blocks, serialized awaits, memory leaks
|
|
76
|
+
βββ review-animations β UI animations >300ms, origin-unaware popovers, ease-in
|
|
77
|
+
βββ vitals-reviewer β Frontend CWV depth: Suspense waterfalls, paint jank
|
|
78
|
+
βββ db-latency-auditor β DB layer: N+1, unbounded queries, unindexed WHERE
|
|
79
|
+
βββ throughput-optimizer β Server runtime: event-loop blocks, serialized awaits
|
|
65
80
|
```
|
|
66
81
|
|
|
67
82
|
---
|
|
68
83
|
|
|
69
84
|
## Active Reviewers by Code Type
|
|
70
85
|
|
|
71
|
-
Not all
|
|
86
|
+
Not all 21 reviewers produce meaningful findings on all code types. Active reviewers detect their first finding immediately β inactive reviewers auto-pass with "N/A for this code type."
|
|
72
87
|
|
|
73
88
|
| Code Under Review | Critical Reviewers |
|
|
74
89
|
| :------------------ | :---------------------------------------------------------------- |
|
|
@@ -86,7 +101,7 @@ Not all 20 reviewers produce meaningful findings on all code types. Active revie
|
|
|
86
101
|
## Verdict Aggregation
|
|
87
102
|
|
|
88
103
|
```
|
|
89
|
-
All
|
|
104
|
+
All 21 verdicts are collected. Aggregated result:
|
|
90
105
|
|
|
91
106
|
If ANY reviewer = β REJECTED β Global verdict: β REJECTED (must fix before Human Gate)
|
|
92
107
|
If any reviewer = β οΈ WARNING β Global verdict: β οΈ WARNINGS (proceed with attention)
|
|
@@ -124,7 +139,7 @@ After 3 failed attempts:
|
|
|
124
139
|
|
|
125
140
|
| Outcome | Next Command |
|
|
126
141
|
| :------------------------- | :--------------------------------------------- |
|
|
127
|
-
| All
|
|
142
|
+
| All 21 reviewers approve | β `/deploy` β highest confidence state |
|
|
128
143
|
| Reject with multiple fixes | β `/fix` for simple issues, `/debug` for logic |
|
|
129
144
|
| Performance rejection | β `/tribunal-speed` for granular profiling |
|
|
130
145
|
| Security rejection | β Immediate `/tribunal-backend` to resolve |
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Mobile-specific Tribunal. Runs Logic + Security + Mobile reviewers. Use for React Native, Expo, gesture handlers, animations, navigation, and any iOS/Android-targeted code.
|
|
3
|
-
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- building-native-ui
|
|
8
|
+
- mobile-design
|
|
9
|
+
- swiftui-expert
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/lint_runner.js
|
|
12
|
+
- .agent/scripts/security_scan.js
|
|
4
13
|
---
|
|
5
14
|
|
|
6
15
|
# /tribunal-mobile β Mobile Code Audit
|
|
@@ -9,14 +18,12 @@ $ARGUMENTS
|
|
|
9
18
|
|
|
10
19
|
---
|
|
11
20
|
|
|
12
|
-
##
|
|
21
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
22
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
β‘ app.json / app.config.js β Check for correct permissions and plugins
|
|
19
|
-
```
|
|
23
|
+
Before auditing React Native, Expo, or native mobile code, you MUST inspect:
|
|
24
|
+
1. Native Configuration Manifests (`app.json`, `app.config.js`, `package.json`) β Verify Expo SDK version, Reanimated dependencies, and permissions
|
|
25
|
+
2. Gesture & 60fps Motion Rules β Enforce `react-native-reanimated` worklets on UI thread; ban JavaScript bridge layout thrashing
|
|
26
|
+
3. 3-Reviewer Mobile Gate β Run logic-reviewer, security-auditor, and mobile-reviewer before approving mobile component diffs
|
|
20
27
|
|
|
21
28
|
---
|
|
22
29
|
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Performance-specific Tribunal. Runs Logic + Performance reviewers. Use when code is slow, for optimization tasks, bundle analysis, Core Web Vitals improvement, memory leak investigation, and before deploying performance-critical features.
|
|
3
|
-
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- performance-profiling
|
|
8
|
+
- 60fps-animation
|
|
9
|
+
- gsap-performance
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/bundle_analyzer.js
|
|
12
|
+
- .agent/scripts/test_runner.js
|
|
4
13
|
---
|
|
5
14
|
|
|
6
15
|
# /tribunal-performance β Performance Audit
|
|
@@ -9,14 +18,12 @@ $ARGUMENTS
|
|
|
9
18
|
|
|
10
19
|
---
|
|
11
20
|
|
|
12
|
-
##
|
|
21
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
22
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
β‘ Next.js / bundler config β Check for bundle optimization settings
|
|
19
|
-
```
|
|
23
|
+
Before optimizing code or running performance reviews, you MUST inspect:
|
|
24
|
+
1. Target Source & Heavy Import Inspection (`package.json`, `next.config.js`) β Identify heavy library imports (`moment`, full `lodash`) for tree-shaking
|
|
25
|
+
2. Measured Baseline Metrics β Run `bundle_analyzer.js` or latency measurements; ban claiming performance improvements without measured proof
|
|
26
|
+
3. 2-Reviewer Performance Gate β Run logic-reviewer and performance-optimizer before approving optimization diffs
|
|
20
27
|
|
|
21
28
|
---
|
|
22
29
|
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Full-stack parallel performance audit. Runs 3 scoped specialists simultaneously β vitals-reviewer (Frontend CWV), db-latency-auditor (SQL/ORM), throughput-optimizer (Node.js server) β then synthesizes a single ranked report. Maximum 5 AI calls regardless of project size. Use when full-stack performance profiling is needed.
|
|
3
|
-
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- performance-profiling
|
|
8
|
+
- observability
|
|
9
|
+
- edge-computing
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/bundle_analyzer.js
|
|
12
|
+
- .agent/scripts/verify_all.js
|
|
4
13
|
---
|
|
5
14
|
|
|
6
15
|
# /tribunal-speed β Full-Stack Performance Swarm
|
|
@@ -9,14 +18,12 @@ $ARGUMENTS
|
|
|
9
18
|
|
|
10
19
|
---
|
|
11
20
|
|
|
12
|
-
##
|
|
21
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
22
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
β‘ Database schemas β Needed for the db-latency-auditor
|
|
19
|
-
```
|
|
23
|
+
Before running a full-stack performance audit, you MUST inspect:
|
|
24
|
+
1. Target Full-Stack File Map β Determine frontend components, Node.js server routes, and database models
|
|
25
|
+
2. Max 5 AI Call Ceiling β Cap swarm executions to 3 parallel specialists + 1 synthesis step to prevent token explosion
|
|
26
|
+
3. Ranked Impact Synthesis β Output findings strictly in a single unified table prioritized by user-facing latency impact
|
|
20
27
|
|
|
21
28
|
---
|
|
22
29
|
|
|
@@ -181,7 +188,7 @@ If a specialist fails after 3 retries:
|
|
|
181
188
|
| :------------------------- | :------------------------------- | :--------------------- | :--------------------------------------- |
|
|
182
189
|
| `/tribunal-performance` | logic + performance-reviewer | Generic CWV check | Quick single-file perf scan |
|
|
183
190
|
| `/tribunal-speed` | vitals + db-latency + throughput | Deep 3-domain parallel | Full-stack perf audit |
|
|
184
|
-
| `/tribunal-full` | All
|
|
191
|
+
| `/tribunal-full` | All 21 reviewers | Everything | Maximum coverage (security + perf + all) |
|
|
185
192
|
| `/performance-benchmarker` | Lighthouse + bundle | Measurement only | Get actual scores, not code review |
|
|
186
193
|
|
|
187
194
|
---
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Specialized UI/UX Tribunal. Runs UX + Visual + Interaction + Anti-Pattern + Product Heuristics + Accessibility + Visual Auditor reviewers. Use for all visual designs, component layouts, and design-system reviews.
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- ui-reasoning-engine
|
|
8
|
+
- product-aware-heuristics
|
|
9
|
+
- ui-ux-pro-max
|
|
10
|
+
- frontend-design
|
|
11
|
+
- web-design-guidelines
|
|
12
|
+
scripts-binding:
|
|
13
|
+
- .agent/scripts/lint_runner.js
|
|
14
|
+
- .agent/scripts/verify_all.js
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# /tribunal-ui β Dedicated UI/UX Review Pipeline
|
|
18
|
+
|
|
19
|
+
$ARGUMENTS
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Mandatory Pre-Flight Context Inspection
|
|
24
|
+
|
|
25
|
+
Before executing dedicated UI/UX audits or design-system reviews, you MUST inspect:
|
|
26
|
+
1. Active Design Tokens & Guidelines (`DESIGN.md`, CSS custom properties) β Confirm typography scale, color system, and corner radius tokens
|
|
27
|
+
2. Product Domain Category β Select category heuristics (Dashboard, E-Commerce, Landing Page, Mobile App, Marketing)
|
|
28
|
+
3. 7-Reviewer Dedicated UI Gate β Run ux-auditor, visual-auditor, interaction-auditor, anti-pattern-auditor, product-heuristics, a11y-auditor, and visual-auditor before passing designs
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## When to Use /tribunal-ui
|
|
33
|
+
|
|
34
|
+
| Use `/tribunal-ui` when... | Use instead when... |
|
|
35
|
+
| :--- | :--- |
|
|
36
|
+
| Auditing visual hierarchy & rhythm | Reviewing backend routing β `/tribunal-backend` |
|
|
37
|
+
| Verifying interactive states and hover/focus | Reviewing database transaction code β `/tribunal-database` |
|
|
38
|
+
| Checking responsive behavior and ergonomics | Doing general logical code checks β `/tribunal-frontend` |
|
|
39
|
+
| Banning generic AI templates & purple gradients | |
|
|
40
|
+
| Testing accessibility compliance (WCAG 2.2 AA) | |
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 7 Specialized UI Reviewers (Running Simultaneously)
|
|
45
|
+
|
|
46
|
+
### 1. ux-reviewer
|
|
47
|
+
* **Focus:** Hick's Law, Fitts's Law, cognitive load, scanning patterns, scannability, and progressive disclosure.
|
|
48
|
+
* **Check:** Are primary action targets separated from destructive ones? Is choice overload prevented?
|
|
49
|
+
|
|
50
|
+
### 2. visual-reviewer
|
|
51
|
+
* **Focus:** Typographical scaling, alignment, margins, 8px grid discipline, and line lengths.
|
|
52
|
+
* **Check:** Do Display headings balanced-wrap (`text-wrap: balance`)? Is negative space utilized?
|
|
53
|
+
|
|
54
|
+
### 3. interaction-reviewer
|
|
55
|
+
* **Focus:** Full interactive state styling (Default, Hover, Active/Pressed, Disabled, Focus-visible, Loading).
|
|
56
|
+
* **Check:** Is there scale-down active click feedback? Are focus outlines visible and offset?
|
|
57
|
+
|
|
58
|
+
### 4. anti-pattern-reviewer
|
|
59
|
+
* **Focus:** Blocking generic AI visual clichΓ©s.
|
|
60
|
+
* **Check:** Blocks purple/violet primary colors, radial mesh gradients, bento grid overload, flat cards lacking depth, and card-in-card overlap.
|
|
61
|
+
|
|
62
|
+
### 5. product-reviewer
|
|
63
|
+
* **Focus:** Matching the UI structure to product category heuristics (SaaS, DevTool, AI Interface, Landing, Fintech).
|
|
64
|
+
* **Check:** Tabular numbers used for financial data? Monospace code snippets for DevTools? Typing skeleton streams for AI?
|
|
65
|
+
|
|
66
|
+
### 6. accessibility-reviewer
|
|
67
|
+
* **Focus:** WCAG 2.2 Level AA compliance.
|
|
68
|
+
* **Check:** Minimum target size 24px (standard AA) and 44px (touch). Semantic headings, accessible ARIA names, and keyboard trap focus in dialogs.
|
|
69
|
+
|
|
70
|
+
### 7. ui-visual-auditor (Closed-Loop Visual Gate)
|
|
71
|
+
* **Focus:** Screenshot or DOM layout verification.
|
|
72
|
+
* **Check:** Checks vertical overflow, layout shifts (CLS), alignment shifts, and contrast ratios.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Verdict System
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
If ANY reviewer β β REJECTED: Maker must fix and resubmit before Human Gate
|
|
80
|
+
If any reviewer β β οΈ WARNING: highlighted at Human Gate, must fix before deploy
|
|
81
|
+
If all reviewers β β
APPROVED: Passes to Human Gate for writing approval
|
|
82
|
+
```
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Plan and implement cutting-edge advanced UI/UX.
|
|
3
|
-
|
|
2
|
+
description: Plan and implement cutting-edge advanced UI/UX. Uses the UI Reasoning Engine to structure layout and styling, and routes through the dedicated `/tribunal-ui` reviewer pipeline.
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- ui-reasoning-engine
|
|
8
|
+
- product-aware-heuristics
|
|
9
|
+
- ui-ux-pro-max
|
|
10
|
+
- frontend-design
|
|
11
|
+
- web-design-guidelines
|
|
12
|
+
scripts-binding:
|
|
13
|
+
- .agent/scripts/lint_runner.js
|
|
14
|
+
- .agent/scripts/auto_preview.js
|
|
4
15
|
---
|
|
5
16
|
|
|
6
17
|
# /ui-ux-pro-max β Advanced UI/UX Design
|
|
@@ -9,126 +20,62 @@ $ARGUMENTS
|
|
|
9
20
|
|
|
10
21
|
---
|
|
11
22
|
|
|
12
|
-
##
|
|
23
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
24
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
```
|
|
25
|
+
Before designing or implementing advanced UI/UX layouts, you MUST inspect:
|
|
26
|
+
1. Active Design Tokens & System (`DESIGN.md`, CSS custom properties) β Verify OKLCH color palettes, typography scale, and spacing grid
|
|
27
|
+
2. UI Reasoning Engine 16-Step Pipeline (`.agent/skills/ui-reasoning-engine/SKILL.md`) β Structure component layout, micro-interactions, and accessibility before coding
|
|
28
|
+
3. Anti-Generic Aesthetic Rule β Ban plain purple/violet AI gradients and stock hero templates; enforce bespoke visual hierarchy and tactile micro-interactions
|
|
19
29
|
|
|
20
30
|
---
|
|
21
31
|
|
|
22
32
|
## When to Use /ui-ux-pro-max
|
|
23
33
|
|
|
24
|
-
| Use `/ui-ux-pro-max` when...
|
|
25
|
-
|
|
|
34
|
+
| Use `/ui-ux-pro-max` when... | Use instead when... |
|
|
35
|
+
| :--- | :--- |
|
|
26
36
|
| Building a visually distinctive interface | Functional-only component β `/generate` |
|
|
27
|
-
| Design quality is the primary goal
|
|
28
|
-
| Creating from a design brief
|
|
29
|
-
| Mobile + web parity required
|
|
37
|
+
| Design quality is the primary goal | Fast page needed β `/enhance` |
|
|
38
|
+
| Creating from a design brief | Bug fix in UI β `/debug` |
|
|
39
|
+
| Mobile + web parity required | |
|
|
30
40
|
|
|
31
41
|
---
|
|
32
42
|
|
|
33
|
-
## Phase 1 β Design Intent (Mandatory)
|
|
43
|
+
## Phase 1 β Design Intent & Product Aware Reasoning (Mandatory)
|
|
34
44
|
|
|
35
|
-
Answer these before any
|
|
45
|
+
Answer these before writing any code (using the `ui-reasoning-engine` skill):
|
|
46
|
+
1. **Who is the user?** (Casual consumer vs expert operator).
|
|
47
|
+
2. **What is the product category?** (SaaS, DevTool, AI Interface, Landing, Fintech).
|
|
48
|
+
3. **What is the visual direction?** (Brutalist, Editorial, Soft Minimal, Dark Luxury, Swiss).
|
|
49
|
+
4. **What is the primary user goal?** (Optimize the layout and click paths for this action).
|
|
50
|
+
5. **What are the accessibility requirements?** (Focus paths, target size, Lc contrast).
|
|
36
51
|
|
|
37
|
-
|
|
38
|
-
1. Who is the user? (developer tools feel different from consumer apps)
|
|
39
|
-
2. What emotion should the interface evoke? (calm focus, urgent speed, playful delight)
|
|
40
|
-
3. What is the ONE thing users do most? (hero interaction gets maximum design attention)
|
|
41
|
-
4. What existing interfaces does the user love? (don't copy β understand the WHY)
|
|
42
|
-
5. What makes this interface DIFFERENT from every competitor?
|
|
43
|
-
```
|
|
52
|
+
Write the **π§ UI Reasoning Engine Trace** in your response as a collapsed markdown block before the code.
|
|
44
53
|
|
|
45
54
|
---
|
|
46
55
|
|
|
47
|
-
## Phase 2 β Design
|
|
56
|
+
## Phase 2 β Visual Identity & Design Tokens
|
|
48
57
|
|
|
49
|
-
Every interface
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
Forbidden defaults (generic AI aesthetics):
|
|
53
|
-
β Purple/violet as primary color
|
|
54
|
-
β Left text / right image hero section
|
|
55
|
-
β Mesh gradient backgrounds
|
|
56
|
-
β Bento grid as the only layout
|
|
57
|
-
β Emoji as icons
|
|
58
|
-
β shadcn without explicit user request
|
|
59
|
-
|
|
60
|
-
Distinctive alternatives:
|
|
61
|
-
β
Signal orange, acid green, warm slate, deep red β intentional palettes
|
|
62
|
-
β
Typographic-first hero sections
|
|
63
|
-
β
Grain textures, solid contrast, radial depth
|
|
64
|
-
β
Asymmetric or broken-grid layouts
|
|
65
|
-
β
SVG icons (lucide-react or custom)
|
|
66
|
-
β
Motion that communicates meaning (not decoration)
|
|
67
|
-
```
|
|
58
|
+
Every interface must use custom variables defined in `DESIGN.md` and `design-tokens.json`:
|
|
59
|
+
* β **Banned ClichΓ©s:** Purple/violet accents, mesh gradients, glassmorphism overuse, default library themes.
|
|
60
|
+
* β
**Intentional Styling:** Dynamic OKLCH colors, 8px grid alignment, variable font sizes with CSS `clamp()`, and 1px luminous borders.
|
|
68
61
|
|
|
69
62
|
---
|
|
70
63
|
|
|
71
|
-
## Phase 3 β Interaction
|
|
64
|
+
## Phase 3 β Interaction States & Micro-interactions
|
|
72
65
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
2. Hover: Indicates interactability (cursor change, subtle lift, color shift)
|
|
78
|
-
3. Active: Confirms click/press (scale down, darker, haptic feedback on mobile)
|
|
79
|
-
4. Disabled: Communicates unavailability (reduced opacity, cursor change, tooltip why)
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
Micro-animations are required, not optional:
|
|
83
|
-
|
|
84
|
-
```
|
|
85
|
-
Entry animations: elements fade/slide in on mount
|
|
86
|
-
State transitions: smooth color + scale changes (150β200ms)
|
|
87
|
-
Loading states: skeleton screens, not spinners (skeleton shows shape)
|
|
88
|
-
Error shake: invalid form input shakes (4px left-right)
|
|
89
|
-
Success pulse: confirmed actions pulse green briefly
|
|
90
|
-
```
|
|
66
|
+
Ensure every interactive element has styling defined for:
|
|
67
|
+
* `hover`, `focus-visible`, `active`/`pressed`, and `disabled` states.
|
|
68
|
+
* Confirm clicks with spring scale-down transitions (`active:scale-[0.97]`).
|
|
69
|
+
* Trap keyboard focus within modals/dialogs and return it to the trigger on close.
|
|
91
70
|
|
|
92
71
|
---
|
|
93
72
|
|
|
94
|
-
## Phase 4 β Swarm Implementation
|
|
95
|
-
|
|
96
|
-
Instead of a single agent generating the entire UI, `/ui-ux-pro-max` leverages a Fan-Out/Fan-In swarm architecture using `.agent/scripts/swarm_dispatcher.js`. The Supervisor decomposes the component into a structured JSON contract for three specialized workers:
|
|
73
|
+
## Phase 4 β Swarm Implementation & UI Review Pipeline
|
|
97
74
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
### Worker 2: Styling & Token Specialist (`frontend-design`)
|
|
104
|
-
- **Focus**: Applies Tailwind classes and design tokens based on the Phase 2 Identity.
|
|
105
|
-
- **Rules**: Must enforce color contrast (4.5:1 minimum) and spacing scale; strictly avoids generic AI defaults.
|
|
106
|
-
|
|
107
|
-
### Worker 3: Motion Engineer (`motion-engineering` + `emil-design-eng`)
|
|
108
|
-
- **Focus**: Injects GSAP, Framer Motion, or CSS springs for micro-interactions (Phase 3).
|
|
109
|
-
- **Rules**: Enforces Emil Kowalski's non-negotiable UI standards: all UI animations <300ms, popovers are origin-aware, entering elements strictly use `ease-out`, and `prefers-reduced-motion` is honored.
|
|
110
|
-
|
|
111
|
-
**Execution Flow**:
|
|
112
|
-
1. Supervisor builds the JSON contract for the 3 workers.
|
|
113
|
-
2. Dispatches workers in parallel via `swarm_dispatcher.js`.
|
|
114
|
-
3. Fan-in synthesis merges the layout, styles, and motion into the final component file.
|
|
115
|
-
4. Final code is routed through `/tribunal-frontend` (which now includes the `review-animations` strict UI constraint gate) for the Human Gate.
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
119
|
-
## Phase 5 β Design Verification
|
|
120
|
-
|
|
121
|
-
Before finalizing:
|
|
122
|
-
|
|
123
|
-
```
|
|
124
|
-
β‘ Open in mobile viewport (375px) β does it work?
|
|
125
|
-
β‘ Open in dark mode β does it look intentional?
|
|
126
|
-
β‘ Keyboard-navigate through the critical path β is it complete?
|
|
127
|
-
β‘ Screenshot and ask: "Would I scroll past this on Dribbble?"
|
|
128
|
-
β‘ Screen reader test with VoiceOver or NVDA
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
---
|
|
75
|
+
1. **Layout Design:** Create the structural grid and semantic accessibility tree.
|
|
76
|
+
2. **Token Application:** Apply Tailwind classes or style blocks using variables.
|
|
77
|
+
3. **Motion Integration:** Add GSAP or Framer Motion transitions (keeping motion <300ms, respecting reduced motion).
|
|
78
|
+
4. **Tribunal Review Gate:** Route the generated component through `/tribunal-ui` for parallel verification.
|
|
132
79
|
|
|
133
80
|
---
|
|
134
81
|
|
|
@@ -138,18 +85,15 @@ Before finalizing:
|
|
|
138
85
|
/ui-ux-pro-max design a SaaS dashboard for an analytics platform
|
|
139
86
|
/ui-ux-pro-max redesign the checkout flow with better conversion UX
|
|
140
87
|
/ui-ux-pro-max create an onboarding flow for a developer tool
|
|
141
|
-
/ui-ux-pro-max design the landing page hero section with distinctive
|
|
142
|
-
/ui-ux-pro-max create a data visualization dashboard with real-time updates
|
|
88
|
+
/ui-ux-pro-max design the landing page hero section with a distinctive visual style
|
|
143
89
|
```
|
|
144
90
|
|
|
145
91
|
---
|
|
146
92
|
|
|
147
93
|
## After /ui-ux-pro-max β Next Steps
|
|
148
94
|
|
|
149
|
-
| Outcome
|
|
150
|
-
|
|
|
151
|
-
| Design complete
|
|
152
|
-
|
|
|
153
|
-
|
|
|
154
|
-
|
|
155
|
-
---
|
|
95
|
+
| Outcome | Next Command |
|
|
96
|
+
| :--- | :--- |
|
|
97
|
+
| Design complete | β `/preview start` to see it in action |
|
|
98
|
+
| Reviewers reject with fixes | β Apply fixes, then run `/tribunal-ui` again |
|
|
99
|
+
| Performance concerns | β `/performance-benchmarker` for Lighthouse/CWV |
|
package/CONTRIBUTING.md
CHANGED
|
@@ -42,9 +42,9 @@ tribunal-kit/
|
|
|
42
42
|
β βββ index.d.ts # TypeScript declarations
|
|
43
43
|
βββ crates/core/ # Rust core engine (Tokio-based)
|
|
44
44
|
βββ .agent/ # The intelligence payload (agents, skills, workflows)
|
|
45
|
-
β βββ agents/ #
|
|
45
|
+
β βββ agents/ # 51 specialist and reviewer agent definitions
|
|
46
46
|
β βββ skills/ # Reusable skill packs
|
|
47
|
-
β βββ workflows/ #
|
|
47
|
+
β βββ workflows/ # 37 workflow definitions
|
|
48
48
|
β βββ scripts/ # Automation scripts
|
|
49
49
|
βββ test/
|
|
50
50
|
β βββ unit/ # Unit tests (Jest)
|