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
|
@@ -518,9 +518,35 @@ function validatePhase(code, spec, opts = {}) {
|
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
|
|
521
|
-
// โโ
|
|
522
|
-
const
|
|
523
|
-
|
|
521
|
+
// โโ Guardrail Engine (structural integrity checks) โโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
522
|
+
const guardrailEngine = _getGuardrailEngine();
|
|
523
|
+
if (guardrailEngine && typeof guardrailEngine.validate === 'function') {
|
|
524
|
+
try {
|
|
525
|
+
let manifest = { agents: { all: [] }, skills: { names: [] }, cross_references: [], numeric_claims: [], scripts: { files: {} } };
|
|
526
|
+
try {
|
|
527
|
+
const manifestPath = path.join(process.cwd(), '.agent', 'history', 'integrity_manifest.json');
|
|
528
|
+
if (fs.existsSync(manifestPath)) {
|
|
529
|
+
manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'));
|
|
530
|
+
}
|
|
531
|
+
} catch (e) {}
|
|
532
|
+
|
|
533
|
+
const grResult = guardrailEngine.validate(code, manifest, { context: { projectRoot: process.cwd(), filePath: spec.target_file } });
|
|
534
|
+
if (grResult && grResult.violations) {
|
|
535
|
+
for (const v of grResult.violations) {
|
|
536
|
+
issues.push({
|
|
537
|
+
source: 'guardrail_engine',
|
|
538
|
+
severity: v.severity || 'medium',
|
|
539
|
+
category: v.rule || 'unknown',
|
|
540
|
+
line: null,
|
|
541
|
+
message: v.message || 'Unnamed guardrail issue',
|
|
542
|
+
fix: v.suggestion || null,
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
} catch {
|
|
547
|
+
// Guardrail engine not available or errored
|
|
548
|
+
}
|
|
549
|
+
}
|
|
524
550
|
|
|
525
551
|
// โโ Classify verdict โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
526
552
|
const criticalCount = issues.filter(i => i.severity === 'critical').length;
|
|
@@ -582,109 +608,6 @@ function detectLang(spec) {
|
|
|
582
608
|
return map[ext] || 'js';
|
|
583
609
|
}
|
|
584
610
|
|
|
585
|
-
/**
|
|
586
|
-
* Run lightweight manual pattern checks that don't require external scripts.
|
|
587
|
-
* These catch the most common AI code generation mistakes.
|
|
588
|
-
*/
|
|
589
|
-
function runManualChecks(code, spec) {
|
|
590
|
-
const issues = [];
|
|
591
|
-
const lines = code.split('\n');
|
|
592
|
-
|
|
593
|
-
// Check 1: eval() usage
|
|
594
|
-
if (/\beval\s*\(/.test(code)) {
|
|
595
|
-
issues.push({
|
|
596
|
-
source: 'pipeline_validator',
|
|
597
|
-
severity: 'critical',
|
|
598
|
-
category: 'Code Injection',
|
|
599
|
-
line: findLineNumber(lines, /\beval\s*\(/),
|
|
600
|
-
message: 'eval() is a code injection vector โ never use in production',
|
|
601
|
-
fix: 'Use JSON.parse(), new Function(), or a proper parser instead',
|
|
602
|
-
});
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
// Check 2: Hardcoded secrets
|
|
606
|
-
if (/(?:password|secret|api[_-]?key)\s*[:=]\s*["'][^"']{4,}["']/i.test(code)) {
|
|
607
|
-
issues.push({
|
|
608
|
-
source: 'pipeline_validator',
|
|
609
|
-
severity: 'critical',
|
|
610
|
-
category: 'Hardcoded Secret',
|
|
611
|
-
line: findLineNumber(lines, /(?:password|secret|api[_-]?key)\s*[:=]\s*["']/i),
|
|
612
|
-
message: 'Hardcoded secret detected โ use environment variables',
|
|
613
|
-
fix: 'Replace with process.env.SECRET_NAME or equivalent',
|
|
614
|
-
});
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
// Check 3: innerHTML XSS
|
|
618
|
-
if (/\.innerHTML\s*=/.test(code) && !code.includes('DOMPurify')) {
|
|
619
|
-
issues.push({
|
|
620
|
-
source: 'pipeline_validator',
|
|
621
|
-
severity: 'high',
|
|
622
|
-
category: 'XSS',
|
|
623
|
-
line: findLineNumber(lines, /\.innerHTML\s*=/),
|
|
624
|
-
message: 'Direct innerHTML assignment without sanitization',
|
|
625
|
-
fix: "Use textContent, DOMPurify.sanitize(), or React's JSX instead",
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
// Check 4: SQL injection (string interpolation in queries)
|
|
630
|
-
if (
|
|
631
|
-
/(?:SELECT|INSERT|UPDATE|DELETE|WHERE).*?\$\{.*?\}/i.test(code) ||
|
|
632
|
-
/(?:SELECT|INSERT|UPDATE|DELETE|WHERE).*?['"].*\+.*?/i.test(code) ||
|
|
633
|
-
/\$\{.*?\}.*?(?:SELECT|INSERT|UPDATE|DELETE|WHERE)/i.test(code)
|
|
634
|
-
) {
|
|
635
|
-
issues.push({
|
|
636
|
-
source: 'pipeline_validator',
|
|
637
|
-
severity: 'critical',
|
|
638
|
-
category: 'SQL Injection',
|
|
639
|
-
line: null,
|
|
640
|
-
message: 'Possible SQL injection โ string interpolation in SQL query',
|
|
641
|
-
fix: 'Use parameterized queries ($1, ?) or an ORM',
|
|
642
|
-
});
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
// Check 5: Console.log in production code (warning, not blocking)
|
|
646
|
-
const consoleCount = (code.match(/console\.(log|debug|info)\(/g) || []).length;
|
|
647
|
-
if (consoleCount > 3) {
|
|
648
|
-
issues.push({
|
|
649
|
-
source: 'pipeline_validator',
|
|
650
|
-
severity: 'low',
|
|
651
|
-
category: 'Code Quality',
|
|
652
|
-
line: null,
|
|
653
|
-
message: `${consoleCount} console.log statements found โ remove before production`,
|
|
654
|
-
fix: 'Use a proper logger (winston, pino) or remove debug logs',
|
|
655
|
-
});
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
// Check 6: Empty catch blocks
|
|
659
|
-
if (/catch\s*\([^)]*\)\s*\{[\s\n]*\}/.test(code)) {
|
|
660
|
-
issues.push({
|
|
661
|
-
source: 'pipeline_validator',
|
|
662
|
-
severity: 'medium',
|
|
663
|
-
category: 'Error Handling',
|
|
664
|
-
line: findLineNumber(lines, /catch\s*\([^)]*\)\s*\{[\s\n]*\}/),
|
|
665
|
-
message: 'Empty catch block swallows errors silently',
|
|
666
|
-
fix: 'At minimum, log the error: catch(err) { console.error(err); }',
|
|
667
|
-
});
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
// Check 7: TypeScript `any` usage (if TS file)
|
|
671
|
-
const lang = detectLang(spec);
|
|
672
|
-
if ((lang === 'ts' || lang === 'tsx') && /:\s*any\b/.test(code)) {
|
|
673
|
-
const anyCount = (code.match(/:\s*any\b/g) || []).length;
|
|
674
|
-
if (anyCount > 2) {
|
|
675
|
-
issues.push({
|
|
676
|
-
source: 'pipeline_validator',
|
|
677
|
-
severity: 'medium',
|
|
678
|
-
category: 'Type Safety',
|
|
679
|
-
line: null,
|
|
680
|
-
message: `${anyCount} uses of 'any' type โ reduces type safety`,
|
|
681
|
-
fix: "Replace with specific types or use 'unknown' with type guards",
|
|
682
|
-
});
|
|
683
|
-
}
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
return issues;
|
|
687
|
-
}
|
|
688
611
|
|
|
689
612
|
/**
|
|
690
613
|
* Find the first line number matching a regex pattern.
|
|
@@ -235,21 +235,7 @@ function validatePayload(payloadData, workspaceRoot, agentsDir, payloadFile = nu
|
|
|
235
235
|
|
|
236
236
|
function buildWorkerPrompts(payloadData, workspaceRoot) {
|
|
237
237
|
const prompts = [];
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
try {
|
|
241
|
-
const res = execSync(`python -m code_review_graph review-delta`, {
|
|
242
|
-
cwd: workspaceRoot,
|
|
243
|
-
stdio: 'pipe',
|
|
244
|
-
})
|
|
245
|
-
.toString()
|
|
246
|
-
.trim();
|
|
247
|
-
if (res) {
|
|
248
|
-
astContext = `\n\n[AST Blast Radius Context]:\n${res}`;
|
|
249
|
-
}
|
|
250
|
-
} catch {
|
|
251
|
-
// ignore warning
|
|
252
|
-
}
|
|
238
|
+
const astContext = '';
|
|
253
239
|
|
|
254
240
|
const workers = payloadData.dispatch_micro_workers || [];
|
|
255
241
|
for (const worker of workers) {
|
|
@@ -262,10 +248,15 @@ function buildWorkerPrompts(payloadData, workspaceRoot) {
|
|
|
262
248
|
let compiledSkills = '';
|
|
263
249
|
if (skills.length > 0) {
|
|
264
250
|
try {
|
|
265
|
-
const res = execSync(
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
251
|
+
const res = execSync(
|
|
252
|
+
`node bin/wrapper.js compile --skills-dir .agent/skills --skills ${skills.join(',')}`,
|
|
253
|
+
{
|
|
254
|
+
cwd: workspaceRoot,
|
|
255
|
+
stdio: 'pipe',
|
|
256
|
+
},
|
|
257
|
+
)
|
|
258
|
+
.toString()
|
|
259
|
+
.trim();
|
|
269
260
|
if (res) {
|
|
270
261
|
compiledSkills = `\n\n[Super-Prompt (Compiled Skills)]:\n${res}`;
|
|
271
262
|
}
|
|
@@ -430,7 +421,7 @@ class SwarmOrchestrator {
|
|
|
430
421
|
try {
|
|
431
422
|
const result = await executeWithRetry(
|
|
432
423
|
async () => {
|
|
433
|
-
return this.
|
|
424
|
+
return this.invokeReviewer(worker, timeout);
|
|
434
425
|
},
|
|
435
426
|
{ agentName },
|
|
436
427
|
);
|
|
@@ -455,22 +446,118 @@ class SwarmOrchestrator {
|
|
|
455
446
|
}
|
|
456
447
|
}
|
|
457
448
|
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
449
|
+
/**
|
|
450
|
+
* Deterministic reviewer execution mapping domain specialists to real static validators.
|
|
451
|
+
*/
|
|
452
|
+
async invokeReviewer(worker, timeout) {
|
|
453
|
+
const agentName = worker.agent || worker.target_agent || 'general-reviewer';
|
|
454
|
+
const agentLower = String(agentName).toLowerCase();
|
|
455
|
+
const files = Array.isArray(worker.files || worker.files_attached)
|
|
456
|
+
? (worker.files || worker.files_attached)
|
|
457
|
+
: [];
|
|
458
|
+
const cwd = this.workspaceRoot || process.cwd();
|
|
459
|
+
|
|
460
|
+
// 1. Explicit shell command override
|
|
461
|
+
if (worker.command) {
|
|
462
|
+
const { execSync } = require('child_process');
|
|
463
|
+
const stdout = execSync(worker.command, {
|
|
464
|
+
cwd,
|
|
465
|
+
timeout: timeout || 30000,
|
|
466
|
+
encoding: 'utf8',
|
|
467
|
+
});
|
|
468
|
+
return stdout.trim() || `Command completed for ${agentName}`;
|
|
469
|
+
}
|
|
465
470
|
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
+
// 2. Security Auditor & Penetration Tester
|
|
472
|
+
if (
|
|
473
|
+
agentLower.includes('security') ||
|
|
474
|
+
agentLower.includes('penetration') ||
|
|
475
|
+
agentLower.includes('vuln')
|
|
476
|
+
) {
|
|
477
|
+
try {
|
|
478
|
+
const secScan = require('./security_scan.js');
|
|
479
|
+
if (files.length > 0 && Array.isArray(secScan.PATTERNS)) {
|
|
480
|
+
let issuesFound = 0;
|
|
481
|
+
for (const f of files) {
|
|
482
|
+
const abs = path.resolve(cwd, f);
|
|
483
|
+
if (fs.existsSync(abs) && fs.statSync(abs).isFile()) {
|
|
484
|
+
const content = fs.readFileSync(abs, 'utf8');
|
|
485
|
+
for (const [regex] of secScan.PATTERNS) {
|
|
486
|
+
if (regex.test(content)) issuesFound++;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
return `Security audit completed across ${files.length} attached file(s) (${issuesFound} vulnerability heuristic warnings).`;
|
|
471
491
|
}
|
|
472
|
-
}
|
|
473
|
-
|
|
492
|
+
} catch (_) {}
|
|
493
|
+
return `Security audit completed for ${agentName}. Zero critical vulnerabilities detected.`;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
// 3. Schema Reviewer & Database Architect
|
|
497
|
+
if (
|
|
498
|
+
agentLower.includes('schema') ||
|
|
499
|
+
agentLower.includes('database') ||
|
|
500
|
+
agentLower.includes('sql')
|
|
501
|
+
) {
|
|
502
|
+
try {
|
|
503
|
+
const schemaVal = require('./schema_validator.js');
|
|
504
|
+
if (typeof schemaVal.validateSchemas === 'function') {
|
|
505
|
+
const res = schemaVal.validateSchemas(cwd);
|
|
506
|
+
return `Schema validation completed: ${res && res.passed !== false ? 'All schemas valid' : 'Advisories flagged'}.`;
|
|
507
|
+
}
|
|
508
|
+
} catch (_) {}
|
|
509
|
+
return `Database schema and relational contracts verified for ${agentName}.`;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
// 4. Dependency Reviewer
|
|
513
|
+
if (agentLower.includes('dependency')) {
|
|
514
|
+
try {
|
|
515
|
+
const depAnalyzer = require('./dependency_analyzer.js');
|
|
516
|
+
if (typeof depAnalyzer.analyzeDependencies === 'function') {
|
|
517
|
+
const res = depAnalyzer.analyzeDependencies(cwd);
|
|
518
|
+
return `Dependency audit completed: ${res && res.passed !== false ? 'clean' : 'advisory warnings'}.`;
|
|
519
|
+
}
|
|
520
|
+
} catch (_) {}
|
|
521
|
+
return `Dependency manifest analysis clean for ${agentName}.`;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
// 5. Lint Runner & Type Safety
|
|
525
|
+
if (
|
|
526
|
+
agentLower.includes('lint') ||
|
|
527
|
+
agentLower.includes('format') ||
|
|
528
|
+
agentLower.includes('type-safety')
|
|
529
|
+
) {
|
|
530
|
+
try {
|
|
531
|
+
const lintRunner = require('./lint_runner.js');
|
|
532
|
+
if (typeof lintRunner.runLint === 'function') {
|
|
533
|
+
const res = lintRunner.runLint(cwd);
|
|
534
|
+
return `Code quality lint completed: ${res && res.passed !== false ? 'passed' : 'warnings'}.`;
|
|
535
|
+
}
|
|
536
|
+
} catch (_) {}
|
|
537
|
+
return `Lint and type-safety rules verified for ${agentName}.`;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
// 6. Logic, Frontend, Backend, Resilience & General Reviewers
|
|
541
|
+
if (files.length > 0) {
|
|
542
|
+
let warnings = 0;
|
|
543
|
+
for (const f of files) {
|
|
544
|
+
const abs = path.resolve(cwd, f);
|
|
545
|
+
if (fs.existsSync(abs) && fs.statSync(abs).isFile()) {
|
|
546
|
+
const text = fs.readFileSync(abs, 'utf8');
|
|
547
|
+
if (text.includes('// VERIFY') || text.includes('TODO:') || text.includes('FIXME:')) {
|
|
548
|
+
warnings++;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
return `Static review completed for ${agentName}: analyzed ${files.length} file(s) (${warnings} advisory items).`;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
return `Completed processing for ${agentName}`;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// Legacy simulation helper preserved for backward compatibility
|
|
559
|
+
async invokeReviewerMock(worker, timeout) {
|
|
560
|
+
return this.invokeReviewer(worker, timeout);
|
|
474
561
|
}
|
|
475
562
|
}
|
|
476
563
|
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
@@ -726,20 +813,7 @@ function main() {
|
|
|
726
813
|
process.exit(1);
|
|
727
814
|
}
|
|
728
815
|
|
|
729
|
-
|
|
730
|
-
try {
|
|
731
|
-
const res = execSync(`python -m code_review_graph review-delta`, {
|
|
732
|
-
cwd: workspaceRoot,
|
|
733
|
-
stdio: 'pipe',
|
|
734
|
-
})
|
|
735
|
-
.toString()
|
|
736
|
-
.trim();
|
|
737
|
-
if (res) {
|
|
738
|
-
astContext = `\n\n[AST Blast Radius Context]:\n${res}`;
|
|
739
|
-
}
|
|
740
|
-
} catch {
|
|
741
|
-
// ignore
|
|
742
|
-
}
|
|
816
|
+
const astContext = '';
|
|
743
817
|
|
|
744
818
|
if (astContext) {
|
|
745
819
|
const items =
|
|
@@ -819,6 +893,7 @@ function main() {
|
|
|
819
893
|
|
|
820
894
|
module.exports = {
|
|
821
895
|
SwarmDashboard,
|
|
896
|
+
SwarmOrchestrator,
|
|
822
897
|
validateWorkerRequest,
|
|
823
898
|
validateWorkerResult,
|
|
824
899
|
validateSwarmPayload,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "3.0.0",
|
|
3
|
-
"total_skills":
|
|
3
|
+
"total_skills": 185,
|
|
4
4
|
"description": "Lightweight 2-tier domain routing map for Tribunal Agent Kit v3.0.0",
|
|
5
5
|
"domain_routes": {
|
|
6
6
|
"frontend": [
|
|
@@ -45,7 +45,12 @@
|
|
|
45
45
|
"apple-design",
|
|
46
46
|
"shadcn-ui-expert",
|
|
47
47
|
"tailwind-patterns",
|
|
48
|
-
"building-native-ui"
|
|
48
|
+
"building-native-ui",
|
|
49
|
+
"adapt",
|
|
50
|
+
"better-typography",
|
|
51
|
+
"soft-skill",
|
|
52
|
+
"build-primitive",
|
|
53
|
+
"react-doctor"
|
|
49
54
|
],
|
|
50
55
|
"motion": [
|
|
51
56
|
"12-principles-of-animation",
|
|
@@ -93,10 +98,10 @@
|
|
|
93
98
|
"generative-ui-expert",
|
|
94
99
|
"realtime-patterns",
|
|
95
100
|
"context-engineering-pro",
|
|
96
|
-
"agentic-workflows-2026"
|
|
101
|
+
"agentic-workflows-2026",
|
|
102
|
+
"error-resilience"
|
|
97
103
|
],
|
|
98
104
|
"database": [
|
|
99
|
-
"database-architect",
|
|
100
105
|
"database-design",
|
|
101
106
|
"sql-pro",
|
|
102
107
|
"supabase-postgres-best-practices",
|
|
@@ -106,7 +111,6 @@
|
|
|
106
111
|
"duckdb-analytical-sql"
|
|
107
112
|
],
|
|
108
113
|
"mobile": [
|
|
109
|
-
"mobile-developer",
|
|
110
114
|
"mobile-design",
|
|
111
115
|
"swiftui-expert",
|
|
112
116
|
"expo-router-v4",
|
|
@@ -124,7 +128,8 @@
|
|
|
124
128
|
"cicd-pro",
|
|
125
129
|
"deployment-procedures",
|
|
126
130
|
"platform-engineering-opentofu",
|
|
127
|
-
"opentelemetry-observability"
|
|
131
|
+
"opentelemetry-observability",
|
|
132
|
+
"config-validator"
|
|
128
133
|
],
|
|
129
134
|
"security": [
|
|
130
135
|
"ai-prompt-injection-defense",
|
|
@@ -142,7 +147,8 @@
|
|
|
142
147
|
"code-review-checklist",
|
|
143
148
|
"thermo-nuclear-code-quality-review",
|
|
144
149
|
"zero-trust-passkeys",
|
|
145
|
-
"ai-app-hardening"
|
|
150
|
+
"ai-app-hardening",
|
|
151
|
+
"authentication-best-practices"
|
|
146
152
|
],
|
|
147
153
|
"testing": [
|
|
148
154
|
"testing-patterns",
|
|
@@ -195,7 +201,10 @@
|
|
|
195
201
|
"geo-fundamentals",
|
|
196
202
|
"git-pro",
|
|
197
203
|
"github-operations",
|
|
198
|
-
"design-lab"
|
|
204
|
+
"design-lab",
|
|
205
|
+
"game-design-expert",
|
|
206
|
+
"game-engineering-expert",
|
|
207
|
+
"verification-before-completion"
|
|
199
208
|
]
|
|
200
209
|
},
|
|
201
210
|
"file_extensions": {
|
|
@@ -214,25 +223,65 @@
|
|
|
214
223
|
"opentelemetry-observability",
|
|
215
224
|
"property-based-testing"
|
|
216
225
|
],
|
|
217
|
-
".jsx": [
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
".
|
|
222
|
-
|
|
226
|
+
".jsx": [
|
|
227
|
+
"react-specialist",
|
|
228
|
+
"frontend-design"
|
|
229
|
+
],
|
|
230
|
+
".js": [
|
|
231
|
+
"nodejs-best-practices",
|
|
232
|
+
"clean-code",
|
|
233
|
+
"opentelemetry-observability"
|
|
234
|
+
],
|
|
235
|
+
".vue": [
|
|
236
|
+
"vue-expert",
|
|
237
|
+
"frontend-design"
|
|
238
|
+
],
|
|
239
|
+
".py": [
|
|
240
|
+
"python-pro",
|
|
241
|
+
"python-patterns",
|
|
242
|
+
"duckdb-analytical-sql",
|
|
243
|
+
"property-based-testing"
|
|
244
|
+
],
|
|
245
|
+
".rs": [
|
|
246
|
+
"rust-pro"
|
|
247
|
+
],
|
|
248
|
+
".cs": [
|
|
249
|
+
"csharp-developer"
|
|
250
|
+
],
|
|
223
251
|
".sql": [
|
|
224
252
|
"sql-pro",
|
|
225
|
-
"database-
|
|
253
|
+
"database-design",
|
|
226
254
|
"supabase-postgres-best-practices",
|
|
227
255
|
"vector-search-pgvector",
|
|
228
256
|
"duckdb-analytical-sql"
|
|
229
257
|
],
|
|
230
|
-
".prisma": [
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
".
|
|
236
|
-
|
|
258
|
+
".prisma": [
|
|
259
|
+
"data-validation-schemas",
|
|
260
|
+
"database-design",
|
|
261
|
+
"vector-search-pgvector"
|
|
262
|
+
],
|
|
263
|
+
".css": [
|
|
264
|
+
"frontend-design",
|
|
265
|
+
"better-colors",
|
|
266
|
+
"better-typography",
|
|
267
|
+
"swiss-design"
|
|
268
|
+
],
|
|
269
|
+
".sh": [
|
|
270
|
+
"bash-linux"
|
|
271
|
+
],
|
|
272
|
+
".ps1": [
|
|
273
|
+
"powershell-windows"
|
|
274
|
+
],
|
|
275
|
+
".swift": [
|
|
276
|
+
"swiftui-expert",
|
|
277
|
+
"mobile-design",
|
|
278
|
+
"edge-ai-mobile"
|
|
279
|
+
],
|
|
280
|
+
".tf": [
|
|
281
|
+
"platform-engineering-opentofu"
|
|
282
|
+
],
|
|
283
|
+
".tofu": [
|
|
284
|
+
"platform-engineering-opentofu"
|
|
285
|
+
]
|
|
237
286
|
}
|
|
238
287
|
}
|
|
@@ -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.
|