tribunal-kit 2.4.4 → 2.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,191 +1,161 @@
1
- <div align="center">
2
-
3
- # 🏛️ Tribunal Anti-Hallucination Agent Kit
4
-
5
- **The ultimate guardrail system for AI IDEs (Cursor, Windsurf, Antigravity)**
6
-
7
- [![npm version](https://img.shields.io/npm/v/tribunal-kit.svg?style=flat-square)](https://www.npmjs.com/package/tribunal-kit)
8
- [![license](https://img.shields.io/npm/l/tribunal-kit.svg?style=flat-square)](https://github.com/your-repo/tribunal-kit/blob/main/LICENSE)
9
- [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
10
-
11
- A plug-in `.agent/` folder that upgrades your AI with **32 specialist agents**, **25 slash commands**, **8 parallel Tribunal reviewers**, and a powerful **Swarm/Supervisor** multi-agent orchestration engine.
12
-
13
- </div>
14
-
15
- ---
16
-
17
- ## ⚡ Quick Install
18
-
19
- Get started in seconds:
20
-
21
- ```bash
22
- npx tribunal-kit init
23
- ```
24
-
25
- Or install globally to use on any project:
26
-
27
- ```bash
28
- npm install -g tribunal-kit
29
- tribunal-kit init
30
- ```
31
-
32
- > **Note:** This installs the `.agent/` folder containing all agents, workflows, skills, and scripts directly into your project.
33
-
34
- ---
35
-
36
- ## ⚠️ Important: `.gitignore` Notice
37
-
38
- If you use AI-powered editors like **Cursor** or **Windsurf**, adding `.agent/` to your `.gitignore` may prevent the IDE from indexing the workflows. Slash commands like `/generate` or `/review` won't appear in your chat suggestion dropdown.
39
-
40
- 💡 **Recommended:** Keep `.agent/` out of `.gitignore`.
41
- If you want it to remain local-only, add it to your repo's exclude file instead:
42
- ```bash
43
- # Add this to .git/info/exclude (not .gitignore)
44
- .agent/
45
- ```
46
-
47
- ---
48
-
49
- ## 📦 What's Included
50
-
51
- | Component | Count | Description |
52
- |---|:---:|---|
53
- | 🤖 **Agents** | **32** | Specialist AI personas including Supervisor, Worker Registry, and Contract schemas |
54
- | 🔄 **Workflows**| **25** | Slash command procedures including `/swarm` orchestration |
55
- | 🧠 **Skills** | **44** | Domain-specific knowledge modules for targeted expertise |
56
- | 🛠️ **Scripts** | **13** | Python utility scripts (checklist, verify, preview, session, swarm dispatcher, etc.) |
57
-
58
- ---
59
-
60
- ## ⚙️ How It Works
61
-
62
- ### 🎯 Auto-Agent Routing
63
- No need to mention agents explicitly. The system automatically detects and summons the right specialist for the job:
64
-
65
- > **You:** "Add JWT authentication" <br>
66
- > **AI:** `🤖 Applying @security-auditor + @backend-specialist...`
67
- >
68
- > **You:** "Fix the dark mode button" <br>
69
- > **AI:** `🤖 Applying @frontend-specialist...`
70
- >
71
- > **You:** "Login returns 500 error" <br>
72
- > **AI:** `🤖 Applying @debugger for systematic analysis...`
73
- >
74
- > **You:** "/swarm build a REST API, PostgreSQL schema, and documentation" <br>
75
- > **AI:** `🤖 supervisor-agent → dispatching 3 Workers in parallel...`
76
-
77
- ### ⚖️ The Tribunal Pipeline
78
- Every piece of generated code goes through rigorous, parallel reviewers before you even see it:
79
-
80
- ```
81
- You type /generate →
82
- Maker generates at low temperature →
83
- Reviewers audit in parallel (logic, security, types, ...) →
84
- Human Gate: you approve the diff before it writes to disk
85
- ```
86
-
87
- ---
88
-
89
- ## ⌨️ Slash Commands
90
-
91
- Supercharge your workflow with these built-in commands:
92
-
93
- <details open>
94
- <summary><b>🛠️ Core Execution</b></summary>
95
- <br>
96
-
97
- | Command | Description |
98
- |---|---|
99
- | `/generate` | Full Tribunal pipeline: generate → review → approve |
100
- | `/create` | Build new features or apps from scratch |
101
- | `/enhance` | Improve existing code safely without breaking it |
102
- | `/deploy` | 3-gate production deployment process |
103
-
104
- </details>
105
-
106
- <details open>
107
- <summary><b>⚖️ Review & Audit</b></summary>
108
- <br>
109
-
110
- | Command | Description |
111
- |---|---|
112
- | `/review` | Audit existing code — no generation |
113
- | `/test` | Generate or audit tests |
114
- | `/tribunal-full` | Run all 8 reviewers simultaneously |
115
- | `/tribunal-backend` | Logic + Security + Dependency + Types |
116
- | `/tribunal-frontend` | Logic + Security + Frontend + Types |
117
- | `/tribunal-database`| Logic + Security + SQL |
118
- | `/tribunal-mobile` | Logic + Security + Mobile (React Native, Flutter, Web) |
119
- | `/tribunal-performance`| Logic + Performance (Optimization & bottlenecks) |
120
-
121
- </details>
122
-
123
- <details open>
124
- <summary><b>🧠 Planning & Orchestration</b></summary>
125
- <br>
126
-
127
- | Command | Description |
128
- |---|---|
129
- | `/brainstorm` | Explore options before implementation |
130
- | `/plan` | Create a structured architectural plan file only |
131
- | `/orchestrate` | Multi-agent coordination for complex tasks |
132
- | `/swarm` | Supervisor decomposes multi-domain goals → parallel Workers → unified output |
133
- | `/ui-ux-pro-max` | Advanced UI/UX design workflow |
134
-
135
- </details>
136
-
137
- <details open>
138
- <summary><b>🔧 Troubleshooting & Ops</b></summary>
139
- <br>
140
-
141
- | Command | Description |
142
- |---|---|
143
- | `/debug` | Systematic root-cause investigation |
144
- | `/preview` | Local dev server control |
145
- | `/status` | Tribunal session dashboard |
146
-
147
- </details>
148
-
149
- ---
150
-
151
- ## 💻 CLI Reference
152
-
153
- Manage your installation directly from the terminal:
154
-
155
- ```bash
156
- tribunal-kit init # Install into current directory
157
- tribunal-kit init --force # Overwrite existing .agent/ folder
158
- tribunal-kit init --path ./my-app # Install in specific directory
159
- tribunal-kit init --quiet # Suppress output (for CI/CD)
160
- tribunal-kit init --dry-run # Preview without writing files
161
- tribunal-kit update # Re-install to get latest version
162
- tribunal-kit status # Check installation status
163
- ```
164
-
165
- ---
166
-
167
- ## 🧰 Utility Scripts *(Post-install)*
168
-
169
- ```bash
170
- python .agent/scripts/checklist.py . # 📋 Pre-commit audit
171
- python .agent/scripts/verify_all.py # 🚀 Pre-deploy full suite
172
- python .agent/scripts/auto_preview.py start # 🌍 Start dev server
173
- python .agent/scripts/session_manager.py save "note" # 💾 Save session state
174
- ```
175
-
176
- ---
177
-
178
- ## 🤝 Compatible IDEs
179
-
180
- | IDE | Support Level |
181
- |---|---|
182
- | **Cursor** | ✅ Reads `.agent/` automatically |
183
- | **Windsurf** | ✅ Reads `.agent/` automatically |
184
- | **Antigravity** | ✅ Native `.agent/` support |
185
- | **GitHub Copilot** | ✅ Manual setup: Copy `GEMINI.md` to `.github/copilot-instructions.md` |
186
-
187
- <br>
188
-
189
- <div align="center">
190
- <sub>Built with ❤️ for safer, hallucination-free AI coding.</sub>
191
- </div>
1
+ <div align="center">
2
+ <picture>
3
+ <img src="./docs/image.png" alt="Tribunal Kit Logo" width="300">
4
+ </picture>
5
+
6
+ <h1><b>TRIBUNAL—KIT</b></h1>
7
+
8
+ <p><code>&lt; ZERO_HALLUCINATION_PROTOCOL /&gt;</code></p>
9
+
10
+ <p>
11
+ <b>The ultimate guardrail system for AI-assisted coding.</b><br>
12
+ Built for <i>Cursor</i>, <i>Windsurf</i>, and <i>Antigravity</i>.
13
+ </p>
14
+
15
+ [![NPM](https://img.shields.io/npm/v/tribunal-kit?style=for-the-badge&logo=npm&logoColor=white)](https://www.npmjs.com/package/tribunal-kit)
16
+ [![License](https://img.shields.io/badge/License-MIT-8b5cf6?style=for-the-badge)](LICENSE)
17
+ </div>
18
+
19
+ <br><br>
20
+
21
+ > 🚨 **AI GENERATES CODE. TRIBUNAL ENSURES IT WORKS.**
22
+ > 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.
23
+
24
+ ---
25
+
26
+ <br>
27
+
28
+ ## ▓▒░ INITIATION SEQUENCE
29
+
30
+ Drop Tribunal into any project. Global or local.
31
+
32
+ ```bash
33
+ # Pull the intelligence payload into your project
34
+ npx tribunal-kit init
35
+ ```
36
+ *(Installs the `.agent/` architecture directly. No bloat. Pure capability.)*
37
+
38
+ > ⚠️ **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.
39
+
40
+ <br>
41
+
42
+ ## ▓▒░ THE PIPELINE // HOW IT WORKS
43
+
44
+ **Code generation is solved. Code correctness is the frontier.** We enforce a strict **Evidence-Based Closeout**.
45
+
46
+ ```diff
47
+ - AI Generates -> Commits to Disk -> You Find Bugs Later
48
+ + AI Generates -> Parallel Tribunal Review -> Human Gate -> Commits to Disk
49
+ ```
50
+
51
+ ### 🎯 Auto-Routing Intelligence
52
+ No manual tagging required. The system self-organizes.
53
+
54
+ <p>
55
+ <kbd>User</kbd> "Add JWT authentication" <br>
56
+ <kbd>System</kbd> <code>🤖 Applying @security-auditor + @backend-specialist...</code> <br><br>
57
+
58
+ <kbd>User</kbd> "Fix the dark mode button" <br>
59
+ <kbd>System</kbd> <code>🤖 Applying @ui-ux-pro-max + @frontend-specialist...</code> <br><br>
60
+
61
+ <kbd>User</kbd> "/swarm build a API" <br>
62
+ <kbd>System</kbd> <code>🤖 supervisor-agent → Dispatching 3 Workers...</code>
63
+ </p>
64
+
65
+ <br>
66
+
67
+ ## ▓▒░ CAPABILITY MATRIX
68
+
69
+ | System Asset | Count | Operational Scope |
70
+ | :--- | :---: | :--- |
71
+ | 🤖 **Agents** | `32` | Specialist personas (Security, DB Architect, DevOps Responder) |
72
+ | 🧠 **Skills** | `44` | Domain modules (Edge Computing, Red Team Tactics, WebXR) |
73
+ | ⚡ **Workflows** | `25` | Slash command procedures including `/swarm` orchestration |
74
+ | 🛠️ **Scripts** | `13` | CI/CD, linting, payload dispatching, test suite runners |
75
+
76
+ <br>
77
+
78
+ ## ▓▒░ COMMAND TERMINAL
79
+
80
+ Expand the accordions to view the operational commands at your disposal.
81
+
82
+ <details open>
83
+ <summary><b>🔥 CORE EXECUTION</b></summary>
84
+ <br>
85
+
86
+ | Command | Action |
87
+ | :--- | :--- |
88
+ | <code>/generate</code> | Trigger full Tribunal: Generate → Audit → Approve. |
89
+ | <code>/create</code> | Scaffold major features or apps, routed by App Builder. |
90
+ | <code>/enhance</code> | Safely extend existing structures without regression. |
91
+ | <code>/deploy</code> | Force the 3-gate production release sequence. |
92
+
93
+ </details>
94
+
95
+ <details>
96
+ <summary><b>⚖️ THE TRIBUNAL GAUNTLET (REVIEWERS)</b></summary>
97
+ <br>
98
+ Unleash parallel reviewers on existing code.
99
+
100
+ | Command | Action |
101
+ | :--- | :--- |
102
+ | <code>/review</code> | Audit code for silent degradation and logic holes. |
103
+ | <code>/tribunal-full</code> | Unleash **ALL 8** reviewers simultaneously. Maximum scrutiny. |
104
+ | <code>/tribunal-backend</code> | Summons <code>[ Logic + Security + Dependency + Types ]</code> |
105
+ | <code>/tribunal-frontend</code> | Summons <code>[ Logic + Security + Frontend + Types ]</code> |
106
+ | <code>/tribunal-database</code> | Summons <code>[ Logic + Security + SQL ]</code> |
107
+ | <code>/tribunal-mobile</code> | Summons <code>[ Logic + Security + Mobile ]</code> |
108
+
109
+ </details>
110
+
111
+ <details>
112
+ <summary><b>🧠 SWARM & ORCHESTRATION</b></summary>
113
+ <br>
114
+
115
+ | Command | Action |
116
+ | :--- | :--- |
117
+ | <code>/swarm</code> | Supervisor breaks goal sends to isolated workers → synthesizes. |
118
+ | <code>/orchestrate</code> | Manual multi-agent sync for complex integrations. |
119
+ | <code>/plan</code> | Architectural mapping before a single line is written. |
120
+ | <code>/ui-ux-pro-max</code>| Triggers peak aesthetic frontend design. |
121
+
122
+ </details>
123
+
124
+ <details>
125
+ <summary><b>🔧 TROUBLESHOOTING & OPS</b></summary>
126
+ <br>
127
+
128
+ | Command | Action |
129
+ | :--- | :--- |
130
+ | <code>/debug</code> | Systematic root-cause investigation. |
131
+ | <code>/preview</code> | Local development server control. |
132
+ | <code>/status</code> | View Tribunal session status. |
133
+
134
+ </details>
135
+
136
+ <br>
137
+
138
+ ## ▓▒░ POST-INSTALL TELEMETRY
139
+
140
+ After initialization, utility scripts unlock local ops:
141
+
142
+ ```bash
143
+ # 01. Pre-commit audit
144
+ python .agent/scripts/checklist.py .
145
+
146
+ # 02. Pre-deploy full suite verification
147
+ python .agent/scripts/verify_all.py
148
+
149
+ # 03. Start local development environment
150
+ python .agent/scripts/auto_preview.py start
151
+ ```
152
+
153
+ <br>
154
+
155
+ <div align="center">
156
+ <br>
157
+ <img src="https://img.shields.io/badge/Status-Active_&_Secured-00e5ff?style=for-the-badge" alt="Status" />
158
+ <br><br>
159
+ <i>"Never guess database column names. Error handling on every async function. Evidence-based closeouts. Welcome to the Tribunal."</i><br>
160
+ <sub><b>MIT Licensed</b> • Hand-forged for high-performance agentic engineering.</sub>
161
+ </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tribunal-kit",
3
- "version": "2.4.4",
3
+ "version": "2.4.6",
4
4
  "description": "Anti-Hallucination AI Agent Kit — 33 specialist agents, 25 slash commands, Swarm/Supervisor engine, and Tribunal review pipeline for Cursor, Windsurf, and Antigravity.",
5
5
  "keywords": [
6
6
  "ai",