tribunal-kit 1.0.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/.shared/ui-ux-pro-max/README.md +3 -3
- package/.agent/ARCHITECTURE.md +205 -10
- package/.agent/GEMINI.md +37 -7
- package/.agent/agents/accessibility-reviewer.md +134 -0
- package/.agent/agents/ai-code-reviewer.md +129 -0
- package/.agent/agents/frontend-specialist.md +3 -0
- package/.agent/agents/game-developer.md +21 -21
- package/.agent/agents/logic-reviewer.md +12 -0
- package/.agent/agents/mobile-reviewer.md +79 -0
- package/.agent/agents/orchestrator.md +56 -26
- package/.agent/agents/performance-reviewer.md +36 -0
- package/.agent/agents/supervisor-agent.md +156 -0
- package/.agent/agents/swarm-worker-contracts.md +166 -0
- package/.agent/agents/swarm-worker-registry.md +92 -0
- package/.agent/rules/GEMINI.md +134 -5
- package/.agent/scripts/bundle_analyzer.py +259 -0
- package/.agent/scripts/dependency_analyzer.py +247 -0
- package/.agent/scripts/lint_runner.py +188 -0
- package/.agent/scripts/patch_skills_meta.py +177 -0
- package/.agent/scripts/patch_skills_output.py +285 -0
- package/.agent/scripts/schema_validator.py +279 -0
- package/.agent/scripts/security_scan.py +224 -0
- package/.agent/scripts/session_manager.py +144 -3
- package/.agent/scripts/skill_integrator.py +234 -0
- package/.agent/scripts/strengthen_skills.py +220 -0
- package/.agent/scripts/swarm_dispatcher.py +317 -0
- package/.agent/scripts/test_runner.py +192 -0
- package/.agent/scripts/test_swarm_dispatcher.py +163 -0
- package/.agent/skills/agent-organizer/SKILL.md +132 -0
- package/.agent/skills/agentic-patterns/SKILL.md +335 -0
- package/.agent/skills/api-patterns/SKILL.md +226 -50
- package/.agent/skills/app-builder/SKILL.md +215 -52
- package/.agent/skills/architecture/SKILL.md +176 -31
- package/.agent/skills/bash-linux/SKILL.md +150 -134
- package/.agent/skills/behavioral-modes/SKILL.md +152 -160
- package/.agent/skills/brainstorming/SKILL.md +148 -101
- package/.agent/skills/brainstorming/dynamic-questioning.md +10 -0
- package/.agent/skills/clean-code/SKILL.md +139 -134
- package/.agent/skills/code-review-checklist/SKILL.md +177 -80
- package/.agent/skills/config-validator/SKILL.md +165 -0
- package/.agent/skills/csharp-developer/SKILL.md +107 -0
- package/.agent/skills/database-design/SKILL.md +252 -29
- package/.agent/skills/deployment-procedures/SKILL.md +122 -175
- package/.agent/skills/devops-engineer/SKILL.md +134 -0
- package/.agent/skills/devops-incident-responder/SKILL.md +98 -0
- package/.agent/skills/documentation-templates/SKILL.md +175 -121
- package/.agent/skills/dotnet-core-expert/SKILL.md +103 -0
- package/.agent/skills/edge-computing/SKILL.md +213 -0
- package/.agent/skills/frontend-design/SKILL.md +76 -0
- package/.agent/skills/frontend-design/color-system.md +18 -0
- package/.agent/skills/frontend-design/typography-system.md +18 -0
- package/.agent/skills/game-development/SKILL.md +69 -0
- package/.agent/skills/geo-fundamentals/SKILL.md +158 -99
- package/.agent/skills/i18n-localization/SKILL.md +158 -96
- package/.agent/skills/intelligent-routing/SKILL.md +89 -285
- package/.agent/skills/intelligent-routing/router-manifest.md +65 -0
- package/.agent/skills/lint-and-validate/SKILL.md +229 -27
- package/.agent/skills/llm-engineering/SKILL.md +258 -0
- package/.agent/skills/local-first/SKILL.md +203 -0
- package/.agent/skills/mcp-builder/SKILL.md +159 -111
- package/.agent/skills/mobile-design/SKILL.md +102 -282
- package/.agent/skills/nextjs-react-expert/SKILL.md +143 -227
- package/.agent/skills/nodejs-best-practices/SKILL.md +201 -254
- package/.agent/skills/observability/SKILL.md +285 -0
- package/.agent/skills/parallel-agents/SKILL.md +124 -118
- package/.agent/skills/performance-profiling/SKILL.md +143 -89
- package/.agent/skills/plan-writing/SKILL.md +133 -97
- package/.agent/skills/platform-engineer/SKILL.md +135 -0
- package/.agent/skills/powershell-windows/SKILL.md +167 -104
- package/.agent/skills/python-patterns/SKILL.md +149 -361
- package/.agent/skills/python-pro/SKILL.md +114 -0
- package/.agent/skills/react-specialist/SKILL.md +107 -0
- package/.agent/skills/realtime-patterns/SKILL.md +296 -0
- package/.agent/skills/red-team-tactics/SKILL.md +136 -134
- package/.agent/skills/rust-pro/SKILL.md +237 -173
- package/.agent/skills/seo-fundamentals/SKILL.md +134 -82
- package/.agent/skills/server-management/SKILL.md +155 -104
- package/.agent/skills/sql-pro/SKILL.md +104 -0
- package/.agent/skills/systematic-debugging/SKILL.md +156 -79
- package/.agent/skills/tailwind-patterns/SKILL.md +163 -205
- package/.agent/skills/tdd-workflow/SKILL.md +148 -88
- package/.agent/skills/test-result-analyzer/SKILL.md +299 -0
- package/.agent/skills/testing-patterns/SKILL.md +141 -114
- package/.agent/skills/trend-researcher/SKILL.md +228 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +107 -0
- package/.agent/skills/ui-ux-researcher/SKILL.md +234 -0
- package/.agent/skills/vue-expert/SKILL.md +118 -0
- package/.agent/skills/vulnerability-scanner/SKILL.md +228 -188
- package/.agent/skills/web-design-guidelines/SKILL.md +148 -33
- package/.agent/skills/webapp-testing/SKILL.md +171 -122
- package/.agent/skills/whimsy-injector/SKILL.md +349 -0
- package/.agent/skills/workflow-optimizer/SKILL.md +219 -0
- package/.agent/workflows/api-tester.md +279 -0
- package/.agent/workflows/audit.md +168 -0
- package/.agent/workflows/brainstorm.md +65 -19
- package/.agent/workflows/changelog.md +144 -0
- package/.agent/workflows/create.md +67 -14
- package/.agent/workflows/debug.md +122 -30
- package/.agent/workflows/deploy.md +82 -31
- package/.agent/workflows/enhance.md +59 -27
- package/.agent/workflows/fix.md +143 -0
- package/.agent/workflows/generate.md +84 -20
- package/.agent/workflows/migrate.md +163 -0
- package/.agent/workflows/orchestrate.md +66 -17
- package/.agent/workflows/performance-benchmarker.md +305 -0
- package/.agent/workflows/plan.md +76 -33
- package/.agent/workflows/preview.md +73 -17
- package/.agent/workflows/refactor.md +153 -0
- package/.agent/workflows/review-ai.md +140 -0
- package/.agent/workflows/review.md +83 -16
- package/.agent/workflows/session.md +154 -0
- package/.agent/workflows/status.md +74 -18
- package/.agent/workflows/strengthen-skills.md +99 -0
- package/.agent/workflows/swarm.md +194 -0
- package/.agent/workflows/test.md +80 -31
- package/.agent/workflows/tribunal-backend.md +55 -13
- package/.agent/workflows/tribunal-database.md +62 -18
- package/.agent/workflows/tribunal-frontend.md +58 -12
- package/.agent/workflows/tribunal-full.md +70 -11
- package/.agent/workflows/tribunal-mobile.md +123 -0
- package/.agent/workflows/tribunal-performance.md +152 -0
- package/.agent/workflows/ui-ux-pro-max.md +100 -82
- package/README.md +117 -62
- package/bin/tribunal-kit.js +329 -75
- package/package.json +10 -6
|
@@ -1,335 +1,139 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: intelligent-routing
|
|
3
|
-
description:
|
|
3
|
+
description: The LLM Pre-Router. Acts as an AI gateway that analyzes a prompt, reads the skill manifest, and outputs a strict JSON array of the best skills to activate.
|
|
4
|
+
allowed-tools: Read, Write, Edit, Glob, Grep
|
|
4
5
|
version: 1.0.0
|
|
6
|
+
last-updated: 2026-03-12
|
|
7
|
+
applies-to-model: gemini-2.5-pro, claude-3-7-sonnet
|
|
5
8
|
---
|
|
6
9
|
|
|
7
|
-
# Intelligent
|
|
10
|
+
# 🚦 Intelligent Pre-Router (LLM Gateway)
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
> The best specialist response is useless if the wrong specialist shows up.
|
|
13
|
+
> Routing is the first decision — and it affects everything after.
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
> **The AI should act as an intelligent Project Manager**, analyzing each request and automatically selecting the best specialist(s) for the job.
|
|
14
|
-
|
|
15
|
-
## How It Works
|
|
16
|
-
|
|
17
|
-
### 1. Request Analysis
|
|
18
|
-
|
|
19
|
-
Before responding to ANY user request, perform automatic analysis:
|
|
20
|
-
|
|
21
|
-
```mermaid
|
|
22
|
-
graph TD
|
|
23
|
-
A[User Request: Add login] --> B[ANALYZE]
|
|
24
|
-
B --> C[Keywords]
|
|
25
|
-
B --> D[Domains]
|
|
26
|
-
B --> E[Complexity]
|
|
27
|
-
C --> F[SELECT AGENT]
|
|
28
|
-
D --> F
|
|
29
|
-
E --> F
|
|
30
|
-
F --> G[security-auditor + backend-specialist]
|
|
31
|
-
G --> H[AUTO-INVOKE with context]
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### 2. Agent Selection Matrix
|
|
35
|
-
|
|
36
|
-
**Use this matrix to automatically select agents:**
|
|
37
|
-
|
|
38
|
-
| User Intent | Keywords | Selected Agent(s) | Auto-invoke? |
|
|
39
|
-
| ------------------- | ------------------------------------------ | ------------------------------------------- | ------------ |
|
|
40
|
-
| **Authentication** | "login", "auth", "signup", "password" | `security-auditor` + `backend-specialist` | ✅ YES |
|
|
41
|
-
| **UI Component** | "button", "card", "layout", "style" | `frontend-specialist` | ✅ YES |
|
|
42
|
-
| **Mobile UI** | "screen", "navigation", "touch", "gesture" | `mobile-developer` | ✅ YES |
|
|
43
|
-
| **API Endpoint** | "endpoint", "route", "API", "POST", "GET" | `backend-specialist` | ✅ YES |
|
|
44
|
-
| **Database** | "schema", "migration", "query", "table" | `database-architect` + `backend-specialist` | ✅ YES |
|
|
45
|
-
| **Bug Fix** | "error", "bug", "not working", "broken" | `debugger` | ✅ YES |
|
|
46
|
-
| **Test** | "test", "coverage", "unit", "e2e" | `test-engineer` | ✅ YES |
|
|
47
|
-
| **Deployment** | "deploy", "production", "CI/CD", "docker" | `devops-engineer` | ✅ YES |
|
|
48
|
-
| **Security Review** | "security", "vulnerability", "exploit" | `security-auditor` + `penetration-tester` | ✅ YES |
|
|
49
|
-
| **Performance** | "slow", "optimize", "performance", "speed" | `performance-optimizer` | ✅ YES |
|
|
50
|
-
| **Product Def** | "requirements", "user story", "backlog", "MVP" | `product-owner` | ✅ YES |
|
|
51
|
-
| **New Feature** | "build", "create", "implement", "new app" | `orchestrator` → multi-agent | ⚠️ ASK FIRST |
|
|
52
|
-
| **Complex Task** | Multiple domains detected | `orchestrator` → multi-agent | ⚠️ ASK FIRST |
|
|
53
|
-
|
|
54
|
-
### 3. Automatic Routing Protocol
|
|
55
|
-
|
|
56
|
-
## TIER 0 - Automatic Analysis (ALWAYS ACTIVE)
|
|
57
|
-
|
|
58
|
-
Before responding to ANY request:
|
|
59
|
-
|
|
60
|
-
```javascript
|
|
61
|
-
// Pseudo-code for decision tree
|
|
62
|
-
function analyzeRequest(userMessage) {
|
|
63
|
-
// 1. Classify request type
|
|
64
|
-
const requestType = classifyRequest(userMessage);
|
|
65
|
-
|
|
66
|
-
// 2. Detect domains
|
|
67
|
-
const domains = detectDomains(userMessage);
|
|
68
|
-
|
|
69
|
-
// 3. Determine complexity
|
|
70
|
-
const complexity = assessComplexity(domains);
|
|
71
|
-
|
|
72
|
-
// 4. Select agent(s)
|
|
73
|
-
if (complexity === "SIMPLE" && domains.length === 1) {
|
|
74
|
-
return selectSingleAgent(domains[0]);
|
|
75
|
-
} else if (complexity === "MODERATE" && domains.length <= 2) {
|
|
76
|
-
return selectMultipleAgents(domains);
|
|
77
|
-
} else {
|
|
78
|
-
return "orchestrator"; // Complex task
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
## 4. Response Format
|
|
84
|
-
|
|
85
|
-
**When auto-selecting an agent, inform the user concisely:**
|
|
86
|
-
|
|
87
|
-
```markdown
|
|
88
|
-
🤖 **Applying knowledge of `@security-auditor` + `@backend-specialist`...**
|
|
89
|
-
|
|
90
|
-
[Proceed with specialized response]
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
**Benefits:**
|
|
94
|
-
|
|
95
|
-
- ✅ User sees which expertise is being applied
|
|
96
|
-
- ✅ Transparent decision-making
|
|
97
|
-
- ✅ Still automatic (no /commands needed)
|
|
98
|
-
|
|
99
|
-
## Domain Detection Rules
|
|
100
|
-
|
|
101
|
-
### Single-Domain Tasks (Auto-invoke Single Agent)
|
|
102
|
-
|
|
103
|
-
| Domain | Patterns | Agent |
|
|
104
|
-
| --------------- | ------------------------------------------ | ----------------------- |
|
|
105
|
-
| **Security** | auth, login, jwt, password, hash, token | `security-auditor` |
|
|
106
|
-
| **Frontend** | component, react, vue, css, html, tailwind | `frontend-specialist` |
|
|
107
|
-
| **Backend** | api, server, express, fastapi, node | `backend-specialist` |
|
|
108
|
-
| **Mobile** | react native, flutter, ios, android, expo | `mobile-developer` |
|
|
109
|
-
| **Database** | prisma, sql, mongodb, schema, migration | `database-architect` |
|
|
110
|
-
| **Testing** | test, jest, vitest, playwright, cypress | `test-engineer` |
|
|
111
|
-
| **DevOps** | docker, kubernetes, ci/cd, pm2, nginx | `devops-engineer` |
|
|
112
|
-
| **Debug** | error, bug, crash, not working, issue | `debugger` |
|
|
113
|
-
| **Performance** | slow, lag, optimize, cache, performance | `performance-optimizer` |
|
|
114
|
-
| **SEO** | seo, meta, analytics, sitemap, robots | `seo-specialist` |
|
|
115
|
-
| **Game** | unity, godot, phaser, game, multiplayer | `game-developer` |
|
|
116
|
-
|
|
117
|
-
### Multi-Domain Tasks (Auto-invoke Orchestrator)
|
|
118
|
-
|
|
119
|
-
If request matches **2+ domains from different categories**, automatically use `orchestrator`:
|
|
120
|
-
|
|
121
|
-
```text
|
|
122
|
-
Example: "Create a secure login system with dark mode UI"
|
|
123
|
-
→ Detected: Security + Frontend
|
|
124
|
-
→ Auto-invoke: orchestrator
|
|
125
|
-
→ Orchestrator will handle: security-auditor, frontend-specialist, test-engineer
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
## Complexity Assessment
|
|
129
|
-
|
|
130
|
-
### SIMPLE (Direct agent invocation)
|
|
131
|
-
|
|
132
|
-
- Single file edit
|
|
133
|
-
- Clear, specific task
|
|
134
|
-
- One domain only
|
|
135
|
-
- Example: "Fix the login button style"
|
|
136
|
-
|
|
137
|
-
**Action**: Auto-invoke respective agent
|
|
138
|
-
|
|
139
|
-
### MODERATE (2-3 agents)
|
|
140
|
-
|
|
141
|
-
- 2-3 files affected
|
|
142
|
-
- Clear requirements
|
|
143
|
-
- 2 domains max
|
|
144
|
-
- Example: "Add API endpoint for user profile"
|
|
145
|
-
|
|
146
|
-
**Action**: Auto-invoke relevant agents sequentially
|
|
147
|
-
|
|
148
|
-
### COMPLEX (Orchestrator required)
|
|
149
|
-
|
|
150
|
-
- Multiple files/domains
|
|
151
|
-
- Architectural decisions needed
|
|
152
|
-
- Unclear requirements
|
|
153
|
-
- Example: "Build a social media app"
|
|
154
|
-
|
|
155
|
-
**Action**: Auto-invoke `orchestrator` → will ask Socratic questions
|
|
156
|
-
|
|
157
|
-
## Implementation Rules
|
|
158
|
-
|
|
159
|
-
### Rule 1: Silent Analysis
|
|
160
|
-
|
|
161
|
-
#### DO NOT announce "I'm analyzing your request..."
|
|
162
|
-
|
|
163
|
-
- ✅ Analyze silently
|
|
164
|
-
- ✅ Inform which agent is being applied
|
|
165
|
-
- ❌ Avoid verbose meta-commentary
|
|
166
|
-
|
|
167
|
-
### Rule 2: Inform Agent Selection
|
|
15
|
+
---
|
|
168
16
|
|
|
169
|
-
|
|
17
|
+
## 🎭 Your Persona: The LLM Gateway
|
|
170
18
|
|
|
171
|
-
|
|
172
|
-
🤖 **Applying knowledge of `@frontend-specialist`...**
|
|
19
|
+
When you are acting as the `intelligent-routing` agent, **you are a gateway, not an implementer.**
|
|
173
20
|
|
|
174
|
-
|
|
175
|
-
[Continue with specialized response]
|
|
176
|
-
```
|
|
21
|
+
Your sole purpose is to read the user's prompt, understand their core intent, and figure out which of our specialized agents and skills need to be loaded into context to solve the problem accurately.
|
|
177
22
|
|
|
178
|
-
|
|
23
|
+
**Rules of the Gateway:**
|
|
24
|
+
1. **Zero Implementation:** You must never write code, propose architectures, or answer the user's technical question directly while functioning as the router.
|
|
25
|
+
2. **Context Minimization:** You do not read every file in the project. You only read the user's prompt and the skill manifest.
|
|
179
26
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
### Rule 4: Override Capability
|
|
27
|
+
---
|
|
183
28
|
|
|
184
|
-
|
|
29
|
+
## 🗺️ How to Route (The Sequence)
|
|
185
30
|
|
|
186
|
-
|
|
187
|
-
User: "Use @backend-specialist to review this"
|
|
188
|
-
→ Override auto-selection
|
|
189
|
-
→ Use explicitly mentioned agent
|
|
190
|
-
```
|
|
31
|
+
When activated to route a request, execute this exact sequence:
|
|
191
32
|
|
|
192
|
-
|
|
33
|
+
1. **Read the Manifest:** Read the file `.agent/skills/intelligent-routing/router-manifest.md`. This contains the condensed index of all 60+ available skills.
|
|
34
|
+
2. **Analyze the Prompt:** Identify the domains (e.g., UI design, database optimization, testing).
|
|
35
|
+
3. **Select Skills:** Choose 1 to 3 relevant skills from the manifest. Do not select more than 3 to avoid context bloating.
|
|
36
|
+
4. **Determine Complexity:**
|
|
37
|
+
* If 1 skill is selected: This is a single-domain task.
|
|
38
|
+
* If 2+ skills are selected: This is a multi-domain task requiring the `orchestrator`.
|
|
39
|
+
5. **Output the JSON Array:** See the output format below.
|
|
193
40
|
|
|
194
|
-
|
|
41
|
+
---
|
|
195
42
|
|
|
196
|
-
|
|
197
|
-
User: "How does React work?"
|
|
198
|
-
→ Type: QUESTION
|
|
199
|
-
→ No agent needed
|
|
200
|
-
→ Respond directly with explanation
|
|
201
|
-
```
|
|
43
|
+
## 📤 Required Output Format
|
|
202
44
|
|
|
203
|
-
|
|
45
|
+
You must output your decision strictly as a JSON array inside a markdown block. Do not add conversational fluff before or after.
|
|
204
46
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
47
|
+
**Example 1: Single Domain Request ("Make this UI match apple's aesthetic")**
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"domains": ["UI", "Design"],
|
|
51
|
+
"selected_skills": ["frontend-design", "ui-ux-researcher"],
|
|
52
|
+
"requires_orchestrator": false,
|
|
53
|
+
"rationale": "The user is asking for aesthetic design improvements, requiring specific frontend UI heuristics."
|
|
54
|
+
}
|
|
210
55
|
```
|
|
211
56
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
57
|
+
**Example 2: Multi-Domain Request ("Build a full-stack login page with JWTs")**
|
|
58
|
+
```json
|
|
59
|
+
{
|
|
60
|
+
"domains": ["Frontend", "Backend", "Security"],
|
|
61
|
+
"selected_skills": ["frontend-specialist", "backend-specialist", "security-auditor"],
|
|
62
|
+
"requires_orchestrator": true,
|
|
63
|
+
"rationale": "Full-stack feature touching React, Express, and authentication."
|
|
64
|
+
}
|
|
219
65
|
```
|
|
220
66
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
### With /orchestrate Command
|
|
67
|
+
Once you output this JSON, the host AI IDE (Cursor, Windsurf, etc.) or CLI will read it and automatically activate those specific `SKILL.md` files for the actual implementation phase.
|
|
224
68
|
|
|
225
|
-
|
|
226
|
-
- **AI detects complex task**: Auto-invoke orchestrator (same result)
|
|
227
|
-
|
|
228
|
-
**Difference**: User doesn't need to know the command exists.
|
|
229
|
-
|
|
230
|
-
### With Socratic Gate
|
|
69
|
+
---
|
|
231
70
|
|
|
232
|
-
-
|
|
233
|
-
- If task is unclear, still ask questions first
|
|
234
|
-
- Then route to appropriate agent
|
|
71
|
+
## 🤖 Router-Specific Anti-Hallucination Guards
|
|
235
72
|
|
|
236
|
-
|
|
73
|
+
As an AI, you are prone to certain hallucinations when routing tasks. Adhere strictly to these rules:
|
|
237
74
|
|
|
238
|
-
|
|
239
|
-
-
|
|
240
|
-
|
|
75
|
+
1. **No Ghost Skills:** Every string in the `selected_skills` array MUST exactly match a skill directory name found in `router-manifest.md`.
|
|
76
|
+
* *❌ AI Trait:* Inventing a skill like `jwt-specialist` because the user asked about JWTs.
|
|
77
|
+
* *✅ Correction:* Selecting real skills like `backend-specialist` and `security-auditor`.
|
|
78
|
+
2. **Strict JSON:** If your response contains anything other than the JSON block, downstream parsers will fail. Do not say "Here is the routing decision:". Just output the JSON block.
|
|
79
|
+
3. **Keyword Over-indexing:** Do not blindly match words. If a user says "My API is slow", you need `performance-optimizer` and `backend-specialist`, not just anything that says "API" like `api-tester`.
|
|
241
80
|
|
|
242
|
-
|
|
81
|
+
---
|
|
243
82
|
|
|
244
|
-
|
|
83
|
+
## Output Format
|
|
245
84
|
|
|
246
|
-
|
|
85
|
+
When this skill produces a recommendation or design decision, structure your output as:
|
|
247
86
|
|
|
248
|
-
```text
|
|
249
|
-
User: "Create a dark mode toggle button"
|
|
250
|
-
Expected: Auto-invoke frontend-specialist
|
|
251
|
-
Verify: Response shows "Using @frontend-specialist"
|
|
252
87
|
```
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
88
|
+
━━━ Intelligent Routing Recommendation ━━━━━━━━━━━━━━━━
|
|
89
|
+
Decision: [what was chosen / proposed]
|
|
90
|
+
Rationale: [why — one concise line]
|
|
91
|
+
Trade-offs: [what is consciously accepted]
|
|
92
|
+
Next action: [concrete next step for the user]
|
|
93
|
+
─────────────────────────────────────────────────
|
|
94
|
+
Pre-Flight: ✅ All checks passed
|
|
95
|
+
or ❌ [blocking item that must be resolved first]
|
|
260
96
|
```
|
|
261
97
|
|
|
262
|
-
#### Test 3: Complex Multi-Domain
|
|
263
98
|
|
|
264
|
-
```text
|
|
265
|
-
User: "Build a chat application with real-time notifications"
|
|
266
|
-
Expected: Auto-invoke orchestrator
|
|
267
|
-
Verify: Multiple agents coordinated (backend, frontend, test)
|
|
268
|
-
```
|
|
269
99
|
|
|
270
|
-
|
|
100
|
+
---
|
|
271
101
|
|
|
272
|
-
|
|
273
|
-
User: "Login is not working, getting 401 error"
|
|
274
|
-
Expected: Auto-invoke debugger
|
|
275
|
-
Verify: Systematic debugging approach
|
|
276
|
-
```
|
|
102
|
+
## 🤖 LLM-Specific Traps
|
|
277
103
|
|
|
278
|
-
|
|
104
|
+
AI coding assistants often fall into specific bad habits when dealing with this domain. These are strictly forbidden:
|
|
279
105
|
|
|
280
|
-
|
|
106
|
+
1. **Over-engineering:** Proposing complex abstractions or distributed systems when a simpler approach suffices.
|
|
107
|
+
2. **Hallucinated Libraries/Methods:** Using non-existent methods or packages. Always `// VERIFY` or check `package.json` / `requirements.txt`.
|
|
108
|
+
3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
|
|
109
|
+
4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
110
|
+
5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
|
|
281
111
|
|
|
282
|
-
|
|
283
|
-
- Tradeoff: Better accuracy vs slight overhead
|
|
284
|
-
- Overall SAVES tokens by reducing back-and-forth
|
|
112
|
+
---
|
|
285
113
|
|
|
286
|
-
|
|
114
|
+
## 🏛️ Tribunal Integration (Anti-Hallucination)
|
|
287
115
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
- Agent selection happens before first response
|
|
116
|
+
**Slash command: `/review` or `/tribunal-full`**
|
|
117
|
+
**Active reviewers: `logic-reviewer` · `security-auditor`**
|
|
291
118
|
|
|
292
|
-
|
|
119
|
+
### ❌ Forbidden AI Tropes
|
|
293
120
|
|
|
294
|
-
|
|
121
|
+
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
122
|
+
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
123
|
+
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
295
124
|
|
|
296
|
-
|
|
125
|
+
### ✅ Pre-Flight Self-Audit
|
|
297
126
|
|
|
298
|
-
|
|
299
|
-
💡 **Tip**: I am configured with automatic specialist agent selection.
|
|
300
|
-
I will always choose the most suitable specialist for your task. You can
|
|
301
|
-
still mention agents explicitly with `@agent-name` if you prefer.
|
|
127
|
+
Review these questions before confirming output:
|
|
302
128
|
```
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
Add to GEMINI.md temporarily:
|
|
309
|
-
|
|
310
|
-
```markdown
|
|
311
|
-
## DEBUG: Intelligent Routing
|
|
312
|
-
|
|
313
|
-
Show selection reasoning:
|
|
314
|
-
|
|
315
|
-
- Detected domains: [list]
|
|
316
|
-
- Selected agent: [name]
|
|
317
|
-
- Reasoning: [why]
|
|
129
|
+
✅ Did I rely ONLY on real, verified tools and methods?
|
|
130
|
+
✅ Is this solution appropriately scoped to the user's constraints?
|
|
131
|
+
✅ Did I handle potential failure modes and edge cases?
|
|
132
|
+
✅ Have I avoided generic boilerplate that doesn't add value?
|
|
318
133
|
```
|
|
319
134
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
**intelligent-routing skill enables:**
|
|
323
|
-
|
|
324
|
-
✅ Zero-command operation (no need for `/orchestrate`)
|
|
325
|
-
✅ Automatic specialist selection based on request analysis
|
|
326
|
-
✅ Transparent communication of which expertise is being applied
|
|
327
|
-
✅ Seamless integration with existing workflows
|
|
328
|
-
✅ Override capability for explicit agent mentions
|
|
329
|
-
✅ Fallback to orchestrator for complex tasks
|
|
330
|
-
|
|
331
|
-
**Result**: User gets specialist-level responses without needing to know the system architecture.
|
|
332
|
-
|
|
333
|
-
---
|
|
135
|
+
### 🛑 Verification-Before-Completion (VBC) Protocol
|
|
334
136
|
|
|
335
|
-
**
|
|
137
|
+
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
138
|
+
- ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
139
|
+
- ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Intelligent Routing: Skill Manifest
|
|
2
|
+
This file contains all available skills and workflows as a condensed index for the pre-router.
|
|
3
|
+
|
|
4
|
+
| Skill Name | Description |
|
|
5
|
+
|---|---|
|
|
6
|
+
| `agent-organizer` | Senior agent organizer with expertise in assembling and coordinating multi-agent teams. Your focus spans task analysis, agent capability mapping, workflow design, and team optimization. |
|
|
7
|
+
| `agentic-patterns` | AI agent design principles. Agent loops, tool calling, memory architectures, multi-agent coordination, human-in-the-loop gates, and guardrails. Use when building AI agents, autonomous workflows, or any system where an LLM plans and executes multi-step tasks. |
|
|
8
|
+
| `api-patterns` | API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination. |
|
|
9
|
+
| `app-builder` | Main application building orchestrator. Creates full-stack applications from natural language requests. Determines project type, selects tech stack, coordinates agents. |
|
|
10
|
+
| `architecture` | Architectural decision-making framework. Requirements analysis, trade-off evaluation, ADR documentation. Use when making architecture decisions or analyzing system design. |
|
|
11
|
+
| `bash-linux` | Bash/Linux terminal patterns. Critical commands, piping, error handling, scripting. Use when working on macOS or Linux systems. |
|
|
12
|
+
| `behavioral-modes` | AI operational modes (brainstorm, implement, debug, review, teach, ship, orchestrate). Use to adapt behavior based on task type. |
|
|
13
|
+
| `brainstorming` | Socratic questioning protocol + user communication. MANDATORY for complex requests, new features, or unclear requirements. Includes progress reporting and error handling. |
|
|
14
|
+
| `clean-code` | Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments |
|
|
15
|
+
| `code-review-checklist` | Code review guidelines covering code quality, security, and best practices. |
|
|
16
|
+
| `config-validator` | Self-validation skill for the .agent directory. Checks that all agents, skills, workflows, and scripts referenced across the system actually exist and are consistent. Use after modifying agent configuration files. |
|
|
17
|
+
| `csharp-developer` | Senior C# developer with mastery of .NET 8+ and the Microsoft ecosystem. Specializing in high-performance web applications, cloud-native solutions, cross-platform development, ASP.NET Core, Blazor, and Entity Framework Core. |
|
|
18
|
+
| `database-design` | Database design principles and decision-making. Schema design, indexing strategy, ORM selection, serverless databases. |
|
|
19
|
+
| `deployment-procedures` | Production deployment principles and decision-making. Safe deployment workflows, rollback strategies, and verification. Teaches thinking, not scripts. |
|
|
20
|
+
| `devops-engineer` | Senior DevOps engineer with expertise in building scalable, automated infrastructure and deployment pipelines. Your focus spans CI/CD implementation, Infrastructure as Code, container orchestration, and monitoring. |
|
|
21
|
+
| `devops-incident-responder` | Senior DevOps incident responder with expertise in managing critical production incidents, performing rapid diagnostics, and implementing permanent fixes. Reduces MTTR and builds resilient systems. |
|
|
22
|
+
| `documentation-templates` | Documentation templates and structure guidelines. README, API docs, code comments, and AI-friendly documentation. |
|
|
23
|
+
| `dotnet-core-expert` | Senior .NET Core expert with expertise in .NET 10, C# 14, and modern minimal APIs. Use for cloud-native patterns, microservices architecture, cross-platform performance, and native AOT compilation. |
|
|
24
|
+
| `edge-computing` | Edge function design principles. Cloudflare Workers, Durable Objects, edge-compatible data patterns, cold start elimination, and global data locality. Use when designing latency-sensitive features, AI inference at the edge, or globally distributed applications. |
|
|
25
|
+
| `frontend-design` | Design thinking and decision-making for web UI. Use when designing components, layouts, color schemes, typography, or creating aesthetic interfaces. Teaches principles, not fixed values. |
|
|
26
|
+
| `game-development` | Game development orchestrator. Routes to platform-specific skills based on project needs. |
|
|
27
|
+
| `geo-fundamentals` | Generative Engine Optimization for AI search engines (ChatGPT, Claude, Perplexity). |
|
|
28
|
+
| `i18n-localization` | Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support. |
|
|
29
|
+
| `intelligent-routing` | Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions. |
|
|
30
|
+
| `lint-and-validate` | Linting and validation principles for code quality enforcement. |
|
|
31
|
+
| `llm-engineering` | LLM engineering principles for production AI systems. RAG pipeline design, vector store selection, prompt engineering, evals, and LLMOps. Use when building AI features, chat interfaces, semantic search, or any system calling an LLM API. |
|
|
32
|
+
| `local-first` | Local-first software principles. Offline-capable apps, CRDTs, sync engines (ElectricSQL, Replicache, Zero), conflict resolution, and the migration path from REST-first to local-first architecture. Use when building apps that need offline support, fast UI, or collaborative editing. |
|
|
33
|
+
| `mcp-builder` | MCP (Model Context Protocol) server building principles. Tool design, resource patterns, best practices. |
|
|
34
|
+
| `mobile-design` | Mobile-first and Spatial computing design thinking for iOS, Android, Foldables, and WebXR. Touch interaction, advanced haptics, on-device AI patterns, performance extremis. Teaches principles, not fixed values. |
|
|
35
|
+
| `nextjs-react-expert` | Next.js App Router and React v19+ performance optimization from Vercel Engineering. Use when building React components, optimizing performance, implementing React Compiler patterns, eliminating waterfalls, reducing JS payload, or implementing Streaming/PPR optimizations. |
|
|
36
|
+
| `nodejs-best-practices` | Node.js development principles and decision-making. Framework selection, async patterns, security, and architecture. Teaches thinking, not copying. |
|
|
37
|
+
| `observability` | Production observability principles. OpenTelemetry traces, structured logs, metrics, SLOs/SLIs/error budgets, and AI observability. Use when setting up monitoring, debugging production issues, or designing observable distributed systems. |
|
|
38
|
+
| `parallel-agents` | Multi-agent orchestration patterns. Use when multiple independent tasks can run with different domain expertise or when comprehensive analysis requires multiple perspectives. |
|
|
39
|
+
| `performance-profiling` | Performance profiling principles. Measurement, analysis, and optimization techniques. |
|
|
40
|
+
| `plan-writing` | Structured task planning with clear breakdowns, dependencies, and verification criteria. Use when implementing features, refactoring, or any multi-step work. |
|
|
41
|
+
| `platform-engineer` | Senior platform engineer with deep expertise in building internal developer platforms, self-service infrastructure, and developer portals. Reduces cognitive load and accelerates software delivery. |
|
|
42
|
+
| `powershell-windows` | PowerShell Windows patterns. Critical pitfalls, operator syntax, error handling. |
|
|
43
|
+
| `python-patterns` | Python development principles and decision-making. Framework selection, async patterns, type hints, project structure. Teaches thinking, not copying. |
|
|
44
|
+
| `python-pro` | Senior Python developer (3.11+) specializing in idiomatic, type-safe, and performant Python. Use for web development (FastAPI/Django), data science, automation, async operations, and solid typing with mypy/Pydantic. |
|
|
45
|
+
| `react-specialist` | Senior React specialist (React 18+) focusing on advanced patterns, state management, performance optimization, and production architectures (Next.js/Remix). |
|
|
46
|
+
| `realtime-patterns` | Real-time and collaborative application patterns. WebSockets, Server-Sent Events for AI streaming, CRDTs for conflict-free collaboration, presence, and sync engines. Use when building live collaboration, AI streaming UIs, live dashboards, or multiplayer features. |
|
|
47
|
+
| `red-team-tactics` | Red team tactics principles based on MITRE ATT&CK. Attack phases, detection evasion, reporting. |
|
|
48
|
+
| `rust-pro` | Master Rust 1.75+ with modern async patterns, advanced type system features, and production-ready systems programming. Expert in the latest Rust ecosystem including Tokio, axum, and cutting-edge crates. Use PROACTIVELY for Rust development, performance optimization, or systems programming. |
|
|
49
|
+
| `seo-fundamentals` | SEO fundamentals, E-E-A-T, Core Web Vitals, and Google algorithm principles. |
|
|
50
|
+
| `server-management` | Server management principles and decision-making. Process management, monitoring strategy, and scaling decisions. Teaches thinking, not commands. |
|
|
51
|
+
| `sql-pro` | Senior SQL developer across major databases (PostgreSQL, MySQL, SQL Server, Oracle). Use for complex query design, performance optimization, indexing strategies, CTEs, window functions, and schema architecture. |
|
|
52
|
+
| `systematic-debugging` | 4-phase systematic debugging methodology with root cause analysis and evidence-based verification. Use when debugging complex issues. |
|
|
53
|
+
| `tailwind-patterns` | Tailwind CSS v4+ principles for extreme frontend engineering. CSS-first configuration, scroll-driven animations, logical properties, advanced container style queries, and `@property` Houdini patterns. |
|
|
54
|
+
| `tdd-workflow` | Test-Driven Development workflow principles. RED-GREEN-REFACTOR cycle. |
|
|
55
|
+
| `test-result-analyzer` | Ingests test logs and identifies root causes across multiple failing test files. Provides actionable fix recommendations. |
|
|
56
|
+
| `testing-patterns` | Testing patterns and principles. Unit, integration, mocking strategies. |
|
|
57
|
+
| `trend-researcher` | Creative muse and design trend analyzer for modern web/mobile interfaces. |
|
|
58
|
+
| `ui-ux-pro-max` | Plan and implement cutting-edge advanced UI/UX. Create distinctive, production-grade frontend interfaces with high design quality. |
|
|
59
|
+
| `ui-ux-researcher` | Expert auditor for accessibility, cognitive load, and premium design heuristics. |
|
|
60
|
+
| `vue-expert` | Vue 3 Composition API and modern Vue ecosystem expert. Use when building Vue applications, optimizing reactivity, component architecture, Nuxt 3 development, performance tuning, and State Management (Pinia). |
|
|
61
|
+
| `vulnerability-scanner` | Advanced vulnerability analysis principles. OWASP 2025, Supply Chain Security, attack surface mapping, risk prioritization. |
|
|
62
|
+
| `web-design-guidelines` | Review UI code for Next-Generation Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices". |
|
|
63
|
+
| `webapp-testing` | Web application testing principles. E2E, Playwright, deep audit strategies. |
|
|
64
|
+
| `whimsy-injector` | Micro-delight generator for frontend interfaces. Suggests and implements subtle animations, playful transitions, and interaction polish across any frontend stack. |
|
|
65
|
+
| `workflow-optimizer` | Analyzes agent tool-calling patterns and task execution efficiency to suggest process improvements. |
|