tribunal-kit 4.2.0 → 4.3.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 (186) hide show
  1. package/.agent/ARCHITECTURE.md +21 -14
  2. package/.agent/agents/swarm-worker-contracts.md +5 -5
  3. package/.agent/agents/ui-ux-auditor.md +292 -0
  4. package/.agent/rules/GEMINI.md +8 -8
  5. package/.agent/scripts/__pycache__/_colors.cpython-311.pyc +0 -0
  6. package/.agent/scripts/__pycache__/_utils.cpython-311.pyc +0 -0
  7. package/.agent/scripts/__pycache__/case_law_manager.cpython-311.pyc +0 -0
  8. package/.agent/scripts/_colors.js +18 -0
  9. package/.agent/scripts/_utils.js +42 -0
  10. package/.agent/scripts/auto_preview.js +197 -0
  11. package/.agent/scripts/bundle_analyzer.js +290 -0
  12. package/.agent/scripts/case_law_manager.js +684 -0
  13. package/.agent/scripts/checklist.js +266 -0
  14. package/.agent/scripts/colors.js +17 -0
  15. package/.agent/scripts/compress_skills.js +141 -0
  16. package/.agent/scripts/consolidate_skills.js +149 -0
  17. package/.agent/scripts/context_broker.js +609 -0
  18. package/.agent/scripts/deep_compress.js +150 -0
  19. package/.agent/scripts/dependency_analyzer.js +272 -0
  20. package/.agent/scripts/graph_builder.js +199 -0
  21. package/.agent/scripts/graph_zoom.js +154 -0
  22. package/.agent/scripts/inner_loop_validator.js +465 -0
  23. package/.agent/scripts/lint_runner.js +187 -0
  24. package/.agent/scripts/minify_context.js +100 -0
  25. package/.agent/scripts/patch_skills_meta.js +156 -0
  26. package/.agent/scripts/patch_skills_output.js +244 -0
  27. package/.agent/scripts/schema_validator.js +297 -0
  28. package/.agent/scripts/security_scan.js +303 -0
  29. package/.agent/scripts/session_manager.js +276 -0
  30. package/.agent/scripts/skill_evolution.js +644 -0
  31. package/.agent/scripts/skill_integrator.js +313 -0
  32. package/.agent/scripts/strengthen_skills.js +193 -0
  33. package/.agent/scripts/strip_tribunal.js +47 -0
  34. package/.agent/scripts/swarm_dispatcher.js +360 -0
  35. package/.agent/scripts/test_runner.js +193 -0
  36. package/.agent/scripts/utils.js +32 -0
  37. package/.agent/scripts/verify_all.js +256 -0
  38. package/.agent/skills/agent-organizer/SKILL.md +12 -4
  39. package/.agent/skills/agentic-patterns/SKILL.md +12 -4
  40. package/.agent/skills/ai-prompt-injection-defense/SKILL.md +12 -4
  41. package/.agent/skills/api-patterns/SKILL.md +209 -201
  42. package/.agent/skills/api-security-auditor/SKILL.md +12 -4
  43. package/.agent/skills/app-builder/SKILL.md +12 -4
  44. package/.agent/skills/app-builder/templates/SKILL.md +76 -68
  45. package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +1 -1
  46. package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +1 -1
  47. package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +1 -1
  48. package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +1 -1
  49. package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +1 -1
  50. package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +1 -1
  51. package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +1 -1
  52. package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +1 -1
  53. package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +1 -1
  54. package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +1 -1
  55. package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +1 -1
  56. package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +1 -1
  57. package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +1 -1
  58. package/.agent/skills/appflow-wireframe/SKILL.md +12 -4
  59. package/.agent/skills/architecture/SKILL.md +12 -4
  60. package/.agent/skills/authentication-best-practices/SKILL.md +12 -4
  61. package/.agent/skills/bash-linux/SKILL.md +12 -4
  62. package/.agent/skills/behavioral-modes/SKILL.md +12 -4
  63. package/.agent/skills/brainstorming/SKILL.md +12 -4
  64. package/.agent/skills/building-native-ui/SKILL.md +12 -4
  65. package/.agent/skills/clean-code/SKILL.md +12 -4
  66. package/.agent/skills/code-review-checklist/SKILL.md +12 -4
  67. package/.agent/skills/config-validator/SKILL.md +12 -4
  68. package/.agent/skills/csharp-developer/SKILL.md +12 -4
  69. package/.agent/skills/data-validation-schemas/SKILL.md +290 -282
  70. package/.agent/skills/database-design/SKILL.md +202 -194
  71. package/.agent/skills/deployment-procedures/SKILL.md +12 -4
  72. package/.agent/skills/devops-engineer/SKILL.md +12 -4
  73. package/.agent/skills/devops-incident-responder/SKILL.md +12 -4
  74. package/.agent/skills/doc.md +1 -1
  75. package/.agent/skills/documentation-templates/SKILL.md +12 -4
  76. package/.agent/skills/edge-computing/SKILL.md +12 -4
  77. package/.agent/skills/error-resilience/SKILL.md +390 -382
  78. package/.agent/skills/extract-design-system/SKILL.md +12 -4
  79. package/.agent/skills/framer-motion-expert/SKILL.md +206 -199
  80. package/.agent/skills/frontend-design/SKILL.md +163 -155
  81. package/.agent/skills/game-design-expert/SKILL.md +12 -4
  82. package/.agent/skills/game-engineering-expert/SKILL.md +12 -4
  83. package/.agent/skills/geo-fundamentals/SKILL.md +12 -4
  84. package/.agent/skills/github-operations/SKILL.md +12 -4
  85. package/.agent/skills/gsap-core/SKILL.md +54 -48
  86. package/.agent/skills/gsap-frameworks/SKILL.md +54 -48
  87. package/.agent/skills/gsap-performance/SKILL.md +54 -48
  88. package/.agent/skills/gsap-plugins/SKILL.md +54 -48
  89. package/.agent/skills/gsap-react/SKILL.md +54 -48
  90. package/.agent/skills/gsap-scrolltrigger/SKILL.md +54 -48
  91. package/.agent/skills/gsap-timeline/SKILL.md +54 -48
  92. package/.agent/skills/gsap-utils/SKILL.md +54 -48
  93. package/.agent/skills/i18n-localization/SKILL.md +12 -4
  94. package/.agent/skills/intelligent-routing/SKILL.md +41 -33
  95. package/.agent/skills/knowledge-graph/SKILL.md +36 -0
  96. package/.agent/skills/lint-and-validate/SKILL.md +12 -4
  97. package/.agent/skills/llm-engineering/SKILL.md +12 -4
  98. package/.agent/skills/local-first/SKILL.md +12 -4
  99. package/.agent/skills/mcp-builder/SKILL.md +12 -4
  100. package/.agent/skills/mobile-design/SKILL.md +225 -217
  101. package/.agent/skills/monorepo-management/SKILL.md +296 -288
  102. package/.agent/skills/motion-engineering/SKILL.md +195 -187
  103. package/.agent/skills/nextjs-react-expert/SKILL.md +196 -188
  104. package/.agent/skills/nodejs-best-practices/SKILL.md +12 -4
  105. package/.agent/skills/observability/SKILL.md +12 -4
  106. package/.agent/skills/parallel-agents/SKILL.md +12 -4
  107. package/.agent/skills/performance-profiling/SKILL.md +12 -4
  108. package/.agent/skills/plan-writing/SKILL.md +12 -4
  109. package/.agent/skills/platform-engineer/SKILL.md +12 -4
  110. package/.agent/skills/playwright-best-practices/SKILL.md +12 -4
  111. package/.agent/skills/powershell-windows/SKILL.md +12 -4
  112. package/.agent/skills/project-idioms/SKILL.md +12 -4
  113. package/.agent/skills/python-patterns/SKILL.md +12 -4
  114. package/.agent/skills/python-pro/SKILL.md +285 -277
  115. package/.agent/skills/react-specialist/SKILL.md +239 -231
  116. package/.agent/skills/readme-builder/SKILL.md +12 -4
  117. package/.agent/skills/realtime-patterns/SKILL.md +12 -4
  118. package/.agent/skills/red-team-tactics/SKILL.md +12 -4
  119. package/.agent/skills/rust-pro/SKILL.md +12 -4
  120. package/.agent/skills/seo-fundamentals/SKILL.md +12 -4
  121. package/.agent/skills/server-management/SKILL.md +12 -4
  122. package/.agent/skills/shadcn-ui-expert/SKILL.md +12 -4
  123. package/.agent/skills/skill-creator/SKILL.md +12 -4
  124. package/.agent/skills/sql-pro/SKILL.md +12 -4
  125. package/.agent/skills/supabase-postgres-best-practices/SKILL.md +12 -4
  126. package/.agent/skills/swiftui-expert/SKILL.md +12 -4
  127. package/.agent/skills/systematic-debugging/SKILL.md +12 -4
  128. package/.agent/skills/tailwind-patterns/SKILL.md +12 -4
  129. package/.agent/skills/tdd-workflow/SKILL.md +12 -4
  130. package/.agent/skills/test-result-analyzer/SKILL.md +12 -4
  131. package/.agent/skills/testing-patterns/SKILL.md +12 -4
  132. package/.agent/skills/trend-researcher/SKILL.md +12 -4
  133. package/.agent/skills/typescript-advanced/SKILL.md +297 -289
  134. package/.agent/skills/ui-ux-pro-max/SKILL.md +12 -4
  135. package/.agent/skills/ui-ux-researcher/SKILL.md +12 -4
  136. package/.agent/skills/vue-expert/SKILL.md +237 -229
  137. package/.agent/skills/vulnerability-scanner/SKILL.md +12 -4
  138. package/.agent/skills/web-accessibility-auditor/SKILL.md +12 -4
  139. package/.agent/skills/web-design-guidelines/SKILL.md +12 -4
  140. package/.agent/skills/webapp-testing/SKILL.md +12 -4
  141. package/.agent/skills/whimsy-injector/SKILL.md +12 -4
  142. package/.agent/skills/workflow-optimizer/SKILL.md +12 -4
  143. package/.agent/workflows/audit.md +6 -6
  144. package/.agent/workflows/deploy.md +1 -1
  145. package/.agent/workflows/generate.md +23 -6
  146. package/.agent/workflows/session.md +5 -5
  147. package/.agent/workflows/swarm.md +2 -2
  148. package/README.md +242 -186
  149. package/bin/tribunal-kit.js +297 -57
  150. package/package.json +81 -77
  151. package/scripts/changelog.js +167 -0
  152. package/scripts/sync-version.js +81 -0
  153. package/scripts/validate-payload.js +73 -0
  154. package/.agent/scripts/__pycache__/auto_preview.cpython-311.pyc +0 -0
  155. package/.agent/scripts/__pycache__/bundle_analyzer.cpython-311.pyc +0 -0
  156. package/.agent/scripts/__pycache__/checklist.cpython-311.pyc +0 -0
  157. package/.agent/scripts/__pycache__/dependency_analyzer.cpython-311.pyc +0 -0
  158. package/.agent/scripts/__pycache__/security_scan.cpython-311.pyc +0 -0
  159. package/.agent/scripts/__pycache__/session_manager.cpython-311.pyc +0 -0
  160. package/.agent/scripts/__pycache__/skill_integrator.cpython-311.pyc +0 -0
  161. package/.agent/scripts/__pycache__/swarm_dispatcher.cpython-311.pyc +0 -0
  162. package/.agent/scripts/__pycache__/test_runner.cpython-311.pyc +0 -0
  163. package/.agent/scripts/__pycache__/verify_all.cpython-311.pyc +0 -0
  164. package/.agent/scripts/auto_preview.py +0 -180
  165. package/.agent/scripts/bundle_analyzer.py +0 -259
  166. package/.agent/scripts/case_law_manager.py +0 -755
  167. package/.agent/scripts/checklist.py +0 -209
  168. package/.agent/scripts/compress_skills.py +0 -167
  169. package/.agent/scripts/consolidate_skills.py +0 -173
  170. package/.agent/scripts/deep_compress.py +0 -202
  171. package/.agent/scripts/dependency_analyzer.py +0 -247
  172. package/.agent/scripts/lint_runner.py +0 -188
  173. package/.agent/scripts/minify_context.py +0 -80
  174. package/.agent/scripts/patch_skills_meta.py +0 -177
  175. package/.agent/scripts/patch_skills_output.py +0 -285
  176. package/.agent/scripts/schema_validator.py +0 -279
  177. package/.agent/scripts/security_scan.py +0 -224
  178. package/.agent/scripts/session_manager.py +0 -261
  179. package/.agent/scripts/skill_evolution.py +0 -563
  180. package/.agent/scripts/skill_integrator.py +0 -234
  181. package/.agent/scripts/strengthen_skills.py +0 -220
  182. package/.agent/scripts/strip_tribunal.py +0 -41
  183. package/.agent/scripts/swarm_dispatcher.py +0 -350
  184. package/.agent/scripts/test_runner.py +0 -192
  185. package/.agent/scripts/test_swarm_dispatcher.py +0 -163
  186. package/.agent/scripts/verify_all.py +0 -195
package/README.md CHANGED
@@ -1,186 +1,242 @@
1
- <div align="center">
2
- <picture>
3
- <img src="./docs/tribunalkit_no_bg.png" alt="TribunalKit — Code Without Hallucinations" width="480">
4
- </picture>
5
-
6
- <br><br>
7
-
8
- [![NPM](https://img.shields.io/npm/v/tribunal-kit?style=for-the-badge&logo=npm&logoColor=white)](https://www.npmjs.com/package/tribunal-kit)
9
- [![License](https://img.shields.io/badge/License-MIT-8b5cf6?style=for-the-badge)](LICENSE)
10
- [![Version](https://img.shields.io/badge/Version-4.0.0_Supreme_Court-black?style=for-the-badge)](CHANGELOG.md)
11
- </div>
12
-
13
-
14
- <br><br>
15
-
16
- > 🚨 **AI GENERATES CODE. TRIBUNAL ENSURES IT WORKS.**
17
- > A plug-in `.agent/` intelligence payload that upgrades your IDE with **32 specialist agents**, **25 slash commands**, **8 parallel Tribunal reviewers**, and a core **Swarm/Supervisor** engine.
18
-
19
- ---
20
-
21
- <br>
22
-
23
- ## ▓▒░ INITIATION SEQUENCE
24
-
25
- Drop Tribunal into any project. Global or local.
26
-
27
- ```bash
28
- # Pull the intelligence payload into your project
29
- npx tribunal-kit init
30
- ```
31
- *(Installs the `.agent/` architecture directly. No bloat. Pure capability.)*
32
-
33
- > ⚠️ **CRITICAL PATH WARNING:** Do **not** let your IDE ignore the agents. If using Cursor or Windsurf, keep `.agent/` **out** of `.gitignore` so the IDE can index the commands. Use `.git/info/exclude` instead.
34
-
35
- <br>
36
-
37
- ## ▓▒░ THE PIPELINE // HOW IT WORKS
38
-
39
- **Code generation is solved. Code correctness is the frontier.** We enforce a strict **Evidence-Based Closeout**.
40
-
41
- ```diff
42
- - AI Generates -> Commits to Disk -> You Find Bugs Later
43
- + AI Generates -> Parallel Tribunal Review -> Human Gate -> Commits to Disk
44
- ```
45
-
46
- ### 🎯 Auto-Routing Intelligence
47
- No manual tagging required. The system self-organizes.
48
-
49
- <p>
50
- <kbd>User</kbd> "Add JWT authentication" <br>
51
- <kbd>System</kbd> <code>🤖 Applying @security-auditor + @backend-specialist...</code> <br><br>
52
-
53
- <kbd>User</kbd> "Fix the dark mode button" <br>
54
- <kbd>System</kbd> <code>🤖 Applying @ui-ux-pro-max + @frontend-specialist...</code> <br><br>
55
-
56
- <kbd>User</kbd> "/swarm build a API" <br>
57
- <kbd>System</kbd> <code>🤖 supervisor-agent → Dispatching 3 Workers...</code>
58
- </p>
59
-
60
- <br>
61
-
62
- ## ▓▒░ THE SUPREME COURT (v4.0)
63
-
64
- *(New in v4)* The Tribunal Kit now features persistent memory so the AI **never makes the same mistake twice** and automatically learns your team's coding style.
65
-
66
- **1. The Case Law Engine (Never repeat mistakes)**
67
- If an agent makes a mistake, you can record it as a legal precedent. Before writing any future code, the `precedence-reviewer` checks this database locally to forcefully block the AI from repeating that mistake.
68
- - `npx tribunal-kit case add` *(Record an AI hallucination)*
69
- - `npx tribunal-kit case search "query"` *(Search your precedents)*
70
-
71
- **2. Skill Evolution Forge (Auto-learns your style)**
72
- You no longer need to write manual rules. The system reads your Git commits, strips out the noise to save tokens, and automatically extracts your project's unique architectural patterns to teach the AI.
73
- - `npx tribunal-kit learn` *(Run a learning digest on staged files)*
74
- - `npx tribunal-kit hook` *(Automate learning every time you `git push`)*
75
-
76
- <br>
77
-
78
- ## ▓▒░ CAPABILITY MATRIX
79
-
80
- | System Asset | Count | Operational Scope |
81
- | :--- | :---: | :--- |
82
- | 🤖 **Agents** | `33` | Specialist personas (Security, DB Architect, DevOps Responder, QA Engineer) |
83
- | 🧠 **Skills** | `77` | Domain modules (Edge Computing, Red Team Tactics, GSAP, Framer Motion) |
84
- | ⚡ **Workflows** | `30` | Slash command procedures including `/swarm`, `/tribunal-full`, `/ui-ux-pro-max` |
85
- | 🛠️ **Scripts** | `16` | CI/CD, linting, payload dispatching, security scanning, test suite runners |
86
-
87
-
88
- <br>
89
-
90
- ## ▓▒░ COMMAND TERMINAL
91
-
92
- Expand the accordions to view the operational commands at your disposal.
93
-
94
- <details open>
95
- <summary><b>🔥 CORE EXECUTION</b></summary>
96
- <br>
97
-
98
- | Command | Action |
99
- | :--- | :--- |
100
- | <code>/generate</code> | Trigger full Tribunal: Generate → Audit → Approve. |
101
- | <code>/create</code> | Scaffold major features or apps, routed by App Builder. |
102
- | <code>/enhance</code> | Safely extend existing structures without regression. |
103
- | <code>/deploy</code> | Force the 3-gate production release sequence. |
104
-
105
- </details>
106
-
107
- <details>
108
- <summary><b>⚖️ THE TRIBUNAL GAUNTLET (REVIEWERS)</b></summary>
109
- <br>
110
- Unleash parallel reviewers on existing code.
111
-
112
- | Command | Action |
113
- | :--- | :--- |
114
- | <code>/review</code> | Audit code for silent degradation and logic holes. |
115
- | <code>/tribunal-full</code> | Unleash **ALL 11** reviewers simultaneously. Maximum scrutiny. |
116
- | <code>/tribunal-backend</code> | Summons <code>[ Logic + Security + Dependency + Types ]</code> |
117
- | <code>/tribunal-frontend</code> | Summons <code>[ Logic + Security + Frontend + Types ]</code> |
118
- | <code>/tribunal-database</code> | Summons <code>[ Logic + Security + SQL ]</code> |
119
- | <code>/tribunal-mobile</code> | Summons <code>[ Logic + Security + Mobile ]</code> |
120
-
121
- </details>
122
-
123
- <details>
124
- <summary><b>🧠 SWARM & ORCHESTRATION</b></summary>
125
- <br>
126
-
127
- | Command | Action |
128
- | :--- | :--- |
129
- | <code>/swarm</code> | Supervisor breaks goal sends to isolated workers → synthesizes. |
130
- | <code>/orchestrate</code> | Manual multi-agent sync for complex integrations. |
131
- | <code>/plan</code> | Architectural mapping before a single line is written. |
132
- | <code>/ui-ux-pro-max</code>| Triggers peak aesthetic frontend design. |
133
-
134
- </details>
135
-
136
- <details>
137
- <summary><b>⚖️ SUPREME COURT / MEMORY</b></summary>
138
- <br>
139
-
140
- | Command | Action |
141
- | :--- | :--- |
142
- | <code>npx tribunal-kit case add</code> | Record an AI hallucination to ban it forever. |
143
- | <code>npx tribunal-kit case search</code> | Search your local database of banned code. |
144
- | <code>npx tribunal-kit learn</code> | Auto-extract project idioms from your git diffs. |
145
- | <code>npx tribunal-kit hook</code> | Install a git hook to auto-learn the moment you push. |
146
-
147
- </details>
148
-
149
- <details>
150
- <summary><b>🔧 TROUBLESHOOTING & OPS</b></summary>
151
- <br>
152
-
153
- | Command | Action |
154
- | :--- | :--- |
155
- | <code>/debug</code> | Systematic root-cause investigation. |
156
- | <code>/preview</code> | Local development server control. |
157
- | <code>/status</code> | View Tribunal session status. |
158
-
159
- </details>
160
-
161
- <br>
162
-
163
- ## ▓▒░ POST-INSTALL TELEMETRY
164
-
165
- After initialization, utility scripts unlock local ops:
166
-
167
- ```bash
168
- # 01. Pre-commit audit
169
- python .agent/scripts/checklist.py .
170
-
171
- # 02. Pre-deploy full suite verification
172
- python .agent/scripts/verify_all.py
173
-
174
- # 03. Start local development environment
175
- python .agent/scripts/auto_preview.py start
176
- ```
177
-
178
- <br>
179
-
180
- <div align="center">
181
- <br>
182
- <img src="https://img.shields.io/badge/Status-Active_&_Secured-00e5ff?style=for-the-badge" alt="Status" />
183
- <br><br>
184
- <i>"Never guess database column names. Error handling on every async function. Evidence-based closeouts. Welcome to the Tribunal."</i><br>
185
- <sub><b>MIT Licensed</b> Hand-forged for high-performance agentic engineering.</sub>
186
- </div>
1
+ <div align="center">
2
+ <picture>
3
+ <img src="./docs/tribunalkit_no_bg.png" alt="TribunalKit — Code Without Hallucinations" width="480">
4
+ </picture>
5
+
6
+ <br><br>
7
+
8
+ [![NPM](https://img.shields.io/npm/v/tribunal-kit?style=for-the-badge&logo=npm&logoColor=white)](https://www.npmjs.com/package/tribunal-kit)
9
+ [![License](https://img.shields.io/badge/License-MIT-8b5cf6?style=for-the-badge)](LICENSE)
10
+ [![Version](https://img.shields.io/badge/Version-4.3.1_Supreme_Court-black?style=for-the-badge)](CHANGELOG.md)
11
+ </div>
12
+
13
+
14
+ <br><br>
15
+
16
+ > 🚨 **AI GENERATES CODE. TRIBUNAL ENSURES IT WORKS.**
17
+ > A plug-in `.agent/` intelligence payload that upgrades your IDE with **41 specialist agents**, **32 slash commands**, **16 parallel Tribunal reviewers**, and a core **Swarm/Supervisor** engine.
18
+
19
+ ---
20
+
21
+ <br>
22
+
23
+ ## ▓▒░ INITIATION SEQUENCE
24
+
25
+ Drop Tribunal into any project. Global or local.
26
+
27
+ ```bash
28
+ # Pull the intelligence payload into your project
29
+ npx tribunal-kit init
30
+ ```
31
+ *(Installs the `.agent/` architecture directly. No bloat. Pure capability.)*
32
+
33
+ <details>
34
+ <summary><b>📺 Quick Demo — What happens when you run it</b></summary>
35
+ <br>
36
+
37
+ ```
38
+ $ npx tribunal-kit init
39
+
40
+ ████████╗██████╗ ██╗██████╗ ██╗ ██╗███╗ ██╗ █████╗ ██╗
41
+ ╚══██╔══╝██╔══██╗██║██╔══██╗██║ ██║████╗ ██║██╔══██╗██║
42
+ ██║ ██████╔╝██║██████╔╝██║ ██║██╔██╗ ██║███████║██║
43
+ ██║ ██╔══██╗██║██╔══██╗██║ ██║██║╚██╗██║██╔══██║██║
44
+ ██║ ██║ ██║██║██████╔╝╚██████╔╝██║ ╚████║██║ ██║███████╗
45
+ ╚═╝ ╚═╝ ╚═╝╚═╝╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝
46
+
47
+ ╔══════════════════════════════════════════════════════════════╗
48
+ ║ Anti-Hallucination Agent System ║
49
+ ╚══════════════════════════════════════════════════════════════╝
50
+
51
+ Installed .agent/
52
+
53
+ ╔══════════════════════════════════════════════════════════════╗
54
+ ║ 🤖 Agents 41 installed ║
55
+ ║ ⚡ Workflows 32 installed ║
56
+ ║ 🧠 Skills 91 installed ║
57
+ ║ 🔧 Scripts 27 installed ║
58
+ ╚══════════════════════════════════════════════════════════════╝
59
+
60
+ ✔ 700+ files installed. 16 parallel Tribunal reviewers armed.
61
+
62
+ $ npx tribunal-kit status
63
+
64
+ Installed at .agent/
65
+ 🤖 agents 40 files
66
+ ⚡ workflows 31 files
67
+ 🧠 skills 90 files
68
+ 🔧 scripts 27 files
69
+ ```
70
+
71
+ > 💡 **Lighter install?** Use `npx tribunal-kit init --minimal` for just 13 core agents + 15 essential skills.
72
+
73
+ </details>
74
+
75
+ > ✅ **IDE Auto-Detection:** `init` automatically generates bridge files for every major AI coding IDE:
76
+ >
77
+ > | IDE | Bridge File Generated |
78
+ > | :--- | :--- |
79
+ > | **Cursor** | `.cursorrules` |
80
+ > | **Windsurf** | `.windsurfrules` |
81
+ > | **Gemini / Antigravity** | `.gemini/settings.json` + `.gemini/GEMINI.md` |
82
+ > | **GitHub Copilot** | `.github/copilot-instructions.md` |
83
+ > | **Claude** | `.claude/CLAUDE.md` |
84
+ >
85
+ > Bridge files are never overwritten on re-init your customizations are safe.
86
+
87
+ **Prerequisites:** Node.js ≥ 18
88
+
89
+ > 💡 **Shorthand alias:** You can use `tk` instead of `tribunal-kit` for all commands (e.g., `tk init`, `tk status`).
90
+
91
+ <br>
92
+
93
+ ## ▓▒░ THE PIPELINE // HOW IT WORKS
94
+
95
+ **Code generation is solved. Code correctness is the frontier.** We enforce a strict **Evidence-Based Closeout**.
96
+
97
+ ```diff
98
+ - AI Generates -> Commits to Disk -> You Find Bugs Later
99
+ + AI Generates -> Parallel Tribunal Review -> Human Gate -> Commits to Disk
100
+ ```
101
+
102
+ ### 🎯 Auto-Routing Intelligence
103
+ No manual tagging required. The system self-organizes.
104
+
105
+ <p>
106
+ <kbd>User</kbd> "Add JWT authentication" <br>
107
+ <kbd>System</kbd> <code>🤖 Applying @security-auditor + @backend-specialist...</code> <br><br>
108
+
109
+ <kbd>User</kbd> "Fix the dark mode button" <br>
110
+ <kbd>System</kbd> <code>🤖 Applying @ui-ux-pro-max + @frontend-specialist...</code> <br><br>
111
+
112
+ <kbd>User</kbd> "/swarm build a API" <br>
113
+ <kbd>System</kbd> <code>🤖 supervisor-agent Dispatching 3 Workers...</code>
114
+ </p>
115
+
116
+ <br>
117
+
118
+ ## ▓▒░ THE SUPREME COURT (v4.0)
119
+
120
+ *(New in v4)* The Tribunal Kit now features persistent memory so the AI **never makes the same mistake twice** and automatically learns your team's coding style.
121
+
122
+ **1. The Case Law Engine (Never repeat mistakes)**
123
+ If an agent makes a mistake, you can record it as a legal precedent. Before writing any future code, the `precedence-reviewer` checks this database locally to forcefully block the AI from repeating that mistake.
124
+ - `npx tribunal-kit case add` *(Record an AI hallucination)*
125
+ - `npx tribunal-kit case search "query"` *(Search your precedents)*
126
+
127
+ **2. Skill Evolution Forge (Auto-learns your style)**
128
+ You no longer need to write manual rules. The system reads your Git commits, strips out the noise to save tokens, and automatically extracts your project's unique architectural patterns to teach the AI.
129
+ - `npx tribunal-kit learn` *(Run a learning digest on staged files)*
130
+ - `npx tribunal-kit hook` *(Automate learning every time you `git push`)*
131
+
132
+ <br>
133
+
134
+ ## ▓▒░ CAPABILITY MATRIX
135
+
136
+ | System Asset | Count | Operational Scope |
137
+ | :--- | :---: | :--- |
138
+ | 🤖 **Agents** | `40` | Specialist personas — 16 reviewers + 24 domain specialists |
139
+ | 🧠 **Skills** | `90` | Domain modules (Edge Computing, Red Team Tactics, GSAP, Framer Motion, TypeScript Advanced) |
140
+ | **Workflows** | `31` | Slash command procedures including `/swarm`, `/tribunal-full`, `/ui-ux-pro-max` |
141
+ | 🛠️ **Scripts** | `25` | CI/CD, linting, payload dispatching, security scanning, case law, skill evolution |
142
+
143
+
144
+ <br>
145
+
146
+ ## ▓▒░ COMMAND TERMINAL
147
+
148
+ Expand the accordions to view the operational commands at your disposal.
149
+
150
+ <details open>
151
+ <summary><b>🔥 CORE EXECUTION</b></summary>
152
+ <br>
153
+
154
+ | Command | Action |
155
+ | :--- | :--- |
156
+ | <code>/generate</code> | Trigger full Tribunal: Generate → Audit → Approve. |
157
+ | <code>/create</code> | Scaffold major features or apps, routed by App Builder. |
158
+ | <code>/enhance</code> | Safely extend existing structures without regression. |
159
+ | <code>/deploy</code> | Force the 3-gate production release sequence. |
160
+
161
+ </details>
162
+
163
+ <details>
164
+ <summary><b>⚖️ THE TRIBUNAL GAUNTLET (REVIEWERS)</b></summary>
165
+ <br>
166
+ Unleash parallel reviewers on existing code.
167
+
168
+ | Command | Action |
169
+ | :--- | :--- |
170
+ | <code>/review</code> | Audit code for silent degradation and logic holes. |
171
+ | <code>/tribunal-full</code> | Unleash **ALL 16** reviewers simultaneously. Maximum scrutiny. |
172
+ | <code>/tribunal-backend</code> | Summons <code>[ Logic + Security + Dependency + Types ]</code> |
173
+ | <code>/tribunal-frontend</code> | Summons <code>[ Logic + Security + Frontend + Types ]</code> |
174
+ | <code>/tribunal-database</code> | Summons <code>[ Logic + Security + SQL ]</code> |
175
+ | <code>/tribunal-mobile</code> | Summons <code>[ Logic + Security + Mobile ]</code> |
176
+
177
+ </details>
178
+
179
+ <details>
180
+ <summary><b>🧠 SWARM & ORCHESTRATION</b></summary>
181
+ <br>
182
+
183
+ | Command | Action |
184
+ | :--- | :--- |
185
+ | <code>/swarm</code> | Supervisor breaks goal sends to isolated workers → synthesizes. |
186
+ | <code>/orchestrate</code> | Manual multi-agent sync for complex integrations. |
187
+ | <code>/plan</code> | Architectural mapping before a single line is written. |
188
+ | <code>/ui-ux-pro-max</code>| Triggers peak aesthetic frontend design. |
189
+
190
+ </details>
191
+
192
+ <details>
193
+ <summary><b>⚖️ SUPREME COURT / MEMORY</b></summary>
194
+ <br>
195
+
196
+ | Command | Action |
197
+ | :--- | :--- |
198
+ | <code>npx tribunal-kit case add</code> | Record an AI hallucination to ban it forever. |
199
+ | <code>npx tribunal-kit case search</code> | Search your local database of banned code. |
200
+ | <code>npx tribunal-kit learn</code> | Auto-extract project idioms from your git diffs. |
201
+ | <code>npx tribunal-kit hook</code> | Install a git hook to auto-learn the moment you push. |
202
+
203
+ </details>
204
+
205
+ <details>
206
+ <summary><b>🔧 TROUBLESHOOTING & OPS</b></summary>
207
+ <br>
208
+
209
+ | Command | Action |
210
+ | :--- | :--- |
211
+ | <code>/debug</code> | Systematic root-cause investigation. |
212
+ | <code>/preview</code> | Local development server control. |
213
+ | <code>/status</code> | View Tribunal session status. |
214
+
215
+ </details>
216
+
217
+ <br>
218
+
219
+ ## ▓▒░ POST-INSTALL TELEMETRY
220
+
221
+ After initialization, utility scripts unlock local ops:
222
+
223
+ ```bash
224
+ # 01. Pre-commit audit
225
+ node .agent/scripts/checklist.js .
226
+
227
+ # 02. Pre-deploy full suite verification
228
+ node .agent/scripts/verify_all.js
229
+
230
+ # 03. Start local development environment
231
+ node .agent/scripts/auto_preview.js start
232
+ ```
233
+
234
+ <br>
235
+
236
+ <div align="center">
237
+ <br>
238
+ <img src="https://img.shields.io/badge/Status-Active_&_Secured-00e5ff?style=for-the-badge" alt="Status" />
239
+ <br><br>
240
+ <i>"Never guess database column names. Error handling on every async function. Evidence-based closeouts. Welcome to the Tribunal."</i><br>
241
+ <sub><b>MIT Licensed</b> • Hand-forged for high-performance agentic engineering.</sub>
242
+ </div>