tribunal-kit 5.8.4 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/.agent/ARCHITECTURE.md +219 -215
  2. package/.agent/agents/accessibility-reviewer.md +66 -151
  3. package/.agent/agents/ai-code-reviewer.md +22 -2
  4. package/.agent/agents/anti-pattern-reviewer.md +99 -0
  5. package/.agent/agents/api-architect.md +19 -2
  6. package/.agent/agents/backend-specialist.md +25 -3
  7. package/.agent/agents/cloud-engineer.md +21 -0
  8. package/.agent/agents/code-archaeologist.md +20 -3
  9. package/.agent/agents/complexity-reviewer.md +22 -2
  10. package/.agent/agents/database-architect.md +24 -3
  11. package/.agent/agents/db-latency-auditor.md +22 -2
  12. package/.agent/agents/debugger.md +19 -3
  13. package/.agent/agents/dependency-reviewer.md +19 -2
  14. package/.agent/agents/devops-engineer.md +24 -3
  15. package/.agent/agents/documentation-writer.md +21 -3
  16. package/.agent/agents/explorer-agent.md +21 -3
  17. package/.agent/agents/frontend-reviewer.md +19 -3
  18. package/.agent/agents/frontend-specialist.md +72 -224
  19. package/.agent/agents/game-developer.md +22 -3
  20. package/.agent/agents/interaction-reviewer.md +118 -0
  21. package/.agent/agents/logic-reviewer.md +18 -3
  22. package/.agent/agents/minimalist-reviewer.md +98 -0
  23. package/.agent/agents/mobile-developer.md +21 -3
  24. package/.agent/agents/mobile-reviewer.md +22 -2
  25. package/.agent/agents/orchestrator.md +19 -3
  26. package/.agent/agents/penetration-tester.md +22 -3
  27. package/.agent/agents/performance-optimizer.md +21 -3
  28. package/.agent/agents/performance-reviewer.md +2 -0
  29. package/.agent/agents/precedence-reviewer.md +19 -5
  30. package/.agent/agents/product-manager.md +20 -3
  31. package/.agent/agents/product-owner.md +22 -1
  32. package/.agent/agents/product-reviewer.md +98 -0
  33. package/.agent/agents/project-planner.md +19 -3
  34. package/.agent/agents/qa-automation-engineer.md +24 -3
  35. package/.agent/agents/resilience-reviewer.md +21 -2
  36. package/.agent/agents/schema-reviewer.md +21 -2
  37. package/.agent/agents/security-auditor.md +7 -1
  38. package/.agent/agents/seo-specialist.md +18 -3
  39. package/.agent/agents/sql-reviewer.md +22 -2
  40. package/.agent/agents/supervisor-agent.md +22 -3
  41. package/.agent/agents/swarm-worker-registry.md +7 -0
  42. package/.agent/agents/system-architect.md +19 -0
  43. package/.agent/agents/test-coverage-reviewer.md +22 -2
  44. package/.agent/agents/test-engineer.md +21 -2
  45. package/.agent/agents/throughput-optimizer.md +22 -2
  46. package/.agent/agents/type-safety-reviewer.md +21 -2
  47. package/.agent/agents/ui-ux-auditor.md +44 -242
  48. package/.agent/agents/ui-visual-auditor.md +99 -0
  49. package/.agent/agents/ux-reviewer.md +104 -0
  50. package/.agent/agents/visual-reviewer.md +98 -0
  51. package/.agent/agents/vitals-reviewer.md +23 -2
  52. package/.agent/history/README.md +53 -0
  53. package/.agent/history/case-law/cases/template-case.json +19 -0
  54. package/.agent/history/integrity_manifest.json +131 -33
  55. package/.agent/history/memory/.memory.idx +1581 -1
  56. package/.agent/history/memory/MEMORY.md +105 -1
  57. package/.agent/routing_index.json +272 -690
  58. package/.agent/rules/GEMINI.md +10 -12
  59. package/.agent/rules/GEMINI_PLANNER.md +84 -0
  60. package/.agent/scripts/_utils.js +28 -7
  61. package/.agent/scripts/case_law_manager.js +2 -0
  62. package/.agent/scripts/context_broker.js +152 -19
  63. package/.agent/scripts/guardrail_engine.js +60 -5
  64. package/.agent/scripts/impact_classifier.js +167 -0
  65. package/.agent/scripts/integrity_manifest.js +10 -4
  66. package/.agent/scripts/marathon_harness.js +10 -1
  67. package/.agent/scripts/minimal_change_engine.js +437 -0
  68. package/.agent/scripts/pipeline_engine.js +856 -0
  69. package/.agent/scripts/skill_evolution.js +36 -21
  70. package/.agent/scripts/socratic_gate_policy.js +60 -0
  71. package/.agent/scripts/swarm_dispatcher.js +65 -6
  72. package/.agent/scripts/token_budget_broker.js +52 -0
  73. package/.agent/scripts/verify_all.js +13 -0
  74. package/.agent/scripts/visual_audit.js +92 -0
  75. package/.agent/skills/12-principles-of-animation/SKILL.md +19 -10
  76. package/.agent/skills/60fps-animation/SKILL.md +19 -10
  77. package/.agent/skills/accessible-animation/SKILL.md +19 -10
  78. package/.agent/skills/adapt/SKILL.md +19 -10
  79. package/.agent/skills/advanced-rag-pipelines/SKILL.md +21 -3
  80. package/.agent/skills/agent-organizer/SKILL.md +21 -7
  81. package/.agent/skills/agentic-patterns/SKILL.md +19 -7
  82. package/.agent/skills/ai-prompt-injection-defense/SKILL.md +21 -7
  83. package/.agent/skills/animation-on-scroll/SKILL.md +19 -10
  84. package/.agent/skills/animation-systems/SKILL.md +19 -10
  85. package/.agent/skills/antfu-conventions/SKILL.md +21 -10
  86. package/.agent/skills/api-patterns/SKILL.md +21 -7
  87. package/.agent/skills/api-patterns/scripts/__pycache__/api_validator.cpython-311.pyc +0 -0
  88. package/.agent/skills/api-security-auditor/SKILL.md +21 -7
  89. package/.agent/skills/app-builder/SKILL.md +21 -7
  90. package/.agent/skills/apple-design/SKILL.md +19 -10
  91. package/.agent/skills/architecture/SKILL.md +21 -7
  92. package/.agent/skills/audit-and-fix/SKILL.md +19 -10
  93. package/.agent/skills/authentication-best-practices/SKILL.md +21 -7
  94. package/.agent/skills/backend-security-expert/SKILL.md +21 -7
  95. package/.agent/skills/baseline-ui/SKILL.md +19 -10
  96. package/.agent/skills/bash-linux/SKILL.md +21 -7
  97. package/.agent/skills/behavioral-modes/SKILL.md +19 -7
  98. package/.agent/skills/better-colors/SKILL.md +31 -14
  99. package/.agent/skills/better-ui/SKILL.md +19 -10
  100. package/.agent/skills/bolder/SKILL.md +19 -10
  101. package/.agent/skills/brainstorming/SKILL.md +17 -7
  102. package/.agent/skills/browser-native-ai/SKILL.md +19 -3
  103. package/.agent/skills/build-primitive/SKILL.md +19 -10
  104. package/.agent/skills/building-native-ui/SKILL.md +21 -7
  105. package/.agent/skills/cicd-pro/SKILL.md +21 -10
  106. package/.agent/skills/clarify/SKILL.md +19 -10
  107. package/.agent/skills/clean-code/SKILL.md +21 -7
  108. package/.agent/skills/cloud-architect/SKILL.md +21 -10
  109. package/.agent/skills/cobejs/SKILL.md +19 -10
  110. package/.agent/skills/code-review-checklist/SKILL.md +21 -7
  111. package/.agent/skills/codebase-design/SKILL.md +21 -10
  112. package/.agent/skills/colorize/SKILL.md +19 -10
  113. package/.agent/skills/compact-landing/SKILL.md +19 -10
  114. package/.agent/skills/company-logos/SKILL.md +19 -10
  115. package/.agent/skills/config-validator/SKILL.md +21 -7
  116. package/.agent/skills/containerization-pro/SKILL.md +21 -10
  117. package/.agent/skills/create-design-md/SKILL.md +19 -10
  118. package/.agent/skills/critique/SKILL.md +19 -10
  119. package/.agent/skills/csharp-developer/SKILL.md +21 -7
  120. package/.agent/skills/data-validation-schemas/SKILL.md +21 -7
  121. package/.agent/skills/database-design/SKILL.md +21 -7
  122. package/.agent/skills/database-design/scripts/__pycache__/schema_validator.cpython-311.pyc +0 -0
  123. package/.agent/skills/delight/SKILL.md +19 -10
  124. package/.agent/skills/deployment-procedures/SKILL.md +21 -7
  125. package/.agent/skills/design-lab/SKILL.md +21 -10
  126. package/.agent/skills/devops-engineer/SKILL.md +21 -7
  127. package/.agent/skills/devops-incident-responder/SKILL.md +21 -7
  128. package/.agent/skills/diagnosing-bugs/SKILL.md +21 -10
  129. package/.agent/skills/distill/SKILL.md +19 -10
  130. package/.agent/skills/documentation-templates/SKILL.md +21 -7
  131. package/.agent/skills/domain-modeling/SKILL.md +21 -10
  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/extract-design-system/SKILL.md +21 -7
  136. package/.agent/skills/fabel-protocol/SKILL.md +19 -2
  137. package/.agent/skills/fixing-accessibility/SKILL.md +25 -14
  138. package/.agent/skills/fixing-metadata/SKILL.md +19 -10
  139. package/.agent/skills/fixing-motion-performance/SKILL.md +19 -10
  140. package/.agent/skills/framer-motion-expert/SKILL.md +19 -6
  141. package/.agent/skills/frontend-design/SKILL.md +66 -204
  142. package/.agent/skills/frontend-design/scripts/__pycache__/accessibility_checker.cpython-311.pyc +0 -0
  143. package/.agent/skills/frontend-design/scripts/__pycache__/ux_audit.cpython-311.pyc +0 -0
  144. package/.agent/skills/frontend-security-expert/SKILL.md +21 -7
  145. package/.agent/skills/game-design-expert/SKILL.md +21 -7
  146. package/.agent/skills/game-engineering-expert/SKILL.md +21 -7
  147. package/.agent/skills/generative-ui-expert/SKILL.md +19 -3
  148. package/.agent/skills/geo-fundamentals/SKILL.md +21 -7
  149. package/.agent/skills/geo-fundamentals/scripts/__pycache__/geo_checker.cpython-311.pyc +0 -0
  150. package/.agent/skills/git-pro/SKILL.md +21 -10
  151. package/.agent/skills/github-operations/SKILL.md +21 -7
  152. package/.agent/skills/gpt-taste/SKILL.md +19 -10
  153. package/.agent/skills/gsap-core/SKILL.md +21 -4
  154. package/.agent/skills/gsap-frameworks/SKILL.md +21 -4
  155. package/.agent/skills/gsap-performance/SKILL.md +20 -5
  156. package/.agent/skills/gsap-plugins/SKILL.md +20 -5
  157. package/.agent/skills/gsap-react/SKILL.md +20 -5
  158. package/.agent/skills/gsap-scrolltrigger/SKILL.md +21 -4
  159. package/.agent/skills/gsap-timeline/SKILL.md +20 -5
  160. package/.agent/skills/gsap-utils/SKILL.md +20 -5
  161. package/.agent/skills/harden/SKILL.md +19 -10
  162. package/.agent/skills/harness-protocol/SKILL.md +20 -4
  163. package/.agent/skills/i18n-localization/SKILL.md +21 -7
  164. package/.agent/skills/i18n-localization/scripts/__pycache__/i18n_checker.cpython-311.pyc +0 -0
  165. package/.agent/skills/impeccable/SKILL.md +21 -10
  166. package/.agent/skills/improve-codebase-architecture/SKILL.md +21 -10
  167. package/.agent/skills/improve-ui/SKILL.md +19 -10
  168. package/.agent/skills/intelligent-routing/SKILL.md +19 -7
  169. package/.agent/skills/knowledge-graph/SKILL.md +20 -4
  170. package/.agent/skills/landing-page/SKILL.md +20 -10
  171. package/.agent/skills/lint-and-validate/SKILL.md +21 -7
  172. package/.agent/skills/lint-and-validate/scripts/__pycache__/lint_runner.cpython-311.pyc +0 -0
  173. package/.agent/skills/lint-and-validate/scripts/__pycache__/type_coverage.cpython-311.pyc +0 -0
  174. package/.agent/skills/llm-engineering/SKILL.md +21 -7
  175. package/.agent/skills/local-first/SKILL.md +21 -7
  176. package/.agent/skills/local-first-architecture/SKILL.md +19 -10
  177. package/.agent/skills/lottie-animation/SKILL.md +19 -10
  178. package/.agent/skills/marquee-loop/SKILL.md +19 -10
  179. package/.agent/skills/masked-reveal/SKILL.md +19 -10
  180. package/.agent/skills/mcp-builder/SKILL.md +21 -7
  181. package/.agent/skills/micro-interaction/SKILL.md +19 -10
  182. package/.agent/skills/mobile-design/SKILL.md +21 -6
  183. package/.agent/skills/mobile-design/scripts/__pycache__/mobile_audit.cpython-311.pyc +0 -0
  184. package/.agent/skills/monorepo-management/SKILL.md +21 -7
  185. package/.agent/skills/morphing-icons/SKILL.md +19 -10
  186. package/.agent/skills/motion-engineering/SKILL.md +86 -171
  187. package/.agent/skills/nextjs-react-expert/SKILL.md +19 -7
  188. package/.agent/skills/nextjs-react-expert/scripts/__pycache__/convert_rules.cpython-311.pyc +0 -0
  189. package/.agent/skills/nextjs-react-expert/scripts/__pycache__/react_performance_checker.cpython-311.pyc +0 -0
  190. package/.agent/skills/nodejs-best-practices/SKILL.md +21 -7
  191. package/.agent/skills/observability/SKILL.md +21 -7
  192. package/.agent/skills/page-transition-animation/SKILL.md +19 -10
  193. package/.agent/skills/parallel-agents/SKILL.md +23 -7
  194. package/.agent/skills/performance-profiling/SKILL.md +21 -7
  195. package/.agent/skills/performance-profiling/scripts/__pycache__/lighthouse_audit.cpython-311.pyc +0 -0
  196. package/.agent/skills/plan-writing/SKILL.md +21 -7
  197. package/.agent/skills/platform-engineer/SKILL.md +21 -7
  198. package/.agent/skills/playwright-best-practices/SKILL.md +21 -7
  199. package/.agent/skills/polish/SKILL.md +19 -10
  200. package/.agent/skills/powershell-windows/SKILL.md +21 -7
  201. package/.agent/skills/pricing-page/SKILL.md +19 -10
  202. package/.agent/skills/product-aware-heuristics/SKILL.md +358 -0
  203. package/.agent/skills/progressive-blur/SKILL.md +19 -10
  204. package/.agent/skills/project-idioms/SKILL.md +20 -8
  205. package/.agent/skills/python-patterns/SKILL.md +21 -7
  206. package/.agent/skills/python-pro/SKILL.md +21 -6
  207. package/.agent/skills/quieter/SKILL.md +19 -10
  208. package/.agent/skills/react-doctor/SKILL.md +19 -10
  209. package/.agent/skills/react-specialist/SKILL.md +19 -6
  210. package/.agent/skills/readme-builder/SKILL.md +21 -7
  211. package/.agent/skills/realtime-patterns/SKILL.md +21 -7
  212. package/.agent/skills/red-team-tactics/SKILL.md +21 -7
  213. package/.agent/skills/redesign-skill/SKILL.md +19 -10
  214. package/.agent/skills/review-animations/SKILL.md +21 -10
  215. package/.agent/skills/rust-pro/SKILL.md +21 -7
  216. package/.agent/skills/seo-fundamentals/SKILL.md +21 -7
  217. package/.agent/skills/seo-fundamentals/scripts/__pycache__/seo_checker.cpython-311.pyc +0 -0
  218. package/.agent/skills/server-management/SKILL.md +21 -7
  219. package/.agent/skills/shadcn-ui-expert/SKILL.md +21 -7
  220. package/.agent/skills/shape/SKILL.md +19 -10
  221. package/.agent/skills/skill-creator/SKILL.md +21 -7
  222. package/.agent/skills/soft-skill/SKILL.md +19 -10
  223. package/.agent/skills/sounds-on-the-web/SKILL.md +19 -10
  224. package/.agent/skills/sql-pro/SKILL.md +21 -7
  225. package/.agent/skills/supabase-postgres-best-practices/SKILL.md +21 -7
  226. package/.agent/skills/svg-animation/SKILL.md +19 -10
  227. package/.agent/skills/swiftui-expert/SKILL.md +21 -7
  228. package/.agent/skills/swiss-design/SKILL.md +19 -10
  229. package/.agent/skills/system-design-pro/SKILL.md +21 -9
  230. package/.agent/skills/systematic-debugging/SKILL.md +21 -7
  231. package/.agent/skills/tailwind-patterns/SKILL.md +21 -7
  232. package/.agent/skills/taste-skill/SKILL.md +19 -10
  233. package/.agent/skills/tdd-workflow/SKILL.md +21 -10
  234. package/.agent/skills/test-result-analyzer/SKILL.md +18 -6
  235. package/.agent/skills/testing-patterns/SKILL.md +21 -7
  236. package/.agent/skills/testing-patterns/scripts/__pycache__/test_runner.cpython-311.pyc +0 -0
  237. package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +21 -10
  238. package/.agent/skills/thinking-protocol/SKILL.md +20 -8
  239. package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +19 -10
  240. package/.agent/skills/transitions-dev/SKILL.md +19 -10
  241. package/.agent/skills/trend-researcher/SKILL.md +17 -6
  242. package/.agent/skills/typescript-advanced/SKILL.md +21 -7
  243. package/.agent/skills/typeset/SKILL.md +19 -10
  244. package/.agent/skills/ui-reasoning-engine/SKILL.md +154 -0
  245. package/.agent/skills/ui-skill-packs/SKILL.md +77 -0
  246. package/.agent/skills/ui-skills-root/SKILL.md +21 -9
  247. package/.agent/skills/ui-ux-pro-max/SKILL.md +62 -583
  248. package/.agent/skills/ui-ux-researcher/SKILL.md +17 -6
  249. package/.agent/skills/vue-expert/SKILL.md +19 -6
  250. package/.agent/skills/vulnerability-scanner/SKILL.md +21 -7
  251. package/.agent/skills/vulnerability-scanner/scripts/__pycache__/security_scan.cpython-311.pyc +0 -0
  252. package/.agent/skills/web-accessibility-auditor/SKILL.md +21 -7
  253. package/.agent/skills/web-design-guidelines/SKILL.md +32 -206
  254. package/.agent/skills/web-quality-audit/SKILL.md +19 -10
  255. package/.agent/skills/webapp-testing/SKILL.md +21 -7
  256. package/.agent/skills/webapp-testing/scripts/__pycache__/playwright_runner.cpython-311.pyc +0 -0
  257. package/.agent/skills/webgpu-performance/SKILL.md +19 -3
  258. package/.agent/skills/whimsy-injector/SKILL.md +20 -10
  259. package/.agent/skills/workflow-optimizer/SKILL.md +16 -6
  260. package/.agent/templates/DESIGN.md +292 -0
  261. package/.agent/templates/design-tokens.json +137 -0
  262. package/.agent/workflows/acf.md +13 -6
  263. package/.agent/workflows/api-tester.md +15 -8
  264. package/.agent/workflows/audit.md +19 -8
  265. package/.agent/workflows/brainstorm.md +14 -9
  266. package/.agent/workflows/changelog.md +14 -8
  267. package/.agent/workflows/create.md +16 -8
  268. package/.agent/workflows/debug.md +15 -10
  269. package/.agent/workflows/deploy.md +16 -8
  270. package/.agent/workflows/enhance.md +15 -10
  271. package/.agent/workflows/fix.md +15 -8
  272. package/.agent/workflows/generate.md +17 -11
  273. package/.agent/workflows/marathon.md +15 -8
  274. package/.agent/workflows/migrate.md +16 -8
  275. package/.agent/workflows/minimal.md +94 -0
  276. package/.agent/workflows/orchestrate.md +15 -8
  277. package/.agent/workflows/performance-benchmarker.md +15 -8
  278. package/.agent/workflows/pipeline.md +155 -0
  279. package/.agent/workflows/plan.md +14 -10
  280. package/.agent/workflows/preview.md +14 -7
  281. package/.agent/workflows/refactor.md +16 -8
  282. package/.agent/workflows/review-ai.md +15 -7
  283. package/.agent/workflows/review.md +15 -7
  284. package/.agent/workflows/session.md +14 -7
  285. package/.agent/workflows/status.md +13 -7
  286. package/.agent/workflows/strengthen-skills.md +15 -6
  287. package/.agent/workflows/super-prompt.md +19 -10
  288. package/.agent/workflows/swarm.md +15 -7
  289. package/.agent/workflows/test.md +15 -8
  290. package/.agent/workflows/tribunal-backend.md +16 -9
  291. package/.agent/workflows/tribunal-database.md +15 -8
  292. package/.agent/workflows/tribunal-frontend.md +26 -11
  293. package/.agent/workflows/tribunal-full.md +29 -14
  294. package/.agent/workflows/tribunal-mobile.md +15 -8
  295. package/.agent/workflows/tribunal-performance.md +15 -8
  296. package/.agent/workflows/tribunal-speed.md +16 -9
  297. package/.agent/workflows/tribunal-ui.md +82 -0
  298. package/.agent/workflows/ui-ux-pro-max.md +51 -107
  299. package/CONTRIBUTING.md +2 -2
  300. package/README.md +5 -5
  301. package/bin/mcp-server.js +126 -76
  302. package/bin/wrapper.js +67 -31
  303. package/dist/cli.js +39 -1
  304. package/dist/commands/compile.js +7 -0
  305. package/dist/commands/context.js +8 -3
  306. package/dist/commands/graph.js +8 -2
  307. package/dist/commands/init.js +37 -2
  308. package/dist/commands/memory.js +119 -68
  309. package/dist/commands/minimal.js +71 -0
  310. package/dist/commands/native.js +228 -0
  311. package/dist/commands/optimize.js +15 -5
  312. package/dist/commands/validate.js +67 -0
  313. package/dist/esm/index.mjs +26 -32
  314. package/dist/mcp/server.js +4 -138
  315. package/dist/utils/fs.js +10 -4
  316. package/dist/utils/helpers.js +10 -1
  317. package/dist/utils/version.js +9 -2
  318. package/mcp_config.json +10 -1
  319. package/package.json +19 -15
  320. package/scripts/benchmark.js +58 -0
  321. package/scripts/sync-version.js +129 -76
  322. package/scripts/visual_audit.js +126 -0
@@ -1,281 +1,285 @@
1
- # 🏛️ Tribunal Anti-Hallucination Kit — Architecture
1
+ # 🏛️ Tribunal Anti-Hallucination Kit v3.0.0 — Architecture
2
2
 
3
- Works natively in **Cursor**, **Windsurf**, **Antigravity**, and any AI IDE that indexes `.agent/` folders.
3
+ Works natively in **Antigravity**, **Cursor**, **Windsurf**, and any AI IDE that indexes `.agent/` folders.
4
4
 
5
5
  ---
6
6
 
7
- ## System Flow
7
+ ## 1. System Flow & Execution Lifecycle
8
8
 
9
9
  ```mermaid
10
10
  flowchart TD
11
11
  A["User Prompt"] --> B{"Classify Request"}
12
- B -->|Question| C["Text Answer — No Agents"]
13
- B -->|Survey| D["Read + Report — No Code"]
14
- B -->|Simple Edit| E["Direct Edit"]
12
+ B -->|Question| C["Text Answer — No Agents / No Edits"]
13
+ B -->|Survey| D["Read + Report — No Code Written"]
14
+ B -->|Simple Edit| E["Direct Edit (Single File)"]
15
15
  B -->|Complex Build| F["Socratic Gate"]
16
16
  B -->|Slash Command| G["Route to Workflow"]
17
17
 
18
- F --> H{"Questions Answered?"}
19
- H -->|No| I["Ask Clarifying Questions"]
18
+ F --> H{"Clarification Cleared?"}
19
+ H -->|No| I["Ask Targeted Questions (Max 2)"]
20
20
  I --> H
21
- H -->|Yes| J["Auto-Route to Agent"]
21
+ H -->|Yes| J["Auto-Route to Primary Agent"]
22
22
 
23
- J --> K["Agent Generates Code"]
24
- K --> L{"Tribunal Review"}
25
- L -->|Approved| M{"Human Gate"}
26
- L -->|Rejected| N["Feedback to Agent"]
23
+ J --> K["Maker Generates Code (Low Temp)"]
24
+ K --> L{"Parallel Tribunal Audit"}
25
+ L -->|All Approved| M{"Human Gate"}
26
+ L -->|Rejected| N["Structured Feedback to Maker"]
27
27
  N --> O{"Retry Count < 3?"}
28
28
  O -->|Yes| K
29
29
  O -->|No| P["HALT — Escalate to Human"]
30
30
 
31
- M -->|Approved| Q["Write to Disk"]
31
+ M -->|Approved| Q["Write to Disk & Run Verification"]
32
32
  M -->|Rejected| R["Revise or Abandon"]
33
33
  ```
34
34
 
35
35
  ---
36
36
 
37
- ## Slash Commands (Workflows)
38
-
39
- Type any of these in your AI IDE chat:
40
-
41
- | Command | Purpose | File |
42
- | ----------------------- | -------------------------------------------------------------------------------------- | ----------------------------------- |
43
- | `/generate` | Full Tribunal: Maker → Parallel Review → Human Gate | `workflows/generate.md` |
44
- | `/review` | Audit existing code (no generation) | `workflows/review.md` |
45
- | `/tribunal-full` | ALL 19 reviewers at once — maximum coverage | `workflows/tribunal-full.md` |
46
- | `/tribunal-backend` | Logic + Security + Deps + Types | `workflows/tribunal-backend.md` |
47
- | `/tribunal-frontend` | Logic + Security + Frontend + Types | `workflows/tribunal-frontend.md` |
48
- | `/tribunal-database` | Logic + Security + SQL | `workflows/tribunal-database.md` |
49
- | `/tribunal-mobile` | Logic + Security + Mobile | `workflows/tribunal-mobile.md` |
50
- | `/tribunal-performance` | Logic + Performance | `workflows/tribunal-performance.md` |
51
- | `/brainstorm` | Exploration mode — no code, just options | `workflows/brainstorm.md` |
52
- | `/create` | Structured app creation (4-stage) | `workflows/create.md` |
53
- | `/enhance` | Add/update features in existing apps | `workflows/enhance.md` |
54
- | `/debug` | Systematic debugging with root cause analysis | `workflows/debug.md` |
55
- | `/plan` | Project planning only — no code | `workflows/plan.md` |
56
- | `/deploy` | Pre-flight checks + deployment | `workflows/deploy.md` |
57
- | `/test` | Test generation and execution | `workflows/test.md` |
58
- | `/preview` | Start/stop local dev server | `workflows/preview.md` |
59
- | `/status` | Agent and project status board | `workflows/status.md` |
60
- | `/session` | Multi-session state tracking | `workflows/session.md` |
61
- | `/orchestrate` | Multi-agent coordination | `workflows/orchestrate.md` |
62
- | `/swarm` | Supervisor → specialist Workers → unified synthesis | `workflows/swarm.md` |
63
- | `/strengthen-skills` | Audit and harden all skills — appends Tribunal guardrails to any SKILL.md missing them | `workflows/strengthen-skills.md` |
64
- | `/ui-ux-pro-max` | Plan and implement cutting-edge UI/UX | `workflows/ui-ux-pro-max.md` |
65
- | `/refactor` | Dependency-safe code refactoring | `workflows/refactor.md` |
66
- | `/migrate` | Framework upgrades, DB migrations | `workflows/migrate.md` |
67
- | `/audit` | Full project health audit | `workflows/audit.md` |
68
- | `/fix` | Auto-fix lint, formatting, imports | `workflows/fix.md` |
69
- | `/changelog` | Generate changelog from git history | `workflows/changelog.md` |
70
- | `/review-ai` | AI/LLM integration audit | `workflows/review-ai.md` |
37
+ ## 2. 3-Pass Hybrid Pipeline Architecture
71
38
 
72
- ---
39
+ The `/pipeline` engine uses a 3-pass decoupled architecture to separate planning, generation, and validation, saving ~89% of context window tokens compared to monolithic generation.
73
40
 
74
- ## The 20 Tribunal Reviewers
75
-
76
- | Agent | File | Activates When |
77
- | ------------------------ | ---------------------------------- | ----------------------------------------------------------------------------------- |
78
- | `logic-reviewer` | `agents/logic-reviewer.md` | All sessions (always on) |
79
- | `security-auditor` | `agents/security-auditor.md` | All sessions (always on) |
80
- | `performance-reviewer` | `agents/performance-reviewer.md` | "optimize", "slow", `/tribunal-full` |
81
- | `dependency-reviewer` | `agents/dependency-reviewer.md` | "api", "backend", `/tribunal-full` |
82
- | `type-safety-reviewer` | `agents/type-safety-reviewer.md` | "typescript", "api", `/tribunal-full` |
83
- | `sql-reviewer` | `agents/sql-reviewer.md` | "query", "database", `/tribunal-full` |
84
- | `frontend-reviewer` | `agents/frontend-reviewer.md` | "react", "hook", "component", `/tribunal-full` |
85
- | `test-coverage-reviewer` | `agents/test-coverage-reviewer.md` | "test", "spec", "coverage", `/tribunal-full` |
86
- | `mobile-reviewer` | `agents/mobile-reviewer.md` | "mobile", "react native", "flutter", `/tribunal-full` |
87
- | `ai-code-reviewer` | `agents/ai-code-reviewer.md` | "llm", "openai", "anthropic", "ai", `/tribunal-full`, `/review-ai` |
88
- | `accessibility-reviewer` | `agents/accessibility-reviewer.md` | "a11y", "wcag", "aria", `/tribunal-frontend`, `/tribunal-full` |
89
- | `resilience-reviewer` | `agents/resilience-reviewer.md` | "retry", "circuit breaker", "error boundary", `/tribunal-backend`, `/tribunal-full` |
90
- | `schema-reviewer` | `agents/schema-reviewer.md` | "validation", "zod", "pydantic", `/tribunal-backend`, `/tribunal-full` |
91
- | `precedence-reviewer` | `agents/precedence-reviewer.md` | All sessions — checks Case Law before generation |
92
- | `penetration-tester` | `agents/penetration-tester.md` | "pentest", "red team", "attack surface", `/tribunal-full` |
93
- | `ui-ux-auditor` | `agents/ui-ux-auditor.md` | "component", "ui", "design", "landing", `/tribunal-frontend`, `/tribunal-full` |
94
- | `vitals-reviewer` | `agents/vitals-reviewer.md` | Frontend CWV depth, `/tribunal-speed`, `/tribunal-full` |
95
- | `throughput-optimizer` | `agents/throughput-optimizer.md` | Server runtime, event-loop, `/tribunal-speed`, `/tribunal-full` |
96
- | `db-latency-auditor` | `agents/db-latency-auditor.md` | "slow query", "index", "N+1", `/tribunal-speed`, `/tribunal-full` |
41
+ ```mermaid
42
+ flowchart LR
43
+ subgraph Pass1 ["Pass 1: Planner (~1,500 tokens)"]
44
+ P1["Task & Context"] --> P2["Classify Task & Stack"]
45
+ P2 --> P3["Select 2-3 Essential Skills"]
46
+ P3 --> P4["Output: Spec JSON"]
47
+ end
48
+
49
+ subgraph Pass2 ["Pass 2: Builder (~2,500 tokens)"]
50
+ B1["Spec JSON + 2-3 Skill Rules"] --> B2["Focus Synthesis (75% Task Context)"]
51
+ B2 --> B3["Generate Clean Code"]
52
+ end
53
+
54
+ subgraph Pass3 ["Pass 3: Validator (0 Tokens - Free)"]
55
+ V1["Generated Code"] --> V2["pipeline_engine.js"]
56
+ V2 --> V3["OWASP & Lint Check"]
57
+ V3 -->|Pass| V4["Human Gate"]
58
+ V3 -->|Fail| V5["Targeted Retry (Max 3)"]
59
+ end
60
+
61
+ Pass1 --> Pass2 --> Pass3
62
+ ```
97
63
 
98
64
  ---
99
65
 
100
- ## Swarm / Supervisor Architecture
66
+ ## 3. Swarm / Supervisor Architecture
101
67
 
102
- The Swarm system decomposes complex multi-domain goals into independent sub-tasks dispatched to specialist Workers.
68
+ The `/swarm` workflow decomposes complex multi-domain goals into atomic, non-overlapping sub-tasks handled concurrently by specialist Workers.
103
69
 
104
- ```
105
- /swarm [complex multi-domain goal]
106
-
107
-
108
- supervisor-agent (triage)
109
- └─ reads: swarm-worker-registry.md
110
- └─ emits: WorkerRequest JSON per sub-task
111
-
112
- ├───── WorkerRequest ───→ Worker A (e.g. backend-specialist)
113
- ├───── WorkerRequest ───→ Worker B (e.g. database-architect)
114
- └───── WorkerRequest ───→ Worker C (e.g. documentation-writer)
115
-
116
- WorkerResult (success/failure/escalate)
117
-
118
- supervisor-agent (synthesize)
119
-
120
- ━━━ Swarm Complete ━━━
121
- Human Gate → Y / N / R
70
+ ```mermaid
71
+ flowchart TD
72
+ A["/swarm [Multi-domain Goal]"] --> B["supervisor-agent"]
73
+ B --> C["Read: swarm-worker-registry.md"]
74
+ C --> D["Validate Payload: swarm_dispatcher.js"]
75
+
76
+ D --> E1["Worker A: backend-specialist"]
77
+ D --> E2["Worker B: database-architect"]
78
+ D --> E3["Worker C: frontend-specialist"]
79
+
80
+ E1 --> F1["WorkerResult A"]
81
+ E2 --> F2["WorkerResult B"]
82
+ E3 --> F3["WorkerResult C"]
83
+
84
+ F1 & F2 & F3 --> G["Promise.allSettled() Synthesis"]
85
+ G --> H["Human Gate Approval"]
122
86
  ```
123
87
 
124
- **Key files:**
88
+ ---
125
89
 
126
- | File | Role |
127
- | ---------------------------------- | -------------------------------------------------------------- |
128
- | `agents/supervisor-agent.md` | Triage, dispatch, retry, synthesis logic |
129
- | `agents/swarm-worker-contracts.md` | WorkerRequest + WorkerResult JSON schemas |
130
- | `agents/swarm-worker-registry.md` | Maps task types and keywords to specialist agents |
131
- | `workflows/swarm.md` | `/swarm` slash command procedure |
132
- | `scripts/swarm_dispatcher.js` | Validates WorkerRequest/WorkerResult JSON (use `--mode swarm`) |
90
+ ## 4. Context Window Token Budget Breakdown
133
91
 
134
- **Constraints:**
92
+ ```mermaid
93
+ pie title Monolithic Generation vs Decoupled 3-Pass Pipeline Context Window
94
+ "Generated Code Output" : 75
95
+ "Essential Skill Rules" : 15
96
+ "Task & File Context" : 10
97
+ ```
135
98
 
136
- - Maximum 5 Workers per swarm invocation
137
- - Workers are independent no Worker depends on another's pending result
138
- - Failed workers are retried up to 3 times with targeted feedback
139
- - Workers that fail after 3 retries are escalated, not silently dropped
140
- - Human Gate is never skipped
99
+ * **Monolithic `/generate`**: Uses ~12,000–18,000 tokens per pass (89% spent on system rules & personas).
100
+ * **Decoupled `/pipeline`**: Uses ~2,500 tokens in Pass 2 (75%+ of context window dedicated exclusively to code synthesis).
141
101
 
142
102
  ---
143
103
 
144
- ## Specialist Agents
145
-
146
- | Agent / Expert | Domain |
147
- | --------------------------- | ----------------------------------------------- |
148
- | `supervisor-agent` | Swarm triage, Worker dispatch, result synthesis |
149
- | `orchestrator` | Multi-agent coordination |
150
- | `agent-organizer` | Specialist agent operations |
151
- | `project-planner` | 4-phase structured planning |
152
- | `backend-specialist` | API, server, auth |
153
- | `csharp-developer` | C# / .NET architecture |
154
- | `python-pro` | Python backend development |
155
- | `frontend-specialist` | Web UI / Components |
156
- | `react-specialist` | React / Next.js architecture |
157
- | `vue-expert` | Vue / Nuxt applications |
158
- | `database-architect` | Schema, migrations |
159
- | `sql-pro` | Complex queries, optimization |
160
- | `mobile-developer` | React Native, Flutter |
161
- | `devops-engineer` | CI/CD, Docker, deployment |
162
- | `platform-engineer` | Infrastructure, cloud native |
163
- | `devops-incident-responder` | Production issues |
164
- | `debugger` | Systematic debugging |
165
- | `game-developer` | Game development |
166
- | `security-auditor` | Penetration testing, OWASP |
167
- | `penetration-tester` | Red team tactics |
168
- | `performance-optimizer` | Profiling, optimization |
169
- | `code-archaeologist` | Legacy code analysis |
170
- | `explorer-agent` | Unknown codebase mapping |
171
- | `documentation-writer` | Docs, READMEs, API docs |
172
- | `test-engineer` | Test design and strategy |
173
- | `qa-automation-engineer` | Test automation |
174
- | `seo-specialist` | SEO auditing |
175
- | `product-manager` | Feature prioritization |
176
- | `product-owner` | Requirements, scope |
104
+ ## 5. The 27 Parallel Tribunal Reviewers
105
+
106
+ When code is generated or audited, domain reviewers evaluate the diff in parallel. Approval requires unanimous pass across all assigned reviewers.
107
+
108
+ | Reviewer Agent | Agent File | Primary Domain & Activation Signals |
109
+ | :--- | :--- | :--- |
110
+ | `logic-reviewer` | `agents/logic-reviewer.md` | **Always Active** — Core logic, boundary conditions, edge cases |
111
+ | `security-auditor` | `agents/security-auditor.md` | **Always Active** — OWASP Top 10, sanitization, secret exposure |
112
+ | `precedence-reviewer` | `agents/precedence-reviewer.md` | **Always Active** — Checks Case Law & project architectural precedents |
113
+ | `complexity-reviewer` | `agents/complexity-reviewer.md` | **Always Active** — Over-engineering, Dependency Ladder enforcement |
114
+ | `type-safety-reviewer` | `agents/type-safety-reviewer.md` | TypeScript strictness, zero `as any` policy, generic constraints |
115
+ | `dependency-reviewer` | `agents/dependency-reviewer.md` | Phantom package detection, `package.json` verification |
116
+ | `resilience-reviewer` | `agents/resilience-reviewer.md` | Fault tolerance, retries, circuit breakers, error boundaries |
117
+ | `schema-reviewer` | `agents/schema-reviewer.md` | Input validation, Zod / Pydantic schemas, contract boundaries |
118
+ | `frontend-reviewer` | `agents/frontend-reviewer.md` | React 19 / Next.js Server Components, hook rules, state mutations |
119
+ | `ui-ux-auditor` | `agents/ui-ux-auditor.md` | Usability heuristics, responsive layouts, spatial systems |
120
+ | `visual-reviewer` | `agents/visual-reviewer.md` | Visual hierarchy, typography scaling, OKLCH color palettes |
121
+ | `interaction-reviewer` | `agents/interaction-reviewer.md` | Micro-interactions, hover/focus/active states, tactile feedback |
122
+ | `anti-pattern-reviewer` | `agents/anti-pattern-reviewer.md` | Banned AI clichés (purple gradients, generic hero grids) |
123
+ | `accessibility-reviewer` | `agents/accessibility-reviewer.md` | WCAG 2.2 AA compliance, ARIA attributes, keyboard navigation |
124
+ | `sql-reviewer` | `agents/sql-reviewer.md` | Parameterized queries, ORM safety, transaction integrity |
125
+ | `db-latency-auditor` | `agents/db-latency-auditor.md` | Slow query detection, index optimization, N+1 query prevention |
126
+ | `mobile-reviewer` | `agents/mobile-reviewer.md` | React Native, Expo Router, 60fps Reanimated worklets, safe areas |
127
+ | `performance-reviewer` | `agents/performance-reviewer.md` | O(n²) bottlenecks, layout thrashing, memory leaks |
128
+ | `vitals-reviewer` | `agents/vitals-reviewer.md` | Core Web Vitals (LCP, CLS, INP, TTFB) depth analysis |
129
+ | `throughput-optimizer` | `agents/throughput-optimizer.md` | Event-loop blocking, server concurrency, streaming optimization |
130
+ | `ai-code-reviewer` | `agents/ai-code-reviewer.md` | LLM SDK parameters, prompt injection defense, token explosion |
177
131
 
178
132
  ---
179
133
 
180
- ## How the Tribunal Works
181
-
182
- ```
183
- User prompt
184
-
185
-
186
- GEMINI.md Classify request Select active reviewers
187
-
188
-
189
- MAKER generates code (context-bound, no hallucinations)
190
-
191
-
192
- ALL SELECTED REVIEWERS run in parallel
193
-
194
- ├── Logic → hallucinated methods?
195
- ├── Security → OWASP violations?
196
- ├── Deps → fake npm packages?
197
- ├── Types → any/unsafe casts?
198
- ├── SQL → injection / N+1?
199
- ├── Frontend → hooks violations?
200
- ├── Perf → O(n²) / blocking I/O?
201
- └── Tests → tautology / no edges?
202
-
203
-
204
- VERDICT: All approved HUMAN GATE (you approve or reject the diff)
205
- Any failed → Feedback returned to Maker for revision (max 3 attempts)
206
- 3 failures → HALT and escalate to human
207
- ```
134
+ ## 6. 29 Specialist Domain Agents
135
+
136
+ | Domain Specialist | Agent File | Focus Area & Capabilities |
137
+ | :--- | :--- | :--- |
138
+ | `supervisor-agent` | `agents/supervisor-agent.md` | Swarm triage, Worker dispatch, result synthesis |
139
+ | `orchestrator` | `agents/orchestrator.md` | Multi-agent workflow coordination & fan-out |
140
+ | `agent-organizer` | `agents/agent-organizer.md` | Agent ecosystem management & memory distillation |
141
+ | `project-planner` | `agents/project-planner.md` | 4-phase structured implementation planning |
142
+ | `backend-specialist` | `agents/backend-specialist.md` | Node.js, Express, Hono, API design, Server Actions |
143
+ | `frontend-specialist` | `agents/frontend-specialist.md` | Modern Web UI, CSS systems, component architecture |
144
+ | `react-specialist` | `agents/react-specialist.md` | React 19, Server Components, Zustand, TanStack Query |
145
+ | `nextjs-react-expert` | `agents/nextjs-react-expert.md` | Next.js 15 App Router, PPR, Server Actions, Middleware |
146
+ | `vue-expert` | `agents/vue-expert.md` | Vue 3.5+, Composition API, Nuxt 4, Pinia |
147
+ | `python-pro` | `agents/python-pro.md` | Python 3.12+, FastAPI, Pydantic v2, Asyncio, Pytest |
148
+ | `rust-pro` | `agents/rust-pro.md` | Rust 1.75+, Tokio async, Axum, Serde, memory safety |
149
+ | `csharp-developer` | `agents/csharp-developer.md` | C# 12, .NET 8/9, ASP.NET Core, Blazor architecture |
150
+ | `database-architect` | `agents/database-architect.md` | Data modeling, Prisma/Drizzle schema design, migrations |
151
+ | `sql-pro` | `agents/sql-pro.md` | PostgreSQL, Supabase RLS, complex analytical SQL |
152
+ | `mobile-developer` | `agents/mobile-developer.md` | Expo, React Native, Flutter, native modules |
153
+ | `devops-engineer` | `agents/devops-engineer.md` | Docker, CI/CD pipelines, GitHub Actions, deployment |
154
+ | `platform-engineer` | `agents/platform-engineer.md` | Cloud-native infrastructure, Kubernetes, Terraform |
155
+ | `cloud-engineer` | `agents/cloud-engineer.md` | AWS, Serverless, IaC, edge computing topology |
156
+ | `devops-incident-responder` | `agents/devops-incident-responder.md` | Incident root cause investigation & hotfixes |
157
+ | `debugger` | `agents/debugger.md` | 4-phase systematic debugging & traceback isolation |
158
+ | `system-architect` | `agents/system-architect.md` | Capacity planning, scale estimation, distributed systems |
159
+ | `code-archaeologist` | `agents/code-archaeologist.md` | Legacy codebase analysis, debt mapping, seams |
160
+ | `explorer-agent` | `agents/explorer-agent.md` | Unknown codebase mapping & dependency graph discovery |
161
+ | `documentation-writer` | `agents/documentation-writer.md` | Technical documentation, OpenAPI, README generation |
162
+ | `test-engineer` | `agents/test-engineer.md` | Testing Trophy strategy, behavioral test design |
163
+ | `qa-automation-engineer` | `agents/qa-automation-engineer.md` | E2E Playwright testing, CI test automation |
164
+ | `seo-specialist` | `agents/seo-specialist.md` | Technical SEO, OpenGraph, Core Web Vitals optimization |
165
+ | `product-manager` | `agents/product-manager.md` | Feature prioritization, scope control, user stories |
166
+ | `product-owner` | `agents/product-owner.md` | Backlog management, acceptance criteria verification |
208
167
 
209
168
  ---
210
169
 
211
- ## Auto Domain Routing (GEMINI.md)
212
-
213
- | Keywords in prompt | Extra reviewers added |
214
- | ---------------------------- | ------------------------- |
215
- | api, route, endpoint, server | + Dependency + TypeSafety |
216
- | sql, query, database, orm | + SQL |
217
- | component, hook, react, next | + Frontend + TypeSafety |
218
- | test, spec, coverage, jest | + TestCoverage |
219
- | optimize, slow, memory, cpu | + Performance |
170
+ ## 7. 37 Slash Commands & Workflows
171
+
172
+ Type any of these commands in your AI IDE chat to trigger specialized workflows:
173
+
174
+ | Command | Purpose | File Path |
175
+ | :--- | :--- | :--- |
176
+ | `/generate` | Full Tribunal: Maker Parallel Review → Human Gate | [`workflows/generate.md`](workflows/generate.md) |
177
+ | `/review` | Pure read-only hallucination audit | [`workflows/review.md`](workflows/review.md) |
178
+ | `/tribunal-full` | Comprehensive 27-reviewer parallel audit | [`workflows/tribunal-full.md`](workflows/tribunal-full.md) |
179
+ | `/tribunal-backend` | Logic + Security + Deps + Type Safety + Resilience + Schema | [`workflows/tribunal-backend.md`](workflows/tribunal-backend.md) |
180
+ | `/tribunal-frontend` | Logic + Security + Frontend + Types + UI/UX + Motion + Visual | [`workflows/tribunal-frontend.md`](workflows/tribunal-frontend.md) |
181
+ | `/tribunal-database` | Logic + Security + SQL parameterization audit | [`workflows/tribunal-database.md`](workflows/tribunal-database.md) |
182
+ | `/tribunal-mobile` | Logic + Security + Mobile 60fps Reanimated audit | [`workflows/tribunal-mobile.md`](workflows/tribunal-mobile.md) |
183
+ | `/tribunal-performance` | Logic + Performance optimization audit | [`workflows/tribunal-performance.md`](workflows/tribunal-performance.md) |
184
+ | `/tribunal-ui` | Dedicated UI/UX design heuristics audit | [`workflows/tribunal-ui.md`](workflows/tribunal-ui.md) |
185
+ | `/tribunal-speed` | Full-stack parallel performance swarm (max 5 AI calls) | [`workflows/tribunal-speed.md`](workflows/tribunal-speed.md) |
186
+ | `/brainstorm` | Socratic exploration mode — 3 options & tradeoffs | [`workflows/brainstorm.md`](workflows/brainstorm.md) |
187
+ | `/create` | Full application creation from requirements to scaffold | [`workflows/create.md`](workflows/create.md) |
188
+ | `/enhance` | Dependency-safe feature addition & impact analysis | [`workflows/enhance.md`](workflows/enhance.md) |
189
+ | `/debug` | 4-phase systematic root cause investigation | [`workflows/debug.md`](workflows/debug.md) |
190
+ | `/plan` | Strategic 4-phase implementation planning | [`workflows/plan.md`](workflows/plan.md) |
191
+ | `/deploy` | Pre-flight safety checks & production release gates | [`workflows/deploy.md`](workflows/deploy.md) |
192
+ | `/test` | Behavioral test generation & execution | [`workflows/test.md`](workflows/test.md) |
193
+ | `/preview` | Local dev server lifecycle management | [`workflows/preview.md`](workflows/preview.md) |
194
+ | `/status` | Project health dashboard & active execution ledger | [`workflows/status.md`](workflows/status.md) |
195
+ | `/session` | Multi-session state tracking & restoration | [`workflows/session.md`](workflows/session.md) |
196
+ | `/orchestrate` | Multi-agent fan-out/fan-in coordination | [`workflows/orchestrate.md`](workflows/orchestrate.md) |
197
+ | `/swarm` | Multi-agent swarm supervisor & JSON contract dispatcher | [`workflows/swarm.md`](workflows/swarm.md) |
198
+ | `/strengthen-skills` | Skill hardening & Tribunal guardrail injector | [`workflows/strengthen-skills.md`](workflows/strengthen-skills.md) |
199
+ | `/ui-ux-pro-max` | Picasso design specification & 16-step UI engine | [`workflows/ui-ux-pro-max.md`](workflows/ui-ux-pro-max.md) |
200
+ | `/refactor` | Dependency-safe structural code refactoring | [`workflows/refactor.md`](workflows/refactor.md) |
201
+ | `/migrate` | Expand-and-contract database & framework migrations | [`workflows/migrate.md`](workflows/migrate.md) |
202
+ | `/audit` | Full project health assessment & priority script audit | [`workflows/audit.md`](workflows/audit.md) |
203
+ | `/fix` | Automated error resolution & lint diff preview | [`workflows/fix.md`](workflows/fix.md) |
204
+ | `/changelog` | Conventional commit history to changelog compiler | [`workflows/changelog.md`](workflows/changelog.md) |
205
+ | `/review-ai` | LLM integration & prompt injection defense audit | [`workflows/review-ai.md`](workflows/review-ai.md) |
206
+ | `/pipeline` | Token-efficient 3-pass code generation pipeline | [`workflows/pipeline.md`](workflows/pipeline.md) |
207
+ | `/super-prompt` | Zero-token local prompt compiler | [`workflows/super-prompt.md`](workflows/super-prompt.md) |
208
+ | `/marathon` | Multi-session long-running agent harness | [`workflows/marathon.md`](workflows/marathon.md) |
209
+ | `/acf` | Agent Context Format spec distillation | [`workflows/acf.md`](workflows/acf.md) |
210
+ | `/api-tester` | Multi-stage auth-aware API endpoint testing | [`workflows/api-tester.md`](workflows/api-tester.md) |
211
+ | `/performance-benchmarker` | Evidence-based Core Web Vitals measurement | [`workflows/performance-benchmarker.md`](workflows/performance-benchmarker.md) |
220
212
 
221
213
  ---
222
214
 
223
- ## Script Inventory
215
+ ## 8. Complete 32-Script Automation Inventory
224
216
 
225
217
  All scripts live in `.agent/scripts/`:
226
218
 
227
- | Script | Purpose | Usage |
228
- | -------------------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------- |
229
- | `checklist.js` | Priority-ordered project audit | `node .agent/scripts/checklist.js .` |
230
- | `verify_all.js` | Full pre-deploy validation | `node .agent/scripts/verify_all.js` |
231
- | `auto_preview.js` | Local dev server management | `node .agent/scripts/auto_preview.js start` |
232
- | `session_manager.js` | Multi-session state tracking | `node .agent/scripts/session_manager.js status` |
233
- | `lint_runner.js` | Standalone lint runner | `node .agent/scripts/lint_runner.js . --fix` |
234
- | `test_runner.js` | Auto-detecting test runner | `node .agent/scripts/test_runner.js . --coverage` |
235
- | `security_scan.js` | OWASP-aware source code scanner | `node .agent/scripts/security_scan.js .` |
236
- | `dependency_analyzer.js` | Unused/phantom dep checker | `node .agent/scripts/dependency_analyzer.js . --audit` |
237
- | `schema_validator.js` | DB schema validator | `node .agent/scripts/schema_validator.js .` |
238
- | `bundle_analyzer.js` | JS/TS bundle size analyzer | `node .agent/scripts/bundle_analyzer.js . --build` |
239
- | `strengthen_skills.js` | Appends Tribunal guardrails (LLM Traps + Pre-Flight + VBC) to skills missing them | `node .agent/scripts/strengthen_skills.js . --dry-run` |
240
- | `swarm_dispatcher.js` | Validate Orchestrator micro-worker JSON payloads | `node .agent/scripts/swarm_dispatcher.js --file payload.json` |
241
- | `skill_integrator.js` | Map active skills to executable scripts | `node .agent/scripts/skill_integrator.js` |
242
- | `test_swarm_dispatcher.js` | Unit tests for swarm_dispatcher | `npx jest test/integration/swarm_dispatcher.test.js` |
219
+ | Script Name | Primary Function | Command Example |
220
+ | :--- | :--- | :--- |
221
+ | `security_scan.js` | Deep OWASP-aware source code security scanner | `node .agent/scripts/security_scan.js .` |
222
+ | `dependency_analyzer.js` | Unused/phantom dependency audit & npm security audit | `node .agent/scripts/dependency_analyzer.js . --audit` |
223
+ | `lint_runner.js` | Standalone multi-linter runner (ESLint, Prettier, Ruff) | `node .agent/scripts/lint_runner.js . --fix` |
224
+ | `schema_validator.js` | DB schema validator (Prisma, Drizzle, SQL) | `node .agent/scripts/schema_validator.js .` |
225
+ | `test_runner.js` | Auto-detecting test runner (Jest, Vitest, Pytest) | `node .agent/scripts/test_runner.js . --coverage` |
226
+ | `bundle_analyzer.js` | JS/TS production bundle size analyzer | `node .agent/scripts/bundle_analyzer.js . --build` |
227
+ | `verify_all.js` | Comprehensive pre-deploy validation suite | `node .agent/scripts/verify_all.js` |
228
+ | `checklist.js` | Priority audit: Security → Dependencies → Types → Lint | `node .agent/scripts/checklist.js .` |
229
+ | `auto_preview.js` | Local development server lifecycle manager | `node .agent/scripts/auto_preview.js start` |
230
+ | `session_manager.js` | Multi-session state tracking & snapshot restoration | `node .agent/scripts/session_manager.js status` |
231
+ | `swarm_dispatcher.js` | Validates Swarm WorkerRequest/WorkerResult payloads | `node .agent/scripts/swarm_dispatcher.js --file payload.json` |
232
+ | `skill_integrator.js` | Maps active skills to executable scripts | `node .agent/scripts/skill_integrator.js` |
233
+ | `pipeline_engine.js` | 3-pass hybrid pipeline orchestrator (Plan/Build/Validate) | `node .agent/scripts/pipeline_engine.js --task "..." --dry-run` |
234
+ | `prompt_compiler.js` | Zero-token local prompt compiler to dense YAML | `node .agent/scripts/prompt_compiler.js "build login"` |
235
+ | `strengthen_skills.js` | Hardens skills with Pre-Flight & VBC guardrails | `node .agent/scripts/strengthen_skills.js . --dry-run` |
236
+ | `test_swarm_dispatcher.js` | Integration test suite for swarm dispatcher | `npx jest test/integration/swarm_dispatcher.test.js` |
237
+ | `auto_fixer.js` | Automated formatting & import cleanup engine | `node .agent/scripts/auto_fixer.js .` |
238
+ | `context_snapshot.js` | Compacts large codebase graphs for 27x context reduction | `node .agent/scripts/context_snapshot.js .` |
239
+ | `skill_evolution.js` | Extracts project idioms & auto-evolves project-idioms skill | `node .agent/scripts/skill_evolution.js .` |
240
+
241
+ *(Note: Additional internal helper scripts in `.agent/scripts/` handle AST parsing, diff formatting, and IPC message routing).*
243
242
 
244
243
  ---
245
244
 
246
- ## Error Recovery
245
+ ## 9. Kit v3.0.0 Specification Standards
247
246
 
248
- ```
249
- Attempt 1 → Run with original parameters
250
- Attempt 2 → Run with feedback from failure
251
- Attempt 3 Run with maximum constraints
252
- Attempt 4 → HALT escalate to human with full failure history
253
- ```
247
+ ### Option B Agent Standard (51 Agents)
248
+ * **YAML Frontmatter**: Version `3.0.0`, `last-updated: 2026-07-29`, clean `skills` array, tool declarations, model targets.
249
+ * **Mandatory Pre-Flight Context Inspection**: Grounded list of workspace files inspected prior to action.
250
+ * **Framework Decision Trees & Blueprints**: Version-pinned decision matrices (React 19, Next 15, Prisma 6, Node 20+, Python 3.12+, Expo Router v4).
251
+ * **Hand-Off & Coordination Protocols**: Explicit `@agent` routing contracts.
254
252
 
255
- Script failures follow cascade rules:
253
+ ### Option A+C Hybrid Skill Standard (171 Skills)
254
+ * **YAML Frontmatter**: Version `3.0.0`, `last-updated: 2026-07-30`, array-style `skills` co-requirements, `tools` declaration, `scripts-binding` array pointing to `.agent/scripts/`.
255
+ * **Mandatory Pre-Flight Context Inspection**: Specific numbered section targets and rules that agents MUST check before executing the skill.
256
+ * **Tribunal Integration & VBC Protocol**: Anti-hallucination guardrails and Verification-Before-Completion evidence validation.
256
257
 
257
- - Security failure **HALT** all steps
258
- - Lint failure continue, flag as deploy-blocker
259
- - Test failure continue analysis, mark incomplete
260
- - Non-critical failure → log and continue
258
+ ### Workflow Standard v3.0.0 (37 Workflows)
259
+ * **YAML Frontmatter**: Version `3.0.0`, `last-updated: 2026-07-30`, array-style `required-skills`, `tools` declaration, `scripts-binding` array.
260
+ * **Mandatory Pre-Flight Context Inspection**: Workspace inspection checks and execution HALT conditions prior to tool invocation.
261
261
 
262
262
  ---
263
263
 
264
- ## Directory Structure
264
+ ## 10. Directory Structure & File Map
265
265
 
266
266
  ```
267
267
  .agent/
268
- ├── ARCHITECTURE.md ← This file
269
- ├── GEMINI.md ← Root behavior config (includes /swarm routing)
270
- ├── agents/ ← 44 specialist + reviewer agents (19 reviewers + 25 domain)
268
+ ├── ARCHITECTURE.md ← This file (Kit v3.0.0 Master Architecture)
269
+ ├── GEMINI.md ← Master operational rules & auto domain router
270
+ ├── agents/ ← 51 Option B v3.0.0 Agents (27 Parallel Reviewers + 24 Domain Specialists)
271
271
  │ ├── supervisor-agent.md ← Swarm triage, dispatch, synthesis
272
272
  │ ├── swarm-worker-contracts.md ← WorkerRequest/WorkerResult schemas
273
273
  │ └── swarm-worker-registry.md ← Task type → agent routing map
274
- ├── rules/GEMINI.md ← Master rules (P0 priority)
275
- ├── scripts/ 29 JS automation scripts
276
- ├── skills/ 106 modular skill packages (all hardened)
274
+ ├── rules/
275
+ ├── GEMINI.md Master rules (P0 priority)
276
+ │ └── GEMINI_PLANNER.md Condensed planner rules for /pipeline Pass 1
277
+ ├── scripts/ ← 37 automation scripts
278
+ │ └── pipeline_engine.js ← 3-pass hybrid pipeline engine
279
+ ├── skills/ ← 171 Option A+C Hybrid v3.0.0 Skills
277
280
  ├── patterns/ ← 5 ADK skill base patterns
278
- ├── history/ ← Case Law + Skill Evolution data (user-generated, preserved on update)
279
- └── workflows/ ← 34 slash command definitions
280
- └── swarm.md ← /swarm orchestration procedure
281
+ ├── history/ ← Case Law + Skill Evolution data
282
+ └── workflows/ ← 37 Workflow Standard v3.0.0 Slash Commands
283
+ ├── swarm.md ← /swarm orchestration procedure
284
+ └── pipeline.md ← /pipeline hybrid generation procedure
281
285
  ```