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.
Files changed (315) hide show
  1. package/.agent/.manifest.json +78 -0
  2. package/.agent/ARCHITECTURE.md +32 -253
  3. package/.agent/agents/accessibility-reviewer.md +66 -151
  4. package/.agent/agents/ai-code-reviewer.md +22 -2
  5. package/.agent/agents/anti-pattern-reviewer.md +99 -0
  6. package/.agent/agents/api-architect.md +19 -2
  7. package/.agent/agents/backend-specialist.md +25 -3
  8. package/.agent/agents/cloud-engineer.md +21 -0
  9. package/.agent/agents/code-archaeologist.md +20 -3
  10. package/.agent/agents/complexity-reviewer.md +22 -2
  11. package/.agent/agents/database-architect.md +24 -3
  12. package/.agent/agents/db-latency-auditor.md +22 -2
  13. package/.agent/agents/debugger.md +19 -3
  14. package/.agent/agents/dependency-reviewer.md +19 -2
  15. package/.agent/agents/devops-engineer.md +24 -3
  16. package/.agent/agents/documentation-writer.md +21 -3
  17. package/.agent/agents/explorer-agent.md +21 -3
  18. package/.agent/agents/frontend-reviewer.md +19 -3
  19. package/.agent/agents/frontend-specialist.md +72 -224
  20. package/.agent/agents/game-developer.md +22 -3
  21. package/.agent/agents/interaction-reviewer.md +118 -0
  22. package/.agent/agents/logic-reviewer.md +18 -3
  23. package/.agent/agents/minimalist-reviewer.md +98 -0
  24. package/.agent/agents/mobile-developer.md +21 -3
  25. package/.agent/agents/mobile-reviewer.md +22 -2
  26. package/.agent/agents/orchestrator.md +19 -3
  27. package/.agent/agents/penetration-tester.md +22 -3
  28. package/.agent/agents/performance-optimizer.md +21 -3
  29. package/.agent/agents/performance-reviewer.md +2 -0
  30. package/.agent/agents/precedence-reviewer.md +19 -5
  31. package/.agent/agents/product-manager.md +20 -3
  32. package/.agent/agents/product-owner.md +22 -1
  33. package/.agent/agents/product-reviewer.md +98 -0
  34. package/.agent/agents/project-planner.md +19 -3
  35. package/.agent/agents/qa-automation-engineer.md +24 -3
  36. package/.agent/agents/resilience-reviewer.md +21 -2
  37. package/.agent/agents/schema-reviewer.md +21 -2
  38. package/.agent/agents/security-auditor.md +7 -1
  39. package/.agent/agents/seo-specialist.md +18 -3
  40. package/.agent/agents/sql-reviewer.md +22 -2
  41. package/.agent/agents/supervisor-agent.md +22 -3
  42. package/.agent/agents/swarm-worker-registry.md +7 -0
  43. package/.agent/agents/system-architect.md +19 -0
  44. package/.agent/agents/test-coverage-reviewer.md +22 -2
  45. package/.agent/agents/test-engineer.md +21 -2
  46. package/.agent/agents/throughput-optimizer.md +22 -2
  47. package/.agent/agents/type-safety-reviewer.md +21 -2
  48. package/.agent/agents/ui-ux-auditor.md +44 -242
  49. package/.agent/agents/ui-visual-auditor.md +99 -0
  50. package/.agent/agents/ux-reviewer.md +104 -0
  51. package/.agent/agents/visual-reviewer.md +98 -0
  52. package/.agent/agents/vitals-reviewer.md +23 -2
  53. package/.agent/history/README.md +53 -0
  54. package/.agent/history/case-law/cases/template-case.json +19 -0
  55. package/.agent/history/integrity_manifest.json +63 -33
  56. package/.agent/history/memory/.memory.idx +2701 -1
  57. package/.agent/history/memory/MEMORY.md +179 -1
  58. package/.agent/routing_index.json +273 -690
  59. package/.agent/rules/GEMINI.md +11 -13
  60. package/.agent/rules/GEMINI_PLANNER.md +84 -0
  61. package/.agent/scripts/case_law_manager.js +2 -0
  62. package/.agent/scripts/context_broker.js +152 -0
  63. package/.agent/scripts/guardrail_engine.js +59 -4
  64. package/.agent/scripts/impact_classifier.js +167 -0
  65. package/.agent/scripts/minimal_change_engine.js +437 -0
  66. package/.agent/scripts/pipeline_engine.js +856 -0
  67. package/.agent/scripts/socratic_gate_policy.js +60 -0
  68. package/.agent/scripts/token_budget_broker.js +52 -0
  69. package/.agent/scripts/verify_all.js +13 -0
  70. package/.agent/scripts/visual_audit.js +92 -0
  71. package/.agent/skill_topic_map.json +218 -0
  72. package/.agent/skills/12-principles-of-animation/SKILL.md +19 -10
  73. package/.agent/skills/60fps-animation/SKILL.md +19 -10
  74. package/.agent/skills/accessible-animation/SKILL.md +19 -10
  75. package/.agent/skills/adapt/SKILL.md +19 -10
  76. package/.agent/skills/advanced-rag-pipelines/SKILL.md +21 -3
  77. package/.agent/skills/agent-organizer/SKILL.md +21 -7
  78. package/.agent/skills/agentic-patterns/SKILL.md +19 -7
  79. package/.agent/skills/agentic-workflows-2026/SKILL.md +76 -0
  80. package/.agent/skills/ai-app-hardening/SKILL.md +58 -0
  81. package/.agent/skills/ai-prompt-injection-defense/SKILL.md +21 -7
  82. package/.agent/skills/animation-on-scroll/SKILL.md +19 -10
  83. package/.agent/skills/animation-systems/SKILL.md +19 -10
  84. package/.agent/skills/antfu-conventions/SKILL.md +21 -10
  85. package/.agent/skills/api-patterns/SKILL.md +21 -7
  86. package/.agent/skills/api-security-auditor/SKILL.md +21 -7
  87. package/.agent/skills/app-builder/SKILL.md +21 -7
  88. package/.agent/skills/apple-design/SKILL.md +19 -10
  89. package/.agent/skills/architecture/SKILL.md +21 -7
  90. package/.agent/skills/audit-and-fix/SKILL.md +19 -10
  91. package/.agent/skills/authentication-best-practices/SKILL.md +21 -7
  92. package/.agent/skills/backend-security-expert/SKILL.md +21 -7
  93. package/.agent/skills/baseline-ui/SKILL.md +19 -10
  94. package/.agent/skills/bash-linux/SKILL.md +21 -7
  95. package/.agent/skills/behavioral-modes/SKILL.md +19 -7
  96. package/.agent/skills/better-colors/SKILL.md +19 -10
  97. package/.agent/skills/better-ui/SKILL.md +19 -10
  98. package/.agent/skills/bolder/SKILL.md +19 -10
  99. package/.agent/skills/brainstorming/SKILL.md +17 -7
  100. package/.agent/skills/browser-native-ai/SKILL.md +19 -3
  101. package/.agent/skills/build-primitive/SKILL.md +19 -10
  102. package/.agent/skills/building-native-ui/SKILL.md +21 -7
  103. package/.agent/skills/cicd-pro/SKILL.md +21 -10
  104. package/.agent/skills/clarify/SKILL.md +19 -10
  105. package/.agent/skills/clean-code/SKILL.md +21 -7
  106. package/.agent/skills/cloud-architect/SKILL.md +21 -10
  107. package/.agent/skills/cobejs/SKILL.md +19 -10
  108. package/.agent/skills/code-review-checklist/SKILL.md +21 -7
  109. package/.agent/skills/codebase-design/SKILL.md +21 -10
  110. package/.agent/skills/colorize/SKILL.md +19 -10
  111. package/.agent/skills/compact-landing/SKILL.md +19 -10
  112. package/.agent/skills/company-logos/SKILL.md +19 -10
  113. package/.agent/skills/config-validator/SKILL.md +21 -7
  114. package/.agent/skills/containerization-pro/SKILL.md +21 -10
  115. package/.agent/skills/context-engineering-pro/SKILL.md +69 -0
  116. package/.agent/skills/create-design-md/SKILL.md +19 -10
  117. package/.agent/skills/critique/SKILL.md +19 -10
  118. package/.agent/skills/csharp-developer/SKILL.md +21 -7
  119. package/.agent/skills/data-validation-schemas/SKILL.md +21 -7
  120. package/.agent/skills/database-design/SKILL.md +21 -7
  121. package/.agent/skills/delight/SKILL.md +19 -10
  122. package/.agent/skills/deployment-procedures/SKILL.md +21 -7
  123. package/.agent/skills/design-lab/SKILL.md +21 -10
  124. package/.agent/skills/devops-engineer/SKILL.md +21 -7
  125. package/.agent/skills/devops-incident-responder/SKILL.md +21 -7
  126. package/.agent/skills/diagnosing-bugs/SKILL.md +21 -10
  127. package/.agent/skills/distill/SKILL.md +19 -10
  128. package/.agent/skills/documentation-templates/SKILL.md +21 -7
  129. package/.agent/skills/domain-modeling/SKILL.md +21 -10
  130. package/.agent/skills/duckdb-analytical-sql/SKILL.md +55 -0
  131. package/.agent/skills/edge-ai-mobile/SKILL.md +46 -0
  132. package/.agent/skills/edge-computing/SKILL.md +21 -7
  133. package/.agent/skills/emil-design-eng/SKILL.md +19 -10
  134. package/.agent/skills/error-resilience/SKILL.md +21 -7
  135. package/.agent/skills/expo-router-v4/SKILL.md +80 -0
  136. package/.agent/skills/extract-design-system/SKILL.md +21 -7
  137. package/.agent/skills/fabel-protocol/SKILL.md +19 -2
  138. package/.agent/skills/fixing-accessibility/SKILL.md +19 -10
  139. package/.agent/skills/fixing-metadata/SKILL.md +19 -10
  140. package/.agent/skills/fixing-motion-performance/SKILL.md +19 -10
  141. package/.agent/skills/framer-motion-expert/SKILL.md +19 -6
  142. package/.agent/skills/frontend-design/SKILL.md +64 -201
  143. package/.agent/skills/frontend-security-expert/SKILL.md +21 -7
  144. package/.agent/skills/game-design-expert/SKILL.md +21 -7
  145. package/.agent/skills/game-engineering-expert/SKILL.md +21 -7
  146. package/.agent/skills/generative-ui-expert/SKILL.md +19 -3
  147. package/.agent/skills/geo-fundamentals/SKILL.md +21 -7
  148. package/.agent/skills/git-pro/SKILL.md +21 -10
  149. package/.agent/skills/github-operations/SKILL.md +21 -7
  150. package/.agent/skills/gpt-taste/SKILL.md +19 -10
  151. package/.agent/skills/gsap-core/SKILL.md +21 -4
  152. package/.agent/skills/gsap-frameworks/SKILL.md +21 -4
  153. package/.agent/skills/gsap-performance/SKILL.md +20 -5
  154. package/.agent/skills/gsap-plugins/SKILL.md +20 -5
  155. package/.agent/skills/gsap-react/SKILL.md +20 -5
  156. package/.agent/skills/gsap-scrolltrigger/SKILL.md +21 -4
  157. package/.agent/skills/gsap-timeline/SKILL.md +20 -5
  158. package/.agent/skills/gsap-utils/SKILL.md +20 -5
  159. package/.agent/skills/harden/SKILL.md +19 -10
  160. package/.agent/skills/harness-protocol/SKILL.md +20 -4
  161. package/.agent/skills/i18n-localization/SKILL.md +21 -7
  162. package/.agent/skills/impeccable/SKILL.md +19 -10
  163. package/.agent/skills/improve-codebase-architecture/SKILL.md +21 -10
  164. package/.agent/skills/improve-ui/SKILL.md +19 -10
  165. package/.agent/skills/intelligent-routing/SKILL.md +19 -7
  166. package/.agent/skills/knowledge-graph/SKILL.md +20 -4
  167. package/.agent/skills/landing-page/SKILL.md +20 -10
  168. package/.agent/skills/lint-and-validate/SKILL.md +21 -7
  169. package/.agent/skills/llm-engineering/SKILL.md +21 -7
  170. package/.agent/skills/local-first/SKILL.md +21 -7
  171. package/.agent/skills/local-first-architecture/SKILL.md +19 -10
  172. package/.agent/skills/lottie-animation/SKILL.md +19 -10
  173. package/.agent/skills/marquee-loop/SKILL.md +19 -10
  174. package/.agent/skills/masked-reveal/SKILL.md +19 -10
  175. package/.agent/skills/mcp-builder/SKILL.md +21 -7
  176. package/.agent/skills/micro-interaction/SKILL.md +19 -10
  177. package/.agent/skills/mobile-design/SKILL.md +21 -6
  178. package/.agent/skills/monorepo-management/SKILL.md +21 -7
  179. package/.agent/skills/morphing-icons/SKILL.md +19 -10
  180. package/.agent/skills/motion-engineering/SKILL.md +20 -7
  181. package/.agent/skills/nextjs-react-expert/SKILL.md +19 -7
  182. package/.agent/skills/nodejs-best-practices/SKILL.md +21 -7
  183. package/.agent/skills/observability/SKILL.md +21 -7
  184. package/.agent/skills/opentelemetry-observability/SKILL.md +58 -0
  185. package/.agent/skills/page-transition-animation/SKILL.md +19 -10
  186. package/.agent/skills/parallel-agents/SKILL.md +23 -7
  187. package/.agent/skills/performance-profiling/SKILL.md +21 -7
  188. package/.agent/skills/plan-writing/SKILL.md +21 -7
  189. package/.agent/skills/platform-engineer/SKILL.md +21 -7
  190. package/.agent/skills/platform-engineering-opentofu/SKILL.md +67 -0
  191. package/.agent/skills/playwright-ai-e2e/SKILL.md +59 -0
  192. package/.agent/skills/playwright-best-practices/SKILL.md +21 -7
  193. package/.agent/skills/polish/SKILL.md +19 -10
  194. package/.agent/skills/powershell-windows/SKILL.md +21 -7
  195. package/.agent/skills/pricing-page/SKILL.md +19 -10
  196. package/.agent/skills/product-aware-heuristics/SKILL.md +358 -0
  197. package/.agent/skills/progressive-blur/SKILL.md +19 -10
  198. package/.agent/skills/project-idioms/SKILL.md +20 -8
  199. package/.agent/skills/property-based-testing/SKILL.md +60 -0
  200. package/.agent/skills/python-patterns/SKILL.md +21 -7
  201. package/.agent/skills/python-pro/SKILL.md +21 -6
  202. package/.agent/skills/quieter/SKILL.md +19 -10
  203. package/.agent/skills/react-doctor/SKILL.md +19 -10
  204. package/.agent/skills/react-specialist/SKILL.md +19 -6
  205. package/.agent/skills/readme-builder/SKILL.md +21 -7
  206. package/.agent/skills/realtime-patterns/SKILL.md +21 -7
  207. package/.agent/skills/red-team-tactics/SKILL.md +21 -7
  208. package/.agent/skills/redesign-skill/SKILL.md +19 -10
  209. package/.agent/skills/review-animations/SKILL.md +21 -10
  210. package/.agent/skills/rust-pro/SKILL.md +21 -7
  211. package/.agent/skills/seo-fundamentals/SKILL.md +21 -7
  212. package/.agent/skills/server-management/SKILL.md +21 -7
  213. package/.agent/skills/shadcn-ui-expert/SKILL.md +21 -7
  214. package/.agent/skills/shape/SKILL.md +19 -10
  215. package/.agent/skills/skill-creator/SKILL.md +21 -7
  216. package/.agent/skills/soft-skill/SKILL.md +19 -10
  217. package/.agent/skills/sounds-on-the-web/SKILL.md +19 -10
  218. package/.agent/skills/sql-pro/SKILL.md +21 -7
  219. package/.agent/skills/supabase-postgres-best-practices/SKILL.md +21 -7
  220. package/.agent/skills/svg-animation/SKILL.md +19 -10
  221. package/.agent/skills/swiftui-expert/SKILL.md +21 -7
  222. package/.agent/skills/swiss-design/SKILL.md +19 -10
  223. package/.agent/skills/system-design-pro/SKILL.md +21 -9
  224. package/.agent/skills/systematic-debugging/SKILL.md +21 -7
  225. package/.agent/skills/tailwind-patterns/SKILL.md +21 -7
  226. package/.agent/skills/taste-skill/SKILL.md +19 -10
  227. package/.agent/skills/tdd-workflow/SKILL.md +21 -10
  228. package/.agent/skills/test-result-analyzer/SKILL.md +18 -6
  229. package/.agent/skills/testing-patterns/SKILL.md +21 -7
  230. package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +21 -10
  231. package/.agent/skills/thinking-protocol/SKILL.md +20 -8
  232. package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +19 -10
  233. package/.agent/skills/transitions-dev/SKILL.md +19 -10
  234. package/.agent/skills/trend-researcher/SKILL.md +17 -6
  235. package/.agent/skills/typescript-advanced/SKILL.md +21 -7
  236. package/.agent/skills/typeset/SKILL.md +19 -10
  237. package/.agent/skills/ui-reasoning-engine/SKILL.md +154 -0
  238. package/.agent/skills/ui-skill-packs/SKILL.md +77 -0
  239. package/.agent/skills/ui-skills-root/SKILL.md +21 -9
  240. package/.agent/skills/ui-ux-pro-max/SKILL.md +62 -583
  241. package/.agent/skills/ui-ux-researcher/SKILL.md +17 -6
  242. package/.agent/skills/vector-search-pgvector/SKILL.md +77 -0
  243. package/.agent/skills/vue-expert/SKILL.md +19 -6
  244. package/.agent/skills/vulnerability-scanner/SKILL.md +21 -7
  245. package/.agent/skills/web-accessibility-auditor/SKILL.md +21 -7
  246. package/.agent/skills/web-design-guidelines/SKILL.md +32 -206
  247. package/.agent/skills/web-quality-audit/SKILL.md +19 -10
  248. package/.agent/skills/webapp-testing/SKILL.md +21 -7
  249. package/.agent/skills/webgpu-performance/SKILL.md +19 -3
  250. package/.agent/skills/whimsy-injector/SKILL.md +20 -10
  251. package/.agent/skills/workflow-optimizer/SKILL.md +16 -6
  252. package/.agent/skills/zero-trust-passkeys/SKILL.md +85 -0
  253. package/.agent/templates/DESIGN.md +292 -0
  254. package/.agent/templates/design-tokens.json +137 -0
  255. package/.agent/workflows/acf.md +13 -6
  256. package/.agent/workflows/api-tester.md +15 -8
  257. package/.agent/workflows/audit.md +19 -8
  258. package/.agent/workflows/brainstorm.md +14 -9
  259. package/.agent/workflows/changelog.md +14 -8
  260. package/.agent/workflows/create.md +16 -8
  261. package/.agent/workflows/debug.md +15 -10
  262. package/.agent/workflows/deploy.md +16 -8
  263. package/.agent/workflows/enhance.md +15 -10
  264. package/.agent/workflows/fix.md +15 -8
  265. package/.agent/workflows/generate.md +17 -11
  266. package/.agent/workflows/marathon.md +15 -8
  267. package/.agent/workflows/migrate.md +16 -8
  268. package/.agent/workflows/minimal.md +94 -0
  269. package/.agent/workflows/orchestrate.md +15 -8
  270. package/.agent/workflows/performance-benchmarker.md +15 -8
  271. package/.agent/workflows/pipeline.md +155 -0
  272. package/.agent/workflows/plan.md +14 -10
  273. package/.agent/workflows/preview.md +14 -7
  274. package/.agent/workflows/refactor.md +16 -8
  275. package/.agent/workflows/review-ai.md +15 -7
  276. package/.agent/workflows/review.md +15 -7
  277. package/.agent/workflows/session.md +14 -7
  278. package/.agent/workflows/status.md +13 -7
  279. package/.agent/workflows/strengthen-skills.md +15 -6
  280. package/.agent/workflows/super-prompt.md +19 -10
  281. package/.agent/workflows/swarm.md +15 -7
  282. package/.agent/workflows/test.md +15 -8
  283. package/.agent/workflows/tribunal-backend.md +16 -9
  284. package/.agent/workflows/tribunal-database.md +15 -8
  285. package/.agent/workflows/tribunal-frontend.md +26 -11
  286. package/.agent/workflows/tribunal-full.md +41 -26
  287. package/.agent/workflows/tribunal-mobile.md +15 -8
  288. package/.agent/workflows/tribunal-performance.md +15 -8
  289. package/.agent/workflows/tribunal-speed.md +16 -9
  290. package/.agent/workflows/tribunal-ui.md +82 -0
  291. package/.agent/workflows/ui-ux-pro-max.md +51 -107
  292. package/CONTRIBUTING.md +2 -2
  293. package/README.md +82 -60
  294. package/SECURITY.md +3 -3
  295. package/bin/mcp-server.js +253 -57
  296. package/bin/wrapper.js +24 -10
  297. package/dist/cli.js +29 -1
  298. package/dist/commands/compile.js +7 -0
  299. package/dist/commands/context.js +8 -3
  300. package/dist/commands/graph.js +8 -2
  301. package/dist/commands/init.js +13 -2
  302. package/dist/commands/memory.js +120 -68
  303. package/dist/commands/minimal.js +71 -0
  304. package/dist/commands/native.js +36 -0
  305. package/dist/commands/optimize.js +15 -5
  306. package/dist/esm/index.mjs +58 -32
  307. package/dist/index.d.ts +50 -2
  308. package/dist/utils/fs.js +10 -4
  309. package/dist/utils/helpers.js +10 -1
  310. package/dist/utils/version.js +9 -2
  311. package/mcp_config.json +10 -1
  312. package/package.json +16 -10
  313. package/scripts/benchmark.js +16 -0
  314. package/scripts/sync-version.js +1 -1
  315. 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
- required-skills: react-specialist, nextjs-react-expert, frontend-design, review-animations, emil-design-eng
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
- ## $CONTEXT_REQUIRED
24
+ ## Mandatory Pre-Flight Context Inspection
13
25
 
14
- ```
15
- Read BEFORE frontend review:
16
- β–‘ Target component files β†’ The UI code being audited
17
- β–‘ tailwind.config / globals.css β†’ Understand design tokens
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
- ## 6 Active Reviewers (All Run Simultaneously)
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 20 parallel reviewers simultaneously. Maximum hallucination coverage. Use before merging any AI-generated code, before production deployments, or when maximum confidence is required.
3
- required-skills: all domain skills auto-loaded
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 20-Reviewer Audit
23
+ # /tribunal-full β€” Complete 21-Reviewer Audit
7
24
 
8
25
  $ARGUMENTS
9
26
 
10
27
  ---
11
28
 
12
- ## $CONTEXT_REQUIRED
29
+ ## Mandatory Pre-Flight Context Inspection
13
30
 
14
- ```
15
- Read BEFORE full review:
16
- β–‘ All modified files β†’ Use git diff to see pending changes
17
- β–‘ package.json β†’ Verify all dependencies
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
- ## 20 Reviewers β€” All Active Simultaneously
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
- Tier 1: Always active (universal concerns)
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
- β”œβ”€β”€ security-auditor β†’ OWASP 2025, injection, JWT, SSRF, IDOR
58
+ β”œβ”€β”€ schema-reviewer β†’ Missing input validation, loose schemas, raw req.body
42
59
  └── resilience-reviewer β†’ Swallowed errors, unhandled rejections, missing retries
43
60
 
44
- Tier 2: Code quality
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
- Tier 3: Domain-specific
68
+ Wave 3: Domain, UI & Performance (Pass 3)
52
69
  β”œβ”€β”€ frontend-reviewer β†’ React 19 APIs, RSC violations, hook rules, hydration
53
- β”œβ”€β”€ performance-reviewer β†’ 2026 CWV targets, re-render cascades, memory leaks
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
- └── review-animations β†’ UI animations >300ms, origin-unaware popovers, ease-in
60
-
61
- Tier 4: Performance Swarm (token-scoped specialists)
62
- β”œβ”€β”€ vitals-reviewer β†’ Frontend CWV depth: Suspense waterfalls, paint jank, animation leaks
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 20 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."
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 20 verdicts are collected. Aggregated result:
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 19 reviewers approve | β†’ `/deploy` β€” highest confidence state |
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
- required-skills: building-native-ui, mobile-design
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
- ## $CONTEXT_REQUIRED
21
+ ## Mandatory Pre-Flight Context Inspection
13
22
 
14
- ```
15
- Read BEFORE mobile review:
16
- β–‘ Target component files β†’ The mobile code being audited
17
- β–‘ package.json β†’ Verify versions (expo, react-native-reanimated)
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
- required-skills: performance-profiling
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
- ## $CONTEXT_REQUIRED
21
+ ## Mandatory Pre-Flight Context Inspection
13
22
 
14
- ```
15
- Read BEFORE performance review:
16
- β–‘ Target code files β†’ The code being optimized
17
- β–‘ package.json β†’ Check for known heavy libraries (e.g. moment, lodash)
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
- required-skills: performance-profiling, observability
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
- ## $CONTEXT_REQUIRED
21
+ ## Mandatory Pre-Flight Context Inspection
13
22
 
14
- ```
15
- Read BEFORE performance swarm:
16
- β–‘ Target directory/files β†’ Determine frontend vs backend vs DB code
17
- β–‘ package.json β†’ Identify the full stack architecture
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 19 reviewers | Everything | Maximum coverage (security + perf + 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. Creates distinctive, production-grade frontend interfaces with high design quality that avoid generic AI aesthetics. Now uses a modular swarm architecture to decompose layout, styling, and motion tasks.
3
- required-skills: ui-ux-researcher, frontend-design, emil-design-eng, motion-engineering, agent-organizer, parallel-agents
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
- ## $CONTEXT_REQUIRED
23
+ ## Mandatory Pre-Flight Context Inspection
13
24
 
14
- ```
15
- Read BEFORE designing:
16
- β–‘ Current UI components β†’ Follow project idioms and design systems
17
- β–‘ .agent/skills/frontend-design/SKILL.md β†’ Refresh UI guidelines
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... | Use instead 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 | Fast page needed β†’ `/enhance` |
28
- | Creating from a design brief | Bug fix in UI β†’ `/debug` |
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 design work:
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 Identity
56
+ ## Phase 2 β€” Visual Identity & Design Tokens
48
57
 
49
- Every interface built by /ui-ux-pro-max has a distinct visual identity:
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 Craft
64
+ ## Phase 3 β€” Interaction States & Micro-interactions
72
65
 
73
- Every interactive element has 4 states designed:
74
-
75
- ```
76
- 1. Default: The base state
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 (Modular Generation)
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
- ### Worker 1: Layout Architect (`frontend-specialist`)
99
- - **Focus**: Semantic HTML, accessibility tree, and component composition.
100
- - **Rules**: Zero styling, just the raw structure and React state logic.
101
- - **WCAG Checks**: Keyboard navigation, screen reader semantics (role, label).
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 layout
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 | Next Command |
150
- | :------------------------ | :------------------------------------- |
151
- | Design complete | β†’ `/preview start` to see it in action |
152
- | Need responsive checks | β†’ `/review` or manual viewport testing |
153
- | Needs backend integration | β†’ `/tribunal-backend` to hook up APIs |
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/ # 44 specialist and reviewer agent definitions
45
+ β”‚ β”œβ”€β”€ agents/ # 51 specialist and reviewer agent definitions
46
46
  β”‚ β”œβ”€β”€ skills/ # Reusable skill packs
47
- β”‚ β”œβ”€β”€ workflows/ # 34 workflow definitions
47
+ β”‚ β”œβ”€β”€ workflows/ # 37 workflow definitions
48
48
  β”‚ └── scripts/ # Automation scripts
49
49
  β”œβ”€β”€ test/
50
50
  β”‚ β”œβ”€β”€ unit/ # Unit tests (Jest)