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
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Debugging command. Activates DEBUG mode for systematic problem investigation using the 4-phase methodology (Collect → Hypothesize → Test → Fix). No fix is suggested until the root cause is confirmed and tested. No random changes. No guessing.
|
|
3
|
-
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- systematic-debugging
|
|
8
|
+
- test-result-analyzer
|
|
9
|
+
- clean-code
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/test_runner.js
|
|
12
|
+
- .agent/scripts/lint_runner.js
|
|
4
13
|
---
|
|
5
14
|
|
|
6
15
|
# /debug — Root Cause Investigation
|
|
@@ -9,16 +18,12 @@ $ARGUMENTS
|
|
|
9
18
|
|
|
10
19
|
---
|
|
11
20
|
|
|
12
|
-
##
|
|
21
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
22
|
|
|
14
|
-
|
|
15
|
-
Read
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
□ git diff (recent changes) → What changed since last working state
|
|
19
|
-
□ .env / .env.example → Check for missing/rotated secrets
|
|
20
|
-
□ package.json → Check for recent dependency changes
|
|
21
|
-
```
|
|
23
|
+
Before investigating or attempting any code modification during a bug report, you MUST inspect:
|
|
24
|
+
1. Exact Error Traceback / Stack Log → Read raw error logs without paraphrasing; ban making diagnostic hypotheses without tracebacks
|
|
25
|
+
2. Target File & Callers → Inspect file referenced in error trace along with its upstream callers
|
|
26
|
+
3. Recent Changes (`git diff`) → Inspect recent edits to identify regressions before mutating code
|
|
22
27
|
|
|
23
28
|
---
|
|
24
29
|
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Production deployment command. Runs pre-flight safety checks (tests, type-check, lint, security, build), creates a rollback baseline, confirms Human Gate, then executes deployment. Requires explicit human approval before going live.
|
|
3
|
-
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- deployment-procedures
|
|
8
|
+
- devops-engineer
|
|
9
|
+
- verify_all
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/verify_all.js
|
|
12
|
+
- .agent/scripts/security_scan.js
|
|
13
|
+
- .agent/scripts/bundle_analyzer.js
|
|
4
14
|
---
|
|
5
15
|
|
|
6
16
|
# /deploy — Production Deployment
|
|
@@ -9,14 +19,12 @@ $ARGUMENTS
|
|
|
9
19
|
|
|
10
20
|
---
|
|
11
21
|
|
|
12
|
-
##
|
|
22
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
23
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
□ Database schema → Check if migrations are pending
|
|
19
|
-
```
|
|
24
|
+
Before triggering production deployment or executing deploy scripts, you MUST inspect:
|
|
25
|
+
1. Full Pre-Flight Verification Suite (`verify_all.js`) → Verify tests, type-checking, lint, security scans, and production build output cleanly
|
|
26
|
+
2. CI/CD Manifests (`.github/workflows`, `fly.toml`, `render.yaml`, etc.) → Check deployment targets and environment variable requirements
|
|
27
|
+
3. Human Gate & Rollback Baseline → Confirm baseline git tag/commit and secure explicit human approval before publishing release
|
|
20
28
|
|
|
21
29
|
---
|
|
22
30
|
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Add or update features in existing applications. Performs impact analysis before any code change — identifies all dependents, detects breaking changes, generates Tribunal-reviewed modifications. No change is written to disk without Human Gate approval.
|
|
3
|
-
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- clean-code
|
|
8
|
+
- codebase-design
|
|
9
|
+
- test-engineer
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/lint_runner.js
|
|
12
|
+
- .agent/scripts/test_runner.js
|
|
4
13
|
---
|
|
5
14
|
|
|
6
15
|
# /enhance — Feature Addition & Modification
|
|
@@ -9,16 +18,12 @@ $ARGUMENTS
|
|
|
9
18
|
|
|
10
19
|
---
|
|
11
20
|
|
|
12
|
-
##
|
|
21
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
22
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
□ package.json → Verify dependencies exist
|
|
19
|
-
□ tsconfig.json → Understand path aliases and strictness
|
|
20
|
-
□ Related test files → Know what tests exist for this module
|
|
21
|
-
```
|
|
23
|
+
Before modifying existing features or appending functionality, you MUST inspect:
|
|
24
|
+
1. Impact Zone Identification → Grep for all callers and importers of the target file to map blast radius
|
|
25
|
+
2. Existing Contract & Unit Tests → Inspect existing tests and type signatures for the target module to prevent regression
|
|
26
|
+
3. Breaking Change Detection → Ensure signature changes update all dependent call sites simultaneously before writing to disk
|
|
22
27
|
|
|
23
28
|
---
|
|
24
29
|
|
package/.agent/workflows/fix.md
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Auto-fix known issues with lint, formatting, imports, and TypeScript errors. Runs lint_runner.js and auto-fixers. Human approval required before applying any changes. Shows a diff of what will change before writing to disk.
|
|
3
|
-
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- lint-and-validate
|
|
8
|
+
- clean-code
|
|
9
|
+
- typescript-advanced
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/lint_runner.js
|
|
12
|
+
- .agent/scripts/verify_all.js
|
|
4
13
|
---
|
|
5
14
|
|
|
6
15
|
# /fix — Automated Error Resolution
|
|
@@ -9,14 +18,12 @@ $ARGUMENTS
|
|
|
9
18
|
|
|
10
19
|
---
|
|
11
20
|
|
|
12
|
-
##
|
|
21
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
22
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
□ .eslintrc / prettierrc → Understand code style rules
|
|
19
|
-
```
|
|
23
|
+
Before executing auto-fixers or modifying code files to resolve lint/type issues, you MUST inspect:
|
|
24
|
+
1. Workspace Linter & Compiler Settings (`tsconfig.json`, `.eslintrc`, `biome.json`) → Confirm rule strictness and formatting standards
|
|
25
|
+
2. Target File Lint Output → Execute `node .agent/scripts/lint_runner.js` to gather precise error line numbers and rule IDs
|
|
26
|
+
3. Diff Verification Before Disk Write → Show explicit diff of proposed changes and confirm Human Gate approval before saving
|
|
20
27
|
|
|
21
28
|
---
|
|
22
29
|
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Generate code using the full Tribunal Anti-Hallucination pipeline. Maker generates grounded in real project context at low temperature → domain-selected reviewers audit in parallel → Human Gate for final approval. Nothing is written to disk without explicit approval.
|
|
3
|
-
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- clean-code
|
|
8
|
+
- codebase-design
|
|
9
|
+
- lint-and-validate
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/lint_runner.js
|
|
12
|
+
- .agent/scripts/security_scan.js
|
|
13
|
+
- .agent/scripts/verify_all.js
|
|
4
14
|
---
|
|
5
15
|
|
|
6
16
|
# /generate — Hallucination-Free Code Generation
|
|
@@ -9,16 +19,12 @@ $ARGUMENTS
|
|
|
9
19
|
|
|
10
20
|
---
|
|
11
21
|
|
|
12
|
-
##
|
|
22
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
23
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
□ context/*.acf → Load explicit goals, rules, and boundaries
|
|
19
|
-
□ .env.example → Know available environment variables
|
|
20
|
-
□ Referenced files → Understand actual data shapes and types
|
|
21
|
-
```
|
|
24
|
+
Before generating code modules or invoking the Maker pipeline, you MUST inspect:
|
|
25
|
+
1. Workspace Package Dependencies (`package.json`) → Confirm all imported libraries exist; ban unverified phantom imports
|
|
26
|
+
2. Type Definitions & Path Aliases (`tsconfig.json`) → Verify module resolution paths and compiler strictness
|
|
27
|
+
3. Parallel Tribunal Review Assignment → Select relevant domain reviewers (`logic`, `security`, `frontend`, `backend`, `database`, `mobile`) prior to Human Gate submission
|
|
22
28
|
|
|
23
29
|
---
|
|
24
30
|
|
|
@@ -128,7 +134,7 @@ complexity-reviewer→ Enforces the Dependency Ladder to prevent over-engineerin
|
|
|
128
134
|
| `aria`, `wcag`, `a11y`, `accessibility` | `accessibility-reviewer` + `ui-ux-auditor` |
|
|
129
135
|
| `import`, `package`, `npm`, `require` | `dependency-reviewer` |
|
|
130
136
|
|
|
131
|
-
> For maximum safety on critical code: use `/tribunal-full` for all
|
|
137
|
+
> For maximum safety on critical code: use `/tribunal-full` for all 21 reviewers simultaneously.
|
|
132
138
|
|
|
133
139
|
---
|
|
134
140
|
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Long-running agent harness for multi-session projects. Decomposes specs into atomic features tracked in JSON, ensures clean handoffs between sessions, and provides structured progress tracking. Based on Anthropic's long-running agent patterns.
|
|
3
|
-
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- harness-protocol
|
|
8
|
+
- agent-organizer
|
|
9
|
+
- project-planner
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/session_manager.js
|
|
12
|
+
- .agent/scripts/verify_all.js
|
|
4
13
|
---
|
|
5
14
|
|
|
6
15
|
# /marathon — Long-Running Agent Harness
|
|
@@ -9,14 +18,12 @@ $ARGUMENTS
|
|
|
9
18
|
|
|
10
19
|
---
|
|
11
20
|
|
|
12
|
-
##
|
|
21
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
22
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
□ git log --oneline -5 → Check recent commits
|
|
19
|
-
```
|
|
23
|
+
Before initiating or resuming a multi-session marathon harness, you MUST inspect:
|
|
24
|
+
1. Marathon State Ledger (`progress.json`, `feature_list.json`) → Verify current session index, completed features, and active task
|
|
25
|
+
2. Session Continuity Manager (`.agent/scripts/session_manager.js`) → Verify state snapshot before context truncation
|
|
26
|
+
3. Atomic Feature Handoff Protocol → Ensure each session completes exactly ONE atomic feature, runs `verify_all.js`, and commits state before handoff
|
|
20
27
|
|
|
21
28
|
---
|
|
22
29
|
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Migration workflow for framework upgrades, dependency bumps, and database migrations. Impact analysis first, expand-and-contract for DB, dependency compatibility matrix before upgrading, rollback tested before deploy.
|
|
3
|
-
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- plan-writing
|
|
8
|
+
- architecture
|
|
9
|
+
- database-design
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/dependency_analyzer.js
|
|
12
|
+
- .agent/scripts/schema_validator.js
|
|
13
|
+
- .agent/scripts/verify_all.js
|
|
4
14
|
---
|
|
5
15
|
|
|
6
16
|
# /migrate — Safe Migration Execution
|
|
@@ -9,14 +19,12 @@ $ARGUMENTS
|
|
|
9
19
|
|
|
10
20
|
---
|
|
11
21
|
|
|
12
|
-
##
|
|
22
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
23
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
□ Release notes/Changelogs → Understand breaking changes in the target version
|
|
19
|
-
```
|
|
24
|
+
Before running framework upgrades, major dependency bumps, or database migrations, you MUST inspect:
|
|
25
|
+
1. Dependency Compatibility Matrix (`dependency_analyzer.js`) → Verify target version peer dependencies and breaking changes
|
|
26
|
+
2. Database Expand-and-Contract Plan (`schema_validator.js`) → Ensure database column changes add new fields before dropping old ones
|
|
27
|
+
3. Rollback Protocol Verification → Test local rollback procedure (e.g. SQLite backup or DB transaction revert) before applying migration
|
|
20
28
|
|
|
21
29
|
---
|
|
22
30
|
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Analyze requested implementation for minimal viable change. Enforces the 7-level Decision Order (NO_CHANGE to CREATE), Change Budget estimation, Minimality Score (0-100), Complexity Flags detection, and repository search.
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 6.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- clean-code
|
|
8
|
+
- codebase-design
|
|
9
|
+
scripts-binding:
|
|
10
|
+
- .agent/scripts/minimal_change_engine.js
|
|
11
|
+
- .agent/scripts/case_law_manager.js
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# /minimal — Minimal Change Governance Workflow
|
|
15
|
+
|
|
16
|
+
$ARGUMENTS
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Mandatory Pre-Flight Context Inspection
|
|
21
|
+
|
|
22
|
+
Before proposing any code change, you MUST evaluate the **10 Core Governance Questions**:
|
|
23
|
+
1. Does anything need to change? (`NO_CHANGE`)
|
|
24
|
+
2. Does the repository already solve this? (`REUSE`)
|
|
25
|
+
3. Does an existing function, component, utility, service, or abstraction solve it? (`REUSE`)
|
|
26
|
+
4. Does the language standard library solve it? (`REUSE`)
|
|
27
|
+
5. Does the framework or platform solve it? (`REUSE`)
|
|
28
|
+
6. Does an existing dependency solve it? (`REUSE`)
|
|
29
|
+
7. Is configuration enough? (`CONFIGURE`)
|
|
30
|
+
8. Is deletion or simplification better than addition? (`DELETE`)
|
|
31
|
+
9. Is the proposed abstraction necessary for the current requirement? (`MODIFY`/`EXTEND`)
|
|
32
|
+
10. What is the smallest implementation that satisfies the request? (`MODIFY`/`EXTEND` vs `CREATE`)
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Sub-Commands
|
|
37
|
+
|
|
38
|
+
| Command | Description |
|
|
39
|
+
| :--- | :--- |
|
|
40
|
+
| `/minimal` | Analyze requested implementation and determine smallest viable change footprint |
|
|
41
|
+
| `/minimal-review` | Review proposed change diff for unnecessary complexity and file proliferation |
|
|
42
|
+
| `/change-budget` | Display estimated Change Budget (files added/modified, lines, deps, abstractions) |
|
|
43
|
+
| `/complexity-audit` | Audit proposal for 14 standardized complexity flags and overengineering patterns |
|
|
44
|
+
| `/reuse-check` | Search repository for existing functions, symbols, and utilities before creating code |
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Decision Order Hierarchy
|
|
49
|
+
|
|
50
|
+
Evaluate solutions strictly in this order:
|
|
51
|
+
```
|
|
52
|
+
NO_CHANGE ➔ REUSE ➔ CONFIGURE ➔ DELETE ➔ MODIFY ➔ EXTEND ➔ CREATE
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Output Schema
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
━━━ Minimal Change Governance Audit ━━━━━━━━━━━━━━━━━━━━━━
|
|
61
|
+
|
|
62
|
+
Minimality Score: 88/100 (PASSED)
|
|
63
|
+
Decision Classification: MODIFY
|
|
64
|
+
Strictness Mode: balanced
|
|
65
|
+
|
|
66
|
+
━━━ Change Budget ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
67
|
+
files_added: 0
|
|
68
|
+
files_modified: 2
|
|
69
|
+
dependencies_added: 0
|
|
70
|
+
new_abstractions: 0
|
|
71
|
+
estimated_lines_added: 14
|
|
72
|
+
estimated_lines_removed: 4
|
|
73
|
+
|
|
74
|
+
━━━ Complexity Flags ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
75
|
+
✅ None detected
|
|
76
|
+
|
|
77
|
+
━━━ Reuse Opportunities ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
78
|
+
- Extend src/utils/http.ts for retry policy rather than creating a new service file
|
|
79
|
+
|
|
80
|
+
━━━ Recommendation ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
81
|
+
Proceed with MODIFY strategy on src/utils/http.ts
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Usage Examples
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
/minimal add request retry handling to API calls
|
|
90
|
+
/minimal-review src/services/retryQueue.ts
|
|
91
|
+
/change-budget
|
|
92
|
+
/complexity-audit
|
|
93
|
+
/reuse-check fetchRetry
|
|
94
|
+
```
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Coordinate multiple agents for complex tasks. Use for multi-perspective analysis, comprehensive reviews requiring different domain expertise, or tasks where a single agent would miss domain-specific failures. Fan-Out dispatch → parallel execution → Fan-In synthesis → Human Gate.
|
|
3
|
-
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- agent-organizer
|
|
8
|
+
- parallel-agents
|
|
9
|
+
- swarm-dispatcher
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/swarm_dispatcher.js
|
|
12
|
+
- .agent/scripts/verify_all.js
|
|
4
13
|
---
|
|
5
14
|
|
|
6
15
|
# /orchestrate — Multi-Agent Coordination
|
|
@@ -9,14 +18,12 @@ $ARGUMENTS
|
|
|
9
18
|
|
|
10
19
|
---
|
|
11
20
|
|
|
12
|
-
##
|
|
21
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
22
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
□ Context budget → Determine how to split files among agents
|
|
19
|
-
```
|
|
23
|
+
Before dispatching multi-agent orchestrations or parallel sub-task workers, you MUST inspect:
|
|
24
|
+
1. Orchestrator Payload Validator (`swarm_dispatcher.js`) → Validate subagent payload contracts and JSON schema before fan-out
|
|
25
|
+
2. Context Window Budget Allocation → Provide scoped `context_summary` per worker; ban dumping full conversation history to workers
|
|
26
|
+
3. Fan-In Synthesis & Human Gate → Collect all worker outputs via `Promise.allSettled()` pattern and present unified synthesis before writing disk changes
|
|
20
27
|
|
|
21
28
|
---
|
|
22
29
|
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Run standardized performance benchmarks including Lighthouse CI, bundle analysis, and API latency checks. Records before/after metrics. No optimization claims without measured evidence.
|
|
3
|
-
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- performance-profiling
|
|
8
|
+
- vitals-reviewer
|
|
9
|
+
- 60fps-animation
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/bundle_analyzer.js
|
|
12
|
+
- .agent/scripts/verify_all.js
|
|
4
13
|
---
|
|
5
14
|
|
|
6
15
|
# /performance-benchmarker — Evidence-Based Performance Measurement
|
|
@@ -9,14 +18,12 @@ $ARGUMENTS
|
|
|
9
18
|
|
|
10
19
|
---
|
|
11
20
|
|
|
12
|
-
##
|
|
21
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
22
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
□ Database connection → Verify if DB profiling is supported
|
|
19
|
-
```
|
|
23
|
+
Before running performance benchmarks or capturing latency metrics, you MUST inspect:
|
|
24
|
+
1. Target App Environment & Build Command (`package.json`) → Confirm production build output and dev/preview server URL
|
|
25
|
+
2. Benchmark Scripts Availability (`.agent/scripts/bundle_analyzer.js`) → Verify automated bundle and latency measurement tooling
|
|
26
|
+
3. Before/After Metric Recording Constraint → Require side-by-side metric tables (LCP, CLS, INP, TTFB, Bundle Size) for every benchmark pass
|
|
20
27
|
|
|
21
28
|
---
|
|
22
29
|
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Hybrid 3-Pass Code Generation pipeline. Pass 1 (Planner) → Pass 2 (Builder) → Pass 3 (Zero-LLM Deterministic Validator). Maximizes code generation quality while keeping prompt context hyper-efficient.
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- clean-code
|
|
8
|
+
- codebase-design
|
|
9
|
+
- lint-and-validate
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/pipeline_engine.js
|
|
12
|
+
- .agent/scripts/lint_runner.js
|
|
13
|
+
- .agent/scripts/security_scan.js
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# /pipeline — Hybrid 3-Pass Code Generation
|
|
17
|
+
|
|
18
|
+
$ARGUMENTS
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Mandatory Pre-Flight Context Inspection
|
|
23
|
+
|
|
24
|
+
Before running 3-pass pipeline generation, you MUST inspect:
|
|
25
|
+
1. Pipeline Engine Script (`.agent/scripts/pipeline_engine.js`) → Verify availability and options (`--task`, `--file`, `--phase`)
|
|
26
|
+
2. Context Token Allocation -> Keep Pass 2 builder prompt under 2,500 tokens (loading max 3 essential skill key-rules)
|
|
27
|
+
3. Zero-LLM Pass 3 Validator → Run deterministic security, lint, and type checks on generated code prior to Human Gate submission
|
|
28
|
+
|
|
29
|
+
## When to Use /pipeline
|
|
30
|
+
|
|
31
|
+
| Use `/pipeline` when... | Use something else when... |
|
|
32
|
+
| :---------------------------------------------- | :--------------------------------------------- |
|
|
33
|
+
| Code generation quality is the top priority | Quick single-line fix → direct edit |
|
|
34
|
+
| Context window saturation is causing weak output | Need full tribunal review → `/generate` |
|
|
35
|
+
| Building UI components, APIs, or complex logic | Exploring options → `/brainstorm` |
|
|
36
|
+
| You want maximum LLM attention on code synthesis | Planning architecture → `/plan` |
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Architecture
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
User Task → Pass 1 (Planner) → Pass 2 (Builder) → Pass 3 (Validator) → Human Gate
|
|
44
|
+
~1,500 tokens ~2,500 tokens 0 tokens (deterministic)
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**vs. monolithic /generate: ~12,000–18,000 tokens in a single pass**
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Phase 1 — Plan (Automatic)
|
|
52
|
+
|
|
53
|
+
The pipeline engine classifies the task, detects the stack, and selects 2-3 essential skills.
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
node .agent/scripts/pipeline_engine.js --task "$TASK" --file "$FILE" --phase plan --output json
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Output: Structured spec JSON with task_type, stack, essential_skills, and constraints.
|
|
60
|
+
|
|
61
|
+
**Human Gate**: Review the spec before proceeding to generation.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Phase 2 — Build (Focused Generation)
|
|
66
|
+
|
|
67
|
+
Assembles a minimal prompt containing ONLY:
|
|
68
|
+
- The spec from Phase 1
|
|
69
|
+
- 2-3 essential skill key-rules (condensed)
|
|
70
|
+
- Target file content (if modifying existing code)
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
node .agent/scripts/pipeline_engine.js --task "$TASK" --file "$FILE" --phase build --output prompt
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**What is NOT in the prompt (saving ~10,000 tokens):**
|
|
77
|
+
- ❌ Full GEMINI.md master rules
|
|
78
|
+
- ❌ Agent persona definitions
|
|
79
|
+
- ❌ Tribunal gate rules
|
|
80
|
+
- ❌ Error recovery protocol
|
|
81
|
+
- ❌ Fabel Protocol cognitive loops
|
|
82
|
+
- ❌ Unrelated domain skills
|
|
83
|
+
|
|
84
|
+
The LLM receives a clean, focused prompt and can dedicate 75%+ of its attention to generating high-quality code.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## Phase 3 — Validate (Zero-LLM Deterministic)
|
|
89
|
+
|
|
90
|
+
After code is generated, run deterministic validation:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
node .agent/scripts/pipeline_engine.js --phase validate --code ./output.tsx
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Checks:
|
|
97
|
+
- ✅ OWASP security patterns (eval, innerHTML, hardcoded secrets, SQL injection)
|
|
98
|
+
- ✅ TypeScript `any` usage
|
|
99
|
+
- ✅ Empty catch blocks
|
|
100
|
+
- ✅ Console.log pollution
|
|
101
|
+
- ✅ Error handling gaps
|
|
102
|
+
|
|
103
|
+
If validation fails → structured feedback is generated for automated retry (max 3 attempts).
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## Full Pipeline (All Phases)
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
node .agent/scripts/pipeline_engine.js --task "$TASK" --file "$FILE" --output report
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Or in dry-run mode:
|
|
114
|
+
```bash
|
|
115
|
+
node .agent/scripts/pipeline_engine.js --task "$TASK" --file "$FILE" --dry-run
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## Pipeline Guard
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
❌ Never load GEMINI.md into Pass 2 — the planner already distilled what's needed
|
|
124
|
+
❌ Never skip Pass 3 validation — it's zero-cost (no LLM calls)
|
|
125
|
+
❌ Never select more than 3 skills for a single generation pass
|
|
126
|
+
❌ Never inject agent persona definitions into the builder prompt
|
|
127
|
+
❌ Never bypass the Human Gate — even in pipeline mode
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Comparison: /generate vs /pipeline
|
|
133
|
+
|
|
134
|
+
| Dimension | `/generate` (current) | `/pipeline` (new) |
|
|
135
|
+
| :---------------------------- | :-------------------- | :---------------------- |
|
|
136
|
+
| System prompt tokens | ~12,000–18,000 | ~2,500 (Pass 2) |
|
|
137
|
+
| % context for actual task | ~11% | ~75% |
|
|
138
|
+
| Governance overhead | ~89% | ~25% |
|
|
139
|
+
| Post-gen validation | LLM-based (expensive) | Deterministic (free) |
|
|
140
|
+
| Skills loaded per generation | 6–10 | 2–3 |
|
|
141
|
+
| Self-healing retry | Full re-generation | Targeted feedback loop |
|
|
142
|
+
| Backward compatibility | N/A | 100% (additive) |
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## After /pipeline — Next Steps
|
|
147
|
+
|
|
148
|
+
| Outcome | Next Command |
|
|
149
|
+
| :---------------------------- | :---------------------------------- |
|
|
150
|
+
| Code generated, needs review | → `/review` for human audit |
|
|
151
|
+
| Code has issues after retry | → `/generate` with full tribunal |
|
|
152
|
+
| Code passed, ready to test | → `/test` for test generation |
|
|
153
|
+
| Code passed, ready to deploy | → `/deploy` with pre-flight checks |
|
|
154
|
+
|
|
155
|
+
---
|
package/.agent/workflows/plan.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
---
|
|
2
2
|
description: Create project plan using project-planner agent. 4-phase approach: Analyze → Research → Plan Document → Human Gate. NO code writing — only plan file generation. Writing begins only after explicit human approval.
|
|
3
|
-
|
|
3
|
+
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
4
|
+
version: 3.0.0
|
|
5
|
+
last-updated: 2026-07-30
|
|
6
|
+
required-skills:
|
|
7
|
+
- plan-writing
|
|
8
|
+
- architecture
|
|
9
|
+
- project-planner
|
|
10
|
+
scripts-binding:
|
|
11
|
+
- .agent/scripts/verify_all.js
|
|
4
12
|
---
|
|
5
13
|
|
|
6
14
|
# /plan — Strategic Implementation Planning
|
|
@@ -9,16 +17,12 @@ $ARGUMENTS
|
|
|
9
17
|
|
|
10
18
|
---
|
|
11
19
|
|
|
12
|
-
##
|
|
20
|
+
## Mandatory Pre-Flight Context Inspection
|
|
13
21
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
□ prisma/schema.prisma → If DB changes planned (skip if not applicable)
|
|
19
|
-
□ src/ directory listing → Current project structure
|
|
20
|
-
□ git log --oneline -5 → Recent work context
|
|
21
|
-
```
|
|
22
|
+
Before drafting implementation plans or technical blueprints, you MUST inspect:
|
|
23
|
+
1. Workspace Context & Dependencies (`package.json`, `tsconfig.json`) → Confirm current stack capabilities and path mappings
|
|
24
|
+
2. Existing Architecture & Directory Layout → Review current module boundaries to prevent redundant architectural patterns
|
|
25
|
+
3. Zero Code Modification Rule → Restrict outputs in `/plan` mode to research, architectural design, and plan artifact generation; ban code generation before Plan approval
|
|
22
26
|
|
|
23
27
|
---
|
|
24
28
|
|