tribunal-kit 1.0.0 → 2.4.2

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 (127) hide show
  1. package/.agent/.shared/ui-ux-pro-max/README.md +3 -3
  2. package/.agent/ARCHITECTURE.md +205 -10
  3. package/.agent/GEMINI.md +37 -7
  4. package/.agent/agents/accessibility-reviewer.md +134 -0
  5. package/.agent/agents/ai-code-reviewer.md +129 -0
  6. package/.agent/agents/frontend-specialist.md +3 -0
  7. package/.agent/agents/game-developer.md +21 -21
  8. package/.agent/agents/logic-reviewer.md +12 -0
  9. package/.agent/agents/mobile-reviewer.md +79 -0
  10. package/.agent/agents/orchestrator.md +56 -26
  11. package/.agent/agents/performance-reviewer.md +36 -0
  12. package/.agent/agents/supervisor-agent.md +156 -0
  13. package/.agent/agents/swarm-worker-contracts.md +166 -0
  14. package/.agent/agents/swarm-worker-registry.md +92 -0
  15. package/.agent/rules/GEMINI.md +134 -5
  16. package/.agent/scripts/bundle_analyzer.py +259 -0
  17. package/.agent/scripts/dependency_analyzer.py +247 -0
  18. package/.agent/scripts/lint_runner.py +188 -0
  19. package/.agent/scripts/patch_skills_meta.py +177 -0
  20. package/.agent/scripts/patch_skills_output.py +285 -0
  21. package/.agent/scripts/schema_validator.py +279 -0
  22. package/.agent/scripts/security_scan.py +224 -0
  23. package/.agent/scripts/session_manager.py +144 -3
  24. package/.agent/scripts/skill_integrator.py +234 -0
  25. package/.agent/scripts/strengthen_skills.py +220 -0
  26. package/.agent/scripts/swarm_dispatcher.py +317 -0
  27. package/.agent/scripts/test_runner.py +192 -0
  28. package/.agent/scripts/test_swarm_dispatcher.py +163 -0
  29. package/.agent/skills/agent-organizer/SKILL.md +132 -0
  30. package/.agent/skills/agentic-patterns/SKILL.md +335 -0
  31. package/.agent/skills/api-patterns/SKILL.md +226 -50
  32. package/.agent/skills/app-builder/SKILL.md +215 -52
  33. package/.agent/skills/architecture/SKILL.md +176 -31
  34. package/.agent/skills/bash-linux/SKILL.md +150 -134
  35. package/.agent/skills/behavioral-modes/SKILL.md +152 -160
  36. package/.agent/skills/brainstorming/SKILL.md +148 -101
  37. package/.agent/skills/brainstorming/dynamic-questioning.md +10 -0
  38. package/.agent/skills/clean-code/SKILL.md +139 -134
  39. package/.agent/skills/code-review-checklist/SKILL.md +177 -80
  40. package/.agent/skills/config-validator/SKILL.md +165 -0
  41. package/.agent/skills/csharp-developer/SKILL.md +107 -0
  42. package/.agent/skills/database-design/SKILL.md +252 -29
  43. package/.agent/skills/deployment-procedures/SKILL.md +122 -175
  44. package/.agent/skills/devops-engineer/SKILL.md +134 -0
  45. package/.agent/skills/devops-incident-responder/SKILL.md +98 -0
  46. package/.agent/skills/documentation-templates/SKILL.md +175 -121
  47. package/.agent/skills/dotnet-core-expert/SKILL.md +103 -0
  48. package/.agent/skills/edge-computing/SKILL.md +213 -0
  49. package/.agent/skills/frontend-design/SKILL.md +76 -0
  50. package/.agent/skills/frontend-design/color-system.md +18 -0
  51. package/.agent/skills/frontend-design/typography-system.md +18 -0
  52. package/.agent/skills/game-development/SKILL.md +69 -0
  53. package/.agent/skills/geo-fundamentals/SKILL.md +158 -99
  54. package/.agent/skills/github-operations/SKILL.md +354 -0
  55. package/.agent/skills/i18n-localization/SKILL.md +158 -96
  56. package/.agent/skills/intelligent-routing/SKILL.md +89 -285
  57. package/.agent/skills/intelligent-routing/router-manifest.md +65 -0
  58. package/.agent/skills/lint-and-validate/SKILL.md +229 -27
  59. package/.agent/skills/llm-engineering/SKILL.md +258 -0
  60. package/.agent/skills/local-first/SKILL.md +203 -0
  61. package/.agent/skills/mcp-builder/SKILL.md +159 -111
  62. package/.agent/skills/mobile-design/SKILL.md +102 -282
  63. package/.agent/skills/nextjs-react-expert/SKILL.md +143 -227
  64. package/.agent/skills/nodejs-best-practices/SKILL.md +201 -254
  65. package/.agent/skills/observability/SKILL.md +285 -0
  66. package/.agent/skills/parallel-agents/SKILL.md +124 -118
  67. package/.agent/skills/performance-profiling/SKILL.md +143 -89
  68. package/.agent/skills/plan-writing/SKILL.md +133 -97
  69. package/.agent/skills/platform-engineer/SKILL.md +135 -0
  70. package/.agent/skills/powershell-windows/SKILL.md +167 -104
  71. package/.agent/skills/python-patterns/SKILL.md +149 -361
  72. package/.agent/skills/python-pro/SKILL.md +114 -0
  73. package/.agent/skills/react-specialist/SKILL.md +107 -0
  74. package/.agent/skills/readme-builder/SKILL.md +270 -0
  75. package/.agent/skills/realtime-patterns/SKILL.md +296 -0
  76. package/.agent/skills/red-team-tactics/SKILL.md +136 -134
  77. package/.agent/skills/rust-pro/SKILL.md +237 -173
  78. package/.agent/skills/seo-fundamentals/SKILL.md +134 -82
  79. package/.agent/skills/server-management/SKILL.md +155 -104
  80. package/.agent/skills/sql-pro/SKILL.md +104 -0
  81. package/.agent/skills/systematic-debugging/SKILL.md +156 -79
  82. package/.agent/skills/tailwind-patterns/SKILL.md +163 -205
  83. package/.agent/skills/tdd-workflow/SKILL.md +148 -88
  84. package/.agent/skills/test-result-analyzer/SKILL.md +299 -0
  85. package/.agent/skills/testing-patterns/SKILL.md +141 -114
  86. package/.agent/skills/trend-researcher/SKILL.md +228 -0
  87. package/.agent/skills/ui-ux-pro-max/SKILL.md +107 -0
  88. package/.agent/skills/ui-ux-researcher/SKILL.md +234 -0
  89. package/.agent/skills/vue-expert/SKILL.md +118 -0
  90. package/.agent/skills/vulnerability-scanner/SKILL.md +228 -188
  91. package/.agent/skills/web-design-guidelines/SKILL.md +148 -33
  92. package/.agent/skills/webapp-testing/SKILL.md +171 -122
  93. package/.agent/skills/whimsy-injector/SKILL.md +349 -0
  94. package/.agent/skills/workflow-optimizer/SKILL.md +219 -0
  95. package/.agent/workflows/api-tester.md +279 -0
  96. package/.agent/workflows/audit.md +168 -0
  97. package/.agent/workflows/brainstorm.md +65 -19
  98. package/.agent/workflows/changelog.md +144 -0
  99. package/.agent/workflows/create.md +67 -14
  100. package/.agent/workflows/debug.md +122 -30
  101. package/.agent/workflows/deploy.md +82 -31
  102. package/.agent/workflows/enhance.md +59 -27
  103. package/.agent/workflows/fix.md +143 -0
  104. package/.agent/workflows/generate.md +84 -20
  105. package/.agent/workflows/migrate.md +163 -0
  106. package/.agent/workflows/orchestrate.md +66 -17
  107. package/.agent/workflows/performance-benchmarker.md +305 -0
  108. package/.agent/workflows/plan.md +76 -33
  109. package/.agent/workflows/preview.md +73 -17
  110. package/.agent/workflows/refactor.md +153 -0
  111. package/.agent/workflows/review-ai.md +140 -0
  112. package/.agent/workflows/review.md +83 -16
  113. package/.agent/workflows/session.md +154 -0
  114. package/.agent/workflows/status.md +74 -18
  115. package/.agent/workflows/strengthen-skills.md +99 -0
  116. package/.agent/workflows/swarm.md +194 -0
  117. package/.agent/workflows/test.md +80 -31
  118. package/.agent/workflows/tribunal-backend.md +55 -13
  119. package/.agent/workflows/tribunal-database.md +62 -18
  120. package/.agent/workflows/tribunal-frontend.md +58 -12
  121. package/.agent/workflows/tribunal-full.md +70 -11
  122. package/.agent/workflows/tribunal-mobile.md +123 -0
  123. package/.agent/workflows/tribunal-performance.md +152 -0
  124. package/.agent/workflows/ui-ux-pro-max.md +100 -82
  125. package/README.md +117 -62
  126. package/bin/tribunal-kit.js +542 -288
  127. package/package.json +10 -6
package/README.md CHANGED
@@ -1,72 +1,81 @@
1
- # Tribunal Anti-Hallucination Agent Kit
1
+ <div align="center">
2
2
 
3
- > Plug-in `.agent/` folder that gives your AI IDE (Cursor, Windsurf, Antigravity) a full
4
- > anti-hallucination system with 27 specialist agents, 17 slash commands, and 8 parallel Tribunal reviewers.
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>
5
14
 
6
15
  ---
7
16
 
8
- ## Quick Install
17
+ ## Quick Install
18
+
19
+ Get started in seconds:
9
20
 
10
21
  ```bash
11
22
  npx tribunal-kit init
12
23
  ```
13
24
 
14
- Or install globally and use anywhere:
25
+ Or install globally to use on any project:
15
26
 
16
27
  ```bash
17
28
  npm install -g tribunal-kit
18
29
  tribunal-kit init
19
30
  ```
20
31
 
21
- This installs the `.agent/` folder containing all agents, workflows, skills, and scripts into your project.
32
+ > **Note:** This installs the `.agent/` folder containing all agents, workflows, skills, and scripts directly into your project.
22
33
 
23
34
  ---
24
35
 
25
- > ⚠️ **Important `.gitignore` Note**
26
- >
27
- > If you use AI-powered editors like Cursor or Windsurf, adding `.agent/` to your `.gitignore`
28
- > may prevent the IDE from indexing the workflows. Slash commands like `/generate` or `/review`
29
- > won't appear in the chat suggestion dropdown.
30
- >
31
- > **Recommended:** Keep `.agent/` out of `.gitignore`. If you want it local-only:
32
- > ```
33
- > # Add this to .git/info/exclude (not .gitignore)
34
- > .agent/
35
- > ```
36
-
37
- ---
36
+ ## ⚠️ Important: `.gitignore` Notice
38
37
 
39
- ## What's Included
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.
40
39
 
41
- | Component | Count | Description |
42
- |---|---|---|
43
- | Agents | 27 | Specialist AI personas (backend, frontend, security, Tribunal reviewers, etc.) |
44
- | Workflows | 17 | Slash command procedures |
45
- | Skills | 37 | Domain-specific knowledge modules |
46
- | Scripts | 4 | Python utility scripts (checklist, verify, preview, session) |
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
+ ```
47
46
 
48
47
  ---
49
48
 
50
- ## How It Works
49
+ ## 📦 What's Included
51
50
 
52
- ### Auto-Agent Routing
53
-
54
- No need to mention agents explicitly. The system automatically detects the right specialist:
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.) |
55
57
 
56
- ```
57
- You: "Add JWT authentication"
58
- AI: 🤖 Applying @security-auditor + @backend-specialist...
58
+ ---
59
59
 
60
- You: "Fix the dark mode button"
61
- AI: 🤖 Applying @frontend-specialist...
60
+ ## ⚙️ How It Works
62
61
 
63
- You: "Login returns 500 error"
64
- AI: 🤖 Applying @debugger for systematic analysis...
65
- ```
62
+ ### 🎯 Auto-Agent Routing
63
+ No need to mention agents explicitly. The system automatically detects and summons the right specialist for the job:
66
64
 
67
- ### The Tribunal Pipeline
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...`
68
76
 
69
- Every generated code goes through parallel reviewers before you see it:
77
+ ### ⚖️ The Tribunal Pipeline
78
+ Every piece of generated code goes through rigorous, parallel reviewers before you even see it:
70
79
 
71
80
  ```
72
81
  You type /generate →
@@ -77,31 +86,71 @@ You type /generate →
77
86
 
78
87
  ---
79
88
 
80
- ## Slash Commands
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>
81
96
 
82
97
  | Command | Description |
83
98
  |---|---|
84
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
+ |---|---|
85
112
  | `/review` | Audit existing code — no generation |
86
- | `/tribunal-full` | All 8 reviewers simultaneously |
113
+ | `/test` | Generate or audit tests |
114
+ | `/tribunal-full` | Run all 8 reviewers simultaneously |
87
115
  | `/tribunal-backend` | Logic + Security + Dependency + Types |
88
116
  | `/tribunal-frontend` | Logic + Security + Frontend + Types |
89
- | `/tribunal-database` | Logic + Security + SQL |
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
+ |---|---|
90
129
  | `/brainstorm` | Explore options before implementation |
91
- | `/create` | Build new features or apps |
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
+ |---|---|
92
143
  | `/debug` | Systematic root-cause investigation |
93
- | `/plan` | Create structured plan file only |
94
- | `/enhance` | Improve existing code safely |
95
- | `/orchestrate` | Multi-agent coordination |
96
- | `/test` | Generate or audit tests |
97
- | `/deploy` | 3-gate production deployment |
98
144
  | `/preview` | Local dev server control |
99
145
  | `/status` | Tribunal session dashboard |
100
- | `/ui-ux-pro-max` | Advanced UI/UX design workflow |
146
+
147
+ </details>
101
148
 
102
149
  ---
103
150
 
104
- ## CLI Reference
151
+ ## 💻 CLI Reference
152
+
153
+ Manage your installation directly from the terminal:
105
154
 
106
155
  ```bash
107
156
  tribunal-kit init # Install into current directory
@@ -115,22 +164,28 @@ tribunal-kit status # Check installation status
115
164
 
116
165
  ---
117
166
 
118
- ## Utility Scripts (after install)
167
+ ## 🧰 Utility Scripts *(Post-install)*
119
168
 
120
169
  ```bash
121
- python .agent/scripts/checklist.py . # Pre-commit audit
122
- python .agent/scripts/verify_all.py # Pre-deploy full suite
123
- python .agent/scripts/auto_preview.py start # Start dev server
124
- python .agent/scripts/session_manager.py save "note" # Save session
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
125
174
  ```
126
175
 
127
176
  ---
128
177
 
129
- ## Compatible IDEs
178
+ ## 🤝 Compatible IDEs
130
179
 
131
- | IDE | Support |
180
+ | IDE | Support Level |
132
181
  |---|---|
133
- | Cursor | ✅ Reads `.agent/` automatically |
134
- | Windsurf | ✅ Reads `.agent/` automatically |
135
- | Antigravity | ✅ Native `.agent/` support |
136
- | GitHub Copilot (Agent Mode) | ✅ Copy `GEMINI.md` `.github/copilot-instructions.md` |
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>