tribunal-kit 1.0.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 +4 -0
- package/.agent/ARCHITECTURE.md +75 -0
- package/.agent/GEMINI.md +89 -0
- package/.agent/agents/backend-specialist.md +178 -0
- package/.agent/agents/code-archaeologist.md +119 -0
- package/.agent/agents/database-architect.md +164 -0
- package/.agent/agents/debugger.md +151 -0
- package/.agent/agents/dependency-reviewer.md +55 -0
- package/.agent/agents/devops-engineer.md +175 -0
- package/.agent/agents/documentation-writer.md +137 -0
- package/.agent/agents/explorer-agent.md +142 -0
- package/.agent/agents/frontend-reviewer.md +80 -0
- package/.agent/agents/frontend-specialist.md +185 -0
- package/.agent/agents/game-developer.md +184 -0
- package/.agent/agents/logic-reviewer.md +66 -0
- package/.agent/agents/mobile-developer.md +152 -0
- package/.agent/agents/orchestrator.md +140 -0
- package/.agent/agents/penetration-tester.md +131 -0
- package/.agent/agents/performance-optimizer.md +139 -0
- package/.agent/agents/performance-reviewer.md +72 -0
- package/.agent/agents/product-manager.md +108 -0
- package/.agent/agents/product-owner.md +99 -0
- package/.agent/agents/project-planner.md +142 -0
- package/.agent/agents/qa-automation-engineer.md +138 -0
- package/.agent/agents/security-auditor.md +170 -0
- package/.agent/agents/seo-specialist.md +132 -0
- package/.agent/agents/sql-reviewer.md +73 -0
- package/.agent/agents/test-coverage-reviewer.md +81 -0
- package/.agent/agents/test-engineer.md +139 -0
- package/.agent/agents/type-safety-reviewer.md +65 -0
- package/.agent/mcp_config.json +40 -0
- package/.agent/rules/GEMINI.md +206 -0
- package/.agent/scripts/auto_preview.py +180 -0
- package/.agent/scripts/checklist.py +209 -0
- package/.agent/scripts/session_manager.py +120 -0
- package/.agent/scripts/verify_all.py +195 -0
- package/.agent/skills/api-patterns/SKILL.md +81 -0
- package/.agent/skills/api-patterns/api-style.md +42 -0
- package/.agent/skills/api-patterns/auth.md +24 -0
- package/.agent/skills/api-patterns/documentation.md +26 -0
- package/.agent/skills/api-patterns/graphql.md +41 -0
- package/.agent/skills/api-patterns/rate-limiting.md +31 -0
- package/.agent/skills/api-patterns/response.md +37 -0
- package/.agent/skills/api-patterns/rest.md +40 -0
- package/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
- package/.agent/skills/api-patterns/security-testing.md +122 -0
- package/.agent/skills/api-patterns/trpc.md +41 -0
- package/.agent/skills/api-patterns/versioning.md +22 -0
- package/.agent/skills/app-builder/SKILL.md +75 -0
- package/.agent/skills/app-builder/agent-coordination.md +71 -0
- package/.agent/skills/app-builder/feature-building.md +53 -0
- package/.agent/skills/app-builder/project-detection.md +34 -0
- package/.agent/skills/app-builder/scaffolding.md +118 -0
- package/.agent/skills/app-builder/tech-stack.md +40 -0
- package/.agent/skills/app-builder/templates/SKILL.md +39 -0
- package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +122 -0
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +122 -0
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +169 -0
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +134 -0
- package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +119 -0
- package/.agent/skills/architecture/SKILL.md +55 -0
- package/.agent/skills/architecture/context-discovery.md +43 -0
- package/.agent/skills/architecture/examples.md +94 -0
- package/.agent/skills/architecture/pattern-selection.md +68 -0
- package/.agent/skills/architecture/patterns-reference.md +50 -0
- package/.agent/skills/architecture/trade-off-analysis.md +77 -0
- package/.agent/skills/bash-linux/SKILL.md +199 -0
- package/.agent/skills/behavioral-modes/SKILL.md +242 -0
- package/.agent/skills/brainstorming/SKILL.md +163 -0
- package/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
- package/.agent/skills/clean-code/SKILL.md +201 -0
- package/.agent/skills/code-review-checklist/SKILL.md +109 -0
- package/.agent/skills/database-design/SKILL.md +52 -0
- package/.agent/skills/database-design/database-selection.md +43 -0
- package/.agent/skills/database-design/indexing.md +39 -0
- package/.agent/skills/database-design/migrations.md +48 -0
- package/.agent/skills/database-design/optimization.md +36 -0
- package/.agent/skills/database-design/orm-selection.md +30 -0
- package/.agent/skills/database-design/schema-design.md +56 -0
- package/.agent/skills/database-design/scripts/schema_validator.py +172 -0
- package/.agent/skills/deployment-procedures/SKILL.md +241 -0
- package/.agent/skills/doc.md +177 -0
- package/.agent/skills/documentation-templates/SKILL.md +194 -0
- package/.agent/skills/frontend-design/SKILL.md +418 -0
- package/.agent/skills/frontend-design/animation-guide.md +331 -0
- package/.agent/skills/frontend-design/color-system.md +311 -0
- package/.agent/skills/frontend-design/decision-trees.md +418 -0
- package/.agent/skills/frontend-design/motion-graphics.md +306 -0
- package/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/.agent/skills/frontend-design/typography-system.md +345 -0
- package/.agent/skills/frontend-design/ux-psychology.md +1116 -0
- package/.agent/skills/frontend-design/visual-effects.md +383 -0
- package/.agent/skills/game-development/2d-games/SKILL.md +119 -0
- package/.agent/skills/game-development/3d-games/SKILL.md +135 -0
- package/.agent/skills/game-development/SKILL.md +167 -0
- package/.agent/skills/game-development/game-art/SKILL.md +185 -0
- package/.agent/skills/game-development/game-audio/SKILL.md +190 -0
- package/.agent/skills/game-development/game-design/SKILL.md +129 -0
- package/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
- package/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
- package/.agent/skills/game-development/pc-games/SKILL.md +144 -0
- package/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
- package/.agent/skills/game-development/web-games/SKILL.md +150 -0
- package/.agent/skills/geo-fundamentals/SKILL.md +156 -0
- package/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/.agent/skills/i18n-localization/SKILL.md +154 -0
- package/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/.agent/skills/intelligent-routing/SKILL.md +335 -0
- package/.agent/skills/lint-and-validate/SKILL.md +45 -0
- package/.agent/skills/lint-and-validate/scripts/lint_runner.py +184 -0
- package/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/.agent/skills/mcp-builder/SKILL.md +176 -0
- package/.agent/skills/mobile-design/SKILL.md +394 -0
- package/.agent/skills/mobile-design/decision-trees.md +516 -0
- package/.agent/skills/mobile-design/mobile-backend.md +491 -0
- package/.agent/skills/mobile-design/mobile-color-system.md +420 -0
- package/.agent/skills/mobile-design/mobile-debugging.md +122 -0
- package/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/.agent/skills/mobile-design/mobile-navigation.md +458 -0
- package/.agent/skills/mobile-design/mobile-performance.md +767 -0
- package/.agent/skills/mobile-design/mobile-testing.md +356 -0
- package/.agent/skills/mobile-design/mobile-typography.md +433 -0
- package/.agent/skills/mobile-design/platform-android.md +666 -0
- package/.agent/skills/mobile-design/platform-ios.md +561 -0
- package/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/.agent/skills/mobile-design/touch-psychology.md +537 -0
- package/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +312 -0
- package/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +240 -0
- package/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +490 -0
- package/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +264 -0
- package/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +581 -0
- package/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +432 -0
- package/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +684 -0
- package/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +150 -0
- package/.agent/skills/nextjs-react-expert/SKILL.md +286 -0
- package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +222 -0
- package/.agent/skills/nextjs-react-expert/scripts/react_performance_checker.py +252 -0
- package/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
- package/.agent/skills/parallel-agents/SKILL.md +175 -0
- package/.agent/skills/performance-profiling/SKILL.md +143 -0
- package/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/.agent/skills/plan-writing/SKILL.md +152 -0
- package/.agent/skills/powershell-windows/SKILL.md +167 -0
- package/.agent/skills/python-patterns/SKILL.md +441 -0
- package/.agent/skills/red-team-tactics/SKILL.md +199 -0
- package/.agent/skills/rust-pro/SKILL.md +176 -0
- package/.agent/skills/seo-fundamentals/SKILL.md +129 -0
- package/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/.agent/skills/server-management/SKILL.md +161 -0
- package/.agent/skills/systematic-debugging/SKILL.md +109 -0
- package/.agent/skills/tailwind-patterns/SKILL.md +269 -0
- package/.agent/skills/tdd-workflow/SKILL.md +149 -0
- package/.agent/skills/testing-patterns/SKILL.md +178 -0
- package/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
- package/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
- package/.agent/skills/vulnerability-scanner/checklists.md +121 -0
- package/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/.agent/skills/web-design-guidelines/SKILL.md +57 -0
- package/.agent/skills/webapp-testing/SKILL.md +187 -0
- package/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/.agent/workflows/brainstorm.md +100 -0
- package/.agent/workflows/create.md +86 -0
- package/.agent/workflows/debug.md +104 -0
- package/.agent/workflows/deploy.md +102 -0
- package/.agent/workflows/enhance.md +107 -0
- package/.agent/workflows/generate.md +100 -0
- package/.agent/workflows/orchestrate.md +102 -0
- package/.agent/workflows/plan.md +108 -0
- package/.agent/workflows/preview.md +81 -0
- package/.agent/workflows/review.md +88 -0
- package/.agent/workflows/status.md +69 -0
- package/.agent/workflows/test.md +117 -0
- package/.agent/workflows/tribunal-backend.md +69 -0
- package/.agent/workflows/tribunal-database.md +88 -0
- package/.agent/workflows/tribunal-frontend.md +69 -0
- package/.agent/workflows/tribunal-full.md +77 -0
- package/.agent/workflows/ui-ux-pro-max.md +153 -0
- package/LICENSE +21 -0
- package/README.md +136 -0
- package/bin/tribunal-kit.js +289 -0
- package/package.json +34 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Backend-specific Tribunal. Runs Logic + Security + Dependency + Types. Use for API routes, server logic, and auth code.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /tribunal-backend — Server-Side Audit
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Focused audit for backend and API code. Paste server-side code and these four reviewers analyze it simultaneously.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Active Reviewers
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
logic-reviewer → Invented stdlib methods, impossible conditional branches
|
|
19
|
+
security-auditor → Auth bypass, SQL injection, secrets in code, rate limiting gaps
|
|
20
|
+
dependency-reviewer → Any import not found in your package.json
|
|
21
|
+
type-safety-reviewer → Implicit any, unguarded optional access, missing return types
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## What Gets Flagged
|
|
27
|
+
|
|
28
|
+
| Reviewer | Common Backend Catches |
|
|
29
|
+
|---|---|
|
|
30
|
+
| logic | Calling `req.user` after a check that could pass with null |
|
|
31
|
+
| security | `jwt.verify()` without `algorithms` option — allows `alg:none` attack |
|
|
32
|
+
| dependency | `import { z } from 'zod'` but zod not in package.json |
|
|
33
|
+
| type-safety | `async function handler(req, res)` — no types on req or res |
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Report Format
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
━━━ Backend Audit ━━━━━━━━━━━━━━━━━━━━━━━
|
|
41
|
+
|
|
42
|
+
logic-reviewer: ✅ APPROVED
|
|
43
|
+
security-auditor: ❌ REJECTED
|
|
44
|
+
dependency-reviewer: ✅ APPROVED
|
|
45
|
+
type-safety-reviewer: ⚠️ WARNING
|
|
46
|
+
|
|
47
|
+
━━━ Issues ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
48
|
+
|
|
49
|
+
security-auditor:
|
|
50
|
+
❌ Critical — Line 44
|
|
51
|
+
JWT algorithm not enforced: jwt.verify(token, secret)
|
|
52
|
+
Fix: jwt.verify(token, secret, { algorithms: ['HS256'] })
|
|
53
|
+
|
|
54
|
+
type-safety-reviewer:
|
|
55
|
+
⚠️ Medium — Line 10
|
|
56
|
+
Request body typed as any — add Zod schema parse at boundary
|
|
57
|
+
|
|
58
|
+
━━━ Verdict: NEEDS FIXES ━━━━━━━━━━━━━━━━
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Usage
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
/tribunal-backend [paste API route code]
|
|
67
|
+
/tribunal-backend [paste auth middleware]
|
|
68
|
+
/tribunal-backend src/routes/user.ts
|
|
69
|
+
```
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Database-specific Tribunal. Runs Logic + Security + SQL reviewers. Use for queries, migrations, and ORM code.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /tribunal-database — Data Layer Audit
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Focused audit for SQL queries, ORM code, schema changes, and migrations. Provide your schema alongside the code for the most accurate analysis.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Active Reviewers
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
logic-reviewer → ORM methods that don't exist, impossible WHERE conditions
|
|
19
|
+
security-auditor → Injection surfaces, sensitive data exposed without masking
|
|
20
|
+
sql-reviewer → String interpolation in queries, N+1 patterns,
|
|
21
|
+
references to tables/columns not in the schema
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Important: Provide Your Schema
|
|
27
|
+
|
|
28
|
+
The `sql-reviewer` can only validate column/table names if it has the schema:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
/tribunal-database
|
|
32
|
+
|
|
33
|
+
Schema:
|
|
34
|
+
CREATE TABLE users (id UUID, email TEXT, created_at TIMESTAMPTZ);
|
|
35
|
+
CREATE TABLE posts (id UUID, user_id UUID REFERENCES users(id), title TEXT);
|
|
36
|
+
|
|
37
|
+
Code to audit:
|
|
38
|
+
[paste query or ORM code here]
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Without the schema, the reviewer flags all table/column references as `[VERIFY — schema not provided]`.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## What Gets Flagged
|
|
46
|
+
|
|
47
|
+
| Reviewer | Common Database Catches |
|
|
48
|
+
|---|---|
|
|
49
|
+
| logic | `prisma.user.findFirstOrCreate()` — not a real Prisma method |
|
|
50
|
+
| security | `db.query(\`SELECT * WHERE id = ${req.params.id}\`)` — injection |
|
|
51
|
+
| sql | `SELECT * FROM payments` when `payments` table not in schema |
|
|
52
|
+
| sql | A loop with a `SELECT` inside — N+1 query pattern |
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Report Format
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
━━━ Database Audit ━━━━━━━━━━━━━━━━━━━━━━
|
|
60
|
+
|
|
61
|
+
logic-reviewer: ✅ APPROVED
|
|
62
|
+
security-auditor: ❌ REJECTED
|
|
63
|
+
sql-reviewer: ❌ REJECTED
|
|
64
|
+
|
|
65
|
+
━━━ Issues ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
66
|
+
|
|
67
|
+
security-auditor:
|
|
68
|
+
❌ Critical — Line 6
|
|
69
|
+
SQL injection: string interpolation in query
|
|
70
|
+
Fix: Use $1 parameterized placeholder
|
|
71
|
+
|
|
72
|
+
sql-reviewer:
|
|
73
|
+
❌ High — Line 19
|
|
74
|
+
N+1 detected: SELECT inside for-loop
|
|
75
|
+
Fix: Batch with WHERE id = ANY($1) or use JOIN
|
|
76
|
+
|
|
77
|
+
━━━ Verdict: NEEDS FIXES ━━━━━━━━━━━━━━━━
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Usage
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
/tribunal-database [paste query with schema]
|
|
86
|
+
/tribunal-database src/repositories/userRepo.ts
|
|
87
|
+
/tribunal-database [paste Prisma query]
|
|
88
|
+
```
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Frontend + React specific Tribunal. Runs Logic + Security + Frontend + Types. Use for React components, hooks, and UI code.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /tribunal-frontend — UI & React Audit
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Focused audit for React, Next.js, and frontend code. Four reviewers analyze it simultaneously for framework-specific issues that generic reviews miss.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Active Reviewers
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
logic-reviewer → Non-existent React APIs, impossible render conditions
|
|
19
|
+
security-auditor → XSS via dangerouslySetInnerHTML, exposed tokens in state
|
|
20
|
+
frontend-reviewer → Hooks violations, missing dep arrays, direct state mutation
|
|
21
|
+
type-safety-reviewer → Untyped props, any in hooks, unsafe DOM ref usage
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## What Gets Flagged
|
|
27
|
+
|
|
28
|
+
| Reviewer | Common Frontend Catches |
|
|
29
|
+
|---|---|
|
|
30
|
+
| logic | `useState.useAsync()` — not a real React API |
|
|
31
|
+
| security | `dangerouslySetInnerHTML={{ __html: userInput }}` — XSS |
|
|
32
|
+
| frontend | `useEffect(() => {...}, [])` with a prop used inside — stale closure |
|
|
33
|
+
| type-safety | `function Card(props: any)` — no defined prop interface |
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Report Format
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
━━━ Frontend Audit ━━━━━━━━━━━━━━━━━━━━━━
|
|
41
|
+
|
|
42
|
+
logic-reviewer: ✅ APPROVED
|
|
43
|
+
security-auditor: ✅ APPROVED
|
|
44
|
+
frontend-reviewer: ❌ REJECTED
|
|
45
|
+
type-safety: ⚠️ WARNING
|
|
46
|
+
|
|
47
|
+
━━━ Issues ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
48
|
+
|
|
49
|
+
frontend-reviewer:
|
|
50
|
+
❌ High — Line 18
|
|
51
|
+
Missing dep: userId used in useEffect but not in dep array
|
|
52
|
+
Fix: }, [userId])
|
|
53
|
+
|
|
54
|
+
type-safety-reviewer:
|
|
55
|
+
⚠️ Medium — Line 3
|
|
56
|
+
props: any — define a typed interface for this component
|
|
57
|
+
|
|
58
|
+
━━━ Verdict: NEEDS FIXES ━━━━━━━━━━━━━━━━
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Usage
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
/tribunal-frontend [paste component code]
|
|
67
|
+
/tribunal-frontend [paste custom hook]
|
|
68
|
+
/tribunal-frontend src/components/UserCard.tsx
|
|
69
|
+
```
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run ALL 8 Tribunal reviewer agents simultaneously. Maximum hallucination coverage. Use before merging any AI-generated code.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /tribunal-full — Full Panel Review
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
Paste code. All 8 reviewers analyze it simultaneously. Maximum coverage, no domain gaps.
|
|
12
|
+
|
|
13
|
+
Use this before merging any AI-generated code, or when you're not sure which domain a piece of code sits in.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Who Runs
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
logic-reviewer → Hallucinated methods, impossible logic, undefined refs
|
|
21
|
+
security-auditor → OWASP Top 10, injection, secrets, auth bypass
|
|
22
|
+
dependency-reviewer → Imports not found in package.json
|
|
23
|
+
type-safety-reviewer → any, unsafe casts, unguarded access
|
|
24
|
+
sql-reviewer → Injection via interpolation, N+1, invented schema
|
|
25
|
+
frontend-reviewer → Hooks violations, missing dep arrays, state mutation
|
|
26
|
+
performance-reviewer → O(n²), blocking I/O, memory allocation anti-patterns
|
|
27
|
+
test-coverage-reviewer → Tautology tests, no-assertion specs, over-mocking
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
All 8 run in parallel. You wait for all verdicts before seeing the result.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Report Format
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
━━━ Full Tribunal Audit ━━━━━━━━━━━━━━━━━━━━━
|
|
38
|
+
|
|
39
|
+
logic-reviewer: ✅ APPROVED
|
|
40
|
+
security-auditor: ❌ REJECTED
|
|
41
|
+
dependency-reviewer: ✅ APPROVED
|
|
42
|
+
type-safety-reviewer: ⚠️ WARNING
|
|
43
|
+
sql-reviewer: ✅ APPROVED
|
|
44
|
+
frontend-reviewer: ✅ APPROVED
|
|
45
|
+
performance-reviewer: ✅ APPROVED
|
|
46
|
+
test-coverage-reviewer: ❌ REJECTED
|
|
47
|
+
|
|
48
|
+
━━━ Issues ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
49
|
+
|
|
50
|
+
security-auditor:
|
|
51
|
+
❌ Critical — Line 12
|
|
52
|
+
SQL injection: db.query(`WHERE id = ${id}`)
|
|
53
|
+
Fix: db.query('WHERE id = $1', [id])
|
|
54
|
+
|
|
55
|
+
test-coverage-reviewer:
|
|
56
|
+
❌ High — Line 45-60
|
|
57
|
+
Tautology test: expect(fn(x)).toBe(fn(x)) — always passes
|
|
58
|
+
|
|
59
|
+
type-safety-reviewer:
|
|
60
|
+
⚠️ Medium — Line 7
|
|
61
|
+
Implicit any in parameter: function (data) — add explicit type
|
|
62
|
+
|
|
63
|
+
━━━ Verdict ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
64
|
+
|
|
65
|
+
2 REJECTED. Fix all issues before this code reaches your codebase.
|
|
66
|
+
1 WARNING — review before approving.
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## When to Use This
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
/tribunal-full [paste any code]
|
|
75
|
+
/tribunal-full before merging
|
|
76
|
+
/tribunal-full when you're unsure which domain applies
|
|
77
|
+
```
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Plan and implement UI
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /ui-ux-pro-max — Advanced UI/UX Design Mode
|
|
6
|
+
|
|
7
|
+
$ARGUMENTS
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
This command activates the highest-fidelity UI/UX workflow. It combines deep design thinking, component architecture, and real-time feedback — not just "generate a pretty layout."
|
|
12
|
+
|
|
13
|
+
> This is not a shortcut. It's a full design session.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## What Makes This Different From `/create`
|
|
18
|
+
|
|
19
|
+
`/create` builds features. `/ui-ux-pro-max` obsesses over the craft:
|
|
20
|
+
|
|
21
|
+
- Color decisions backed by contrast ratios and optical principles — not "looks nice"
|
|
22
|
+
- Typography choices based on reading distance, weight hierarchy, and scale
|
|
23
|
+
- Layout that solves the actual user flow, not the common template
|
|
24
|
+
- Interaction states for every element (hover, focus, active, loading, error, empty)
|
|
25
|
+
- Accessibility by default — not retrofitted
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Design Rules (Always Active in This Mode)
|
|
30
|
+
|
|
31
|
+
### Color
|
|
32
|
+
- No purple/violet as primary color — most overused AI design choice
|
|
33
|
+
- All text must pass WCAG AA contrast (4.5:1 minimum)
|
|
34
|
+
- Color palette derived from a single base hue with rotational logic — not random picks
|
|
35
|
+
- No pure black backgrounds (`#000`) — use `#090909` to `#121212` for perceived depth
|
|
36
|
+
|
|
37
|
+
### Typography
|
|
38
|
+
- Google Fonts only if you have the `<link>` to prove it exists — no invented font names
|
|
39
|
+
- Minimum 16px body text on mobile
|
|
40
|
+
- Line height between 1.4–1.6 for body, 1.1–1.2 for headings
|
|
41
|
+
- No more than 3 font weights in one component
|
|
42
|
+
|
|
43
|
+
### Layout
|
|
44
|
+
- No standard hero (left text / right illustration) without a compelling reason
|
|
45
|
+
- Section max-width: 1200px for content, 720px for text-heavy content
|
|
46
|
+
- 8px spacing grid — all padding and margin values are multiples of 8
|
|
47
|
+
|
|
48
|
+
### Interaction
|
|
49
|
+
- Every interactive element has: default, hover, focus, active, and disabled states
|
|
50
|
+
- Focus rings must be visible — never `outline: none` without a styled alternative
|
|
51
|
+
- Loading states for anything async — no silent spinners
|
|
52
|
+
- Error states with actionable copy — not just "Error occurred"
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## The Design Session Protocol
|
|
57
|
+
|
|
58
|
+
### Step 1 — Problem Before Pixels
|
|
59
|
+
|
|
60
|
+
Answer these before designing anything:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
Who is the user? (not "general users" — a specific persona)
|
|
64
|
+
What is the one thing this UI must make easy?
|
|
65
|
+
What is the emotional tone? (serious, playful, professional, urgent)
|
|
66
|
+
What does the user do after this screen?
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Step 2 — Layout Skeleton (No Colors yet)
|
|
70
|
+
|
|
71
|
+
Define the structure:
|
|
72
|
+
- What regions exist? (nav, hero, content, sidebar, footer)
|
|
73
|
+
- What is the visual hierarchy? (#1 most important thing → #2 → #3)
|
|
74
|
+
- What flows from top to bottom when the user scrolls?
|
|
75
|
+
|
|
76
|
+
### Step 3 — Color + Typography System
|
|
77
|
+
|
|
78
|
+
Pick once, use consistently:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
Base hue: [HSL value]
|
|
82
|
+
Primary: [hue, full saturation]
|
|
83
|
+
Background: [hue, 2–5% saturation, 6–12% lightness for dark]
|
|
84
|
+
Surface: [background + 4–6% lightness]
|
|
85
|
+
Text primary: [96–98% lightness on dark]
|
|
86
|
+
Text secondary: [65–70% lightness on dark]
|
|
87
|
+
Accent: [complementary hue, high saturation]
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Step 4 — Component Build (Tribunal: logic + frontend)
|
|
91
|
+
|
|
92
|
+
Every component built goes through `/tribunal-frontend` before being shown.
|
|
93
|
+
|
|
94
|
+
### Step 5 — Interaction Layer
|
|
95
|
+
|
|
96
|
+
Define CSS transitions for every state change:
|
|
97
|
+
```css
|
|
98
|
+
transition: all 0.15s ease; /* for micro-interactions */
|
|
99
|
+
transition: all 0.25s ease; /* for layout transitions */
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Step 6 — Accessibility Audit
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
✅ All images have alt attributes
|
|
106
|
+
✅ Focus order follows visual order
|
|
107
|
+
✅ Color is not the only indicator of state (add icon or text)
|
|
108
|
+
✅ Touch targets minimum 44px × 44px on mobile
|
|
109
|
+
✅ ARIA roles on custom interactive elements
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## 🏛️ Anti-Hallucination Rules for UI
|
|
115
|
+
|
|
116
|
+
- **No invented Google Fonts** — verify every font name at fonts.google.com before using it
|
|
117
|
+
- **No invented CSS properties** — `backdrop-filter` needs vendor prefix in some browsers; write `// VERIFY: check browser support`
|
|
118
|
+
- **Contrast ratios must be real** — don't claim AA compliance without checking the actual ratio
|
|
119
|
+
- **No placeholder images** — generate real images or use a placeholder service with documented URL format
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## Output Format
|
|
124
|
+
|
|
125
|
+
Each step produces:
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
📐 Layout skeleton: [description or ASCII diagram]
|
|
129
|
+
|
|
130
|
+
🎨 Color system:
|
|
131
|
+
Background: #[hex]
|
|
132
|
+
Surface: #[hex]
|
|
133
|
+
Primary text: #[hex]
|
|
134
|
+
Accent: #[hex]
|
|
135
|
+
Contrast: [ratio]:1 → AA [pass|fail]
|
|
136
|
+
|
|
137
|
+
🧱 Component: [name]
|
|
138
|
+
Tribunal: [verdict]
|
|
139
|
+
|
|
140
|
+
♿ Accessibility:
|
|
141
|
+
[checklist result]
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Usage
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
/ui-ux-pro-max design a SaaS dashboard homepage
|
|
150
|
+
/ui-ux-pro-max build a pricing page that converts
|
|
151
|
+
/ui-ux-pro-max create a mobile-first landing page for a productivity app
|
|
152
|
+
/ui-ux-pro-max redesign the login and registration flow
|
|
153
|
+
```
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Tribunal Anti-Hallucination Agent Kit
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# Tribunal Anti-Hallucination Agent Kit
|
|
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.
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Quick Install
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npx tribunal-kit init
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Or install globally and use anywhere:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install -g tribunal-kit
|
|
18
|
+
tribunal-kit init
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
This installs the `.agent/` folder containing all agents, workflows, skills, and scripts into your project.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
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
|
+
---
|
|
38
|
+
|
|
39
|
+
## What's Included
|
|
40
|
+
|
|
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) |
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## How It Works
|
|
51
|
+
|
|
52
|
+
### Auto-Agent Routing
|
|
53
|
+
|
|
54
|
+
No need to mention agents explicitly. The system automatically detects the right specialist:
|
|
55
|
+
|
|
56
|
+
```
|
|
57
|
+
You: "Add JWT authentication"
|
|
58
|
+
AI: 🤖 Applying @security-auditor + @backend-specialist...
|
|
59
|
+
|
|
60
|
+
You: "Fix the dark mode button"
|
|
61
|
+
AI: 🤖 Applying @frontend-specialist...
|
|
62
|
+
|
|
63
|
+
You: "Login returns 500 error"
|
|
64
|
+
AI: 🤖 Applying @debugger for systematic analysis...
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### The Tribunal Pipeline
|
|
68
|
+
|
|
69
|
+
Every generated code goes through parallel reviewers before you see it:
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
You type /generate →
|
|
73
|
+
Maker generates at low temperature →
|
|
74
|
+
Reviewers audit in parallel (logic, security, types, ...) →
|
|
75
|
+
Human Gate: you approve the diff before it writes to disk
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Slash Commands
|
|
81
|
+
|
|
82
|
+
| Command | Description |
|
|
83
|
+
|---|---|
|
|
84
|
+
| `/generate` | Full Tribunal pipeline: generate → review → approve |
|
|
85
|
+
| `/review` | Audit existing code — no generation |
|
|
86
|
+
| `/tribunal-full` | All 8 reviewers simultaneously |
|
|
87
|
+
| `/tribunal-backend` | Logic + Security + Dependency + Types |
|
|
88
|
+
| `/tribunal-frontend` | Logic + Security + Frontend + Types |
|
|
89
|
+
| `/tribunal-database` | Logic + Security + SQL |
|
|
90
|
+
| `/brainstorm` | Explore options before implementation |
|
|
91
|
+
| `/create` | Build new features or apps |
|
|
92
|
+
| `/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
|
+
| `/preview` | Local dev server control |
|
|
99
|
+
| `/status` | Tribunal session dashboard |
|
|
100
|
+
| `/ui-ux-pro-max` | Advanced UI/UX design workflow |
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## CLI Reference
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
tribunal-kit init # Install into current directory
|
|
108
|
+
tribunal-kit init --force # Overwrite existing .agent/ folder
|
|
109
|
+
tribunal-kit init --path ./my-app # Install in specific directory
|
|
110
|
+
tribunal-kit init --quiet # Suppress output (for CI/CD)
|
|
111
|
+
tribunal-kit init --dry-run # Preview without writing files
|
|
112
|
+
tribunal-kit update # Re-install to get latest version
|
|
113
|
+
tribunal-kit status # Check installation status
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Utility Scripts (after install)
|
|
119
|
+
|
|
120
|
+
```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
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Compatible IDEs
|
|
130
|
+
|
|
131
|
+
| IDE | Support |
|
|
132
|
+
|---|---|
|
|
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` |
|