tribunal-kit 9.2.1 โ 9.2.3
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/agents/orchestrator.md +2 -0
- package/.agent/config/claude.json +1 -1
- package/.agent/config/plugin.json +1 -1
- package/.agent/history/architecture-explorer.html +352 -0
- package/.agent/history/architecture-graph.yaml +181 -1
- package/.agent/history/graph-cache.json +323 -13
- package/.agent/history/integrity_manifest.json +3937 -299
- package/.agent/history/memory/.memory.idx +50 -50
- package/.agent/history/snapshots/.opencode__plugins__tribunal.js.json +12 -0
- package/.agent/history/snapshots/.pi__extensions__tribunal.ts.json +12 -0
- package/.agent/history/snapshots/bin__adapter-install.js.json +1 -1
- package/.agent/history/snapshots/bin__mcp-server.js.json +4 -2
- package/.agent/history/snapshots/bin__proxy-server.js.json +1 -1
- package/.agent/history/snapshots/bin__spawn-agent.js.json +1 -1
- package/.agent/history/snapshots/bin__wrapper.js.json +1 -1
- package/.agent/history/snapshots/eslint.config.js.json +1 -1
- package/.agent/history/snapshots/hooks__session-start.js.json +11 -0
- package/.agent/history/snapshots/scripts__apply-version.js.json +11 -0
- package/.agent/history/snapshots/scripts__audit_skill_sdo.js.json +11 -0
- package/.agent/history/snapshots/scripts__clean-pycache.js.json +11 -0
- package/.agent/history/snapshots/scripts__context_compiler.js.json +17 -0
- package/.agent/history/snapshots/scripts__modernize_skills.js.json +11 -0
- package/.agent/history/snapshots/scripts__package-cores.js.json +12 -0
- package/.agent/history/snapshots/scripts__skill_enhancement_engine.js.json +11 -0
- package/.agent/history/snapshots/scripts__sync-skills.js.json +11 -0
- package/.agent/history/snapshots/scripts__telemetry_gc.js.json +11 -0
- package/.agent/history/snapshots/scripts__validate-payload.js.json +1 -1
- package/.agent/history/snapshots/test__integration__browser_cli.test.js.json +12 -0
- package/.agent/history/snapshots/test__integration__sync_status.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__ast_context_loader.test.js.json +12 -0
- package/.agent/history/snapshots/test__unit__browser_case_bridge.test.js.json +11 -0
- package/.agent/history/snapshots/test__unit__browser_discovery.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__browser_idpi.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__browser_sentinel.test.js.json +11 -0
- package/.agent/history/snapshots/test__unit__browser_synapse.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__browser_trimmer.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__context_compiler.test.js.json +26 -0
- package/.agent/history/snapshots/test__unit__init.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__learn.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__mcp_server.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__platform_download_audit.test.js.json +11 -0
- package/.agent/history/snapshots/test__unit__prompt_compiler.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__sdd_integration.test.js.json +12 -0
- package/.agent/history/snapshots/test__unit__stress.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__token_budget_broker.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__tui.test.js.json +10 -0
- package/.agent/routing_index.json +1 -1
- package/.agent/rules/kernel.md +86 -0
- package/.agent/scripts/_utils.js +78 -0
- package/.agent/scripts/context_broker.js +0 -8
- package/.agent/scripts/context_compiler.js +1106 -3
- package/.agent/scripts/guardrail_engine.js +48 -11
- package/.agent/scripts/memory_engine.js +490 -329
- package/.agent/scripts/pipeline_engine.js +29 -106
- package/.agent/scripts/swarm_dispatcher.js +123 -48
- package/.agent/skill_topic_map.json +71 -22
- package/.agent/skills/12-principles-of-animation/SKILL.md +1 -76
- package/.agent/skills/60fps-animation/SKILL.md +1 -76
- package/.agent/skills/accessible-animation/SKILL.md +1 -76
- package/.agent/skills/adapt/SKILL.md +1 -76
- package/.agent/skills/advanced-rag-pipelines/SKILL.md +1 -76
- package/.agent/skills/agent-organizer/SKILL.md +1 -76
- package/.agent/skills/agentic-patterns/SKILL.md +1 -76
- package/.agent/skills/agentic-workflows-2026/SKILL.md +1 -76
- package/.agent/skills/ai-app-hardening/SKILL.md +1 -76
- package/.agent/skills/ai-prompt-injection-defense/SKILL.md +1 -76
- package/.agent/skills/animation-on-scroll/SKILL.md +1 -76
- package/.agent/skills/animation-systems/SKILL.md +1 -76
- package/.agent/skills/antfu-conventions/SKILL.md +0 -75
- package/.agent/skills/api-patterns/SKILL.md +1 -76
- package/.agent/skills/api-security-auditor/SKILL.md +1 -76
- package/.agent/skills/app-builder/SKILL.md +1 -76
- package/.agent/skills/appflow-wireframe/SKILL.md +1 -76
- package/.agent/skills/apple-design/SKILL.md +1 -76
- package/.agent/skills/architecture/SKILL.md +1 -76
- package/.agent/skills/audit-and-fix/SKILL.md +41 -77
- package/.agent/skills/authentication-best-practices/SKILL.md +1 -76
- package/.agent/skills/backend-security-expert/SKILL.md +1 -76
- package/.agent/skills/baseline-ui/SKILL.md +1 -76
- package/.agent/skills/bash-linux/SKILL.md +1 -76
- package/.agent/skills/behavioral-modes/SKILL.md +1 -76
- package/.agent/skills/better-colors/SKILL.md +1 -76
- package/.agent/skills/better-typography/SKILL.md +1 -76
- package/.agent/skills/better-ui/SKILL.md +1 -76
- package/.agent/skills/bolder/SKILL.md +1 -76
- package/.agent/skills/brainstorming/SKILL.md +1 -76
- package/.agent/skills/browser-audit/SKILL.md +1 -76
- package/.agent/skills/browser-native-ai/SKILL.md +1 -76
- package/.agent/skills/build-primitive/SKILL.md +1 -76
- package/.agent/skills/building-native-ui/SKILL.md +1 -76
- package/.agent/skills/cicd-pro/SKILL.md +1 -76
- package/.agent/skills/clarify/SKILL.md +1 -76
- package/.agent/skills/clean-code/SKILL.md +1 -76
- package/.agent/skills/cloud-architect/SKILL.md +1 -76
- package/.agent/skills/cobejs/SKILL.md +1 -76
- package/.agent/skills/code-review-checklist/SKILL.md +1 -76
- package/.agent/skills/codebase-design/SKILL.md +1 -76
- package/.agent/skills/colorize/SKILL.md +1 -76
- package/.agent/skills/compact-landing/SKILL.md +1 -76
- package/.agent/skills/company-logos/SKILL.md +1 -76
- package/.agent/skills/config-validator/SKILL.md +1 -76
- package/.agent/skills/containerization-pro/SKILL.md +1 -76
- package/.agent/skills/context-engineering-pro/SKILL.md +1 -76
- package/.agent/skills/create-design-md/SKILL.md +1 -76
- package/.agent/skills/critique/SKILL.md +1 -76
- package/.agent/skills/csharp-developer/SKILL.md +1 -76
- package/.agent/skills/data-validation-schemas/SKILL.md +1 -76
- package/.agent/skills/database-design/SKILL.md +1 -76
- package/.agent/skills/delight/SKILL.md +1 -76
- package/.agent/skills/deployment-procedures/SKILL.md +1 -76
- package/.agent/skills/design-lab/SKILL.md +1 -76
- package/.agent/skills/devops-engineer/SKILL.md +1 -76
- package/.agent/skills/devops-incident-responder/SKILL.md +1 -76
- package/.agent/skills/diagnosing-bugs/SKILL.md +1 -76
- package/.agent/skills/distill/SKILL.md +1 -76
- package/.agent/skills/documentation-templates/SKILL.md +1 -76
- package/.agent/skills/domain-modeling/SKILL.md +1 -76
- package/.agent/skills/duckdb-analytical-sql/SKILL.md +1 -76
- package/.agent/skills/edge-ai-mobile/SKILL.md +1 -76
- package/.agent/skills/edge-computing/SKILL.md +1 -76
- package/.agent/skills/emil-design-eng/SKILL.md +1 -76
- package/.agent/skills/error-resilience/SKILL.md +1 -76
- package/.agent/skills/expo-router-v4/SKILL.md +1 -76
- package/.agent/skills/extract-design-system/SKILL.md +1 -76
- package/.agent/skills/fabel-protocol/SKILL.md +1 -76
- package/.agent/skills/fixing-accessibility/SKILL.md +1 -76
- package/.agent/skills/fixing-metadata/SKILL.md +1 -76
- package/.agent/skills/fixing-motion-performance/SKILL.md +1 -76
- package/.agent/skills/framer-motion-expert/SKILL.md +1 -76
- package/.agent/skills/frontend-design/SKILL.md +1 -76
- package/.agent/skills/frontend-security-expert/SKILL.md +1 -76
- package/.agent/skills/game-design-expert/SKILL.md +1 -76
- package/.agent/skills/game-engineering-expert/SKILL.md +1 -76
- package/.agent/skills/generative-ui-expert/SKILL.md +1 -76
- package/.agent/skills/geo-fundamentals/SKILL.md +1 -76
- package/.agent/skills/git-pro/SKILL.md +1 -76
- package/.agent/skills/github-operations/SKILL.md +1 -76
- package/.agent/skills/gpt-taste/SKILL.md +1 -76
- package/.agent/skills/gsap-core/SKILL.md +1 -76
- package/.agent/skills/gsap-frameworks/SKILL.md +1 -76
- package/.agent/skills/gsap-performance/SKILL.md +1 -76
- package/.agent/skills/gsap-plugins/SKILL.md +1 -76
- package/.agent/skills/gsap-react/SKILL.md +1 -76
- package/.agent/skills/gsap-scrolltrigger/SKILL.md +1 -76
- package/.agent/skills/gsap-timeline/SKILL.md +1 -76
- package/.agent/skills/gsap-utils/SKILL.md +1 -76
- package/.agent/skills/harden/SKILL.md +1 -76
- package/.agent/skills/harness-protocol/SKILL.md +1 -76
- package/.agent/skills/i18n-localization/SKILL.md +1 -76
- package/.agent/skills/impeccable/SKILL.md +1 -76
- package/.agent/skills/improve-codebase-architecture/SKILL.md +1 -76
- package/.agent/skills/improve-ui/SKILL.md +1 -76
- package/.agent/skills/intelligent-routing/SKILL.md +2 -88
- package/.agent/skills/knowledge-graph/SKILL.md +1 -76
- package/.agent/skills/landing-page/SKILL.md +1 -76
- package/.agent/skills/lint-and-validate/SKILL.md +1 -76
- package/.agent/skills/llm-engineering/SKILL.md +1 -76
- package/.agent/skills/local-first/SKILL.md +1 -76
- package/.agent/skills/local-first-architecture/SKILL.md +1 -76
- package/.agent/skills/lottie-animation/SKILL.md +1 -76
- package/.agent/skills/marquee-loop/SKILL.md +1 -76
- package/.agent/skills/masked-reveal/SKILL.md +1 -76
- package/.agent/skills/mcp-builder/SKILL.md +1 -76
- package/.agent/skills/micro-interaction/SKILL.md +1 -76
- package/.agent/skills/mobile-design/SKILL.md +1 -76
- package/.agent/skills/monorepo-management/SKILL.md +1 -76
- package/.agent/skills/morphing-icons/SKILL.md +1 -76
- package/.agent/skills/motion-engineering/SKILL.md +1 -76
- package/.agent/skills/nextjs-react-expert/SKILL.md +1 -76
- package/.agent/skills/nodejs-best-practices/SKILL.md +1 -76
- package/.agent/skills/observability/SKILL.md +1 -76
- package/.agent/skills/opentelemetry-observability/SKILL.md +1 -76
- package/.agent/skills/page-transition-animation/SKILL.md +1 -76
- package/.agent/skills/parallel-agents/SKILL.md +1 -76
- package/.agent/skills/performance-profiling/SKILL.md +1 -76
- package/.agent/skills/plan-writing/SKILL.md +1 -76
- package/.agent/skills/platform-engineer/SKILL.md +1 -76
- package/.agent/skills/platform-engineering-opentofu/SKILL.md +1 -76
- package/.agent/skills/playwright-ai-e2e/SKILL.md +1 -76
- package/.agent/skills/playwright-best-practices/SKILL.md +1 -76
- package/.agent/skills/polish/SKILL.md +1 -76
- package/.agent/skills/powershell-windows/SKILL.md +1 -76
- package/.agent/skills/pricing-page/SKILL.md +1 -76
- package/.agent/skills/product-aware-heuristics/SKILL.md +1 -76
- package/.agent/skills/progressive-blur/SKILL.md +1 -76
- package/.agent/skills/project-idioms/SKILL.md +1 -76
- package/.agent/skills/property-based-testing/SKILL.md +1 -76
- package/.agent/skills/python-patterns/SKILL.md +1 -76
- package/.agent/skills/python-pro/SKILL.md +1 -76
- package/.agent/skills/quieter/SKILL.md +1 -76
- package/.agent/skills/react-doctor/SKILL.md +1 -76
- package/.agent/skills/react-specialist/SKILL.md +1 -76
- package/.agent/skills/readme-builder/SKILL.md +1 -76
- package/.agent/skills/realtime-patterns/SKILL.md +1 -76
- package/.agent/skills/red-team-tactics/SKILL.md +1 -76
- package/.agent/skills/redesign-skill/SKILL.md +1 -76
- package/.agent/skills/review-animations/SKILL.md +1 -76
- package/.agent/skills/rust-pro/SKILL.md +1 -76
- package/.agent/skills/seo-fundamentals/SKILL.md +1 -76
- package/.agent/skills/server-management/SKILL.md +1 -76
- package/.agent/skills/shadcn-ui-expert/SKILL.md +1 -76
- package/.agent/skills/shape/SKILL.md +1 -76
- package/.agent/skills/skill-creator/SKILL.md +124 -90
- package/.agent/skills/soft-skill/SKILL.md +1 -76
- package/.agent/skills/sounds-on-the-web/SKILL.md +1 -76
- package/.agent/skills/sql-pro/SKILL.md +1 -76
- package/.agent/skills/supabase-postgres-best-practices/SKILL.md +1 -76
- package/.agent/skills/svg-animation/SKILL.md +1 -76
- package/.agent/skills/swiftui-expert/SKILL.md +1 -76
- package/.agent/skills/swiss-design/SKILL.md +1 -76
- package/.agent/skills/system-design-pro/SKILL.md +1 -76
- package/.agent/skills/systematic-debugging/SKILL.md +1 -76
- package/.agent/skills/tailwind-patterns/SKILL.md +1 -76
- package/.agent/skills/taste-skill/SKILL.md +1 -76
- package/.agent/skills/tdd-workflow/SKILL.md +1 -76
- package/.agent/skills/test-result-analyzer/SKILL.md +1 -76
- package/.agent/skills/testing-patterns/SKILL.md +1 -76
- package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
- package/.agent/skills/thinking-protocol/SKILL.md +1 -78
- package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
- package/.agent/skills/transitions-dev/SKILL.md +1 -76
- package/.agent/skills/trend-researcher/SKILL.md +1 -76
- package/.agent/skills/typescript-advanced/SKILL.md +1 -76
- package/.agent/skills/typeset/SKILL.md +1 -76
- package/.agent/skills/ui-reasoning-engine/SKILL.md +1 -76
- package/.agent/skills/ui-skill-packs/SKILL.md +1 -76
- package/.agent/skills/ui-skills-root/SKILL.md +1 -76
- package/.agent/skills/ui-ux-pro-max/SKILL.md +1 -76
- package/.agent/skills/ui-ux-researcher/SKILL.md +1 -76
- package/.agent/skills/vector-search-pgvector/SKILL.md +1 -76
- package/.agent/skills/verification-before-completion/SKILL.md +1 -76
- package/.agent/skills/vue-expert/SKILL.md +1 -76
- package/.agent/skills/vulnerability-scanner/SKILL.md +1 -76
- package/.agent/skills/web-accessibility-auditor/SKILL.md +1 -76
- package/.agent/skills/web-design-guidelines/SKILL.md +1 -76
- package/.agent/skills/web-quality-audit/SKILL.md +1 -76
- package/.agent/skills/webapp-testing/SKILL.md +1 -76
- package/.agent/skills/webgpu-performance/SKILL.md +1 -76
- package/.agent/skills/whimsy-injector/SKILL.md +1 -76
- package/.agent/skills/workflow-optimizer/SKILL.md +1 -76
- package/.agent/skills/zero-trust-passkeys/SKILL.md +1 -76
- package/.agent/workflows/generate.md +1 -1
- package/.agent/workflows/orchestrate.md +1 -1
- package/.agent/workflows/review-ai.md +1 -1
- package/.agent/workflows/skill-enhancement-engine.md +6 -10
- package/.agent/workflows/swarm.md +1 -1
- package/.agent/workflows/tribunal-backend.md +1 -1
- package/.agent/workflows/tribunal-cicd.md +1 -1
- package/.agent/workflows/tribunal-database.md +1 -1
- package/.agent/workflows/tribunal-frontend.md +1 -1
- package/.agent/workflows/tribunal-full.md +9 -9
- package/.agent/workflows/tribunal-mobile.md +1 -1
- package/.agent/workflows/tribunal-speed.md +1 -1
- package/.agent/workflows/tribunal-ui.md +1 -1
- package/.agents/skills/12-principles-of-animation/SKILL.md +1 -76
- package/.agents/skills/60fps-animation/SKILL.md +1 -76
- package/.agents/skills/accessible-animation/SKILL.md +1 -76
- package/.agents/skills/adapt/SKILL.md +1 -76
- package/.agents/skills/advanced-rag-pipelines/SKILL.md +1 -76
- package/.agents/skills/agent-organizer/SKILL.md +1 -76
- package/.agents/skills/agentic-patterns/SKILL.md +1 -76
- package/.agents/skills/agentic-workflows-2026/SKILL.md +1 -76
- package/.agents/skills/ai-app-hardening/SKILL.md +1 -76
- package/.agents/skills/ai-prompt-injection-defense/SKILL.md +1 -76
- package/.agents/skills/animation-on-scroll/SKILL.md +1 -76
- package/.agents/skills/animation-systems/SKILL.md +1 -76
- package/.agents/skills/antfu-conventions/SKILL.md +0 -75
- package/.agents/skills/api-patterns/SKILL.md +1 -76
- package/.agents/skills/api-security-auditor/SKILL.md +1 -76
- package/.agents/skills/app-builder/SKILL.md +1 -76
- package/.agents/skills/appflow-wireframe/SKILL.md +1 -76
- package/.agents/skills/apple-design/SKILL.md +1 -76
- package/.agents/skills/architecture/SKILL.md +1 -76
- package/.agents/skills/audit-and-fix/SKILL.md +41 -77
- package/.agents/skills/authentication-best-practices/SKILL.md +1 -76
- package/.agents/skills/backend-security-expert/SKILL.md +1 -76
- package/.agents/skills/baseline-ui/SKILL.md +1 -76
- package/.agents/skills/bash-linux/SKILL.md +1 -76
- package/.agents/skills/behavioral-modes/SKILL.md +1 -76
- package/.agents/skills/better-colors/SKILL.md +1 -76
- package/.agents/skills/better-typography/SKILL.md +1 -76
- package/.agents/skills/better-ui/SKILL.md +1 -76
- package/.agents/skills/bolder/SKILL.md +1 -76
- package/.agents/skills/brainstorming/SKILL.md +1 -76
- package/.agents/skills/browser-audit/SKILL.md +1 -76
- package/.agents/skills/browser-native-ai/SKILL.md +1 -76
- package/.agents/skills/build-primitive/SKILL.md +1 -76
- package/.agents/skills/building-native-ui/SKILL.md +1 -76
- package/.agents/skills/cicd-pro/SKILL.md +1 -76
- package/.agents/skills/clarify/SKILL.md +1 -76
- package/.agents/skills/clean-code/SKILL.md +1 -76
- package/.agents/skills/cloud-architect/SKILL.md +1 -76
- package/.agents/skills/cobejs/SKILL.md +1 -76
- package/.agents/skills/code-review-checklist/SKILL.md +1 -76
- package/.agents/skills/codebase-design/SKILL.md +1 -76
- package/.agents/skills/colorize/SKILL.md +1 -76
- package/.agents/skills/compact-landing/SKILL.md +1 -76
- package/.agents/skills/company-logos/SKILL.md +1 -76
- package/.agents/skills/config-validator/SKILL.md +1 -76
- package/.agents/skills/containerization-pro/SKILL.md +1 -76
- package/.agents/skills/context-engineering-pro/SKILL.md +1 -76
- package/.agents/skills/create-design-md/SKILL.md +1 -76
- package/.agents/skills/critique/SKILL.md +1 -76
- package/.agents/skills/csharp-developer/SKILL.md +1 -76
- package/.agents/skills/data-validation-schemas/SKILL.md +1 -76
- package/.agents/skills/database-design/SKILL.md +1 -76
- package/.agents/skills/delight/SKILL.md +1 -76
- package/.agents/skills/deployment-procedures/SKILL.md +1 -76
- package/.agents/skills/design-lab/SKILL.md +1 -76
- package/.agents/skills/devops-engineer/SKILL.md +1 -76
- package/.agents/skills/devops-incident-responder/SKILL.md +1 -76
- package/.agents/skills/diagnosing-bugs/SKILL.md +1 -76
- package/.agents/skills/distill/SKILL.md +1 -76
- package/.agents/skills/documentation-templates/SKILL.md +1 -76
- package/.agents/skills/domain-modeling/SKILL.md +1 -76
- package/.agents/skills/duckdb-analytical-sql/SKILL.md +1 -76
- package/.agents/skills/edge-ai-mobile/SKILL.md +1 -76
- package/.agents/skills/edge-computing/SKILL.md +1 -76
- package/.agents/skills/emil-design-eng/SKILL.md +1 -76
- package/.agents/skills/error-resilience/SKILL.md +1 -76
- package/.agents/skills/expo-router-v4/SKILL.md +1 -76
- package/.agents/skills/extract-design-system/SKILL.md +1 -76
- package/.agents/skills/fabel-protocol/SKILL.md +1 -76
- package/.agents/skills/fixing-accessibility/SKILL.md +1 -76
- package/.agents/skills/fixing-metadata/SKILL.md +1 -76
- package/.agents/skills/fixing-motion-performance/SKILL.md +1 -76
- package/.agents/skills/framer-motion-expert/SKILL.md +1 -76
- package/.agents/skills/frontend-design/SKILL.md +1 -76
- package/.agents/skills/frontend-security-expert/SKILL.md +1 -76
- package/.agents/skills/game-design-expert/SKILL.md +1 -76
- package/.agents/skills/game-engineering-expert/SKILL.md +1 -76
- package/.agents/skills/generative-ui-expert/SKILL.md +1 -76
- package/.agents/skills/geo-fundamentals/SKILL.md +1 -76
- package/.agents/skills/git-pro/SKILL.md +1 -76
- package/.agents/skills/github-operations/SKILL.md +1 -76
- package/.agents/skills/gpt-taste/SKILL.md +1 -76
- package/.agents/skills/gsap-core/SKILL.md +1 -76
- package/.agents/skills/gsap-frameworks/SKILL.md +1 -76
- package/.agents/skills/gsap-performance/SKILL.md +1 -76
- package/.agents/skills/gsap-plugins/SKILL.md +1 -76
- package/.agents/skills/gsap-react/SKILL.md +1 -76
- package/.agents/skills/gsap-scrolltrigger/SKILL.md +1 -76
- package/.agents/skills/gsap-timeline/SKILL.md +1 -76
- package/.agents/skills/gsap-utils/SKILL.md +1 -76
- package/.agents/skills/harden/SKILL.md +1 -76
- package/.agents/skills/harness-protocol/SKILL.md +1 -76
- package/.agents/skills/i18n-localization/SKILL.md +1 -76
- package/.agents/skills/impeccable/SKILL.md +1 -76
- package/.agents/skills/improve-codebase-architecture/SKILL.md +1 -76
- package/.agents/skills/improve-ui/SKILL.md +1 -76
- package/.agents/skills/intelligent-routing/SKILL.md +2 -88
- package/.agents/skills/knowledge-graph/SKILL.md +1 -76
- package/.agents/skills/landing-page/SKILL.md +1 -76
- package/.agents/skills/lint-and-validate/SKILL.md +1 -76
- package/.agents/skills/llm-engineering/SKILL.md +1 -76
- package/.agents/skills/local-first/SKILL.md +1 -76
- package/.agents/skills/local-first-architecture/SKILL.md +1 -76
- package/.agents/skills/lottie-animation/SKILL.md +1 -76
- package/.agents/skills/marquee-loop/SKILL.md +1 -76
- package/.agents/skills/masked-reveal/SKILL.md +1 -76
- package/.agents/skills/mcp-builder/SKILL.md +1 -76
- package/.agents/skills/micro-interaction/SKILL.md +1 -76
- package/.agents/skills/mobile-design/SKILL.md +1 -76
- package/.agents/skills/monorepo-management/SKILL.md +1 -76
- package/.agents/skills/morphing-icons/SKILL.md +1 -76
- package/.agents/skills/motion-engineering/SKILL.md +1 -76
- package/.agents/skills/nextjs-react-expert/SKILL.md +1 -76
- package/.agents/skills/nodejs-best-practices/SKILL.md +1 -76
- package/.agents/skills/observability/SKILL.md +1 -76
- package/.agents/skills/opentelemetry-observability/SKILL.md +1 -76
- package/.agents/skills/page-transition-animation/SKILL.md +1 -76
- package/.agents/skills/parallel-agents/SKILL.md +1 -76
- package/.agents/skills/performance-profiling/SKILL.md +1 -76
- package/.agents/skills/plan-writing/SKILL.md +1 -76
- package/.agents/skills/platform-engineer/SKILL.md +1 -76
- package/.agents/skills/platform-engineering-opentofu/SKILL.md +1 -76
- package/.agents/skills/playwright-ai-e2e/SKILL.md +1 -76
- package/.agents/skills/playwright-best-practices/SKILL.md +1 -76
- package/.agents/skills/polish/SKILL.md +1 -76
- package/.agents/skills/powershell-windows/SKILL.md +1 -76
- package/.agents/skills/pricing-page/SKILL.md +1 -76
- package/.agents/skills/product-aware-heuristics/SKILL.md +1 -76
- package/.agents/skills/progressive-blur/SKILL.md +1 -76
- package/.agents/skills/project-idioms/SKILL.md +1 -76
- package/.agents/skills/property-based-testing/SKILL.md +1 -76
- package/.agents/skills/python-patterns/SKILL.md +1 -76
- package/.agents/skills/python-pro/SKILL.md +1 -76
- package/.agents/skills/quieter/SKILL.md +1 -76
- package/.agents/skills/react-doctor/SKILL.md +1 -76
- package/.agents/skills/react-specialist/SKILL.md +1 -76
- package/.agents/skills/readme-builder/SKILL.md +1 -76
- package/.agents/skills/realtime-patterns/SKILL.md +1 -76
- package/.agents/skills/red-team-tactics/SKILL.md +1 -76
- package/.agents/skills/redesign-skill/SKILL.md +1 -76
- package/.agents/skills/review-animations/SKILL.md +1 -76
- package/.agents/skills/rust-pro/SKILL.md +1 -76
- package/.agents/skills/seo-fundamentals/SKILL.md +1 -76
- package/.agents/skills/server-management/SKILL.md +1 -76
- package/.agents/skills/shadcn-ui-expert/SKILL.md +1 -76
- package/.agents/skills/shape/SKILL.md +1 -76
- package/.agents/skills/skill-creator/SKILL.md +124 -90
- package/.agents/skills/soft-skill/SKILL.md +1 -76
- package/.agents/skills/sounds-on-the-web/SKILL.md +1 -76
- package/.agents/skills/sql-pro/SKILL.md +1 -76
- package/.agents/skills/supabase-postgres-best-practices/SKILL.md +1 -76
- package/.agents/skills/svg-animation/SKILL.md +1 -76
- package/.agents/skills/swiftui-expert/SKILL.md +1 -76
- package/.agents/skills/swiss-design/SKILL.md +1 -76
- package/.agents/skills/system-design-pro/SKILL.md +1 -76
- package/.agents/skills/systematic-debugging/SKILL.md +1 -76
- package/.agents/skills/tailwind-patterns/SKILL.md +1 -76
- package/.agents/skills/taste-skill/SKILL.md +1 -76
- package/.agents/skills/tdd-workflow/SKILL.md +1 -76
- package/.agents/skills/test-result-analyzer/SKILL.md +1 -76
- package/.agents/skills/testing-patterns/SKILL.md +1 -76
- package/.agents/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
- package/.agents/skills/thinking-protocol/SKILL.md +1 -78
- package/.agents/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
- package/.agents/skills/transitions-dev/SKILL.md +1 -76
- package/.agents/skills/trend-researcher/SKILL.md +1 -76
- package/.agents/skills/typescript-advanced/SKILL.md +1 -76
- package/.agents/skills/typeset/SKILL.md +1 -76
- package/.agents/skills/ui-reasoning-engine/SKILL.md +1 -76
- package/.agents/skills/ui-skill-packs/SKILL.md +1 -76
- package/.agents/skills/ui-skills-root/SKILL.md +1 -76
- package/.agents/skills/ui-ux-pro-max/SKILL.md +1 -76
- package/.agents/skills/ui-ux-researcher/SKILL.md +1 -76
- package/.agents/skills/vector-search-pgvector/SKILL.md +1 -76
- package/.agents/skills/verification-before-completion/SKILL.md +1 -76
- package/.agents/skills/vue-expert/SKILL.md +1 -76
- package/.agents/skills/vulnerability-scanner/SKILL.md +1 -76
- package/.agents/skills/web-accessibility-auditor/SKILL.md +1 -76
- package/.agents/skills/web-design-guidelines/SKILL.md +1 -76
- package/.agents/skills/web-quality-audit/SKILL.md +1 -76
- package/.agents/skills/webapp-testing/SKILL.md +1 -76
- package/.agents/skills/webgpu-performance/SKILL.md +1 -76
- package/.agents/skills/whimsy-injector/SKILL.md +1 -76
- package/.agents/skills/workflow-optimizer/SKILL.md +1 -76
- package/.agents/skills/zero-trust-passkeys/SKILL.md +1 -76
- package/README.md +542 -542
- package/bin/adapter-install.js +263 -263
- package/bin/mcp-server.js +71 -46
- package/bin/wrapper.js +10 -1
- package/dist/commands/init.js +25 -11
- package/dist/tui/banner.js +1 -1
- package/gemini-extension.json +1 -1
- package/package.json +13 -10
- package/plugin.json +1 -1
- package/scripts/context_compiler.js +49 -0
- package/scripts/skill_enhancement_engine.js +5 -31
- package/scripts/telemetry_gc.js +3 -1
- package/scripts/validate-payload.js +1 -6
- package/skills/12-principles-of-animation/SKILL.md +1 -76
- package/skills/60fps-animation/SKILL.md +1 -76
- package/skills/accessible-animation/SKILL.md +1 -76
- package/skills/adapt/SKILL.md +1 -76
- package/skills/advanced-rag-pipelines/SKILL.md +1 -76
- package/skills/agent-organizer/SKILL.md +1 -76
- package/skills/agentic-patterns/SKILL.md +1 -76
- package/skills/agentic-workflows-2026/SKILL.md +1 -76
- package/skills/ai-app-hardening/SKILL.md +1 -76
- package/skills/ai-prompt-injection-defense/SKILL.md +1 -76
- package/skills/animation-on-scroll/SKILL.md +1 -76
- package/skills/animation-systems/SKILL.md +1 -76
- package/skills/antfu-conventions/SKILL.md +0 -75
- package/skills/api-patterns/SKILL.md +1 -76
- package/skills/api-security-auditor/SKILL.md +1 -76
- package/skills/app-builder/SKILL.md +1 -76
- package/skills/appflow-wireframe/SKILL.md +1 -76
- package/skills/apple-design/SKILL.md +1 -76
- package/skills/architecture/SKILL.md +1 -76
- package/skills/audit-and-fix/SKILL.md +41 -77
- package/skills/authentication-best-practices/SKILL.md +1 -76
- package/skills/backend-security-expert/SKILL.md +1 -76
- package/skills/baseline-ui/SKILL.md +1 -76
- package/skills/bash-linux/SKILL.md +1 -76
- package/skills/behavioral-modes/SKILL.md +1 -76
- package/skills/better-colors/SKILL.md +1 -76
- package/skills/better-typography/SKILL.md +1 -76
- package/skills/better-ui/SKILL.md +1 -76
- package/skills/bolder/SKILL.md +1 -76
- package/skills/brainstorming/SKILL.md +1 -76
- package/skills/browser-audit/SKILL.md +1 -76
- package/skills/browser-native-ai/SKILL.md +1 -76
- package/skills/build-primitive/SKILL.md +1 -76
- package/skills/building-native-ui/SKILL.md +1 -76
- package/skills/cicd-pro/SKILL.md +1 -76
- package/skills/clarify/SKILL.md +1 -76
- package/skills/clean-code/SKILL.md +1 -76
- package/skills/cloud-architect/SKILL.md +1 -76
- package/skills/cobejs/SKILL.md +1 -76
- package/skills/code-review-checklist/SKILL.md +1 -76
- package/skills/codebase-design/SKILL.md +1 -76
- package/skills/colorize/SKILL.md +1 -76
- package/skills/compact-landing/SKILL.md +1 -76
- package/skills/company-logos/SKILL.md +1 -76
- package/skills/config-validator/SKILL.md +1 -76
- package/skills/containerization-pro/SKILL.md +1 -76
- package/skills/context-engineering-pro/SKILL.md +1 -76
- package/skills/create-design-md/SKILL.md +1 -76
- package/skills/critique/SKILL.md +1 -76
- package/skills/csharp-developer/SKILL.md +1 -76
- package/skills/data-validation-schemas/SKILL.md +1 -76
- package/skills/database-design/SKILL.md +1 -76
- package/skills/delight/SKILL.md +1 -76
- package/skills/deployment-procedures/SKILL.md +1 -76
- package/skills/design-lab/SKILL.md +1 -76
- package/skills/devops-engineer/SKILL.md +1 -76
- package/skills/devops-incident-responder/SKILL.md +1 -76
- package/skills/diagnosing-bugs/SKILL.md +1 -76
- package/skills/distill/SKILL.md +1 -76
- package/skills/documentation-templates/SKILL.md +1 -76
- package/skills/domain-modeling/SKILL.md +1 -76
- package/skills/duckdb-analytical-sql/SKILL.md +1 -76
- package/skills/edge-ai-mobile/SKILL.md +1 -76
- package/skills/edge-computing/SKILL.md +1 -76
- package/skills/emil-design-eng/SKILL.md +1 -76
- package/skills/error-resilience/SKILL.md +1 -76
- package/skills/expo-router-v4/SKILL.md +1 -76
- package/skills/extract-design-system/SKILL.md +1 -76
- package/skills/fabel-protocol/SKILL.md +1 -76
- package/skills/fixing-accessibility/SKILL.md +1 -76
- package/skills/fixing-metadata/SKILL.md +1 -76
- package/skills/fixing-motion-performance/SKILL.md +1 -76
- package/skills/framer-motion-expert/SKILL.md +1 -76
- package/skills/frontend-design/SKILL.md +1 -76
- package/skills/frontend-security-expert/SKILL.md +1 -76
- package/skills/game-design-expert/SKILL.md +1 -76
- package/skills/game-engineering-expert/SKILL.md +1 -76
- package/skills/generative-ui-expert/SKILL.md +1 -76
- package/skills/geo-fundamentals/SKILL.md +1 -76
- package/skills/git-pro/SKILL.md +1 -76
- package/skills/github-operations/SKILL.md +1 -76
- package/skills/gpt-taste/SKILL.md +1 -76
- package/skills/gsap-core/SKILL.md +1 -76
- package/skills/gsap-frameworks/SKILL.md +1 -76
- package/skills/gsap-performance/SKILL.md +1 -76
- package/skills/gsap-plugins/SKILL.md +1 -76
- package/skills/gsap-react/SKILL.md +1 -76
- package/skills/gsap-scrolltrigger/SKILL.md +1 -76
- package/skills/gsap-timeline/SKILL.md +1 -76
- package/skills/gsap-utils/SKILL.md +1 -76
- package/skills/harden/SKILL.md +1 -76
- package/skills/harness-protocol/SKILL.md +1 -76
- package/skills/i18n-localization/SKILL.md +1 -76
- package/skills/impeccable/SKILL.md +1 -76
- package/skills/improve-codebase-architecture/SKILL.md +1 -76
- package/skills/improve-ui/SKILL.md +1 -76
- package/skills/intelligent-routing/SKILL.md +2 -88
- package/skills/knowledge-graph/SKILL.md +1 -76
- package/skills/landing-page/SKILL.md +1 -76
- package/skills/lint-and-validate/SKILL.md +1 -76
- package/skills/llm-engineering/SKILL.md +1 -76
- package/skills/local-first/SKILL.md +1 -76
- package/skills/local-first-architecture/SKILL.md +1 -76
- package/skills/lottie-animation/SKILL.md +1 -76
- package/skills/marquee-loop/SKILL.md +1 -76
- package/skills/masked-reveal/SKILL.md +1 -76
- package/skills/mcp-builder/SKILL.md +1 -76
- package/skills/micro-interaction/SKILL.md +1 -76
- package/skills/mobile-design/SKILL.md +1 -76
- package/skills/monorepo-management/SKILL.md +1 -76
- package/skills/morphing-icons/SKILL.md +1 -76
- package/skills/motion-engineering/SKILL.md +1 -76
- package/skills/nextjs-react-expert/SKILL.md +1 -76
- package/skills/nodejs-best-practices/SKILL.md +1 -76
- package/skills/observability/SKILL.md +1 -76
- package/skills/opentelemetry-observability/SKILL.md +1 -76
- package/skills/page-transition-animation/SKILL.md +1 -76
- package/skills/parallel-agents/SKILL.md +1 -76
- package/skills/performance-profiling/SKILL.md +1 -76
- package/skills/plan-writing/SKILL.md +1 -76
- package/skills/platform-engineer/SKILL.md +1 -76
- package/skills/platform-engineering-opentofu/SKILL.md +1 -76
- package/skills/playwright-ai-e2e/SKILL.md +1 -76
- package/skills/playwright-best-practices/SKILL.md +1 -76
- package/skills/polish/SKILL.md +1 -76
- package/skills/powershell-windows/SKILL.md +1 -76
- package/skills/pricing-page/SKILL.md +1 -76
- package/skills/product-aware-heuristics/SKILL.md +1 -76
- package/skills/progressive-blur/SKILL.md +1 -76
- package/skills/project-idioms/SKILL.md +1 -76
- package/skills/property-based-testing/SKILL.md +1 -76
- package/skills/python-patterns/SKILL.md +1 -76
- package/skills/python-pro/SKILL.md +1 -76
- package/skills/quieter/SKILL.md +1 -76
- package/skills/react-doctor/SKILL.md +1 -76
- package/skills/react-specialist/SKILL.md +1 -76
- package/skills/readme-builder/SKILL.md +1 -76
- package/skills/realtime-patterns/SKILL.md +1 -76
- package/skills/red-team-tactics/SKILL.md +1 -76
- package/skills/redesign-skill/SKILL.md +1 -76
- package/skills/review-animations/SKILL.md +1 -76
- package/skills/rust-pro/SKILL.md +1 -76
- package/skills/seo-fundamentals/SKILL.md +1 -76
- package/skills/server-management/SKILL.md +1 -76
- package/skills/shadcn-ui-expert/SKILL.md +1 -76
- package/skills/shape/SKILL.md +1 -76
- package/skills/skill-creator/SKILL.md +124 -90
- package/skills/soft-skill/SKILL.md +1 -76
- package/skills/sounds-on-the-web/SKILL.md +1 -76
- package/skills/sql-pro/SKILL.md +1 -76
- package/skills/supabase-postgres-best-practices/SKILL.md +1 -76
- package/skills/svg-animation/SKILL.md +1 -76
- package/skills/swiftui-expert/SKILL.md +1 -76
- package/skills/swiss-design/SKILL.md +1 -76
- package/skills/system-design-pro/SKILL.md +1 -76
- package/skills/systematic-debugging/SKILL.md +1 -76
- package/skills/tailwind-patterns/SKILL.md +1 -76
- package/skills/taste-skill/SKILL.md +1 -76
- package/skills/tdd-workflow/SKILL.md +1 -76
- package/skills/test-result-analyzer/SKILL.md +1 -76
- package/skills/testing-patterns/SKILL.md +1 -76
- package/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
- package/skills/thinking-protocol/SKILL.md +1 -78
- package/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
- package/skills/transitions-dev/SKILL.md +1 -76
- package/skills/trend-researcher/SKILL.md +1 -76
- package/skills/typescript-advanced/SKILL.md +1 -76
- package/skills/typeset/SKILL.md +1 -76
- package/skills/ui-reasoning-engine/SKILL.md +1 -76
- package/skills/ui-skill-packs/SKILL.md +1 -76
- package/skills/ui-skills-root/SKILL.md +1 -76
- package/skills/ui-ux-pro-max/SKILL.md +1 -76
- package/skills/ui-ux-researcher/SKILL.md +1 -76
- package/skills/vector-search-pgvector/SKILL.md +1 -76
- package/skills/verification-before-completion/SKILL.md +1 -76
- package/skills/vue-expert/SKILL.md +1 -76
- package/skills/vulnerability-scanner/SKILL.md +1 -76
- package/skills/web-accessibility-auditor/SKILL.md +1 -76
- package/skills/web-design-guidelines/SKILL.md +1 -76
- package/skills/web-quality-audit/SKILL.md +1 -76
- package/skills/webapp-testing/SKILL.md +1 -76
- package/skills/webgpu-performance/SKILL.md +1 -76
- package/skills/whimsy-injector/SKILL.md +1 -76
- package/skills/workflow-optimizer/SKILL.md +1 -76
- package/skills/zero-trust-passkeys/SKILL.md +1 -76
package/bin/mcp-server.js
CHANGED
|
@@ -55,6 +55,9 @@ class ToolRepeatGuard {
|
|
|
55
55
|
}
|
|
56
56
|
return sorted;
|
|
57
57
|
}
|
|
58
|
+
if (typeof obj === 'string') {
|
|
59
|
+
return obj.trim().toLowerCase().replace(/\s+/g, ' ');
|
|
60
|
+
}
|
|
58
61
|
return obj;
|
|
59
62
|
};
|
|
60
63
|
|
|
@@ -745,36 +748,28 @@ async function handleRequest(req) {
|
|
|
745
748
|
const check = req.params?.arguments?.check;
|
|
746
749
|
|
|
747
750
|
try {
|
|
748
|
-
const compiler = require('../scripts/context_compiler');
|
|
749
751
|
const workspaceRoot = process.cwd();
|
|
750
|
-
|
|
752
|
+
|
|
751
753
|
if (check) {
|
|
752
|
-
const
|
|
754
|
+
const { spawn } = require('child_process');
|
|
755
|
+
const result = await new Promise((resolve, reject) => {
|
|
756
|
+
const child = spawn(process.execPath, [path.join(__dirname, '../scripts/context_compiler.js'), '--check', '--json'], { cwd: workspaceRoot, encoding: 'utf8' });
|
|
757
|
+
let out = '';
|
|
758
|
+
child.stdout.on('data', d => out += d);
|
|
759
|
+
child.stderr.on('data', d => out += d);
|
|
760
|
+
child.on('close', code => resolve(out));
|
|
761
|
+
child.on('error', reject);
|
|
762
|
+
});
|
|
753
763
|
return {
|
|
754
764
|
content: [
|
|
755
765
|
{
|
|
756
766
|
type: 'text',
|
|
757
|
-
text:
|
|
767
|
+
text: result,
|
|
758
768
|
},
|
|
759
769
|
],
|
|
760
770
|
};
|
|
761
771
|
}
|
|
762
772
|
|
|
763
|
-
if (target && compareWith) {
|
|
764
|
-
const bridge = compiler.analyzeMultiFileBridge(target, compareWith, workspaceRoot);
|
|
765
|
-
const md = compiler.renderBridgeDossier(bridge);
|
|
766
|
-
if (write) {
|
|
767
|
-
const outName = `${path.basename(target).replace(/\.[^.]+$/, '')}__${path.basename(compareWith).replace(/\.[^.]+$/, '')}.bridge.md`;
|
|
768
|
-
const dest = path.join(workspaceRoot, 'docs', 'context', outName);
|
|
769
|
-
fs.mkdirSync(path.dirname(dest), { recursive: true });
|
|
770
|
-
fs.writeFileSync(dest, md, 'utf8');
|
|
771
|
-
compiler.syncVaultIndex(workspaceRoot);
|
|
772
|
-
}
|
|
773
|
-
return {
|
|
774
|
-
content: [{ type: 'text', text: md }],
|
|
775
|
-
};
|
|
776
|
-
}
|
|
777
|
-
|
|
778
773
|
if (!target) {
|
|
779
774
|
throw new RpcError(
|
|
780
775
|
-32602,
|
|
@@ -782,33 +777,33 @@ async function handleRequest(req) {
|
|
|
782
777
|
);
|
|
783
778
|
}
|
|
784
779
|
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
fs.writeFileSync(dest, md, 'utf8');
|
|
794
|
-
compiler.syncVaultIndex(workspaceRoot);
|
|
795
|
-
}
|
|
796
|
-
return {
|
|
797
|
-
content: [{ type: 'text', text: md }],
|
|
798
|
-
};
|
|
780
|
+
// We use scripts/context_compiler.js to parse AST without blocking the event loop
|
|
781
|
+
const { spawn } = require('child_process');
|
|
782
|
+
const args = [path.join(__dirname, '../scripts/context_compiler.js')];
|
|
783
|
+
|
|
784
|
+
if (compareWith) {
|
|
785
|
+
args.push('--multi', target, compareWith);
|
|
786
|
+
} else {
|
|
787
|
+
args.push(target);
|
|
799
788
|
}
|
|
800
|
-
|
|
801
|
-
const fileData = compiler.analyzeSingleFile(target, workspaceRoot);
|
|
802
|
-
const md = compiler.renderSingleFileDossier(fileData);
|
|
789
|
+
|
|
803
790
|
if (write) {
|
|
804
|
-
|
|
805
|
-
const dest = path.join(workspaceRoot, 'docs', 'context', outName);
|
|
806
|
-
fs.mkdirSync(path.dirname(dest), { recursive: true });
|
|
807
|
-
fs.writeFileSync(dest, md, 'utf8');
|
|
808
|
-
compiler.syncVaultIndex(workspaceRoot);
|
|
791
|
+
args.push('--write');
|
|
809
792
|
}
|
|
793
|
+
|
|
794
|
+
const result = await new Promise((resolve, reject) => {
|
|
795
|
+
const child = spawn(process.execPath, args, { cwd: workspaceRoot, encoding: 'utf8' });
|
|
796
|
+
let out = '';
|
|
797
|
+
child.stdout.on('data', d => out += d);
|
|
798
|
+
child.stderr.on('data', d => out += d);
|
|
799
|
+
child.on('close', code => {
|
|
800
|
+
resolve(out);
|
|
801
|
+
});
|
|
802
|
+
child.on('error', reject);
|
|
803
|
+
});
|
|
804
|
+
|
|
810
805
|
return {
|
|
811
|
-
content: [{ type: 'text', text:
|
|
806
|
+
content: [{ type: 'text', text: result }],
|
|
812
807
|
};
|
|
813
808
|
} catch (e) {
|
|
814
809
|
return {
|
|
@@ -1329,10 +1324,40 @@ async function handleRequest(req) {
|
|
|
1329
1324
|
}
|
|
1330
1325
|
|
|
1331
1326
|
try {
|
|
1332
|
-
const
|
|
1333
|
-
const {
|
|
1334
|
-
const
|
|
1335
|
-
|
|
1327
|
+
const workspaceRoot = process.cwd();
|
|
1328
|
+
const { spawn } = require('child_process');
|
|
1329
|
+
const args = [path.join(__dirname, 'wrapper.js'), 'context-broker', '--repo-path', workspaceRoot];
|
|
1330
|
+
if (files && files.length > 0) {
|
|
1331
|
+
args.push('--target-file');
|
|
1332
|
+
args.push(files[0]);
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
const result = await new Promise((resolve, reject) => {
|
|
1336
|
+
const child = spawn(process.execPath, args, { cwd: workspaceRoot, encoding: 'utf8' });
|
|
1337
|
+
let out = '';
|
|
1338
|
+
child.stdout.on('data', d => out += d);
|
|
1339
|
+
child.stderr.on('data', d => out += d);
|
|
1340
|
+
child.on('close', code => {
|
|
1341
|
+
resolve(out);
|
|
1342
|
+
});
|
|
1343
|
+
child.on('error', reject);
|
|
1344
|
+
});
|
|
1345
|
+
|
|
1346
|
+
let finalOutput = '';
|
|
1347
|
+
try {
|
|
1348
|
+
const parsed = JSON.parse(result);
|
|
1349
|
+
finalOutput = `# Tribunal Context Broker\n\n`;
|
|
1350
|
+
if (task) {
|
|
1351
|
+
finalOutput += `Task: ${task}\n\n`;
|
|
1352
|
+
}
|
|
1353
|
+
if (parsed.context_snapshot) {
|
|
1354
|
+
finalOutput += parsed.context_snapshot;
|
|
1355
|
+
}
|
|
1356
|
+
} catch (e) {
|
|
1357
|
+
finalOutput = result;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
return { content: [{ type: 'text', text: stripBoilerplate(finalOutput) }] };
|
|
1336
1361
|
} catch (e) {
|
|
1337
1362
|
return {
|
|
1338
1363
|
content: [{ type: 'text', text: `Failed to retrieve sparse context: ${e.message}` }],
|
package/bin/wrapper.js
CHANGED
|
@@ -39,6 +39,7 @@ const RUST_COMMANDS = new Set([
|
|
|
39
39
|
'genome',
|
|
40
40
|
'compile',
|
|
41
41
|
'purge',
|
|
42
|
+
'ast-extract',
|
|
42
43
|
]);
|
|
43
44
|
|
|
44
45
|
// Determine the path to the compiled Rust binary
|
|
@@ -199,4 +200,12 @@ function main() {
|
|
|
199
200
|
runLegacyFallback();
|
|
200
201
|
}
|
|
201
202
|
|
|
202
|
-
main
|
|
203
|
+
if (require.main === module) {
|
|
204
|
+
main();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
module.exports = {
|
|
208
|
+
getBinaryPath,
|
|
209
|
+
runRustBinary,
|
|
210
|
+
RUST_COMMANDS,
|
|
211
|
+
};
|
package/dist/commands/init.js
CHANGED
|
@@ -263,6 +263,20 @@ async function generateIDEBridges(targetDir, agentDest, dryRun = false, isMinima
|
|
|
263
263
|
catch {
|
|
264
264
|
// rules file doesn't exist
|
|
265
265
|
}
|
|
266
|
+
// Bridge files consume the high-density kernel rules to save tokens, falling back to GEMINI.md
|
|
267
|
+
const kernelFile = path_1.default.join(agentDest, 'rules', 'kernel.md');
|
|
268
|
+
let bridgeRulesContent = '';
|
|
269
|
+
let bridgeSource = rulesFilename;
|
|
270
|
+
try {
|
|
271
|
+
bridgeRulesContent = await fs_1.default.promises.readFile(kernelFile, 'utf8');
|
|
272
|
+
bridgeSource = 'kernel.md';
|
|
273
|
+
}
|
|
274
|
+
catch {
|
|
275
|
+
bridgeRulesContent = rulesContent;
|
|
276
|
+
}
|
|
277
|
+
if (!bridgeRulesContent) {
|
|
278
|
+
bridgeRulesContent = rulesContent;
|
|
279
|
+
}
|
|
266
280
|
// Helper: write a bridge file only if it doesn't already exist
|
|
267
281
|
const writeBridge = async (filePath, content, label) => {
|
|
268
282
|
if (dryRun) {
|
|
@@ -285,16 +299,16 @@ async function generateIDEBridges(targetDir, agentDest, dryRun = false, isMinima
|
|
|
285
299
|
// โโ 1. Cursor (.cursorrules) โโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
286
300
|
const cursorRules = `# Tribunal Kit โ Cursor Bridge
|
|
287
301
|
# Auto-generated by tribunal-kit init. Do not edit manually.
|
|
288
|
-
# Source: .agent/rules/${
|
|
302
|
+
# Source: .agent/rules/${bridgeSource}
|
|
289
303
|
|
|
290
|
-
${
|
|
304
|
+
${bridgeRulesContent}
|
|
291
305
|
`;
|
|
292
306
|
// โโ 2. Windsurf (.windsurfrules) โโโโโโโโโโโโโโโโโโโโโ
|
|
293
307
|
const windsurfRules = `# Tribunal Kit โ Windsurf Bridge
|
|
294
308
|
# Auto-generated by tribunal-kit init. Do not edit manually.
|
|
295
|
-
# Source: .agent/rules/${
|
|
309
|
+
# Source: .agent/rules/${bridgeSource}
|
|
296
310
|
|
|
297
|
-
${
|
|
311
|
+
${bridgeRulesContent}
|
|
298
312
|
`;
|
|
299
313
|
// โโ 3. Gemini / Antigravity (.gemini/settings.json) โโ
|
|
300
314
|
const geminiSettings = JSON.stringify({
|
|
@@ -314,28 +328,28 @@ trigger: always_on
|
|
|
314
328
|
# Auto-generated by tribunal-kit init.
|
|
315
329
|
# Full rules: .agent/rules/${rulesFilename}
|
|
316
330
|
|
|
317
|
-
${
|
|
331
|
+
${bridgeRulesContent}
|
|
318
332
|
`;
|
|
319
333
|
// โโ 4. GitHub Copilot (.github/copilot-instructions.md) โโ
|
|
320
334
|
const copilotInstructions = `# Tribunal Kit โ Copilot Bridge
|
|
321
335
|
# Auto-generated by tribunal-kit init. Do not edit manually.
|
|
322
|
-
# Source: .agent/rules/${
|
|
336
|
+
# Source: .agent/rules/${bridgeSource}
|
|
323
337
|
|
|
324
|
-
${
|
|
338
|
+
${bridgeRulesContent}
|
|
325
339
|
`;
|
|
326
340
|
// โโ 5. Claude (.claude/CLAUDE.md & CLAUDE.md) โโโโโโโ
|
|
327
341
|
const claudeRules = `# Tribunal Kit โ Claude Bridge
|
|
328
342
|
# Auto-generated by tribunal-kit init. Do not edit manually.
|
|
329
|
-
# Source: .agent/rules/${
|
|
343
|
+
# Source: .agent/rules/${bridgeSource}
|
|
330
344
|
|
|
331
|
-
${
|
|
345
|
+
${bridgeRulesContent}
|
|
332
346
|
`;
|
|
333
347
|
// โโ 6. Codex & Universal Agents (AGENTS.md) โโโโโโโโโโ
|
|
334
348
|
const codexRules = `# Tribunal Kit โ Codex Bridge
|
|
335
349
|
# Auto-generated by tribunal-kit init. Do not edit manually.
|
|
336
|
-
# Source: .agent/rules/${
|
|
350
|
+
# Source: .agent/rules/${bridgeSource}
|
|
337
351
|
|
|
338
|
-
${
|
|
352
|
+
${bridgeRulesContent}
|
|
339
353
|
`;
|
|
340
354
|
// Fire ALL bridge writes concurrently via Promise.all
|
|
341
355
|
const bridges = [
|
package/dist/tui/banner.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
const { isTTY, hasColor, hasTrueColor, RGB, GLYPHS, color, bold, getColumns } = require('./theme');
|
|
9
9
|
|
|
10
|
-
function renderBanner(version = '9.2.
|
|
10
|
+
function renderBanner(version = '9.2.3', quiet = false) {
|
|
11
11
|
if (quiet) return;
|
|
12
12
|
if (!isTTY && !hasColor) {
|
|
13
13
|
console.error(`TRIBUNAL-KIT v${version} โ Anti-Hallucination Governance Layer`);
|
package/gemini-extension.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tribunal-kit",
|
|
3
3
|
"description": "Enterprise-grade governance layer and anti-hallucination engine: 52 specialists, 28 parallel reviewers, Rust core, and SDD workflows.",
|
|
4
|
-
"version": "9.2.
|
|
4
|
+
"version": "9.2.3",
|
|
5
5
|
"contextFileName": ".agent/rules/GEMINI.md"
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tribunal-kit",
|
|
3
|
-
"version": "9.2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "9.2.3",
|
|
4
|
+
"description": "Tribunal Kit is the governance layer for AI coding agents that stops AI hallucinations and npm ghost packages before they hit disk. Works with Cursor, Windsurf, Claude Code, and Aider.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
7
7
|
"ai-agent",
|
|
@@ -45,7 +45,10 @@
|
|
|
45
45
|
"autonomous-workflows",
|
|
46
46
|
"code-correctness",
|
|
47
47
|
"claude-code-plugin",
|
|
48
|
-
"claude-plugin"
|
|
48
|
+
"claude-plugin",
|
|
49
|
+
"ai-coding-agent-governance",
|
|
50
|
+
"ai-governance",
|
|
51
|
+
"ai-hallucination-prevention"
|
|
49
52
|
],
|
|
50
53
|
"homepage": "https://github.com/Harmitx7/tribunal-kit",
|
|
51
54
|
"repository": {
|
|
@@ -138,7 +141,7 @@
|
|
|
138
141
|
"lint": "eslint .",
|
|
139
142
|
"typecheck": "tsc --noEmit",
|
|
140
143
|
"clean:pycache": "node scripts/clean-pycache.js",
|
|
141
|
-
"prepack": "npm run clean:pycache",
|
|
144
|
+
"prepack": "npm run clean:pycache && npm run skills:sync",
|
|
142
145
|
"format": "prettier --write .",
|
|
143
146
|
"format:check": "prettier --check .",
|
|
144
147
|
"build": "npm run build:rust"
|
|
@@ -151,12 +154,12 @@
|
|
|
151
154
|
"ws": "^8.21.3"
|
|
152
155
|
},
|
|
153
156
|
"optionalDependencies": {
|
|
154
|
-
"@tribunal-kit/core-darwin-arm64": "^9.2.
|
|
155
|
-
"@tribunal-kit/core-darwin-x64": "^9.2.
|
|
156
|
-
"@tribunal-kit/core-linux-arm64": "^9.2.
|
|
157
|
-
"@tribunal-kit/core-linux-x64": "^9.2.
|
|
158
|
-
"@tribunal-kit/core-win32-arm64": "^9.2.
|
|
159
|
-
"@tribunal-kit/core-win32-x64": "^9.2.
|
|
157
|
+
"@tribunal-kit/core-darwin-arm64": "^9.2.3",
|
|
158
|
+
"@tribunal-kit/core-darwin-x64": "^9.2.3",
|
|
159
|
+
"@tribunal-kit/core-linux-arm64": "^9.2.3",
|
|
160
|
+
"@tribunal-kit/core-linux-x64": "^9.2.3",
|
|
161
|
+
"@tribunal-kit/core-win32-arm64": "^9.2.3",
|
|
162
|
+
"@tribunal-kit/core-win32-x64": "^9.2.3"
|
|
160
163
|
},
|
|
161
164
|
"jest": {
|
|
162
165
|
"testMatch": [
|
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tribunal-kit",
|
|
3
3
|
"description": "Enterprise-grade governance layer and anti-hallucination engine for AI coding agents: 52 specialists, 28 parallel reviewers, Rust core, Subagent-Driven Development (SDD), and strict TDD workflows.",
|
|
4
|
-
"version": "9.2.
|
|
4
|
+
"version": "9.2.3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Harmitx7",
|
|
7
7
|
"email": "harmit@tribunalkit.com"
|
|
@@ -91,6 +91,51 @@ function extractFileSkeleton(filePath, rawContent) {
|
|
|
91
91
|
|
|
92
92
|
// 2. Language-Specific Parsers
|
|
93
93
|
if (ext === '.ts' || ext === '.tsx' || ext === '.js' || ext === '.jsx' || ext === '.mjs') {
|
|
94
|
+
// Phase 1: Try Rust AST Extraction
|
|
95
|
+
try {
|
|
96
|
+
const absPath = path.resolve(process.cwd(), filePath);
|
|
97
|
+
let corePath = null;
|
|
98
|
+
try {
|
|
99
|
+
const { getBinaryPath } = require('../.agent/scripts/_utils');
|
|
100
|
+
corePath = getBinaryPath();
|
|
101
|
+
} catch (_) {
|
|
102
|
+
try {
|
|
103
|
+
const { getBinaryPath } = require('./_utils');
|
|
104
|
+
corePath = getBinaryPath();
|
|
105
|
+
} catch (_2) {
|
|
106
|
+
try {
|
|
107
|
+
const wrapper = require('../bin/wrapper');
|
|
108
|
+
corePath = wrapper.getBinaryPath ? wrapper.getBinaryPath() : null;
|
|
109
|
+
} catch (_3) {}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (!corePath && process.env.TRIBUNAL_CORE_PATH && fs.existsSync(process.env.TRIBUNAL_CORE_PATH)) {
|
|
114
|
+
corePath = process.env.TRIBUNAL_CORE_PATH;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (corePath && fs.existsSync(corePath)) {
|
|
118
|
+
const result = require('child_process').execSync(`"${corePath}" ast-extract --file "${absPath}"`, { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] });
|
|
119
|
+
const data = JSON.parse(result);
|
|
120
|
+
if (data && data.success) {
|
|
121
|
+
// We map the Rust JSON into the exact format expected by the rest of the JS code
|
|
122
|
+
const mappedImports = data.imports.map(i => ({ source: i.source, specifiers: i.specifiers, line: 0 }));
|
|
123
|
+
const mappedExports = data.exports.map(e => ({ kind: e.kind, name: e.name, signature: e.signature, line: 0 }));
|
|
124
|
+
const mappedTypes = data.types.map(t => ({ kind: t.kind, name: t.name, signature: t.signature, line: 0 }));
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
imports: mappedImports,
|
|
128
|
+
exports: mappedExports,
|
|
129
|
+
types: mappedTypes,
|
|
130
|
+
landmines: data.landmines,
|
|
131
|
+
interfaceHash: computeInterfaceHash(mappedExports.concat(mappedTypes))
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
} catch(e) {
|
|
136
|
+
// Silent fallback to Regex parsing
|
|
137
|
+
}
|
|
138
|
+
|
|
94
139
|
lines.forEach((line, idx) => {
|
|
95
140
|
const trimmed = line.trim();
|
|
96
141
|
|
|
@@ -954,6 +999,10 @@ function main() {
|
|
|
954
999
|
|
|
955
1000
|
if (args.includes('--check')) {
|
|
956
1001
|
const drift = checkDrift(workspaceRoot);
|
|
1002
|
+
if (args.includes('--json')) {
|
|
1003
|
+
console.log(JSON.stringify(drift));
|
|
1004
|
+
process.exit(0);
|
|
1005
|
+
}
|
|
957
1006
|
console.log(`\n${C.BOLD}โโโ Context Vault Drift Audit โโโ${C.RESET}`);
|
|
958
1007
|
console.log(`Total Dossiers: ${drift.total}`);
|
|
959
1008
|
console.log(`๐ข Fresh: ${drift.fresh}`);
|
|
@@ -413,13 +413,9 @@ function buildEnhancedSkill(skillName, originalContent) {
|
|
|
413
413
|
coreBody = coreBody.replace(/(\n---\s*)+$/, '').trim();
|
|
414
414
|
|
|
415
415
|
// Format frontmatter with SDO trigger guarantee
|
|
416
|
-
let desc = meta.description || `${skillName} mastery
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
!desc.toLowerCase().startsWith('activate when')
|
|
420
|
-
) {
|
|
421
|
-
desc = `Use when ${desc.replace(/^["']|["']$/g, '')}`;
|
|
422
|
-
}
|
|
416
|
+
let desc = (meta.description || `${skillName} mastery.`).replace(/^["']|["']$/g, '');
|
|
417
|
+
desc = desc.replace(/^(use\s+when\s+)+/i, '').trim();
|
|
418
|
+
desc = `Use when ${desc}`;
|
|
423
419
|
|
|
424
420
|
// Ensure scripts-binding
|
|
425
421
|
const scripts = Array.isArray(meta['scripts-binding'])
|
|
@@ -433,7 +429,7 @@ function buildEnhancedSkill(skillName, originalContent) {
|
|
|
433
429
|
const formattedFrontmatter = [
|
|
434
430
|
'---',
|
|
435
431
|
`name: ${skillName}`,
|
|
436
|
-
`description: ${desc}`,
|
|
432
|
+
`description: "${desc.replace(/"/g, '\\"')}"`,
|
|
437
433
|
`version: 5.0.0`,
|
|
438
434
|
`last-updated: 2026-09-13`,
|
|
439
435
|
meta.skills && meta.skills.length
|
|
@@ -509,34 +505,12 @@ ${preflights.join('\n')}
|
|
|
509
505
|
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
510
506
|
- โ
**Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing test suites, compiler success, or equivalent operational proof) that your output works as intended.`;
|
|
511
507
|
|
|
512
|
-
// Assemble the complete enhanced document
|
|
508
|
+
// Assemble the complete enhanced document (Boilerplate stripped)
|
|
513
509
|
const enhancedContent = `${formattedFrontmatter}
|
|
514
510
|
|
|
515
511
|
# ${title}
|
|
516
512
|
|
|
517
|
-
${section1_Preflight}
|
|
518
|
-
|
|
519
|
-
${section2_Boundaries}
|
|
520
|
-
|
|
521
|
-
${section3_ExecutionProtocol}
|
|
522
|
-
|
|
523
|
-
---
|
|
524
|
-
|
|
525
|
-
## ๐ ๏ธ Technical Architecture & Reference Recipes
|
|
526
|
-
|
|
527
513
|
${coreBody}
|
|
528
|
-
|
|
529
|
-
---
|
|
530
|
-
|
|
531
|
-
${section4_EdgeCases}
|
|
532
|
-
|
|
533
|
-
---
|
|
534
|
-
|
|
535
|
-
${section5_Traps}
|
|
536
|
-
|
|
537
|
-
---
|
|
538
|
-
|
|
539
|
-
${section6_Tribunal}
|
|
540
514
|
`;
|
|
541
515
|
|
|
542
516
|
return enhancedContent.trim() + '\n';
|
package/scripts/telemetry_gc.js
CHANGED
|
@@ -101,7 +101,9 @@ function run() {
|
|
|
101
101
|
if (dryRun) {
|
|
102
102
|
console.log('\n [DRY RUN] Would archive these monthly summaries:');
|
|
103
103
|
for (const [month, bucket] of Object.entries(monthlyBuckets)) {
|
|
104
|
-
console.
|
|
104
|
+
console.info(
|
|
105
|
+
` ${month}: ${bucket.total_dispatches} events, ${bucket.total_tokens} tokens`,
|
|
106
|
+
);
|
|
105
107
|
}
|
|
106
108
|
console.log(` [DRY RUN] Would retain ${retained.length} recent events.\n`);
|
|
107
109
|
return;
|
|
@@ -24,12 +24,7 @@ function validateMarkdownFile(filePath) {
|
|
|
24
24
|
// Exclude templates and documentation that aren't strict skills
|
|
25
25
|
if (!filePath.includes('SKILL.md')) return errors;
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
errors.push('Missing mandatory header/section: Pre-Flight Checklist');
|
|
29
|
-
}
|
|
30
|
-
if (!content.includes('VBC Protocol') && !content.includes('VBC')) {
|
|
31
|
-
errors.push('Missing mandatory header/section: VBC Protocol');
|
|
32
|
-
}
|
|
27
|
+
// Removed Pre-Flight and VBC checks as they are now centralized in system prompts to save tokens.
|
|
33
28
|
}
|
|
34
29
|
|
|
35
30
|
return errors;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: 12-principles-of-animation
|
|
3
|
-
description: Use when Application of Disney's 12 Principles of Animation (Squash & Stretch, Anticipation, Staging, Follow Through, Slow In & Slow Out, Arc, Secondary Action, Timing, Exaggeration, Solid Drawing, Appeal) to modern web UI motion.
|
|
3
|
+
description: "Use when Application of Disney's 12 Principles of Animation (Squash & Stretch, Anticipation, Staging, Follow Through, Slow In & Slow Out, Arc, Secondary Action, Timing, Exaggeration, Solid Drawing, Appeal) to modern web UI motion."
|
|
4
4
|
version: 5.0.0
|
|
5
5
|
last-updated: 2026-09-13
|
|
6
6
|
skills:
|
|
@@ -15,35 +15,6 @@ scripts-binding:
|
|
|
15
15
|
|
|
16
16
|
# 12 Principles of Animation โ Web UI Motion Theory
|
|
17
17
|
|
|
18
|
-
## Mandatory Pre-Flight Context Inspection
|
|
19
|
-
|
|
20
|
-
Before generating, refactoring, or reviewing code in the `12-principles-of-animation` domain, inspect these 5 critical parameters:
|
|
21
|
-
|
|
22
|
-
1. **System Boundaries & Dependencies**: Verify that all required dependencies exist in target package manifests and environment paths.
|
|
23
|
-
2. **Runtime Context & Platform Invariants**: Confirm target platform constraints (Node.js, Browser, Mobile OS, Edge runtime) before applying APIs.
|
|
24
|
-
3. **Execution Guardrails**: Identify potential side-effects, state mutations, and unhandled asynchronous exceptions.
|
|
25
|
-
4. **Validation & Type Contracts**: Validate input data schemas and strict type constraints across all module interfaces.
|
|
26
|
-
5. **Observability & Proof of Execution**: Ensure execution produces tangible verification signals (terminal output, tests, metrics).
|
|
27
|
-
|
|
28
|
-
## Activation Boundaries
|
|
29
|
-
|
|
30
|
-
- **Activate when:** Use when Application of Disney's 12 Principles of Animation (Squash & Stretch, Anticipation, Staging, Follow Through, Slow In & Slow Out, Arc, Secondary Action, Timing, Exaggeration, Solid Drawing, Appeal) to modern web UI motion.
|
|
31
|
-
- **DO NOT activate when:** The task falls outside the `12-principles-of-animation` domain or is managed by a different dedicated specialist.
|
|
32
|
-
|
|
33
|
-
## ๐ Multi-Pass Execution Protocol
|
|
34
|
-
|
|
35
|
-
Execute all non-trivial tasks through this 7-pass cognitive loop:
|
|
36
|
-
|
|
37
|
-
| Pass | Phase | Core Action |
|
|
38
|
-
| :--------- | :--------------- | :------------------------------------------------------------------------------------------- |
|
|
39
|
-
| **Pass 1** | **Understand** | Deconstruct the user's explicit objective, implicit requirements, and platform constraints. |
|
|
40
|
-
| **Pass 2** | **Plan** | Decompose the task into smallest logical steps; map dependencies and required tool calls. |
|
|
41
|
-
| **Pass 3** | **Execute** | Implement the solution with production-grade craft, zero placeholders, and strict typing. |
|
|
42
|
-
| **Pass 4** | **Verify** | Run linters, unit tests, or compiler checks to validate structural correctness. |
|
|
43
|
-
| **Pass 5** | **Attack** | Perform an adversarial review searching for edge-case failures, race conditions, and traps. |
|
|
44
|
-
| **Pass 6** | **Improve** | Eliminate discovered friction, optimize performance, and harden error boundaries. |
|
|
45
|
-
| **Pass 7** | **Quality Gate** | Enforce Verification-Before-Completion (VBC) with concrete terminal proof before finalizing. |
|
|
46
|
-
|
|
47
18
|
---
|
|
48
19
|
|
|
49
20
|
## ๐ ๏ธ Technical Architecture & Reference Recipes
|
|
@@ -78,49 +49,3 @@ Execute all non-trivial tasks through this 7-pass cognitive loop:
|
|
|
78
49
|
### 6. Follow Through & Overlapping Action
|
|
79
50
|
|
|
80
51
|
- Secondary elements (e.g. badge text inside a sliding card) lag slightly behind the main container (stagger delay 30ms - 50ms), creating organic physical realism.
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
## ๐จ Edge-Case & Failure Mode Matrix
|
|
85
|
-
|
|
86
|
-
| Scenario | Risk | Mitigation Strategy |
|
|
87
|
-
| :------------------------------------- | :--------------------------------------------------- | :------------------------------------------------------------------------------ |
|
|
88
|
-
| **Empty or Null Inputs** | Unhandled exception or unexpected rendering collapse | Enforce fallback guards, optional chaining, and explicit empty state handlers |
|
|
89
|
-
| **Network Timeout / Latency** | Hanging operations or duplicate side-effects | Implement bounded abort controllers, exponential backoff, and idempotency keys |
|
|
90
|
-
| **Concurrency / Race Conditions** | Stale state overwrite or inconsistent data mutations | Use atomic transactions, mutex locking, or cancel-on-resubmit controls |
|
|
91
|
-
| **Invalid Schema / Malformed Payload** | Downstream runtime errors or security injection | Validate boundary payloads with Zod/Pydantic schemas prior to execution |
|
|
92
|
-
| **Resource / Memory Saturation** | OOM errors, frame drops, or memory leaks | Clean up listeners, cancel active timers, and enforce pagination/virtualization |
|
|
93
|
-
|
|
94
|
-
---
|
|
95
|
-
|
|
96
|
-
## ๐ค LLM-Specific Traps Table
|
|
97
|
-
|
|
98
|
-
| Anti-Pattern | What AI Commonly Does Wrong | What Is Actually Correct |
|
|
99
|
-
| :----------------------- | :-------------------------------------------------------------------- | :------------------------------------------------------------------ |
|
|
100
|
-
| **The Instant Pop Trap** | Conditionally unmounting elements without animated interpolation | Use AnimatePresence or coordinate morphs with continuous geometry |
|
|
101
|
-
| **Layout Thrashing** | Animating width, height, top, or left inside animation loops | Animate composite-only transform (translate3d, scale) and opacity |
|
|
102
|
-
| **Sluggish Duration** | Setting micro-interaction transitions to 600ms+ causing interface lag | Cap interactive feedback at 160msโ240ms with snappy ease-out curves |
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## ๐๏ธ Tribunal Verification & Guardrails
|
|
107
|
-
|
|
108
|
-
**Active Reviewers:** `frontend-reviewer` ยท `motion-reviewer` ยท `ui-ux-auditor`
|
|
109
|
-
**Slash Command:** `/review` or `/tribunal-full`
|
|
110
|
-
|
|
111
|
-
### โ
Pre-Flight Self-Audit Checklist
|
|
112
|
-
|
|
113
|
-
```
|
|
114
|
-
โ
Does animation maintain 60fps/120fps using transform and opacity?
|
|
115
|
-
โ
Is optical mass conserved across state interpolations without volume collapse?
|
|
116
|
-
โ
Is duration capped within micro-interaction budgets (160msโ280ms)?
|
|
117
|
-
โ
Is prefers-reduced-motion respected with graceful instant fallbacks?
|
|
118
|
-
โ
Did I prevent layout thrashing and continuous geometry mutations?
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
122
|
-
|
|
123
|
-
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
124
|
-
|
|
125
|
-
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
126
|
-
- โ
**Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing test suites, compiler success, or equivalent operational proof) that your output works as intended.
|