tribunal-kit 5.8.4 → 6.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/ARCHITECTURE.md +219 -215
- package/.agent/agents/accessibility-reviewer.md +66 -151
- package/.agent/agents/ai-code-reviewer.md +22 -2
- package/.agent/agents/anti-pattern-reviewer.md +99 -0
- package/.agent/agents/api-architect.md +19 -2
- package/.agent/agents/backend-specialist.md +25 -3
- package/.agent/agents/cloud-engineer.md +21 -0
- package/.agent/agents/code-archaeologist.md +20 -3
- package/.agent/agents/complexity-reviewer.md +22 -2
- package/.agent/agents/database-architect.md +24 -3
- package/.agent/agents/db-latency-auditor.md +22 -2
- package/.agent/agents/debugger.md +19 -3
- package/.agent/agents/dependency-reviewer.md +19 -2
- package/.agent/agents/devops-engineer.md +24 -3
- package/.agent/agents/documentation-writer.md +21 -3
- package/.agent/agents/explorer-agent.md +21 -3
- package/.agent/agents/frontend-reviewer.md +19 -3
- package/.agent/agents/frontend-specialist.md +72 -224
- package/.agent/agents/game-developer.md +22 -3
- package/.agent/agents/interaction-reviewer.md +118 -0
- package/.agent/agents/logic-reviewer.md +18 -3
- package/.agent/agents/minimalist-reviewer.md +98 -0
- package/.agent/agents/mobile-developer.md +21 -3
- package/.agent/agents/mobile-reviewer.md +22 -2
- package/.agent/agents/orchestrator.md +19 -3
- package/.agent/agents/penetration-tester.md +22 -3
- package/.agent/agents/performance-optimizer.md +21 -3
- package/.agent/agents/performance-reviewer.md +2 -0
- package/.agent/agents/precedence-reviewer.md +19 -5
- package/.agent/agents/product-manager.md +20 -3
- package/.agent/agents/product-owner.md +22 -1
- package/.agent/agents/product-reviewer.md +98 -0
- package/.agent/agents/project-planner.md +19 -3
- package/.agent/agents/qa-automation-engineer.md +24 -3
- package/.agent/agents/resilience-reviewer.md +21 -2
- package/.agent/agents/schema-reviewer.md +21 -2
- package/.agent/agents/security-auditor.md +7 -1
- package/.agent/agents/seo-specialist.md +18 -3
- package/.agent/agents/sql-reviewer.md +22 -2
- package/.agent/agents/supervisor-agent.md +22 -3
- package/.agent/agents/swarm-worker-registry.md +7 -0
- package/.agent/agents/system-architect.md +19 -0
- package/.agent/agents/test-coverage-reviewer.md +22 -2
- package/.agent/agents/test-engineer.md +21 -2
- package/.agent/agents/throughput-optimizer.md +22 -2
- package/.agent/agents/type-safety-reviewer.md +21 -2
- package/.agent/agents/ui-ux-auditor.md +44 -242
- package/.agent/agents/ui-visual-auditor.md +99 -0
- package/.agent/agents/ux-reviewer.md +104 -0
- package/.agent/agents/visual-reviewer.md +98 -0
- package/.agent/agents/vitals-reviewer.md +23 -2
- package/.agent/history/README.md +53 -0
- package/.agent/history/case-law/cases/template-case.json +19 -0
- package/.agent/history/integrity_manifest.json +131 -33
- package/.agent/history/memory/.memory.idx +1581 -1
- package/.agent/history/memory/MEMORY.md +105 -1
- package/.agent/routing_index.json +272 -690
- package/.agent/rules/GEMINI.md +10 -12
- package/.agent/rules/GEMINI_PLANNER.md +84 -0
- package/.agent/scripts/_utils.js +28 -7
- package/.agent/scripts/case_law_manager.js +2 -0
- package/.agent/scripts/context_broker.js +152 -19
- package/.agent/scripts/guardrail_engine.js +60 -5
- package/.agent/scripts/impact_classifier.js +167 -0
- package/.agent/scripts/integrity_manifest.js +10 -4
- package/.agent/scripts/marathon_harness.js +10 -1
- package/.agent/scripts/minimal_change_engine.js +437 -0
- package/.agent/scripts/pipeline_engine.js +856 -0
- package/.agent/scripts/skill_evolution.js +36 -21
- package/.agent/scripts/socratic_gate_policy.js +60 -0
- package/.agent/scripts/swarm_dispatcher.js +65 -6
- package/.agent/scripts/token_budget_broker.js +52 -0
- package/.agent/scripts/verify_all.js +13 -0
- package/.agent/scripts/visual_audit.js +92 -0
- package/.agent/skills/12-principles-of-animation/SKILL.md +19 -10
- package/.agent/skills/60fps-animation/SKILL.md +19 -10
- package/.agent/skills/accessible-animation/SKILL.md +19 -10
- package/.agent/skills/adapt/SKILL.md +19 -10
- package/.agent/skills/advanced-rag-pipelines/SKILL.md +21 -3
- package/.agent/skills/agent-organizer/SKILL.md +21 -7
- package/.agent/skills/agentic-patterns/SKILL.md +19 -7
- package/.agent/skills/ai-prompt-injection-defense/SKILL.md +21 -7
- package/.agent/skills/animation-on-scroll/SKILL.md +19 -10
- package/.agent/skills/animation-systems/SKILL.md +19 -10
- package/.agent/skills/antfu-conventions/SKILL.md +21 -10
- package/.agent/skills/api-patterns/SKILL.md +21 -7
- package/.agent/skills/api-patterns/scripts/__pycache__/api_validator.cpython-311.pyc +0 -0
- package/.agent/skills/api-security-auditor/SKILL.md +21 -7
- package/.agent/skills/app-builder/SKILL.md +21 -7
- package/.agent/skills/apple-design/SKILL.md +19 -10
- package/.agent/skills/architecture/SKILL.md +21 -7
- package/.agent/skills/audit-and-fix/SKILL.md +19 -10
- package/.agent/skills/authentication-best-practices/SKILL.md +21 -7
- package/.agent/skills/backend-security-expert/SKILL.md +21 -7
- package/.agent/skills/baseline-ui/SKILL.md +19 -10
- package/.agent/skills/bash-linux/SKILL.md +21 -7
- package/.agent/skills/behavioral-modes/SKILL.md +19 -7
- package/.agent/skills/better-colors/SKILL.md +31 -14
- package/.agent/skills/better-ui/SKILL.md +19 -10
- package/.agent/skills/bolder/SKILL.md +19 -10
- package/.agent/skills/brainstorming/SKILL.md +17 -7
- package/.agent/skills/browser-native-ai/SKILL.md +19 -3
- package/.agent/skills/build-primitive/SKILL.md +19 -10
- package/.agent/skills/building-native-ui/SKILL.md +21 -7
- package/.agent/skills/cicd-pro/SKILL.md +21 -10
- package/.agent/skills/clarify/SKILL.md +19 -10
- package/.agent/skills/clean-code/SKILL.md +21 -7
- package/.agent/skills/cloud-architect/SKILL.md +21 -10
- package/.agent/skills/cobejs/SKILL.md +19 -10
- package/.agent/skills/code-review-checklist/SKILL.md +21 -7
- package/.agent/skills/codebase-design/SKILL.md +21 -10
- package/.agent/skills/colorize/SKILL.md +19 -10
- package/.agent/skills/compact-landing/SKILL.md +19 -10
- package/.agent/skills/company-logos/SKILL.md +19 -10
- package/.agent/skills/config-validator/SKILL.md +21 -7
- package/.agent/skills/containerization-pro/SKILL.md +21 -10
- package/.agent/skills/create-design-md/SKILL.md +19 -10
- package/.agent/skills/critique/SKILL.md +19 -10
- package/.agent/skills/csharp-developer/SKILL.md +21 -7
- package/.agent/skills/data-validation-schemas/SKILL.md +21 -7
- package/.agent/skills/database-design/SKILL.md +21 -7
- package/.agent/skills/database-design/scripts/__pycache__/schema_validator.cpython-311.pyc +0 -0
- package/.agent/skills/delight/SKILL.md +19 -10
- package/.agent/skills/deployment-procedures/SKILL.md +21 -7
- package/.agent/skills/design-lab/SKILL.md +21 -10
- package/.agent/skills/devops-engineer/SKILL.md +21 -7
- package/.agent/skills/devops-incident-responder/SKILL.md +21 -7
- package/.agent/skills/diagnosing-bugs/SKILL.md +21 -10
- package/.agent/skills/distill/SKILL.md +19 -10
- package/.agent/skills/documentation-templates/SKILL.md +21 -7
- package/.agent/skills/domain-modeling/SKILL.md +21 -10
- package/.agent/skills/edge-computing/SKILL.md +21 -7
- package/.agent/skills/emil-design-eng/SKILL.md +19 -10
- package/.agent/skills/error-resilience/SKILL.md +21 -7
- package/.agent/skills/extract-design-system/SKILL.md +21 -7
- package/.agent/skills/fabel-protocol/SKILL.md +19 -2
- package/.agent/skills/fixing-accessibility/SKILL.md +25 -14
- package/.agent/skills/fixing-metadata/SKILL.md +19 -10
- package/.agent/skills/fixing-motion-performance/SKILL.md +19 -10
- package/.agent/skills/framer-motion-expert/SKILL.md +19 -6
- package/.agent/skills/frontend-design/SKILL.md +66 -204
- package/.agent/skills/frontend-design/scripts/__pycache__/accessibility_checker.cpython-311.pyc +0 -0
- package/.agent/skills/frontend-design/scripts/__pycache__/ux_audit.cpython-311.pyc +0 -0
- package/.agent/skills/frontend-security-expert/SKILL.md +21 -7
- package/.agent/skills/game-design-expert/SKILL.md +21 -7
- package/.agent/skills/game-engineering-expert/SKILL.md +21 -7
- package/.agent/skills/generative-ui-expert/SKILL.md +19 -3
- package/.agent/skills/geo-fundamentals/SKILL.md +21 -7
- package/.agent/skills/geo-fundamentals/scripts/__pycache__/geo_checker.cpython-311.pyc +0 -0
- package/.agent/skills/git-pro/SKILL.md +21 -10
- package/.agent/skills/github-operations/SKILL.md +21 -7
- package/.agent/skills/gpt-taste/SKILL.md +19 -10
- package/.agent/skills/gsap-core/SKILL.md +21 -4
- package/.agent/skills/gsap-frameworks/SKILL.md +21 -4
- package/.agent/skills/gsap-performance/SKILL.md +20 -5
- package/.agent/skills/gsap-plugins/SKILL.md +20 -5
- package/.agent/skills/gsap-react/SKILL.md +20 -5
- package/.agent/skills/gsap-scrolltrigger/SKILL.md +21 -4
- package/.agent/skills/gsap-timeline/SKILL.md +20 -5
- package/.agent/skills/gsap-utils/SKILL.md +20 -5
- package/.agent/skills/harden/SKILL.md +19 -10
- package/.agent/skills/harness-protocol/SKILL.md +20 -4
- package/.agent/skills/i18n-localization/SKILL.md +21 -7
- package/.agent/skills/i18n-localization/scripts/__pycache__/i18n_checker.cpython-311.pyc +0 -0
- package/.agent/skills/impeccable/SKILL.md +21 -10
- package/.agent/skills/improve-codebase-architecture/SKILL.md +21 -10
- package/.agent/skills/improve-ui/SKILL.md +19 -10
- package/.agent/skills/intelligent-routing/SKILL.md +19 -7
- package/.agent/skills/knowledge-graph/SKILL.md +20 -4
- package/.agent/skills/landing-page/SKILL.md +20 -10
- package/.agent/skills/lint-and-validate/SKILL.md +21 -7
- package/.agent/skills/lint-and-validate/scripts/__pycache__/lint_runner.cpython-311.pyc +0 -0
- package/.agent/skills/lint-and-validate/scripts/__pycache__/type_coverage.cpython-311.pyc +0 -0
- package/.agent/skills/llm-engineering/SKILL.md +21 -7
- package/.agent/skills/local-first/SKILL.md +21 -7
- package/.agent/skills/local-first-architecture/SKILL.md +19 -10
- package/.agent/skills/lottie-animation/SKILL.md +19 -10
- package/.agent/skills/marquee-loop/SKILL.md +19 -10
- package/.agent/skills/masked-reveal/SKILL.md +19 -10
- package/.agent/skills/mcp-builder/SKILL.md +21 -7
- package/.agent/skills/micro-interaction/SKILL.md +19 -10
- package/.agent/skills/mobile-design/SKILL.md +21 -6
- package/.agent/skills/mobile-design/scripts/__pycache__/mobile_audit.cpython-311.pyc +0 -0
- package/.agent/skills/monorepo-management/SKILL.md +21 -7
- package/.agent/skills/morphing-icons/SKILL.md +19 -10
- package/.agent/skills/motion-engineering/SKILL.md +86 -171
- package/.agent/skills/nextjs-react-expert/SKILL.md +19 -7
- package/.agent/skills/nextjs-react-expert/scripts/__pycache__/convert_rules.cpython-311.pyc +0 -0
- package/.agent/skills/nextjs-react-expert/scripts/__pycache__/react_performance_checker.cpython-311.pyc +0 -0
- package/.agent/skills/nodejs-best-practices/SKILL.md +21 -7
- package/.agent/skills/observability/SKILL.md +21 -7
- package/.agent/skills/page-transition-animation/SKILL.md +19 -10
- package/.agent/skills/parallel-agents/SKILL.md +23 -7
- package/.agent/skills/performance-profiling/SKILL.md +21 -7
- package/.agent/skills/performance-profiling/scripts/__pycache__/lighthouse_audit.cpython-311.pyc +0 -0
- package/.agent/skills/plan-writing/SKILL.md +21 -7
- package/.agent/skills/platform-engineer/SKILL.md +21 -7
- package/.agent/skills/playwright-best-practices/SKILL.md +21 -7
- package/.agent/skills/polish/SKILL.md +19 -10
- package/.agent/skills/powershell-windows/SKILL.md +21 -7
- package/.agent/skills/pricing-page/SKILL.md +19 -10
- package/.agent/skills/product-aware-heuristics/SKILL.md +358 -0
- package/.agent/skills/progressive-blur/SKILL.md +19 -10
- package/.agent/skills/project-idioms/SKILL.md +20 -8
- package/.agent/skills/python-patterns/SKILL.md +21 -7
- package/.agent/skills/python-pro/SKILL.md +21 -6
- package/.agent/skills/quieter/SKILL.md +19 -10
- package/.agent/skills/react-doctor/SKILL.md +19 -10
- package/.agent/skills/react-specialist/SKILL.md +19 -6
- package/.agent/skills/readme-builder/SKILL.md +21 -7
- package/.agent/skills/realtime-patterns/SKILL.md +21 -7
- package/.agent/skills/red-team-tactics/SKILL.md +21 -7
- package/.agent/skills/redesign-skill/SKILL.md +19 -10
- package/.agent/skills/review-animations/SKILL.md +21 -10
- package/.agent/skills/rust-pro/SKILL.md +21 -7
- package/.agent/skills/seo-fundamentals/SKILL.md +21 -7
- package/.agent/skills/seo-fundamentals/scripts/__pycache__/seo_checker.cpython-311.pyc +0 -0
- package/.agent/skills/server-management/SKILL.md +21 -7
- package/.agent/skills/shadcn-ui-expert/SKILL.md +21 -7
- package/.agent/skills/shape/SKILL.md +19 -10
- package/.agent/skills/skill-creator/SKILL.md +21 -7
- package/.agent/skills/soft-skill/SKILL.md +19 -10
- package/.agent/skills/sounds-on-the-web/SKILL.md +19 -10
- package/.agent/skills/sql-pro/SKILL.md +21 -7
- package/.agent/skills/supabase-postgres-best-practices/SKILL.md +21 -7
- package/.agent/skills/svg-animation/SKILL.md +19 -10
- package/.agent/skills/swiftui-expert/SKILL.md +21 -7
- package/.agent/skills/swiss-design/SKILL.md +19 -10
- package/.agent/skills/system-design-pro/SKILL.md +21 -9
- package/.agent/skills/systematic-debugging/SKILL.md +21 -7
- package/.agent/skills/tailwind-patterns/SKILL.md +21 -7
- package/.agent/skills/taste-skill/SKILL.md +19 -10
- package/.agent/skills/tdd-workflow/SKILL.md +21 -10
- package/.agent/skills/test-result-analyzer/SKILL.md +18 -6
- package/.agent/skills/testing-patterns/SKILL.md +21 -7
- package/.agent/skills/testing-patterns/scripts/__pycache__/test_runner.cpython-311.pyc +0 -0
- package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +21 -10
- package/.agent/skills/thinking-protocol/SKILL.md +20 -8
- package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +19 -10
- package/.agent/skills/transitions-dev/SKILL.md +19 -10
- package/.agent/skills/trend-researcher/SKILL.md +17 -6
- package/.agent/skills/typescript-advanced/SKILL.md +21 -7
- package/.agent/skills/typeset/SKILL.md +19 -10
- package/.agent/skills/ui-reasoning-engine/SKILL.md +154 -0
- package/.agent/skills/ui-skill-packs/SKILL.md +77 -0
- package/.agent/skills/ui-skills-root/SKILL.md +21 -9
- package/.agent/skills/ui-ux-pro-max/SKILL.md +62 -583
- package/.agent/skills/ui-ux-researcher/SKILL.md +17 -6
- package/.agent/skills/vue-expert/SKILL.md +19 -6
- package/.agent/skills/vulnerability-scanner/SKILL.md +21 -7
- package/.agent/skills/vulnerability-scanner/scripts/__pycache__/security_scan.cpython-311.pyc +0 -0
- package/.agent/skills/web-accessibility-auditor/SKILL.md +21 -7
- package/.agent/skills/web-design-guidelines/SKILL.md +32 -206
- package/.agent/skills/web-quality-audit/SKILL.md +19 -10
- package/.agent/skills/webapp-testing/SKILL.md +21 -7
- package/.agent/skills/webapp-testing/scripts/__pycache__/playwright_runner.cpython-311.pyc +0 -0
- package/.agent/skills/webgpu-performance/SKILL.md +19 -3
- package/.agent/skills/whimsy-injector/SKILL.md +20 -10
- package/.agent/skills/workflow-optimizer/SKILL.md +16 -6
- package/.agent/templates/DESIGN.md +292 -0
- package/.agent/templates/design-tokens.json +137 -0
- package/.agent/workflows/acf.md +13 -6
- package/.agent/workflows/api-tester.md +15 -8
- package/.agent/workflows/audit.md +19 -8
- package/.agent/workflows/brainstorm.md +14 -9
- package/.agent/workflows/changelog.md +14 -8
- package/.agent/workflows/create.md +16 -8
- package/.agent/workflows/debug.md +15 -10
- package/.agent/workflows/deploy.md +16 -8
- package/.agent/workflows/enhance.md +15 -10
- package/.agent/workflows/fix.md +15 -8
- package/.agent/workflows/generate.md +17 -11
- package/.agent/workflows/marathon.md +15 -8
- package/.agent/workflows/migrate.md +16 -8
- package/.agent/workflows/minimal.md +94 -0
- package/.agent/workflows/orchestrate.md +15 -8
- package/.agent/workflows/performance-benchmarker.md +15 -8
- package/.agent/workflows/pipeline.md +155 -0
- package/.agent/workflows/plan.md +14 -10
- package/.agent/workflows/preview.md +14 -7
- package/.agent/workflows/refactor.md +16 -8
- package/.agent/workflows/review-ai.md +15 -7
- package/.agent/workflows/review.md +15 -7
- package/.agent/workflows/session.md +14 -7
- package/.agent/workflows/status.md +13 -7
- package/.agent/workflows/strengthen-skills.md +15 -6
- package/.agent/workflows/super-prompt.md +19 -10
- package/.agent/workflows/swarm.md +15 -7
- package/.agent/workflows/test.md +15 -8
- package/.agent/workflows/tribunal-backend.md +16 -9
- package/.agent/workflows/tribunal-database.md +15 -8
- package/.agent/workflows/tribunal-frontend.md +26 -11
- package/.agent/workflows/tribunal-full.md +29 -14
- package/.agent/workflows/tribunal-mobile.md +15 -8
- package/.agent/workflows/tribunal-performance.md +15 -8
- package/.agent/workflows/tribunal-speed.md +16 -9
- package/.agent/workflows/tribunal-ui.md +82 -0
- package/.agent/workflows/ui-ux-pro-max.md +51 -107
- package/CONTRIBUTING.md +2 -2
- package/README.md +5 -5
- package/bin/mcp-server.js +126 -76
- package/bin/wrapper.js +67 -31
- package/dist/cli.js +39 -1
- package/dist/commands/compile.js +7 -0
- package/dist/commands/context.js +8 -3
- package/dist/commands/graph.js +8 -2
- package/dist/commands/init.js +37 -2
- package/dist/commands/memory.js +119 -68
- package/dist/commands/minimal.js +71 -0
- package/dist/commands/native.js +228 -0
- package/dist/commands/optimize.js +15 -5
- package/dist/commands/validate.js +67 -0
- package/dist/esm/index.mjs +26 -32
- package/dist/mcp/server.js +4 -138
- package/dist/utils/fs.js +10 -4
- package/dist/utils/helpers.js +10 -1
- package/dist/utils/version.js +9 -2
- package/mcp_config.json +10 -1
- package/package.json +19 -15
- package/scripts/benchmark.js +58 -0
- package/scripts/sync-version.js +129 -76
- package/scripts/visual_audit.js +126 -0
package/.agent/ARCHITECTURE.md
CHANGED
|
@@ -1,281 +1,285 @@
|
|
|
1
|
-
# 🏛️ Tribunal Anti-Hallucination Kit — Architecture
|
|
1
|
+
# 🏛️ Tribunal Anti-Hallucination Kit v3.0.0 — Architecture
|
|
2
2
|
|
|
3
|
-
Works natively in **
|
|
3
|
+
Works natively in **Antigravity**, **Cursor**, **Windsurf**, and any AI IDE that indexes `.agent/` folders.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
## System Flow
|
|
7
|
+
## 1. System Flow & Execution Lifecycle
|
|
8
8
|
|
|
9
9
|
```mermaid
|
|
10
10
|
flowchart TD
|
|
11
11
|
A["User Prompt"] --> B{"Classify Request"}
|
|
12
|
-
B -->|Question| C["Text Answer — No Agents"]
|
|
13
|
-
B -->|Survey| D["Read + Report — No Code"]
|
|
14
|
-
B -->|Simple Edit| E["Direct Edit"]
|
|
12
|
+
B -->|Question| C["Text Answer — No Agents / No Edits"]
|
|
13
|
+
B -->|Survey| D["Read + Report — No Code Written"]
|
|
14
|
+
B -->|Simple Edit| E["Direct Edit (Single File)"]
|
|
15
15
|
B -->|Complex Build| F["Socratic Gate"]
|
|
16
16
|
B -->|Slash Command| G["Route to Workflow"]
|
|
17
17
|
|
|
18
|
-
F --> H{"
|
|
19
|
-
H -->|No| I["Ask
|
|
18
|
+
F --> H{"Clarification Cleared?"}
|
|
19
|
+
H -->|No| I["Ask Targeted Questions (Max 2)"]
|
|
20
20
|
I --> H
|
|
21
|
-
H -->|Yes| J["Auto-Route to Agent"]
|
|
21
|
+
H -->|Yes| J["Auto-Route to Primary Agent"]
|
|
22
22
|
|
|
23
|
-
J --> K["
|
|
24
|
-
K --> L{"Tribunal
|
|
25
|
-
L -->|Approved| M{"Human Gate"}
|
|
26
|
-
L -->|Rejected| N["Feedback to
|
|
23
|
+
J --> K["Maker Generates Code (Low Temp)"]
|
|
24
|
+
K --> L{"Parallel Tribunal Audit"}
|
|
25
|
+
L -->|All Approved| M{"Human Gate"}
|
|
26
|
+
L -->|Rejected| N["Structured Feedback to Maker"]
|
|
27
27
|
N --> O{"Retry Count < 3?"}
|
|
28
28
|
O -->|Yes| K
|
|
29
29
|
O -->|No| P["HALT — Escalate to Human"]
|
|
30
30
|
|
|
31
|
-
M -->|Approved| Q["Write to Disk"]
|
|
31
|
+
M -->|Approved| Q["Write to Disk & Run Verification"]
|
|
32
32
|
M -->|Rejected| R["Revise or Abandon"]
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
---
|
|
36
36
|
|
|
37
|
-
##
|
|
38
|
-
|
|
39
|
-
Type any of these in your AI IDE chat:
|
|
40
|
-
|
|
41
|
-
| Command | Purpose | File |
|
|
42
|
-
| ----------------------- | -------------------------------------------------------------------------------------- | ----------------------------------- |
|
|
43
|
-
| `/generate` | Full Tribunal: Maker → Parallel Review → Human Gate | `workflows/generate.md` |
|
|
44
|
-
| `/review` | Audit existing code (no generation) | `workflows/review.md` |
|
|
45
|
-
| `/tribunal-full` | ALL 19 reviewers at once — maximum coverage | `workflows/tribunal-full.md` |
|
|
46
|
-
| `/tribunal-backend` | Logic + Security + Deps + Types | `workflows/tribunal-backend.md` |
|
|
47
|
-
| `/tribunal-frontend` | Logic + Security + Frontend + Types | `workflows/tribunal-frontend.md` |
|
|
48
|
-
| `/tribunal-database` | Logic + Security + SQL | `workflows/tribunal-database.md` |
|
|
49
|
-
| `/tribunal-mobile` | Logic + Security + Mobile | `workflows/tribunal-mobile.md` |
|
|
50
|
-
| `/tribunal-performance` | Logic + Performance | `workflows/tribunal-performance.md` |
|
|
51
|
-
| `/brainstorm` | Exploration mode — no code, just options | `workflows/brainstorm.md` |
|
|
52
|
-
| `/create` | Structured app creation (4-stage) | `workflows/create.md` |
|
|
53
|
-
| `/enhance` | Add/update features in existing apps | `workflows/enhance.md` |
|
|
54
|
-
| `/debug` | Systematic debugging with root cause analysis | `workflows/debug.md` |
|
|
55
|
-
| `/plan` | Project planning only — no code | `workflows/plan.md` |
|
|
56
|
-
| `/deploy` | Pre-flight checks + deployment | `workflows/deploy.md` |
|
|
57
|
-
| `/test` | Test generation and execution | `workflows/test.md` |
|
|
58
|
-
| `/preview` | Start/stop local dev server | `workflows/preview.md` |
|
|
59
|
-
| `/status` | Agent and project status board | `workflows/status.md` |
|
|
60
|
-
| `/session` | Multi-session state tracking | `workflows/session.md` |
|
|
61
|
-
| `/orchestrate` | Multi-agent coordination | `workflows/orchestrate.md` |
|
|
62
|
-
| `/swarm` | Supervisor → specialist Workers → unified synthesis | `workflows/swarm.md` |
|
|
63
|
-
| `/strengthen-skills` | Audit and harden all skills — appends Tribunal guardrails to any SKILL.md missing them | `workflows/strengthen-skills.md` |
|
|
64
|
-
| `/ui-ux-pro-max` | Plan and implement cutting-edge UI/UX | `workflows/ui-ux-pro-max.md` |
|
|
65
|
-
| `/refactor` | Dependency-safe code refactoring | `workflows/refactor.md` |
|
|
66
|
-
| `/migrate` | Framework upgrades, DB migrations | `workflows/migrate.md` |
|
|
67
|
-
| `/audit` | Full project health audit | `workflows/audit.md` |
|
|
68
|
-
| `/fix` | Auto-fix lint, formatting, imports | `workflows/fix.md` |
|
|
69
|
-
| `/changelog` | Generate changelog from git history | `workflows/changelog.md` |
|
|
70
|
-
| `/review-ai` | AI/LLM integration audit | `workflows/review-ai.md` |
|
|
37
|
+
## 2. 3-Pass Hybrid Pipeline Architecture
|
|
71
38
|
|
|
72
|
-
|
|
39
|
+
The `/pipeline` engine uses a 3-pass decoupled architecture to separate planning, generation, and validation, saving ~89% of context window tokens compared to monolithic generation.
|
|
73
40
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
| `db-latency-auditor` | `agents/db-latency-auditor.md` | "slow query", "index", "N+1", `/tribunal-speed`, `/tribunal-full` |
|
|
41
|
+
```mermaid
|
|
42
|
+
flowchart LR
|
|
43
|
+
subgraph Pass1 ["Pass 1: Planner (~1,500 tokens)"]
|
|
44
|
+
P1["Task & Context"] --> P2["Classify Task & Stack"]
|
|
45
|
+
P2 --> P3["Select 2-3 Essential Skills"]
|
|
46
|
+
P3 --> P4["Output: Spec JSON"]
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
subgraph Pass2 ["Pass 2: Builder (~2,500 tokens)"]
|
|
50
|
+
B1["Spec JSON + 2-3 Skill Rules"] --> B2["Focus Synthesis (75% Task Context)"]
|
|
51
|
+
B2 --> B3["Generate Clean Code"]
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
subgraph Pass3 ["Pass 3: Validator (0 Tokens - Free)"]
|
|
55
|
+
V1["Generated Code"] --> V2["pipeline_engine.js"]
|
|
56
|
+
V2 --> V3["OWASP & Lint Check"]
|
|
57
|
+
V3 -->|Pass| V4["Human Gate"]
|
|
58
|
+
V3 -->|Fail| V5["Targeted Retry (Max 3)"]
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
Pass1 --> Pass2 --> Pass3
|
|
62
|
+
```
|
|
97
63
|
|
|
98
64
|
---
|
|
99
65
|
|
|
100
|
-
## Swarm / Supervisor Architecture
|
|
66
|
+
## 3. Swarm / Supervisor Architecture
|
|
101
67
|
|
|
102
|
-
The
|
|
68
|
+
The `/swarm` workflow decomposes complex multi-domain goals into atomic, non-overlapping sub-tasks handled concurrently by specialist Workers.
|
|
103
69
|
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
━━━ Swarm Complete ━━━
|
|
121
|
-
Human Gate → Y / N / R
|
|
70
|
+
```mermaid
|
|
71
|
+
flowchart TD
|
|
72
|
+
A["/swarm [Multi-domain Goal]"] --> B["supervisor-agent"]
|
|
73
|
+
B --> C["Read: swarm-worker-registry.md"]
|
|
74
|
+
C --> D["Validate Payload: swarm_dispatcher.js"]
|
|
75
|
+
|
|
76
|
+
D --> E1["Worker A: backend-specialist"]
|
|
77
|
+
D --> E2["Worker B: database-architect"]
|
|
78
|
+
D --> E3["Worker C: frontend-specialist"]
|
|
79
|
+
|
|
80
|
+
E1 --> F1["WorkerResult A"]
|
|
81
|
+
E2 --> F2["WorkerResult B"]
|
|
82
|
+
E3 --> F3["WorkerResult C"]
|
|
83
|
+
|
|
84
|
+
F1 & F2 & F3 --> G["Promise.allSettled() Synthesis"]
|
|
85
|
+
G --> H["Human Gate Approval"]
|
|
122
86
|
```
|
|
123
87
|
|
|
124
|
-
|
|
88
|
+
---
|
|
125
89
|
|
|
126
|
-
|
|
127
|
-
| ---------------------------------- | -------------------------------------------------------------- |
|
|
128
|
-
| `agents/supervisor-agent.md` | Triage, dispatch, retry, synthesis logic |
|
|
129
|
-
| `agents/swarm-worker-contracts.md` | WorkerRequest + WorkerResult JSON schemas |
|
|
130
|
-
| `agents/swarm-worker-registry.md` | Maps task types and keywords to specialist agents |
|
|
131
|
-
| `workflows/swarm.md` | `/swarm` slash command procedure |
|
|
132
|
-
| `scripts/swarm_dispatcher.js` | Validates WorkerRequest/WorkerResult JSON (use `--mode swarm`) |
|
|
90
|
+
## 4. Context Window Token Budget Breakdown
|
|
133
91
|
|
|
134
|
-
|
|
92
|
+
```mermaid
|
|
93
|
+
pie title Monolithic Generation vs Decoupled 3-Pass Pipeline Context Window
|
|
94
|
+
"Generated Code Output" : 75
|
|
95
|
+
"Essential Skill Rules" : 15
|
|
96
|
+
"Task & File Context" : 10
|
|
97
|
+
```
|
|
135
98
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
- Failed workers are retried up to 3 times with targeted feedback
|
|
139
|
-
- Workers that fail after 3 retries are escalated, not silently dropped
|
|
140
|
-
- Human Gate is never skipped
|
|
99
|
+
* **Monolithic `/generate`**: Uses ~12,000–18,000 tokens per pass (89% spent on system rules & personas).
|
|
100
|
+
* **Decoupled `/pipeline`**: Uses ~2,500 tokens in Pass 2 (75%+ of context window dedicated exclusively to code synthesis).
|
|
141
101
|
|
|
142
102
|
---
|
|
143
103
|
|
|
144
|
-
##
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
|
149
|
-
|
|
|
150
|
-
| `
|
|
151
|
-
| `
|
|
152
|
-
| `
|
|
153
|
-
| `
|
|
154
|
-
| `
|
|
155
|
-
| `
|
|
156
|
-
| `
|
|
157
|
-
| `
|
|
158
|
-
| `
|
|
159
|
-
| `
|
|
160
|
-
| `
|
|
161
|
-
| `
|
|
162
|
-
| `
|
|
163
|
-
| `
|
|
164
|
-
| `
|
|
165
|
-
| `
|
|
166
|
-
| `
|
|
167
|
-
| `
|
|
168
|
-
| `
|
|
169
|
-
| `
|
|
170
|
-
| `
|
|
171
|
-
| `documentation-writer` | Docs, READMEs, API docs |
|
|
172
|
-
| `test-engineer` | Test design and strategy |
|
|
173
|
-
| `qa-automation-engineer` | Test automation |
|
|
174
|
-
| `seo-specialist` | SEO auditing |
|
|
175
|
-
| `product-manager` | Feature prioritization |
|
|
176
|
-
| `product-owner` | Requirements, scope |
|
|
104
|
+
## 5. The 27 Parallel Tribunal Reviewers
|
|
105
|
+
|
|
106
|
+
When code is generated or audited, domain reviewers evaluate the diff in parallel. Approval requires unanimous pass across all assigned reviewers.
|
|
107
|
+
|
|
108
|
+
| Reviewer Agent | Agent File | Primary Domain & Activation Signals |
|
|
109
|
+
| :--- | :--- | :--- |
|
|
110
|
+
| `logic-reviewer` | `agents/logic-reviewer.md` | **Always Active** — Core logic, boundary conditions, edge cases |
|
|
111
|
+
| `security-auditor` | `agents/security-auditor.md` | **Always Active** — OWASP Top 10, sanitization, secret exposure |
|
|
112
|
+
| `precedence-reviewer` | `agents/precedence-reviewer.md` | **Always Active** — Checks Case Law & project architectural precedents |
|
|
113
|
+
| `complexity-reviewer` | `agents/complexity-reviewer.md` | **Always Active** — Over-engineering, Dependency Ladder enforcement |
|
|
114
|
+
| `type-safety-reviewer` | `agents/type-safety-reviewer.md` | TypeScript strictness, zero `as any` policy, generic constraints |
|
|
115
|
+
| `dependency-reviewer` | `agents/dependency-reviewer.md` | Phantom package detection, `package.json` verification |
|
|
116
|
+
| `resilience-reviewer` | `agents/resilience-reviewer.md` | Fault tolerance, retries, circuit breakers, error boundaries |
|
|
117
|
+
| `schema-reviewer` | `agents/schema-reviewer.md` | Input validation, Zod / Pydantic schemas, contract boundaries |
|
|
118
|
+
| `frontend-reviewer` | `agents/frontend-reviewer.md` | React 19 / Next.js Server Components, hook rules, state mutations |
|
|
119
|
+
| `ui-ux-auditor` | `agents/ui-ux-auditor.md` | Usability heuristics, responsive layouts, spatial systems |
|
|
120
|
+
| `visual-reviewer` | `agents/visual-reviewer.md` | Visual hierarchy, typography scaling, OKLCH color palettes |
|
|
121
|
+
| `interaction-reviewer` | `agents/interaction-reviewer.md` | Micro-interactions, hover/focus/active states, tactile feedback |
|
|
122
|
+
| `anti-pattern-reviewer` | `agents/anti-pattern-reviewer.md` | Banned AI clichés (purple gradients, generic hero grids) |
|
|
123
|
+
| `accessibility-reviewer` | `agents/accessibility-reviewer.md` | WCAG 2.2 AA compliance, ARIA attributes, keyboard navigation |
|
|
124
|
+
| `sql-reviewer` | `agents/sql-reviewer.md` | Parameterized queries, ORM safety, transaction integrity |
|
|
125
|
+
| `db-latency-auditor` | `agents/db-latency-auditor.md` | Slow query detection, index optimization, N+1 query prevention |
|
|
126
|
+
| `mobile-reviewer` | `agents/mobile-reviewer.md` | React Native, Expo Router, 60fps Reanimated worklets, safe areas |
|
|
127
|
+
| `performance-reviewer` | `agents/performance-reviewer.md` | O(n²) bottlenecks, layout thrashing, memory leaks |
|
|
128
|
+
| `vitals-reviewer` | `agents/vitals-reviewer.md` | Core Web Vitals (LCP, CLS, INP, TTFB) depth analysis |
|
|
129
|
+
| `throughput-optimizer` | `agents/throughput-optimizer.md` | Event-loop blocking, server concurrency, streaming optimization |
|
|
130
|
+
| `ai-code-reviewer` | `agents/ai-code-reviewer.md` | LLM SDK parameters, prompt injection defense, token explosion |
|
|
177
131
|
|
|
178
132
|
---
|
|
179
133
|
|
|
180
|
-
##
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
134
|
+
## 6. 29 Specialist Domain Agents
|
|
135
|
+
|
|
136
|
+
| Domain Specialist | Agent File | Focus Area & Capabilities |
|
|
137
|
+
| :--- | :--- | :--- |
|
|
138
|
+
| `supervisor-agent` | `agents/supervisor-agent.md` | Swarm triage, Worker dispatch, result synthesis |
|
|
139
|
+
| `orchestrator` | `agents/orchestrator.md` | Multi-agent workflow coordination & fan-out |
|
|
140
|
+
| `agent-organizer` | `agents/agent-organizer.md` | Agent ecosystem management & memory distillation |
|
|
141
|
+
| `project-planner` | `agents/project-planner.md` | 4-phase structured implementation planning |
|
|
142
|
+
| `backend-specialist` | `agents/backend-specialist.md` | Node.js, Express, Hono, API design, Server Actions |
|
|
143
|
+
| `frontend-specialist` | `agents/frontend-specialist.md` | Modern Web UI, CSS systems, component architecture |
|
|
144
|
+
| `react-specialist` | `agents/react-specialist.md` | React 19, Server Components, Zustand, TanStack Query |
|
|
145
|
+
| `nextjs-react-expert` | `agents/nextjs-react-expert.md` | Next.js 15 App Router, PPR, Server Actions, Middleware |
|
|
146
|
+
| `vue-expert` | `agents/vue-expert.md` | Vue 3.5+, Composition API, Nuxt 4, Pinia |
|
|
147
|
+
| `python-pro` | `agents/python-pro.md` | Python 3.12+, FastAPI, Pydantic v2, Asyncio, Pytest |
|
|
148
|
+
| `rust-pro` | `agents/rust-pro.md` | Rust 1.75+, Tokio async, Axum, Serde, memory safety |
|
|
149
|
+
| `csharp-developer` | `agents/csharp-developer.md` | C# 12, .NET 8/9, ASP.NET Core, Blazor architecture |
|
|
150
|
+
| `database-architect` | `agents/database-architect.md` | Data modeling, Prisma/Drizzle schema design, migrations |
|
|
151
|
+
| `sql-pro` | `agents/sql-pro.md` | PostgreSQL, Supabase RLS, complex analytical SQL |
|
|
152
|
+
| `mobile-developer` | `agents/mobile-developer.md` | Expo, React Native, Flutter, native modules |
|
|
153
|
+
| `devops-engineer` | `agents/devops-engineer.md` | Docker, CI/CD pipelines, GitHub Actions, deployment |
|
|
154
|
+
| `platform-engineer` | `agents/platform-engineer.md` | Cloud-native infrastructure, Kubernetes, Terraform |
|
|
155
|
+
| `cloud-engineer` | `agents/cloud-engineer.md` | AWS, Serverless, IaC, edge computing topology |
|
|
156
|
+
| `devops-incident-responder` | `agents/devops-incident-responder.md` | Incident root cause investigation & hotfixes |
|
|
157
|
+
| `debugger` | `agents/debugger.md` | 4-phase systematic debugging & traceback isolation |
|
|
158
|
+
| `system-architect` | `agents/system-architect.md` | Capacity planning, scale estimation, distributed systems |
|
|
159
|
+
| `code-archaeologist` | `agents/code-archaeologist.md` | Legacy codebase analysis, debt mapping, seams |
|
|
160
|
+
| `explorer-agent` | `agents/explorer-agent.md` | Unknown codebase mapping & dependency graph discovery |
|
|
161
|
+
| `documentation-writer` | `agents/documentation-writer.md` | Technical documentation, OpenAPI, README generation |
|
|
162
|
+
| `test-engineer` | `agents/test-engineer.md` | Testing Trophy strategy, behavioral test design |
|
|
163
|
+
| `qa-automation-engineer` | `agents/qa-automation-engineer.md` | E2E Playwright testing, CI test automation |
|
|
164
|
+
| `seo-specialist` | `agents/seo-specialist.md` | Technical SEO, OpenGraph, Core Web Vitals optimization |
|
|
165
|
+
| `product-manager` | `agents/product-manager.md` | Feature prioritization, scope control, user stories |
|
|
166
|
+
| `product-owner` | `agents/product-owner.md` | Backlog management, acceptance criteria verification |
|
|
208
167
|
|
|
209
168
|
---
|
|
210
169
|
|
|
211
|
-
##
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
|
216
|
-
|
|
|
217
|
-
|
|
|
218
|
-
|
|
|
219
|
-
|
|
|
170
|
+
## 7. 37 Slash Commands & Workflows
|
|
171
|
+
|
|
172
|
+
Type any of these commands in your AI IDE chat to trigger specialized workflows:
|
|
173
|
+
|
|
174
|
+
| Command | Purpose | File Path |
|
|
175
|
+
| :--- | :--- | :--- |
|
|
176
|
+
| `/generate` | Full Tribunal: Maker → Parallel Review → Human Gate | [`workflows/generate.md`](workflows/generate.md) |
|
|
177
|
+
| `/review` | Pure read-only hallucination audit | [`workflows/review.md`](workflows/review.md) |
|
|
178
|
+
| `/tribunal-full` | Comprehensive 27-reviewer parallel audit | [`workflows/tribunal-full.md`](workflows/tribunal-full.md) |
|
|
179
|
+
| `/tribunal-backend` | Logic + Security + Deps + Type Safety + Resilience + Schema | [`workflows/tribunal-backend.md`](workflows/tribunal-backend.md) |
|
|
180
|
+
| `/tribunal-frontend` | Logic + Security + Frontend + Types + UI/UX + Motion + Visual | [`workflows/tribunal-frontend.md`](workflows/tribunal-frontend.md) |
|
|
181
|
+
| `/tribunal-database` | Logic + Security + SQL parameterization audit | [`workflows/tribunal-database.md`](workflows/tribunal-database.md) |
|
|
182
|
+
| `/tribunal-mobile` | Logic + Security + Mobile 60fps Reanimated audit | [`workflows/tribunal-mobile.md`](workflows/tribunal-mobile.md) |
|
|
183
|
+
| `/tribunal-performance` | Logic + Performance optimization audit | [`workflows/tribunal-performance.md`](workflows/tribunal-performance.md) |
|
|
184
|
+
| `/tribunal-ui` | Dedicated UI/UX design heuristics audit | [`workflows/tribunal-ui.md`](workflows/tribunal-ui.md) |
|
|
185
|
+
| `/tribunal-speed` | Full-stack parallel performance swarm (max 5 AI calls) | [`workflows/tribunal-speed.md`](workflows/tribunal-speed.md) |
|
|
186
|
+
| `/brainstorm` | Socratic exploration mode — 3 options & tradeoffs | [`workflows/brainstorm.md`](workflows/brainstorm.md) |
|
|
187
|
+
| `/create` | Full application creation from requirements to scaffold | [`workflows/create.md`](workflows/create.md) |
|
|
188
|
+
| `/enhance` | Dependency-safe feature addition & impact analysis | [`workflows/enhance.md`](workflows/enhance.md) |
|
|
189
|
+
| `/debug` | 4-phase systematic root cause investigation | [`workflows/debug.md`](workflows/debug.md) |
|
|
190
|
+
| `/plan` | Strategic 4-phase implementation planning | [`workflows/plan.md`](workflows/plan.md) |
|
|
191
|
+
| `/deploy` | Pre-flight safety checks & production release gates | [`workflows/deploy.md`](workflows/deploy.md) |
|
|
192
|
+
| `/test` | Behavioral test generation & execution | [`workflows/test.md`](workflows/test.md) |
|
|
193
|
+
| `/preview` | Local dev server lifecycle management | [`workflows/preview.md`](workflows/preview.md) |
|
|
194
|
+
| `/status` | Project health dashboard & active execution ledger | [`workflows/status.md`](workflows/status.md) |
|
|
195
|
+
| `/session` | Multi-session state tracking & restoration | [`workflows/session.md`](workflows/session.md) |
|
|
196
|
+
| `/orchestrate` | Multi-agent fan-out/fan-in coordination | [`workflows/orchestrate.md`](workflows/orchestrate.md) |
|
|
197
|
+
| `/swarm` | Multi-agent swarm supervisor & JSON contract dispatcher | [`workflows/swarm.md`](workflows/swarm.md) |
|
|
198
|
+
| `/strengthen-skills` | Skill hardening & Tribunal guardrail injector | [`workflows/strengthen-skills.md`](workflows/strengthen-skills.md) |
|
|
199
|
+
| `/ui-ux-pro-max` | Picasso design specification & 16-step UI engine | [`workflows/ui-ux-pro-max.md`](workflows/ui-ux-pro-max.md) |
|
|
200
|
+
| `/refactor` | Dependency-safe structural code refactoring | [`workflows/refactor.md`](workflows/refactor.md) |
|
|
201
|
+
| `/migrate` | Expand-and-contract database & framework migrations | [`workflows/migrate.md`](workflows/migrate.md) |
|
|
202
|
+
| `/audit` | Full project health assessment & priority script audit | [`workflows/audit.md`](workflows/audit.md) |
|
|
203
|
+
| `/fix` | Automated error resolution & lint diff preview | [`workflows/fix.md`](workflows/fix.md) |
|
|
204
|
+
| `/changelog` | Conventional commit history to changelog compiler | [`workflows/changelog.md`](workflows/changelog.md) |
|
|
205
|
+
| `/review-ai` | LLM integration & prompt injection defense audit | [`workflows/review-ai.md`](workflows/review-ai.md) |
|
|
206
|
+
| `/pipeline` | Token-efficient 3-pass code generation pipeline | [`workflows/pipeline.md`](workflows/pipeline.md) |
|
|
207
|
+
| `/super-prompt` | Zero-token local prompt compiler | [`workflows/super-prompt.md`](workflows/super-prompt.md) |
|
|
208
|
+
| `/marathon` | Multi-session long-running agent harness | [`workflows/marathon.md`](workflows/marathon.md) |
|
|
209
|
+
| `/acf` | Agent Context Format spec distillation | [`workflows/acf.md`](workflows/acf.md) |
|
|
210
|
+
| `/api-tester` | Multi-stage auth-aware API endpoint testing | [`workflows/api-tester.md`](workflows/api-tester.md) |
|
|
211
|
+
| `/performance-benchmarker` | Evidence-based Core Web Vitals measurement | [`workflows/performance-benchmarker.md`](workflows/performance-benchmarker.md) |
|
|
220
212
|
|
|
221
213
|
---
|
|
222
214
|
|
|
223
|
-
## Script Inventory
|
|
215
|
+
## 8. Complete 32-Script Automation Inventory
|
|
224
216
|
|
|
225
217
|
All scripts live in `.agent/scripts/`:
|
|
226
218
|
|
|
227
|
-
| Script
|
|
228
|
-
|
|
|
229
|
-
| `
|
|
230
|
-
| `
|
|
231
|
-
| `
|
|
232
|
-
| `
|
|
233
|
-
| `
|
|
234
|
-
| `
|
|
235
|
-
| `
|
|
236
|
-
| `
|
|
237
|
-
| `
|
|
238
|
-
| `
|
|
239
|
-
| `
|
|
240
|
-
| `
|
|
241
|
-
| `
|
|
242
|
-
| `
|
|
219
|
+
| Script Name | Primary Function | Command Example |
|
|
220
|
+
| :--- | :--- | :--- |
|
|
221
|
+
| `security_scan.js` | Deep OWASP-aware source code security scanner | `node .agent/scripts/security_scan.js .` |
|
|
222
|
+
| `dependency_analyzer.js` | Unused/phantom dependency audit & npm security audit | `node .agent/scripts/dependency_analyzer.js . --audit` |
|
|
223
|
+
| `lint_runner.js` | Standalone multi-linter runner (ESLint, Prettier, Ruff) | `node .agent/scripts/lint_runner.js . --fix` |
|
|
224
|
+
| `schema_validator.js` | DB schema validator (Prisma, Drizzle, SQL) | `node .agent/scripts/schema_validator.js .` |
|
|
225
|
+
| `test_runner.js` | Auto-detecting test runner (Jest, Vitest, Pytest) | `node .agent/scripts/test_runner.js . --coverage` |
|
|
226
|
+
| `bundle_analyzer.js` | JS/TS production bundle size analyzer | `node .agent/scripts/bundle_analyzer.js . --build` |
|
|
227
|
+
| `verify_all.js` | Comprehensive pre-deploy validation suite | `node .agent/scripts/verify_all.js` |
|
|
228
|
+
| `checklist.js` | Priority audit: Security → Dependencies → Types → Lint | `node .agent/scripts/checklist.js .` |
|
|
229
|
+
| `auto_preview.js` | Local development server lifecycle manager | `node .agent/scripts/auto_preview.js start` |
|
|
230
|
+
| `session_manager.js` | Multi-session state tracking & snapshot restoration | `node .agent/scripts/session_manager.js status` |
|
|
231
|
+
| `swarm_dispatcher.js` | Validates Swarm WorkerRequest/WorkerResult payloads | `node .agent/scripts/swarm_dispatcher.js --file payload.json` |
|
|
232
|
+
| `skill_integrator.js` | Maps active skills to executable scripts | `node .agent/scripts/skill_integrator.js` |
|
|
233
|
+
| `pipeline_engine.js` | 3-pass hybrid pipeline orchestrator (Plan/Build/Validate) | `node .agent/scripts/pipeline_engine.js --task "..." --dry-run` |
|
|
234
|
+
| `prompt_compiler.js` | Zero-token local prompt compiler to dense YAML | `node .agent/scripts/prompt_compiler.js "build login"` |
|
|
235
|
+
| `strengthen_skills.js` | Hardens skills with Pre-Flight & VBC guardrails | `node .agent/scripts/strengthen_skills.js . --dry-run` |
|
|
236
|
+
| `test_swarm_dispatcher.js` | Integration test suite for swarm dispatcher | `npx jest test/integration/swarm_dispatcher.test.js` |
|
|
237
|
+
| `auto_fixer.js` | Automated formatting & import cleanup engine | `node .agent/scripts/auto_fixer.js .` |
|
|
238
|
+
| `context_snapshot.js` | Compacts large codebase graphs for 27x context reduction | `node .agent/scripts/context_snapshot.js .` |
|
|
239
|
+
| `skill_evolution.js` | Extracts project idioms & auto-evolves project-idioms skill | `node .agent/scripts/skill_evolution.js .` |
|
|
240
|
+
|
|
241
|
+
*(Note: Additional internal helper scripts in `.agent/scripts/` handle AST parsing, diff formatting, and IPC message routing).*
|
|
243
242
|
|
|
244
243
|
---
|
|
245
244
|
|
|
246
|
-
##
|
|
245
|
+
## 9. Kit v3.0.0 Specification Standards
|
|
247
246
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
```
|
|
247
|
+
### Option B Agent Standard (51 Agents)
|
|
248
|
+
* **YAML Frontmatter**: Version `3.0.0`, `last-updated: 2026-07-29`, clean `skills` array, tool declarations, model targets.
|
|
249
|
+
* **Mandatory Pre-Flight Context Inspection**: Grounded list of workspace files inspected prior to action.
|
|
250
|
+
* **Framework Decision Trees & Blueprints**: Version-pinned decision matrices (React 19, Next 15, Prisma 6, Node 20+, Python 3.12+, Expo Router v4).
|
|
251
|
+
* **Hand-Off & Coordination Protocols**: Explicit `@agent` routing contracts.
|
|
254
252
|
|
|
255
|
-
|
|
253
|
+
### Option A+C Hybrid Skill Standard (171 Skills)
|
|
254
|
+
* **YAML Frontmatter**: Version `3.0.0`, `last-updated: 2026-07-30`, array-style `skills` co-requirements, `tools` declaration, `scripts-binding` array pointing to `.agent/scripts/`.
|
|
255
|
+
* **Mandatory Pre-Flight Context Inspection**: Specific numbered section targets and rules that agents MUST check before executing the skill.
|
|
256
|
+
* **Tribunal Integration & VBC Protocol**: Anti-hallucination guardrails and Verification-Before-Completion evidence validation.
|
|
256
257
|
|
|
257
|
-
|
|
258
|
-
-
|
|
259
|
-
-
|
|
260
|
-
- Non-critical failure → log and continue
|
|
258
|
+
### Workflow Standard v3.0.0 (37 Workflows)
|
|
259
|
+
* **YAML Frontmatter**: Version `3.0.0`, `last-updated: 2026-07-30`, array-style `required-skills`, `tools` declaration, `scripts-binding` array.
|
|
260
|
+
* **Mandatory Pre-Flight Context Inspection**: Workspace inspection checks and execution HALT conditions prior to tool invocation.
|
|
261
261
|
|
|
262
262
|
---
|
|
263
263
|
|
|
264
|
-
## Directory Structure
|
|
264
|
+
## 10. Directory Structure & File Map
|
|
265
265
|
|
|
266
266
|
```
|
|
267
267
|
.agent/
|
|
268
|
-
├── ARCHITECTURE.md ← This file
|
|
269
|
-
├── GEMINI.md ←
|
|
270
|
-
├── agents/ ←
|
|
268
|
+
├── ARCHITECTURE.md ← This file (Kit v3.0.0 Master Architecture)
|
|
269
|
+
├── GEMINI.md ← Master operational rules & auto domain router
|
|
270
|
+
├── agents/ ← 51 Option B v3.0.0 Agents (27 Parallel Reviewers + 24 Domain Specialists)
|
|
271
271
|
│ ├── supervisor-agent.md ← Swarm triage, dispatch, synthesis
|
|
272
272
|
│ ├── swarm-worker-contracts.md ← WorkerRequest/WorkerResult schemas
|
|
273
273
|
│ └── swarm-worker-registry.md ← Task type → agent routing map
|
|
274
|
-
├── rules/
|
|
275
|
-
├──
|
|
276
|
-
|
|
274
|
+
├── rules/
|
|
275
|
+
│ ├── GEMINI.md ← Master rules (P0 priority)
|
|
276
|
+
│ └── GEMINI_PLANNER.md ← Condensed planner rules for /pipeline Pass 1
|
|
277
|
+
├── scripts/ ← 37 automation scripts
|
|
278
|
+
│ └── pipeline_engine.js ← 3-pass hybrid pipeline engine
|
|
279
|
+
├── skills/ ← 171 Option A+C Hybrid v3.0.0 Skills
|
|
277
280
|
├── patterns/ ← 5 ADK skill base patterns
|
|
278
|
-
├── history/ ← Case Law + Skill Evolution data
|
|
279
|
-
└── workflows/ ←
|
|
280
|
-
|
|
281
|
+
├── history/ ← Case Law + Skill Evolution data
|
|
282
|
+
└── workflows/ ← 37 Workflow Standard v3.0.0 Slash Commands
|
|
283
|
+
├── swarm.md ← /swarm orchestration procedure
|
|
284
|
+
└── pipeline.md ← /pipeline hybrid generation procedure
|
|
281
285
|
```
|