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
@@ -0,0 +1,78 @@
1
+ {
2
+ "ARCHITECTURE.md": "260ba64b8bae04d32fdefead90ba0c9c32d667ae93e4179b01fafba79e999977",
3
+ "mcp_config.json": "f6a66c11c396e809c30292cc46c232f2bea01fa2b71c43770df7980f3c5da07d",
4
+ "routing_index.json": "7ed02e81a341ab8f7e213a167c80c088bdbe74564edab038f8e396988b3c0459",
5
+ ".shared/ui-ux-pro-max/README.md": "6eef9eb39dcca03d3d5e9ff8269a0fb95f66e7632adc65e5a4d87c7702f8700e",
6
+ "agents/accessibility-reviewer.md": "19a5955c0e2040b5e6bcc182c0a6555b670b8a19506bf2a1fc42d076ec148d5d",
7
+ "agents/ai-code-reviewer.md": "d191c961a5d8007fc23b9a796b8e7c861ddc46c9a6ea9bfda5247d847c860de0",
8
+ "agents/anti-pattern-reviewer.md": "609bdf7a90bdce0af5ca3bc603b9fc8f471bb45b8dd73a2d665ecde693c933dd",
9
+ "agents/api-architect.md": "e835403bf257cf5feb46e66a88d9224ecdada0950f128f06d5360116545689ba",
10
+ "agents/backend-specialist.md": "5800f0f31fe85e7c91306566e5272b355766ab509f5af9b35f1585cd5302eb8a",
11
+ "agents/cloud-engineer.md": "105d3c4c80994691515264eb88ca6ea17badb20c1a2b94248e7b4bcd83396b4a",
12
+ "agents/code-archaeologist.md": "38fd341176a7bd65e43e5431240ec04327fcb78ba97baba8d67fd6cf160e0573",
13
+ "agents/complexity-reviewer.md": "56f7b196f5e090ccf5a91fa2bda39cd6e321fc4d394335b15098e468d92b1c18",
14
+ "agents/database-architect.md": "b83084749dfdd1202211f0921794a1a0d69f15e4fc57b49c8e06ee522eea4558",
15
+ "agents/db-latency-auditor.md": "ad7c234762ece94658896b937746950a01970745dbfe02c96e407910faaf4016",
16
+ "agents/debugger.md": "53efc71ceb04a38f9679c9964f493feba53054730014ebce7a6b3fd294d156bf",
17
+ "agents/dependency-reviewer.md": "ae02377df25412256aade7f717bee11db7213932d7a263dc8e980c1bb3c55c1c",
18
+ "agents/devops-engineer.md": "26aa391279d87e489224d4d1902f7df7c7bf25ed017eecd69d416636a9163114",
19
+ "agents/documentation-writer.md": "6ede8695ac7a305e4fd32d283cab390b41bfcb6ec1f19771af8670d49639f413",
20
+ "agents/explorer-agent.md": "d9864e0f8e2952efb4917e6cdb209e4ac31bbf4d4e4b445a0a75ed323baa98af",
21
+ "agents/frontend-reviewer.md": "8c9f29ecea5d3df2282d449c4305c6856cf3fe9c9687be84058e9eaf2b3b2b4b",
22
+ "agents/frontend-specialist.md": "018c3cb62f28191fd08fd50ba1b80a2e5aa50c93b3b5aff51873a4e2730655cf",
23
+ "agents/game-developer.md": "7d74fdb55c9a83a63ff1fa702891c95db6e5cb98defdd77f275699a012d13182",
24
+ "agents/interaction-reviewer.md": "2ab393869082a28d5c8d8aa462662dbab9f7be494f78b6e3af5e9cbc1b38b14a",
25
+ "agents/logic-reviewer.md": "3c62bf24ced30eda67f89f8db445decc33b6779927d7ff6e5ee203768bda0c95",
26
+ "agents/minimalist-reviewer.md": "b445ed39fb1e9d34496b18c30053143f3d07ef537b1f05fcff5a774ef4f0383d",
27
+ "agents/mobile-developer.md": "a414b6e030c28cab98439ad7d55ee627ab5895ab88aa46ab84d65cb0a8f173ad",
28
+ "agents/mobile-reviewer.md": "2e57830b419029d15f45ea36d07d1336388ced8d4bb474cbcb3727747ece3fad",
29
+ "agents/orchestrator.md": "0709bc2761ba4a72145c4745b441ab0574f8d586e3ba9c44005146dda4d4582a",
30
+ "agents/penetration-tester.md": "c021ae363bc152fea571671d76a5e91d6d0364ab5461eabbce79307262c237ba",
31
+ "agents/performance-optimizer.md": "950892fe759be062e99b24188eff07f9a0880b59fe0f0e9a140a01d8a9d979e1",
32
+ "agents/performance-reviewer.md": "eddb122a486409ab1b8819cbde14ac6cc37d3157726cbddaef8b5e576fa59018",
33
+ "agents/precedence-reviewer.md": "821d755c980c089640027fa98a06e4b72d9ad5870450c857ef899772da575417",
34
+ "agents/product-manager.md": "202850175e29bc7b4cef98735b2590d38005208c997a1ea6d77b8f42e6529aff",
35
+ "agents/product-owner.md": "ebdb9ec76cc375a4c372aeb2606c038e2a200bc7fbeb179803f49bd8382fe733",
36
+ "agents/product-reviewer.md": "2899b10b538121a82c4aad0b56c2ce0f273dcdc859489911372916090853adc2",
37
+ "agents/project-planner.md": "663128b26287931c270659083e4b23bb54af5ce5629a6871fee190a1d785cb36",
38
+ "agents/qa-automation-engineer.md": "4112f9d47e3816387ad4666054d4ed166fa465131f38482c468b16ebd57e3ff1",
39
+ "agents/resilience-reviewer.md": "fd7b0245a149a20347a20c2665b4e9363b2590b964c52667be5a034c69fc05a7",
40
+ "agents/schema-reviewer.md": "8e23c94c9ec96ee995ba54c5af87c6c4bcf455309c7a59188b4b6e115fa64dee",
41
+ "agents/security-auditor.md": "5a23581c041a8be551166c44d9d632d7809c942f818d3f2e86dd1656d11cb73c",
42
+ "agents/seo-specialist.md": "304318b15e7243c50765c9329b1807927b417dab00809b6e4b8b60ad41818482",
43
+ "agents/sql-reviewer.md": "bac1fb217ac1564005b24ccb6d64ff97f8309a43e6e181d4e397e53a0a2ceb4b",
44
+ "agents/supervisor-agent.md": "1e1acf3af5ef0089f2b6f85257fa6e5856d24f1554c31b9e11df16545abb70fc",
45
+ "agents/swarm-worker-contracts.md": "ccd0d905cd47634b5084a0368bde4f8cf2b9191fb0118ef105c3a93a0da6314d",
46
+ "agents/swarm-worker-registry.md": "0bacf1872dfba3a020880c42481c3d1c91546951d8087b7513c98b4ca9dab4e3",
47
+ "agents/system-architect.md": "8dfa980f65ddec9aaf0cd6e91c0be6de442fc8bd487327dbc8401b7d9beae4b3",
48
+ "agents/test-coverage-reviewer.md": "9b0f45fabc8770bb1466cee496921965bad6352e98ff94d5f96e9dbb88afc3d2",
49
+ "agents/test-engineer.md": "95ccf1f2dfb1169914f60d4a58caaaac30cd0c323769b990cfeee44b36f9a6c0",
50
+ "agents/throughput-optimizer.md": "61912f95fd330d0bdb7568bbdf8f56bcf9a23436adef1614eac01ee747117649",
51
+ "agents/type-safety-reviewer.md": "fa53aa125a876bbf79ad8e27530622087b5221832162e9753808250f515aee3e",
52
+ "agents/ui-ux-auditor.md": "eca159306ec3517d263268bd14805bf861c0b2a43538eb887ebf553bc0fe6b4b",
53
+ "agents/ui-visual-auditor.md": "808738bb9beaddbb1a318b5af9375907c694aad79d09ff308fd0cf4ef560f701",
54
+ "agents/ux-reviewer.md": "f7ccfdee74b7167130732e9e4b60f4bc76384e8cbcd346f67d4690a4310cad7a",
55
+ "agents/visual-reviewer.md": "fb1e14e81bdab69ce48629335718b0bceed64be6551ef3217033f233ae523346",
56
+ "agents/vitals-reviewer.md": "1a0c5d212c4260a96353771469f6f23b88d412c1468a6f64708d50ce4a62210a",
57
+ "patterns/generator.md": "009e73216e18aac251390f5d393d8c337f7714f0e5792ee03928f6e5f71c52f4",
58
+ "patterns/inversion.md": "50c23e1e3cd703a6bc9f4f70452dc9df2515d31b5e269d9a2cad8b158a382642",
59
+ "patterns/pipeline.md": "ae7a1cf81b83606887479623e69073bfb841ccf16ab3aff3248942a621cf3bbe",
60
+ "patterns/reviewer.md": "9aefbe2e1d70384c6acd39cf7e7ad7a582237096933069945d863178c5765611",
61
+ "patterns/tool-wrapper.md": "46e9b6b04f911415f0defdd44345570e818dfe6e3c4aafff1028582936f3fb8f",
62
+ "rules/GEMINI.md": "c77c36e6d8011895731deb645e524bdb0b15f1266c0b10f3fcd276824ceda02f",
63
+ "rules/GEMINI_PLANNER.md": "eb189fa733d63e0e87b61be94c35d940e541076161ac134546649d8d4404bced",
64
+ "workflows/tribunal-ui.md": "3ff8ad1d814f08fae8be453be5f4ec7bcdd7cdea36a8a51785018dafde94a8f3",
65
+ "workflows/ui-ux-pro-max.md": "04063384a85f12682ec2d99804dc4a1d90f51c74c4430723a212c27942495dfb",
66
+ "skills/context-engineering-pro/SKILL.md": "a888b0bb671f6a62e81cc23846d80e9a6591bb7968d5d59339bfc76c8424791a",
67
+ "skills/agentic-workflows-2026/SKILL.md": "b96c46d0915e6113e20a5498bbb8d8d79949da28cbdd4b8749a83ac909a5731b",
68
+ "skills/vector-search-pgvector/SKILL.md": "18a3495ea81b52c4c054945ae26e14bfbf59d8a9f893a3cdd6201da5b317a792",
69
+ "skills/duckdb-analytical-sql/SKILL.md": "0d282bf667f3bcaf88d0f71bb7f95c7f6a1e97131f035b88f0a9d28c2e2732ab",
70
+ "skills/expo-router-v4/SKILL.md": "8a0c8ecce143e7686661933af4bf88264ebd7c6074c0b6384711585515940125",
71
+ "skills/edge-ai-mobile/SKILL.md": "f6c75111597175e943291523226ec916ea8e4f21555780a32f60427e04bcc8ed",
72
+ "skills/platform-engineering-opentofu/SKILL.md": "a888b0bb671f6a62e81cc23846d80e9a6591bb7968d5d59339bfc76c8424791a",
73
+ "skills/opentelemetry-observability/SKILL.md": "60024b62cbe8165d0f9c0520675a7c2726ef1d54e81e1be6f65e182e96d9545a",
74
+ "skills/zero-trust-passkeys/SKILL.md": "ba8eaeb9b7957a9b6516532304e5fcd54bce2cee1b351ccf26a614aea7e778d0",
75
+ "skills/ai-app-hardening/SKILL.md": "03cfe2ac052856bd9483f3dc49d1fb848c8bbe0333d778a0f288bbdefd7f698e",
76
+ "skills/playwright-ai-e2e/SKILL.md": "778de79a3ec24a9bd6532d7d2bd5365b433208036d3d45e8783a7a72ee40c149",
77
+ "skills/property-based-testing/SKILL.md": "ed7dfa9119a955282465bc6e118bcd6b2994a90398e994d3547eed91309d3d15"
78
+ }
@@ -1,281 +1,60 @@
1
- # 🏛️ Tribunal Anti-Hallucination Kit — Architecture
1
+ # 🏛️ Tribunal Anti-Hallucination Kit v6.0.1 — 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)
37
+ ## 2. Option A + Option C Hybrid Architecture (v3.0.0 Standard)
38
38
 
39
- Type any of these in your AI IDE chat:
39
+ ### Subsystem A: 2-Tier Lazy Skill Routing Engine
40
+ - **Lightweight Index (`skill_topic_map.json`):** 185 skills indexed across 9 domain routes and file extensions (~500 tokens).
41
+ - **Startup Overhead:** ~2,500 – 3,500 startup tokens vs 85,000 tokens previously (95% token reduction).
42
+ - **Zero Exclusions:** All 185 skills remain indexed on disk; target skills are fetched dynamically on-demand via `view_file`.
40
43
 
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` |
44
+ ### Subsystem C: Stage-Partitioned Tribunal Pipeline
45
+ - **51 Specialist Agents** (21 Parallel Reviewers + 30 Domain Specialists).
46
+ - **3 Execution Waves:** Replaces monolithic fan-out with 3 partitioned passes (21 reviewers total):
47
+ - **Wave 1 (Core Integrity):** `precedence-reviewer`, `logic-reviewer`, `schema-reviewer`, `resilience-reviewer`
48
+ - **Wave 2 (Security & Types):** `security-auditor`, `dependency-reviewer`, `type-safety-reviewer`, `complexity-reviewer`, `sql-reviewer`
49
+ - **Wave 3 (Domain & Performance):** `frontend-reviewer`, `performance-reviewer`, `mobile-reviewer`, `ai-code-reviewer`, `test-coverage-reviewer`, `accessibility-reviewer`, `ui-ux-auditor`, `review-animations`, `vitals-reviewer`, `db-latency-auditor`, `throughput-optimizer`
50
+ - **Attention Preservation:** Reviewers execute in scoped 4-8 reviewer evaluation pairs, eliminating hallucination risks and attention dilution.
71
51
 
72
52
  ---
73
53
 
74
- ## The 19 Tribunal Reviewers
54
+ ## 3. Skill-Script Binding Standard
75
55
 
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` |
97
-
98
- ---
99
-
100
- ## Swarm / Supervisor Architecture
101
-
102
- The Swarm system decomposes complex multi-domain goals into independent sub-tasks dispatched to specialist Workers.
103
-
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
122
- ```
123
-
124
- **Key files:**
125
-
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`) |
133
-
134
- **Constraints:**
135
-
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
141
-
142
- ---
143
-
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 |
177
-
178
- ---
179
-
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
- ```
208
-
209
- ---
210
-
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 |
220
-
221
- ---
222
-
223
- ## Script Inventory
224
-
225
- All scripts live in `.agent/scripts/`:
226
-
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` |
243
-
244
- ---
245
-
246
- ## Error Recovery
247
-
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
- ```
254
-
255
- Script failures follow cascade rules:
256
-
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
261
-
262
- ---
263
-
264
- ## Directory Structure
265
-
266
- ```
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)
271
- │ ├── supervisor-agent.md ← Swarm triage, dispatch, synthesis
272
- │ ├── swarm-worker-contracts.md ← WorkerRequest/WorkerResult schemas
273
- │ └── swarm-worker-registry.md ← Task type → agent routing map
274
- ├── rules/GEMINI.md ← Master rules (P0 priority)
275
- ├── scripts/ ← 31 automation scripts
276
- ├── skills/ ← 168 valid skill packages (all hardened)
277
- ├── 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
- ```
56
+ Every skill in `.agent/skills/` conforms to the Option A+C Hybrid v3.0.0 frontmatter standard:
57
+ - `version`: `3.0.0`
58
+ - `script`: Primary executable script path in `.agent/scripts/`
59
+ - `scripts-binding`: Array of executable CLI tools (`security_scan.js`, `test_runner.js`, `schema_validator.js`, etc.)
60
+ - `skills`: Array of co-required brother skills for automatic 2-tier lazy resolution