tribunal-kit 9.2.6 → 9.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/ARCHITECTURE.md +4 -4
- package/.agent/data/skill_certification_ledger.jsonl +40 -0
- package/.agent/data/skill_ontology.json +138 -0
- package/.agent/history/architecture-intelligence.html +1487 -401
- package/.agent/history/architecture-model.json +16130 -5802
- package/.agent/history/architecture-verification.json +6 -6
- package/.agent/routing_index.json +656 -1566
- package/.agent/rules/GEMINI.md +1 -1
- package/.agent/scripts/adaptive_execution.js +704 -0
- package/.agent/scripts/architecture_diff.js +60 -17
- package/.agent/scripts/architecture_extractor.js +60 -21
- package/.agent/scripts/architecture_health.js +58 -21
- package/.agent/scripts/architecture_intelligence.js +3100 -0
- package/.agent/scripts/architecture_verifier.js +46 -13
- package/.agent/scripts/architecture_visualizer.js +1536 -421
- package/.agent/scripts/blast_radius_engine.js +64 -24
- package/.agent/scripts/capability_evolution.js +555 -0
- package/.agent/scripts/concept_extractor.js +240 -0
- package/.agent/scripts/consideration_engine.js +284 -0
- package/.agent/scripts/context_broker.js +397 -31
- package/.agent/scripts/corpus_certification_orchestrator.js +502 -0
- package/.agent/scripts/corpus_validation_engine.js +311 -0
- package/.agent/scripts/coverage_engine.js +102 -0
- package/.agent/scripts/cross_domain_engine.js +1883 -0
- package/.agent/scripts/engineering_memory.js +1442 -0
- package/.agent/scripts/final_corpus_validation_engine.js +405 -0
- package/.agent/scripts/integrity_manifest.js +1 -5
- package/.agent/scripts/intent_extractor.js +130 -0
- package/.agent/scripts/judgment_engine.js +790 -0
- package/.agent/scripts/materiality_engine.js +251 -0
- package/.agent/scripts/outcome_engine.js +639 -0
- package/.agent/scripts/outcome_optimization_engine.js +1632 -0
- package/.agent/scripts/routing_evaluation_engine.js +184 -0
- package/.agent/scripts/simulation_engine.js +1478 -0
- package/.agent/scripts/skill_behavior_classifier.js +90 -0
- package/.agent/scripts/skill_behavior_harness.js +105 -0
- package/.agent/scripts/skill_certification_engine.js +586 -0
- package/.agent/scripts/skill_contract_engine.js +424 -0
- package/.agent/scripts/skill_coverage_expansion_engine.js +505 -0
- package/.agent/scripts/skill_evidence_acquisition_engine.js +535 -0
- package/.agent/scripts/skill_evidence_engine.js +83 -0
- package/.agent/scripts/skill_expectation_engine.js +38 -0
- package/.agent/scripts/skill_fixture_engine.js +24 -0
- package/.agent/scripts/skill_human_validation.js +32 -0
- package/.agent/scripts/skill_intelligence.js +1300 -0
- package/.agent/scripts/skill_observation_engine.js +25 -0
- package/.agent/scripts/skill_ontology_engine.js +83 -0
- package/.agent/scripts/skill_quality_engine.js +343 -0
- package/.agent/scripts/skill_reconstruction_engine.js +164 -0
- package/.agent/scripts/skill_remediation_engine.js +326 -0
- package/.agent/scripts/skill_scenario_engine.js +108 -0
- package/.agent/scripts/skill_test_authoring_engine.js +1011 -0
- package/.agent/scripts/verification_auditor.js +346 -0
- package/.agent/skill-intelligence/taxonomy/engineering-concepts.json +555 -0
- package/.agent/skill_topic_map.json +15 -55
- package/.agent/skills/12-principles-of-animation/SKILL.md +9 -0
- package/.agent/skills/60fps-animation/SKILL.md +14 -0
- package/.agent/skills/accessible-animation/SKILL.md +9 -0
- package/.agent/skills/adapt/SKILL.md +8 -0
- package/.agent/skills/adr-generation/SKILL.md +9 -0
- package/.agent/skills/advanced-rag-pipelines/SKILL.md +9 -0
- package/.agent/skills/agent-organizer/SKILL.md +8 -0
- package/.agent/skills/agent-syscall-guidelines/SKILL.md +10 -0
- package/.agent/skills/agentic-patterns/SKILL.md +9 -0
- package/.agent/skills/agentic-workflows-2026/SKILL.md +8 -0
- package/.agent/skills/agentshield-security/SKILL.md +16 -0
- package/.agent/skills/ai-app-hardening/SKILL.md +7 -0
- package/.agent/skills/ai-prompt-injection-defense/SKILL.md +9 -0
- package/.agent/skills/animation-on-scroll/SKILL.md +9 -0
- package/.agent/skills/animation-systems/SKILL.md +8 -0
- package/.agent/skills/antfu-conventions/SKILL.md +9 -0
- package/.agent/skills/anti-slop-enforcement/SKILL.md +11 -0
- package/.agent/skills/api-patterns/SKILL.md +9 -0
- package/.agent/skills/api-security-auditor/SKILL.md +10 -0
- package/.agent/skills/app-builder/SKILL.md +8 -0
- package/.agent/skills/appflow-wireframe/SKILL.md +9 -0
- package/.agent/skills/apple-design/SKILL.md +8 -0
- package/.agent/skills/architecture/SKILL.md +8 -0
- package/.agent/skills/architecture-drift/SKILL.md +9 -0
- package/.agent/skills/architecture-intelligence/SKILL.md +17 -0
- package/.agent/skills/audit-and-fix/SKILL.md +8 -0
- package/.agent/skills/authentication-best-practices/SKILL.md +10 -0
- package/.agent/skills/autonomous-execution/SKILL.md +9 -0
- package/.agent/skills/backend-alembic/SKILL.md +16 -0
- package/.agent/skills/backend-architecture-auditor/SKILL.md +16 -0
- package/.agent/skills/backend-mongodb/SKILL.md +10 -0
- package/.agent/skills/backend-mysql/SKILL.md +16 -0
- package/.agent/skills/backend-performance-auditor/SKILL.md +10 -0
- package/.agent/skills/backend-postgresql/SKILL.md +10 -0
- package/.agent/skills/backend-redis/SKILL.md +10 -0
- package/.agent/skills/backend-security-expert/SKILL.md +10 -0
- package/.agent/skills/backend-sqlalchemy/SKILL.md +10 -0
- package/.agent/skills/backend-sqlite/SKILL.md +10 -0
- package/.agent/skills/backend-testing-auditor/SKILL.md +15 -0
- package/.agent/skills/baseline-ui/SKILL.md +8 -0
- package/.agent/skills/bash-linux/SKILL.md +9 -0
- package/.agent/skills/behavioral-modes/SKILL.md +9 -0
- package/.agent/skills/better-colors/SKILL.md +9 -0
- package/.agent/skills/better-typography/SKILL.md +9 -0
- package/.agent/skills/better-ui/SKILL.md +8 -0
- package/.agent/skills/bolder/SKILL.md +8 -0
- package/.agent/skills/brainstorming/SKILL.md +8 -0
- package/.agent/skills/browser-audit/SKILL.md +9 -0
- package/.agent/skills/browser-native-ai/SKILL.md +8 -0
- package/.agent/skills/build-primitive/SKILL.md +8 -0
- package/.agent/skills/building-native-ui/SKILL.md +7 -0
- package/.agent/skills/cicd-pro/SKILL.md +9 -0
- package/.agent/skills/clarify/SKILL.md +8 -0
- package/.agent/skills/clean-code/SKILL.md +8 -0
- package/.agent/skills/cloud-architect/SKILL.md +8 -0
- package/.agent/skills/cobejs/SKILL.md +8 -0
- package/.agent/skills/code-review-checklist/SKILL.md +9 -0
- package/.agent/skills/codebase-design/SKILL.md +14 -0
- package/.agent/skills/colorize/SKILL.md +8 -0
- package/.agent/skills/compact-landing/SKILL.md +9 -0
- package/.agent/skills/company-logos/SKILL.md +9 -0
- package/.agent/skills/config-validator/SKILL.md +9 -0
- package/.agent/skills/containerization-pro/SKILL.md +9 -0
- package/.agent/skills/context-engineering-pro/SKILL.md +10 -0
- package/.agent/skills/create-design-md/SKILL.md +7 -0
- package/.agent/skills/critique/SKILL.md +8 -0
- package/.agent/skills/csharp-developer/SKILL.md +9 -0
- package/.agent/skills/data-validation-schemas/SKILL.md +8 -0
- package/.agent/skills/database-design/SKILL.md +8 -0
- package/.agent/skills/delight/SKILL.md +8 -0
- package/.agent/skills/deployment-procedures/SKILL.md +9 -0
- package/.agent/skills/design-lab/SKILL.md +8 -0
- package/.agent/skills/devops-engineer/SKILL.md +9 -0
- package/.agent/skills/devops-incident-responder/SKILL.md +16 -0
- package/.agent/skills/diagnosing-bugs/SKILL.md +9 -0
- package/.agent/skills/distill/SKILL.md +8 -0
- package/.agent/skills/documentation-templates/SKILL.md +9 -0
- package/.agent/skills/domain-modeling/SKILL.md +9 -0
- package/.agent/skills/duckdb-analytical-sql/SKILL.md +10 -0
- package/.agent/skills/edge-ai-mobile/SKILL.md +8 -0
- package/.agent/skills/edge-computing/SKILL.md +9 -0
- package/.agent/skills/emil-design-eng/SKILL.md +9 -0
- package/.agent/skills/error-resilience/SKILL.md +8 -0
- package/.agent/skills/expo-router-v4/SKILL.md +9 -0
- package/.agent/skills/extract-design-system/SKILL.md +9 -0
- package/.agent/skills/fabel-protocol/SKILL.md +9 -0
- package/.agent/skills/failure-mode-analysis/SKILL.md +10 -0
- package/.agent/skills/fastapi-pro/SKILL.md +9 -0
- package/.agent/skills/fixing-accessibility/SKILL.md +9 -0
- package/.agent/skills/fixing-metadata/SKILL.md +9 -0
- package/.agent/skills/fixing-motion-performance/SKILL.md +9 -0
- package/.agent/skills/framer-motion-expert/SKILL.md +9 -0
- package/.agent/skills/frontend-design/SKILL.md +7 -0
- package/.agent/skills/frontend-security-expert/SKILL.md +9 -0
- package/.agent/skills/game-design-expert/SKILL.md +9 -0
- package/.agent/skills/game-engineering-expert/SKILL.md +16 -0
- package/.agent/skills/generative-ui-expert/SKILL.md +9 -0
- package/.agent/skills/geo-fundamentals/SKILL.md +9 -0
- package/.agent/skills/git-pro/SKILL.md +9 -0
- package/.agent/skills/github-operations/SKILL.md +9 -0
- package/.agent/skills/gpt-taste/SKILL.md +9 -0
- package/.agent/skills/graph-engineering/SKILL.md +16 -0
- package/.agent/skills/gsap-core/SKILL.md +9 -0
- package/.agent/skills/gsap-frameworks/SKILL.md +9 -0
- package/.agent/skills/gsap-performance/SKILL.md +9 -0
- package/.agent/skills/gsap-plugins/SKILL.md +9 -0
- package/.agent/skills/gsap-react/SKILL.md +9 -0
- package/.agent/skills/gsap-scrolltrigger/SKILL.md +9 -0
- package/.agent/skills/gsap-timeline/SKILL.md +9 -0
- package/.agent/skills/gsap-utils/SKILL.md +9 -0
- package/.agent/skills/harden/SKILL.md +8 -0
- package/.agent/skills/harness-protocol/SKILL.md +9 -0
- package/.agent/skills/hf-cli/SKILL.md +11 -0
- package/.agent/skills/hf-cloud-aws-context-discovery/SKILL.md +10 -0
- package/.agent/skills/hf-cloud-python-env-setup/SKILL.md +10 -0
- package/.agent/skills/hf-cloud-sagemaker-deployment-planner/SKILL.md +10 -0
- package/.agent/skills/hf-cloud-sagemaker-iam-preflight/SKILL.md +10 -0
- package/.agent/skills/hf-cloud-sagemaker-production-defaults/SKILL.md +10 -0
- package/.agent/skills/hf-cloud-serving-image-selection/SKILL.md +10 -0
- package/.agent/skills/hf-mem/SKILL.md +11 -0
- package/.agent/skills/huggingface-best/SKILL.md +9 -0
- package/.agent/skills/huggingface-community-evals/SKILL.md +11 -0
- package/.agent/skills/huggingface-datasets/SKILL.md +10 -0
- package/.agent/skills/huggingface-gradio/SKILL.md +10 -0
- package/.agent/skills/huggingface-llm-trainer/SKILL.md +10 -0
- package/.agent/skills/huggingface-local-models/SKILL.md +10 -0
- package/.agent/skills/huggingface-lora-space-builder/SKILL.md +11 -0
- package/.agent/skills/huggingface-paper-publisher/SKILL.md +11 -0
- package/.agent/skills/huggingface-papers/SKILL.md +11 -0
- package/.agent/skills/huggingface-spaces/SKILL.md +10 -0
- package/.agent/skills/huggingface-tool-builder/SKILL.md +11 -0
- package/.agent/skills/huggingface-trackio/SKILL.md +11 -0
- package/.agent/skills/huggingface-vision-trainer/SKILL.md +11 -0
- package/.agent/skills/huggingface-zerogpu/SKILL.md +11 -0
- package/.agent/skills/human-gate-negotiation/SKILL.md +11 -0
- package/.agent/skills/i18n-localization/SKILL.md +9 -0
- package/.agent/skills/impeccable/SKILL.md +8 -0
- package/.agent/skills/improve-codebase-architecture/SKILL.md +10 -0
- package/.agent/skills/improve-ui/SKILL.md +8 -0
- package/.agent/skills/intelligent-routing/SKILL.md +9 -0
- package/.agent/skills/knowledge-graph/SKILL.md +9 -0
- package/.agent/skills/landing-page/SKILL.md +9 -0
- package/.agent/skills/lint-and-validate/SKILL.md +9 -0
- package/.agent/skills/llm-engineering/SKILL.md +9 -0
- package/.agent/skills/local-first/SKILL.md +10 -0
- package/.agent/skills/lottie-animation/SKILL.md +9 -0
- package/.agent/skills/marquee-loop/SKILL.md +9 -0
- package/.agent/skills/masked-reveal/SKILL.md +9 -0
- package/.agent/skills/mcp-builder/SKILL.md +9 -0
- package/.agent/skills/micro-interaction/SKILL.md +9 -0
- package/.agent/skills/mobile-design/SKILL.md +7 -0
- package/.agent/skills/monorepo-management/SKILL.md +9 -0
- package/.agent/skills/morphing-icons/SKILL.md +9 -0
- package/.agent/skills/motion-engineering/SKILL.md +8 -0
- package/.agent/skills/nextjs-react-expert/SKILL.md +10 -0
- package/.agent/skills/nodejs-best-practices/SKILL.md +16 -0
- package/.agent/skills/observability/SKILL.md +8 -0
- package/.agent/skills/opentelemetry-observability/SKILL.md +9 -0
- package/.agent/skills/page-transition-animation/SKILL.md +10 -0
- package/.agent/skills/parallel-agents/SKILL.md +15 -0
- package/.agent/skills/performance-profiling/SKILL.md +9 -0
- package/.agent/skills/plan-writing/SKILL.md +8 -0
- package/.agent/skills/platform-engineer/SKILL.md +9 -0
- package/.agent/skills/platform-engineering-opentofu/SKILL.md +10 -0
- package/.agent/skills/playwright-ai-e2e/SKILL.md +9 -0
- package/.agent/skills/playwright-best-practices/SKILL.md +16 -0
- package/.agent/skills/polish/SKILL.md +8 -0
- package/.agent/skills/powershell-windows/SKILL.md +9 -0
- package/.agent/skills/pricing-page/SKILL.md +9 -0
- package/.agent/skills/product-aware-heuristics/SKILL.md +10 -0
- package/.agent/skills/progressive-blur/SKILL.md +9 -0
- package/.agent/skills/project-idioms/SKILL.md +8 -0
- package/.agent/skills/property-based-testing/SKILL.md +9 -0
- package/.agent/skills/python-patterns/SKILL.md +9 -0
- package/.agent/skills/python-pro/SKILL.md +9 -0
- package/.agent/skills/quieter/SKILL.md +8 -0
- package/.agent/skills/react-doctor/SKILL.md +9 -0
- package/.agent/skills/react-specialist/SKILL.md +9 -0
- package/.agent/skills/readme-builder/SKILL.md +9 -0
- package/.agent/skills/realtime-patterns/SKILL.md +9 -0
- package/.agent/skills/red-team-tactics/SKILL.md +16 -0
- package/.agent/skills/redesign-skill/SKILL.md +9 -0
- package/.agent/skills/review-animations/SKILL.md +8 -0
- package/.agent/skills/rust-pro/SKILL.md +9 -0
- package/.agent/skills/semantic-filesystem-navigation/SKILL.md +11 -0
- package/.agent/skills/seo-fundamentals/SKILL.md +9 -0
- package/.agent/skills/server-management/SKILL.md +8 -0
- package/.agent/skills/session-log-interrogation/SKILL.md +11 -0
- package/.agent/skills/shadcn-ui-expert/SKILL.md +9 -0
- package/.agent/skills/shape/SKILL.md +8 -0
- package/.agent/skills/skill-creator/SKILL.md +9 -0
- package/.agent/skills/soft-skill/SKILL.md +9 -0
- package/.agent/skills/sounds-on-the-web/SKILL.md +9 -0
- package/.agent/skills/sql-pro/SKILL.md +9 -0
- package/.agent/skills/subagent-driven-development/SKILL.md +11 -0
- package/.agent/skills/supabase-postgres-best-practices/SKILL.md +17 -0
- package/.agent/skills/svg-animation/SKILL.md +9 -0
- package/.agent/skills/swiftui-expert/SKILL.md +9 -0
- package/.agent/skills/swiss-design/SKILL.md +8 -0
- package/.agent/skills/system-design-pro/SKILL.md +9 -0
- package/.agent/skills/systematic-debugging/SKILL.md +14 -0
- package/.agent/skills/tailwind-patterns/SKILL.md +9 -0
- package/.agent/skills/taste-skill/SKILL.md +9 -0
- package/.agent/skills/tdd-workflow/SKILL.md +9 -0
- package/.agent/skills/test-result-analyzer/SKILL.md +9 -0
- package/.agent/skills/testing-patterns/SKILL.md +8 -0
- package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +11 -0
- package/.agent/skills/thinking-protocol/SKILL.md +10 -0
- package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +9 -0
- package/.agent/skills/train-sentence-transformers/SKILL.md +10 -0
- package/.agent/skills/transformers-js/SKILL.md +8 -0
- package/.agent/skills/transitions-dev/SKILL.md +8 -0
- package/.agent/skills/trend-researcher/SKILL.md +9 -0
- package/.agent/skills/tribunal-instincts-memory/SKILL.md +11 -0
- package/.agent/skills/trl-training/SKILL.md +9 -0
- package/.agent/skills/typescript-advanced/SKILL.md +9 -0
- package/.agent/skills/typeset/SKILL.md +8 -0
- package/.agent/skills/ui-reasoning-engine/SKILL.md +9 -0
- package/.agent/skills/ui-skill-packs/SKILL.md +9 -0
- package/.agent/skills/ui-skills-root/SKILL.md +9 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +9 -0
- package/.agent/skills/ui-ux-researcher/SKILL.md +8 -0
- package/.agent/skills/vector-search-pgvector/SKILL.md +10 -0
- package/.agent/skills/verification-before-completion/SKILL.md +9 -0
- package/.agent/skills/vue-expert/SKILL.md +9 -0
- package/.agent/skills/vulnerability-scanner/SKILL.md +9 -0
- package/.agent/skills/web-accessibility-auditor/SKILL.md +16 -0
- package/.agent/skills/web-design-guidelines/SKILL.md +9 -0
- package/.agent/skills/web-quality-audit/SKILL.md +10 -0
- package/.agent/skills/webapp-testing/SKILL.md +8 -0
- package/.agent/skills/webgpu-performance/SKILL.md +9 -0
- package/.agent/skills/whimsy-injector/SKILL.md +9 -0
- package/.agent/skills/workflow-optimizer/SKILL.md +9 -0
- package/.agent/skills/zero-trust-passkeys/SKILL.md +10 -0
- package/.agent/skills_inventory.json +502 -3167
- package/.agent/workflows/arch.md +96 -80
- package/.agent/workflows/skill-intelligence.md +216 -0
- package/.agents/skills/12-principles-of-animation/SKILL.md +9 -0
- package/.agents/skills/60fps-animation/SKILL.md +14 -0
- package/.agents/skills/accessible-animation/SKILL.md +9 -0
- package/.agents/skills/adapt/SKILL.md +8 -0
- package/.agents/skills/adr-generation/SKILL.md +9 -0
- package/.agents/skills/advanced-rag-pipelines/SKILL.md +9 -0
- package/.agents/skills/agent-organizer/SKILL.md +8 -0
- package/.agents/skills/agent-syscall-guidelines/SKILL.md +10 -0
- package/.agents/skills/agentic-patterns/SKILL.md +9 -0
- package/.agents/skills/agentic-workflows-2026/SKILL.md +8 -0
- package/.agents/skills/agentshield-security/SKILL.md +16 -0
- package/.agents/skills/ai-app-hardening/SKILL.md +7 -0
- package/.agents/skills/ai-prompt-injection-defense/SKILL.md +9 -0
- package/.agents/skills/animation-on-scroll/SKILL.md +9 -0
- package/.agents/skills/animation-systems/SKILL.md +8 -0
- package/.agents/skills/antfu-conventions/SKILL.md +9 -0
- package/.agents/skills/anti-slop-enforcement/SKILL.md +11 -0
- package/.agents/skills/api-patterns/SKILL.md +9 -0
- package/.agents/skills/api-security-auditor/SKILL.md +10 -0
- package/.agents/skills/app-builder/SKILL.md +8 -0
- package/.agents/skills/appflow-wireframe/SKILL.md +9 -0
- package/.agents/skills/apple-design/SKILL.md +8 -0
- package/.agents/skills/architecture/SKILL.md +8 -0
- package/.agents/skills/architecture-drift/SKILL.md +9 -0
- package/.agents/skills/architecture-intelligence/SKILL.md +17 -0
- package/.agents/skills/audit-and-fix/SKILL.md +8 -0
- package/.agents/skills/authentication-best-practices/SKILL.md +10 -0
- package/.agents/skills/autonomous-execution/SKILL.md +9 -0
- package/.agents/skills/backend-alembic/SKILL.md +16 -0
- package/.agents/skills/backend-architecture-auditor/SKILL.md +16 -0
- package/.agents/skills/backend-mongodb/SKILL.md +10 -0
- package/.agents/skills/backend-mysql/SKILL.md +16 -0
- package/.agents/skills/backend-performance-auditor/SKILL.md +10 -0
- package/.agents/skills/backend-postgresql/SKILL.md +10 -0
- package/.agents/skills/backend-redis/SKILL.md +10 -0
- package/.agents/skills/backend-security-expert/SKILL.md +10 -0
- package/.agents/skills/backend-sqlalchemy/SKILL.md +10 -0
- package/.agents/skills/backend-sqlite/SKILL.md +10 -0
- package/.agents/skills/backend-testing-auditor/SKILL.md +15 -0
- package/.agents/skills/baseline-ui/SKILL.md +8 -0
- package/.agents/skills/bash-linux/SKILL.md +9 -0
- package/.agents/skills/behavioral-modes/SKILL.md +9 -0
- package/.agents/skills/better-colors/SKILL.md +9 -0
- package/.agents/skills/better-typography/SKILL.md +9 -0
- package/.agents/skills/better-ui/SKILL.md +8 -0
- package/.agents/skills/bolder/SKILL.md +8 -0
- package/.agents/skills/brainstorming/SKILL.md +8 -0
- package/.agents/skills/browser-audit/SKILL.md +9 -0
- package/.agents/skills/browser-native-ai/SKILL.md +8 -0
- package/.agents/skills/build-primitive/SKILL.md +8 -0
- package/.agents/skills/building-native-ui/SKILL.md +7 -0
- package/.agents/skills/cicd-pro/SKILL.md +9 -0
- package/.agents/skills/clarify/SKILL.md +8 -0
- package/.agents/skills/clean-code/SKILL.md +8 -0
- package/.agents/skills/cloud-architect/SKILL.md +8 -0
- package/.agents/skills/cobejs/SKILL.md +8 -0
- package/.agents/skills/code-review-checklist/SKILL.md +9 -0
- package/.agents/skills/codebase-design/SKILL.md +14 -0
- package/.agents/skills/colorize/SKILL.md +8 -0
- package/.agents/skills/compact-landing/SKILL.md +9 -0
- package/.agents/skills/company-logos/SKILL.md +9 -0
- package/.agents/skills/config-validator/SKILL.md +9 -0
- package/.agents/skills/containerization-pro/SKILL.md +9 -0
- package/.agents/skills/context-engineering-pro/SKILL.md +10 -0
- package/.agents/skills/create-design-md/SKILL.md +7 -0
- package/.agents/skills/critique/SKILL.md +8 -0
- package/.agents/skills/csharp-developer/SKILL.md +9 -0
- package/.agents/skills/data-validation-schemas/SKILL.md +8 -0
- package/.agents/skills/database-design/SKILL.md +8 -0
- package/.agents/skills/delight/SKILL.md +8 -0
- package/.agents/skills/deployment-procedures/SKILL.md +9 -0
- package/.agents/skills/design-lab/SKILL.md +8 -0
- package/.agents/skills/devops-engineer/SKILL.md +9 -0
- package/.agents/skills/devops-incident-responder/SKILL.md +16 -0
- package/.agents/skills/diagnosing-bugs/SKILL.md +9 -0
- package/.agents/skills/distill/SKILL.md +8 -0
- package/.agents/skills/documentation-templates/SKILL.md +9 -0
- package/.agents/skills/domain-modeling/SKILL.md +9 -0
- package/.agents/skills/duckdb-analytical-sql/SKILL.md +10 -0
- package/.agents/skills/edge-ai-mobile/SKILL.md +8 -0
- package/.agents/skills/edge-computing/SKILL.md +9 -0
- package/.agents/skills/emil-design-eng/SKILL.md +9 -0
- package/.agents/skills/error-resilience/SKILL.md +8 -0
- package/.agents/skills/expo-router-v4/SKILL.md +9 -0
- package/.agents/skills/extract-design-system/SKILL.md +9 -0
- package/.agents/skills/fabel-protocol/SKILL.md +9 -0
- package/.agents/skills/failure-mode-analysis/SKILL.md +10 -0
- package/.agents/skills/fastapi-pro/SKILL.md +9 -0
- package/.agents/skills/fixing-accessibility/SKILL.md +9 -0
- package/.agents/skills/fixing-metadata/SKILL.md +9 -0
- package/.agents/skills/fixing-motion-performance/SKILL.md +9 -0
- package/.agents/skills/framer-motion-expert/SKILL.md +9 -0
- package/.agents/skills/frontend-design/SKILL.md +7 -0
- package/.agents/skills/frontend-security-expert/SKILL.md +9 -0
- package/.agents/skills/game-design-expert/SKILL.md +9 -0
- package/.agents/skills/game-engineering-expert/SKILL.md +16 -0
- package/.agents/skills/generative-ui-expert/SKILL.md +9 -0
- package/.agents/skills/geo-fundamentals/SKILL.md +9 -0
- package/.agents/skills/git-pro/SKILL.md +9 -0
- package/.agents/skills/github-operations/SKILL.md +9 -0
- package/.agents/skills/gpt-taste/SKILL.md +9 -0
- package/.agents/skills/graph-engineering/SKILL.md +16 -0
- package/.agents/skills/gsap-core/SKILL.md +9 -0
- package/.agents/skills/gsap-frameworks/SKILL.md +9 -0
- package/.agents/skills/gsap-performance/SKILL.md +9 -0
- package/.agents/skills/gsap-plugins/SKILL.md +9 -0
- package/.agents/skills/gsap-react/SKILL.md +9 -0
- package/.agents/skills/gsap-scrolltrigger/SKILL.md +9 -0
- package/.agents/skills/gsap-timeline/SKILL.md +9 -0
- package/.agents/skills/gsap-utils/SKILL.md +9 -0
- package/.agents/skills/harden/SKILL.md +8 -0
- package/.agents/skills/harness-protocol/SKILL.md +9 -0
- package/.agents/skills/hf-cli/SKILL.md +11 -0
- package/.agents/skills/hf-cloud-aws-context-discovery/SKILL.md +10 -0
- package/.agents/skills/hf-cloud-python-env-setup/SKILL.md +10 -0
- package/.agents/skills/hf-cloud-sagemaker-deployment-planner/SKILL.md +10 -0
- package/.agents/skills/hf-cloud-sagemaker-iam-preflight/SKILL.md +10 -0
- package/.agents/skills/hf-cloud-sagemaker-production-defaults/SKILL.md +10 -0
- package/.agents/skills/hf-cloud-serving-image-selection/SKILL.md +10 -0
- package/.agents/skills/hf-mem/SKILL.md +11 -0
- package/.agents/skills/huggingface-best/SKILL.md +9 -0
- package/.agents/skills/huggingface-community-evals/SKILL.md +11 -0
- package/.agents/skills/huggingface-datasets/SKILL.md +10 -0
- package/.agents/skills/huggingface-gradio/SKILL.md +10 -0
- package/.agents/skills/huggingface-llm-trainer/SKILL.md +10 -0
- package/.agents/skills/huggingface-local-models/SKILL.md +10 -0
- package/.agents/skills/huggingface-lora-space-builder/SKILL.md +11 -0
- package/.agents/skills/huggingface-paper-publisher/SKILL.md +11 -0
- package/.agents/skills/huggingface-papers/SKILL.md +11 -0
- package/.agents/skills/huggingface-spaces/SKILL.md +10 -0
- package/.agents/skills/huggingface-tool-builder/SKILL.md +11 -0
- package/.agents/skills/huggingface-trackio/SKILL.md +11 -0
- package/.agents/skills/huggingface-vision-trainer/SKILL.md +11 -0
- package/.agents/skills/huggingface-zerogpu/SKILL.md +11 -0
- package/.agents/skills/human-gate-negotiation/SKILL.md +11 -0
- package/.agents/skills/i18n-localization/SKILL.md +9 -0
- package/.agents/skills/impeccable/SKILL.md +8 -0
- package/.agents/skills/improve-codebase-architecture/SKILL.md +10 -0
- package/.agents/skills/improve-ui/SKILL.md +8 -0
- package/.agents/skills/intelligent-routing/SKILL.md +9 -0
- package/.agents/skills/knowledge-graph/SKILL.md +9 -0
- package/.agents/skills/landing-page/SKILL.md +9 -0
- package/.agents/skills/lint-and-validate/SKILL.md +9 -0
- package/.agents/skills/llm-engineering/SKILL.md +9 -0
- package/.agents/skills/local-first/SKILL.md +10 -0
- package/.agents/skills/lottie-animation/SKILL.md +9 -0
- package/.agents/skills/marquee-loop/SKILL.md +9 -0
- package/.agents/skills/masked-reveal/SKILL.md +9 -0
- package/.agents/skills/mcp-builder/SKILL.md +9 -0
- package/.agents/skills/micro-interaction/SKILL.md +9 -0
- package/.agents/skills/mobile-design/SKILL.md +7 -0
- package/.agents/skills/monorepo-management/SKILL.md +9 -0
- package/.agents/skills/morphing-icons/SKILL.md +9 -0
- package/.agents/skills/motion-engineering/SKILL.md +8 -0
- package/.agents/skills/nextjs-react-expert/SKILL.md +10 -0
- package/.agents/skills/nodejs-best-practices/SKILL.md +16 -0
- package/.agents/skills/observability/SKILL.md +8 -0
- package/.agents/skills/opentelemetry-observability/SKILL.md +9 -0
- package/.agents/skills/page-transition-animation/SKILL.md +10 -0
- package/.agents/skills/parallel-agents/SKILL.md +15 -0
- package/.agents/skills/performance-profiling/SKILL.md +9 -0
- package/.agents/skills/plan-writing/SKILL.md +8 -0
- package/.agents/skills/platform-engineer/SKILL.md +9 -0
- package/.agents/skills/platform-engineering-opentofu/SKILL.md +10 -0
- package/.agents/skills/playwright-ai-e2e/SKILL.md +9 -0
- package/.agents/skills/playwright-best-practices/SKILL.md +16 -0
- package/.agents/skills/polish/SKILL.md +8 -0
- package/.agents/skills/powershell-windows/SKILL.md +9 -0
- package/.agents/skills/pricing-page/SKILL.md +9 -0
- package/.agents/skills/product-aware-heuristics/SKILL.md +10 -0
- package/.agents/skills/progressive-blur/SKILL.md +9 -0
- package/.agents/skills/project-idioms/SKILL.md +8 -0
- package/.agents/skills/property-based-testing/SKILL.md +9 -0
- package/.agents/skills/python-patterns/SKILL.md +9 -0
- package/.agents/skills/python-pro/SKILL.md +9 -0
- package/.agents/skills/quieter/SKILL.md +8 -0
- package/.agents/skills/react-doctor/SKILL.md +9 -0
- package/.agents/skills/react-specialist/SKILL.md +9 -0
- package/.agents/skills/readme-builder/SKILL.md +9 -0
- package/.agents/skills/realtime-patterns/SKILL.md +9 -0
- package/.agents/skills/red-team-tactics/SKILL.md +16 -0
- package/.agents/skills/redesign-skill/SKILL.md +9 -0
- package/.agents/skills/review-animations/SKILL.md +8 -0
- package/.agents/skills/rust-pro/SKILL.md +9 -0
- package/.agents/skills/semantic-filesystem-navigation/SKILL.md +11 -0
- package/.agents/skills/seo-fundamentals/SKILL.md +9 -0
- package/.agents/skills/server-management/SKILL.md +8 -0
- package/.agents/skills/session-log-interrogation/SKILL.md +11 -0
- package/.agents/skills/shadcn-ui-expert/SKILL.md +9 -0
- package/.agents/skills/shape/SKILL.md +8 -0
- package/.agents/skills/skill-creator/SKILL.md +9 -0
- package/.agents/skills/soft-skill/SKILL.md +9 -0
- package/.agents/skills/sounds-on-the-web/SKILL.md +9 -0
- package/.agents/skills/sql-pro/SKILL.md +9 -0
- package/.agents/skills/subagent-driven-development/SKILL.md +11 -0
- package/.agents/skills/supabase-postgres-best-practices/SKILL.md +17 -0
- package/.agents/skills/svg-animation/SKILL.md +9 -0
- package/.agents/skills/swiftui-expert/SKILL.md +9 -0
- package/.agents/skills/swiss-design/SKILL.md +8 -0
- package/.agents/skills/system-design-pro/SKILL.md +9 -0
- package/.agents/skills/systematic-debugging/SKILL.md +14 -0
- package/.agents/skills/tailwind-patterns/SKILL.md +9 -0
- package/.agents/skills/taste-skill/SKILL.md +9 -0
- package/.agents/skills/tdd-workflow/SKILL.md +9 -0
- package/.agents/skills/test-result-analyzer/SKILL.md +9 -0
- package/.agents/skills/testing-patterns/SKILL.md +8 -0
- package/.agents/skills/thermo-nuclear-code-quality-review/SKILL.md +11 -0
- package/.agents/skills/thinking-protocol/SKILL.md +10 -0
- package/.agents/skills/to-spring-or-not-to-spring/SKILL.md +9 -0
- package/.agents/skills/train-sentence-transformers/SKILL.md +10 -0
- package/.agents/skills/transformers-js/SKILL.md +8 -0
- package/.agents/skills/transitions-dev/SKILL.md +8 -0
- package/.agents/skills/trend-researcher/SKILL.md +9 -0
- package/.agents/skills/tribunal-instincts-memory/SKILL.md +11 -0
- package/.agents/skills/trl-training/SKILL.md +9 -0
- package/.agents/skills/typescript-advanced/SKILL.md +9 -0
- package/.agents/skills/typeset/SKILL.md +8 -0
- package/.agents/skills/ui-reasoning-engine/SKILL.md +9 -0
- package/.agents/skills/ui-skill-packs/SKILL.md +9 -0
- package/.agents/skills/ui-skills-root/SKILL.md +9 -0
- package/.agents/skills/ui-ux-pro-max/SKILL.md +9 -0
- package/.agents/skills/ui-ux-researcher/SKILL.md +8 -0
- package/.agents/skills/vector-search-pgvector/SKILL.md +10 -0
- package/.agents/skills/verification-before-completion/SKILL.md +9 -0
- package/.agents/skills/vue-expert/SKILL.md +9 -0
- package/.agents/skills/vulnerability-scanner/SKILL.md +9 -0
- package/.agents/skills/web-accessibility-auditor/SKILL.md +16 -0
- package/.agents/skills/web-design-guidelines/SKILL.md +9 -0
- package/.agents/skills/web-quality-audit/SKILL.md +10 -0
- package/.agents/skills/webapp-testing/SKILL.md +8 -0
- package/.agents/skills/webgpu-performance/SKILL.md +9 -0
- package/.agents/skills/whimsy-injector/SKILL.md +9 -0
- package/.agents/skills/workflow-optimizer/SKILL.md +9 -0
- package/.agents/skills/zero-trust-passkeys/SKILL.md +10 -0
- package/CONTRIBUTING.md +2 -2
- package/README.md +25 -25
- package/bin/adapter-install.js +1 -1
- package/bin/mcp-server.js +249 -0
- package/package.json +11 -8
- package/plugins/core-plugin.json +1 -1
- package/plugins/gemini/extension.json +1 -1
- package/skills/12-principles-of-animation/SKILL.md +9 -0
- package/skills/60fps-animation/SKILL.md +14 -0
- package/skills/accessible-animation/SKILL.md +9 -0
- package/skills/adapt/SKILL.md +8 -0
- package/skills/adr-generation/SKILL.md +9 -0
- package/skills/advanced-rag-pipelines/SKILL.md +9 -0
- package/skills/agent-organizer/SKILL.md +8 -0
- package/skills/agent-syscall-guidelines/SKILL.md +10 -0
- package/skills/agentic-patterns/SKILL.md +9 -0
- package/skills/agentic-workflows-2026/SKILL.md +8 -0
- package/skills/agentshield-security/SKILL.md +16 -0
- package/skills/ai-app-hardening/SKILL.md +7 -0
- package/skills/ai-prompt-injection-defense/SKILL.md +9 -0
- package/skills/animation-on-scroll/SKILL.md +9 -0
- package/skills/animation-systems/SKILL.md +8 -0
- package/skills/antfu-conventions/SKILL.md +9 -0
- package/skills/anti-slop-enforcement/SKILL.md +11 -0
- package/skills/api-patterns/SKILL.md +9 -0
- package/skills/api-security-auditor/SKILL.md +10 -0
- package/skills/app-builder/SKILL.md +8 -0
- package/skills/appflow-wireframe/SKILL.md +9 -0
- package/skills/apple-design/SKILL.md +8 -0
- package/skills/architecture/SKILL.md +8 -0
- package/skills/architecture-drift/SKILL.md +9 -0
- package/skills/architecture-intelligence/SKILL.md +17 -0
- package/skills/audit-and-fix/SKILL.md +8 -0
- package/skills/authentication-best-practices/SKILL.md +10 -0
- package/skills/autonomous-execution/SKILL.md +9 -0
- package/skills/backend-alembic/SKILL.md +16 -0
- package/skills/backend-architecture-auditor/SKILL.md +16 -0
- package/skills/backend-mongodb/SKILL.md +10 -0
- package/skills/backend-mysql/SKILL.md +16 -0
- package/skills/backend-performance-auditor/SKILL.md +10 -0
- package/skills/backend-postgresql/SKILL.md +10 -0
- package/skills/backend-redis/SKILL.md +10 -0
- package/skills/backend-security-expert/SKILL.md +10 -0
- package/skills/backend-sqlalchemy/SKILL.md +10 -0
- package/skills/backend-sqlite/SKILL.md +10 -0
- package/skills/backend-testing-auditor/SKILL.md +15 -0
- package/skills/baseline-ui/SKILL.md +8 -0
- package/skills/bash-linux/SKILL.md +9 -0
- package/skills/behavioral-modes/SKILL.md +9 -0
- package/skills/better-colors/SKILL.md +9 -0
- package/skills/better-typography/SKILL.md +9 -0
- package/skills/better-ui/SKILL.md +8 -0
- package/skills/bolder/SKILL.md +8 -0
- package/skills/brainstorming/SKILL.md +8 -0
- package/skills/browser-audit/SKILL.md +9 -0
- package/skills/browser-native-ai/SKILL.md +8 -0
- package/skills/build-primitive/SKILL.md +8 -0
- package/skills/building-native-ui/SKILL.md +7 -0
- package/skills/cicd-pro/SKILL.md +9 -0
- package/skills/clarify/SKILL.md +8 -0
- package/skills/clean-code/SKILL.md +8 -0
- package/skills/cloud-architect/SKILL.md +8 -0
- package/skills/cobejs/SKILL.md +8 -0
- package/skills/code-review-checklist/SKILL.md +9 -0
- package/skills/codebase-design/SKILL.md +14 -0
- package/skills/colorize/SKILL.md +8 -0
- package/skills/compact-landing/SKILL.md +9 -0
- package/skills/company-logos/SKILL.md +9 -0
- package/skills/config-validator/SKILL.md +9 -0
- package/skills/containerization-pro/SKILL.md +9 -0
- package/skills/context-engineering-pro/SKILL.md +10 -0
- package/skills/create-design-md/SKILL.md +7 -0
- package/skills/critique/SKILL.md +8 -0
- package/skills/csharp-developer/SKILL.md +9 -0
- package/skills/data-validation-schemas/SKILL.md +8 -0
- package/skills/database-design/SKILL.md +8 -0
- package/skills/delight/SKILL.md +8 -0
- package/skills/deployment-procedures/SKILL.md +9 -0
- package/skills/design-lab/SKILL.md +8 -0
- package/skills/devops-engineer/SKILL.md +9 -0
- package/skills/devops-incident-responder/SKILL.md +16 -0
- package/skills/diagnosing-bugs/SKILL.md +9 -0
- package/skills/distill/SKILL.md +8 -0
- package/skills/documentation-templates/SKILL.md +9 -0
- package/skills/domain-modeling/SKILL.md +9 -0
- package/skills/duckdb-analytical-sql/SKILL.md +10 -0
- package/skills/edge-ai-mobile/SKILL.md +8 -0
- package/skills/edge-computing/SKILL.md +9 -0
- package/skills/emil-design-eng/SKILL.md +9 -0
- package/skills/error-resilience/SKILL.md +8 -0
- package/skills/expo-router-v4/SKILL.md +9 -0
- package/skills/extract-design-system/SKILL.md +9 -0
- package/skills/fabel-protocol/SKILL.md +9 -0
- package/skills/failure-mode-analysis/SKILL.md +10 -0
- package/skills/fastapi-pro/SKILL.md +9 -0
- package/skills/fixing-accessibility/SKILL.md +9 -0
- package/skills/fixing-metadata/SKILL.md +9 -0
- package/skills/fixing-motion-performance/SKILL.md +9 -0
- package/skills/framer-motion-expert/SKILL.md +9 -0
- package/skills/frontend-design/SKILL.md +7 -0
- package/skills/frontend-security-expert/SKILL.md +9 -0
- package/skills/game-design-expert/SKILL.md +9 -0
- package/skills/game-engineering-expert/SKILL.md +16 -0
- package/skills/generative-ui-expert/SKILL.md +9 -0
- package/skills/geo-fundamentals/SKILL.md +9 -0
- package/skills/git-pro/SKILL.md +9 -0
- package/skills/github-operations/SKILL.md +9 -0
- package/skills/gpt-taste/SKILL.md +9 -0
- package/skills/graph-engineering/SKILL.md +16 -0
- package/skills/gsap-core/SKILL.md +9 -0
- package/skills/gsap-frameworks/SKILL.md +9 -0
- package/skills/gsap-performance/SKILL.md +9 -0
- package/skills/gsap-plugins/SKILL.md +9 -0
- package/skills/gsap-react/SKILL.md +9 -0
- package/skills/gsap-scrolltrigger/SKILL.md +9 -0
- package/skills/gsap-timeline/SKILL.md +9 -0
- package/skills/gsap-utils/SKILL.md +9 -0
- package/skills/harden/SKILL.md +8 -0
- package/skills/harness-protocol/SKILL.md +9 -0
- package/skills/hf-cli/SKILL.md +11 -0
- package/skills/hf-cloud-aws-context-discovery/SKILL.md +10 -0
- package/skills/hf-cloud-python-env-setup/SKILL.md +10 -0
- package/skills/hf-cloud-sagemaker-deployment-planner/SKILL.md +10 -0
- package/skills/hf-cloud-sagemaker-iam-preflight/SKILL.md +10 -0
- package/skills/hf-cloud-sagemaker-production-defaults/SKILL.md +10 -0
- package/skills/hf-cloud-serving-image-selection/SKILL.md +10 -0
- package/skills/hf-mem/SKILL.md +11 -0
- package/skills/huggingface-best/SKILL.md +9 -0
- package/skills/huggingface-community-evals/SKILL.md +11 -0
- package/skills/huggingface-datasets/SKILL.md +10 -0
- package/skills/huggingface-gradio/SKILL.md +10 -0
- package/skills/huggingface-llm-trainer/SKILL.md +10 -0
- package/skills/huggingface-local-models/SKILL.md +10 -0
- package/skills/huggingface-lora-space-builder/SKILL.md +11 -0
- package/skills/huggingface-paper-publisher/SKILL.md +11 -0
- package/skills/huggingface-papers/SKILL.md +11 -0
- package/skills/huggingface-spaces/SKILL.md +10 -0
- package/skills/huggingface-tool-builder/SKILL.md +11 -0
- package/skills/huggingface-trackio/SKILL.md +11 -0
- package/skills/huggingface-vision-trainer/SKILL.md +11 -0
- package/skills/huggingface-zerogpu/SKILL.md +11 -0
- package/skills/human-gate-negotiation/SKILL.md +11 -0
- package/skills/i18n-localization/SKILL.md +9 -0
- package/skills/impeccable/SKILL.md +8 -0
- package/skills/improve-codebase-architecture/SKILL.md +10 -0
- package/skills/improve-ui/SKILL.md +8 -0
- package/skills/intelligent-routing/SKILL.md +9 -0
- package/skills/knowledge-graph/SKILL.md +9 -0
- package/skills/landing-page/SKILL.md +9 -0
- package/skills/lint-and-validate/SKILL.md +9 -0
- package/skills/llm-engineering/SKILL.md +9 -0
- package/skills/local-first/SKILL.md +10 -0
- package/skills/lottie-animation/SKILL.md +9 -0
- package/skills/marquee-loop/SKILL.md +9 -0
- package/skills/masked-reveal/SKILL.md +9 -0
- package/skills/mcp-builder/SKILL.md +9 -0
- package/skills/micro-interaction/SKILL.md +9 -0
- package/skills/mobile-design/SKILL.md +7 -0
- package/skills/monorepo-management/SKILL.md +9 -0
- package/skills/morphing-icons/SKILL.md +9 -0
- package/skills/motion-engineering/SKILL.md +8 -0
- package/skills/nextjs-react-expert/SKILL.md +10 -0
- package/skills/nodejs-best-practices/SKILL.md +16 -0
- package/skills/observability/SKILL.md +8 -0
- package/skills/opentelemetry-observability/SKILL.md +9 -0
- package/skills/page-transition-animation/SKILL.md +10 -0
- package/skills/parallel-agents/SKILL.md +15 -0
- package/skills/performance-profiling/SKILL.md +9 -0
- package/skills/plan-writing/SKILL.md +8 -0
- package/skills/platform-engineer/SKILL.md +9 -0
- package/skills/platform-engineering-opentofu/SKILL.md +10 -0
- package/skills/playwright-ai-e2e/SKILL.md +9 -0
- package/skills/playwright-best-practices/SKILL.md +16 -0
- package/skills/polish/SKILL.md +8 -0
- package/skills/powershell-windows/SKILL.md +9 -0
- package/skills/pricing-page/SKILL.md +9 -0
- package/skills/product-aware-heuristics/SKILL.md +10 -0
- package/skills/progressive-blur/SKILL.md +9 -0
- package/skills/project-idioms/SKILL.md +8 -0
- package/skills/property-based-testing/SKILL.md +9 -0
- package/skills/python-patterns/SKILL.md +9 -0
- package/skills/python-pro/SKILL.md +9 -0
- package/skills/quieter/SKILL.md +8 -0
- package/skills/react-doctor/SKILL.md +9 -0
- package/skills/react-specialist/SKILL.md +9 -0
- package/skills/readme-builder/SKILL.md +9 -0
- package/skills/realtime-patterns/SKILL.md +9 -0
- package/skills/red-team-tactics/SKILL.md +16 -0
- package/skills/redesign-skill/SKILL.md +9 -0
- package/skills/review-animations/SKILL.md +8 -0
- package/skills/rust-pro/SKILL.md +9 -0
- package/skills/semantic-filesystem-navigation/SKILL.md +11 -0
- package/skills/seo-fundamentals/SKILL.md +9 -0
- package/skills/server-management/SKILL.md +8 -0
- package/skills/session-log-interrogation/SKILL.md +11 -0
- package/skills/shadcn-ui-expert/SKILL.md +9 -0
- package/skills/shape/SKILL.md +8 -0
- package/skills/skill-creator/SKILL.md +9 -0
- package/skills/soft-skill/SKILL.md +9 -0
- package/skills/sounds-on-the-web/SKILL.md +9 -0
- package/skills/sql-pro/SKILL.md +9 -0
- package/skills/subagent-driven-development/SKILL.md +11 -0
- package/skills/supabase-postgres-best-practices/SKILL.md +17 -0
- package/skills/svg-animation/SKILL.md +9 -0
- package/skills/swiftui-expert/SKILL.md +9 -0
- package/skills/swiss-design/SKILL.md +8 -0
- package/skills/system-design-pro/SKILL.md +9 -0
- package/skills/systematic-debugging/SKILL.md +14 -0
- package/skills/tailwind-patterns/SKILL.md +9 -0
- package/skills/taste-skill/SKILL.md +9 -0
- package/skills/tdd-workflow/SKILL.md +9 -0
- package/skills/test-result-analyzer/SKILL.md +9 -0
- package/skills/testing-patterns/SKILL.md +8 -0
- package/skills/thermo-nuclear-code-quality-review/SKILL.md +11 -0
- package/skills/thinking-protocol/SKILL.md +10 -0
- package/skills/to-spring-or-not-to-spring/SKILL.md +9 -0
- package/skills/train-sentence-transformers/SKILL.md +10 -0
- package/skills/transformers-js/SKILL.md +8 -0
- package/skills/transitions-dev/SKILL.md +8 -0
- package/skills/trend-researcher/SKILL.md +9 -0
- package/skills/tribunal-instincts-memory/SKILL.md +11 -0
- package/skills/trl-training/SKILL.md +9 -0
- package/skills/typescript-advanced/SKILL.md +9 -0
- package/skills/typeset/SKILL.md +8 -0
- package/skills/ui-reasoning-engine/SKILL.md +9 -0
- package/skills/ui-skill-packs/SKILL.md +9 -0
- package/skills/ui-skills-root/SKILL.md +9 -0
- package/skills/ui-ux-pro-max/SKILL.md +9 -0
- package/skills/ui-ux-researcher/SKILL.md +8 -0
- package/skills/vector-search-pgvector/SKILL.md +10 -0
- package/skills/verification-before-completion/SKILL.md +9 -0
- package/skills/vue-expert/SKILL.md +9 -0
- package/skills/vulnerability-scanner/SKILL.md +9 -0
- package/skills/web-accessibility-auditor/SKILL.md +16 -0
- package/skills/web-design-guidelines/SKILL.md +9 -0
- package/skills/web-quality-audit/SKILL.md +10 -0
- package/skills/webapp-testing/SKILL.md +8 -0
- package/skills/webgpu-performance/SKILL.md +9 -0
- package/skills/whimsy-injector/SKILL.md +9 -0
- package/skills/workflow-optimizer/SKILL.md +9 -0
- package/skills/zero-trust-passkeys/SKILL.md +10 -0
- package/src/browser/index.js +2 -1
- package/src/browser/launcher.js +41 -1
- package/src/cli.js +21 -1
- package/src/commands/arch.js +261 -172
- package/src/commands/context.js +27 -8
- package/src/commands/init.js +538 -462
- package/src/commands/intelligence.js +86 -0
- package/src/commands/learn.js +21 -6
- package/src/commands/memory.js +10 -1
- package/src/commands/native.js +12 -3
- package/src/commands/review.js +235 -1
- package/src/commands/skill-intelligence.js +1165 -0
- package/src/commands/system1.js +562 -312
- package/src/context/ranker.js +337 -339
- package/src/evaluation/evaluation_runner.js +207 -0
- package/src/evaluation/scenario_registry.js +82 -0
- package/src/evolution/engine.js +296 -295
- package/src/execution/agent_correction_engine.js +76 -0
- package/src/execution/controlled_write_service.js +301 -0
- package/src/execution/correction_run_engine.js +234 -0
- package/src/execution/correction_verifier.js +85 -0
- package/src/execution/evidence_aggregator.js +54 -0
- package/src/execution/finding_diff_engine.js +59 -0
- package/src/execution/index.js +42 -0
- package/src/execution/prompt_isolator.js +145 -0
- package/src/execution/provider_adapter.js +495 -0
- package/src/execution/resolution_certificate.js +53 -0
- package/src/execution/resolution_policy.js +70 -0
- package/src/execution/review_executor.js +335 -0
- package/src/execution/reviewer_registry.js +137 -0
- package/src/execution/schemas.js +298 -0
- package/src/execution/transaction_manager.js +237 -0
- package/src/execution/validation_runner.js +174 -0
- package/src/execution/verdict_aggregator.js +181 -0
- package/src/execution/write_policy_engine.js +95 -0
- package/src/intelligence/adaptive_correction.js +72 -0
- package/src/intelligence/adaptive_reviewer_orchestrator.js +123 -0
- package/src/intelligence/case_indexer.js +166 -0
- package/src/intelligence/case_memory.js +149 -0
- package/src/intelligence/case_similarity.js +86 -0
- package/src/intelligence/cbr_engine.js +90 -0
- package/src/intelligence/evidence_optimization.js +106 -0
- package/src/intelligence/failure_intelligence.js +95 -0
- package/src/intelligence/governance_drift_detector.js +75 -0
- package/src/intelligence/governance_simulator.js +115 -0
- package/src/intelligence/human_intelligence.js +46 -0
- package/src/intelligence/mcp_tools.js +87 -0
- package/src/intelligence/reviewer_performance.js +94 -0
- package/src/intelligence/risk_prediction_engine.js +92 -0
- package/src/intelligence/token_intelligence.js +73 -0
- package/src/synthesis/claim_check_separator.js +294 -271
- package/src/system1/browser_intelligence.js +300 -0
- package/src/system1/constants.js +49 -0
- package/src/system1/decision_engine.js +498 -0
- package/src/system1/evidence_engine.js +602 -0
- package/src/system1/evolution_pipeline.js +581 -0
- package/src/system1/index.d.ts +114 -0
- package/src/system1/index.js +102 -0
- package/src/system1/reviewer_orchestrator.js +477 -0
- package/src/tui/banner.js +26 -47
- package/src/tui/index.js +4 -0
- package/src/tui/panel.js +55 -0
- package/src/tui/progress.js +42 -0
- package/src/tui/reviewer-grid.js +9 -10
- package/src/tui/theme.js +59 -16
- package/src/tui/tree.js +57 -29
- package/src/tui/wizard.js +22 -18
- package/src/utils/fs.js +27 -0
- package/.agent/skills/local-first-architecture/SKILL.md +0 -123
|
@@ -0,0 +1,1300 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* skill_intelligence.js — Tribunal Kit Skill Intelligence Engine
|
|
4
|
+
* =================================================================
|
|
5
|
+
* Enforces the core operating principle:
|
|
6
|
+
* DISCOVER FIRST.
|
|
7
|
+
* COMPOSE SECOND.
|
|
8
|
+
* CREATE ONLY WHEN NECESSARY.
|
|
9
|
+
* VERIFY ALWAYS.
|
|
10
|
+
*
|
|
11
|
+
* Implements Phase 2:
|
|
12
|
+
* - Concept Discovery (Explicit & Implicit)
|
|
13
|
+
* - Engineering Consideration Matrix (Critical / High / Medium / Low)
|
|
14
|
+
* - Skill Coverage Matrix (FULL / PARTIAL / NONE)
|
|
15
|
+
* - Dependency-Aware Capability Pipeline DAG
|
|
16
|
+
* - 11-Check New Skill Creation Gate
|
|
17
|
+
* - Concept-Aligned Verification Plan
|
|
18
|
+
*
|
|
19
|
+
* Usage:
|
|
20
|
+
* node scripts/skill_intelligence.js --query "Build payment API with idempotency and retry"
|
|
21
|
+
* node scripts/skill_intelligence.js --gate --need "webhook-reconciliation"
|
|
22
|
+
* node scripts/skill_intelligence.js --audit
|
|
23
|
+
* node scripts/skill_intelligence.js --query "..." --json
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
'use strict';
|
|
27
|
+
|
|
28
|
+
const fs = require('fs');
|
|
29
|
+
const path = require('path');
|
|
30
|
+
|
|
31
|
+
// Colors fallback
|
|
32
|
+
const CYAN = '\x1b[36m',
|
|
33
|
+
GREEN = '\x1b[32m',
|
|
34
|
+
YELLOW = '\x1b[33m',
|
|
35
|
+
RED = '\x1b[31m',
|
|
36
|
+
BOLD = '\x1b[1m',
|
|
37
|
+
DIM = '\x1b[2m',
|
|
38
|
+
RESET = '\x1b[0m';
|
|
39
|
+
|
|
40
|
+
const { extractConcepts } = require('./concept_extractor');
|
|
41
|
+
const { generateConsiderations } = require('./consideration_engine');
|
|
42
|
+
const { evaluateCoverage } = require('./coverage_engine');
|
|
43
|
+
const { auditPostExecution, generateImprovementProposal } = require('./verification_auditor');
|
|
44
|
+
const {
|
|
45
|
+
evaluateMateriality,
|
|
46
|
+
checkMinimumSufficientEngineering,
|
|
47
|
+
determineOutcomeBudget,
|
|
48
|
+
} = require('./materiality_engine');
|
|
49
|
+
const {
|
|
50
|
+
determineQualityDimensions,
|
|
51
|
+
generateOutcomeContract,
|
|
52
|
+
detectTradeoffs,
|
|
53
|
+
auditOutcome,
|
|
54
|
+
evaluateOutcomeRegression,
|
|
55
|
+
} = require('./outcome_engine');
|
|
56
|
+
const {
|
|
57
|
+
EVIDENCE_LEVELS,
|
|
58
|
+
REVERSIBILITY_LEVELS,
|
|
59
|
+
classifyEvidence,
|
|
60
|
+
createUncertaintyRecord,
|
|
61
|
+
calculateInformationValue,
|
|
62
|
+
classifyReversibility,
|
|
63
|
+
recordDecision,
|
|
64
|
+
invalidateDecision,
|
|
65
|
+
detectRequirementConflicts,
|
|
66
|
+
runCounterfactualAnalysis,
|
|
67
|
+
detectEngineeringSmells,
|
|
68
|
+
evaluateEscalation,
|
|
69
|
+
evaluateJudgmentState,
|
|
70
|
+
} = require('./judgment_engine');
|
|
71
|
+
const {
|
|
72
|
+
DynamicCapabilityGraph,
|
|
73
|
+
adaptPipelineOnSignal,
|
|
74
|
+
analyzeChangeImpact,
|
|
75
|
+
recordEngineeringLesson,
|
|
76
|
+
recallRelevantLessons,
|
|
77
|
+
evaluateSkillEffectiveness,
|
|
78
|
+
runFinalEngineeringReview,
|
|
79
|
+
} = require('./adaptive_execution');
|
|
80
|
+
const {
|
|
81
|
+
MEMORY_TYPES,
|
|
82
|
+
PROVENANCE_TYPES,
|
|
83
|
+
TRUST_STATES,
|
|
84
|
+
TRUST_RANKS,
|
|
85
|
+
MEMORY_SCOPES,
|
|
86
|
+
sanitizeContentAndEvidence,
|
|
87
|
+
validateMemoryAdmission,
|
|
88
|
+
createMemoryRecord,
|
|
89
|
+
validateApplicability,
|
|
90
|
+
evaluateMemoryStaleness,
|
|
91
|
+
evaluateMemoryHypothesisWithCurrentEvidence,
|
|
92
|
+
recordConflictResolution,
|
|
93
|
+
MemoryGraph,
|
|
94
|
+
EngineeringMemoryStore,
|
|
95
|
+
getEngineeringMemoryStore,
|
|
96
|
+
retrieveRelevantMemories,
|
|
97
|
+
extractEngineeringMemory,
|
|
98
|
+
} = require('./engineering_memory');
|
|
99
|
+
const {
|
|
100
|
+
SkillTelemetryRegistry,
|
|
101
|
+
getSkillTelemetryRegistry,
|
|
102
|
+
CapabilityGapTracker,
|
|
103
|
+
getCapabilityGapTracker,
|
|
104
|
+
PROPOSAL_STATUS,
|
|
105
|
+
SkillImprovementManager,
|
|
106
|
+
getSkillImprovementManager,
|
|
107
|
+
Phase5MetricsTracker,
|
|
108
|
+
getPhase5MetricsTracker,
|
|
109
|
+
} = require('./capability_evolution');
|
|
110
|
+
const {
|
|
111
|
+
FAILURE_TAXONOMY,
|
|
112
|
+
BLAST_RADIUS_TIERS,
|
|
113
|
+
SIMULATION_LEVELS,
|
|
114
|
+
PREDICTION_STATUS,
|
|
115
|
+
createPredictionRecord,
|
|
116
|
+
analyzeBlastRadius,
|
|
117
|
+
buildFailureChains,
|
|
118
|
+
simulateDependencyFailures,
|
|
119
|
+
simulateConcurrencyRisks,
|
|
120
|
+
simulateRetryAmplification,
|
|
121
|
+
simulateDatabaseFailures,
|
|
122
|
+
simulateQueueFailures,
|
|
123
|
+
simulateCacheFailures,
|
|
124
|
+
simulateCapacityAndQueueing,
|
|
125
|
+
simulateLatencyBudget,
|
|
126
|
+
runSecurityPreMortem,
|
|
127
|
+
runAgentPreMortem,
|
|
128
|
+
runCostPreMortem,
|
|
129
|
+
simulateDeploymentAndRecovery,
|
|
130
|
+
generateChaosScenarios,
|
|
131
|
+
detectUnsupportedClaims,
|
|
132
|
+
determineSimulationLevel,
|
|
133
|
+
runPreMortem,
|
|
134
|
+
comparePredictionsWithObserved,
|
|
135
|
+
Phase6MetricsTracker,
|
|
136
|
+
getPhase6MetricsTracker,
|
|
137
|
+
} = require('./simulation_engine');
|
|
138
|
+
|
|
139
|
+
const _skillsCache = new Map();
|
|
140
|
+
|
|
141
|
+
function clearSkillsCache() {
|
|
142
|
+
_skillsCache.clear();
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const STOP_WORDS = new Set([
|
|
146
|
+
'and',
|
|
147
|
+
'the',
|
|
148
|
+
'for',
|
|
149
|
+
'with',
|
|
150
|
+
'from',
|
|
151
|
+
'that',
|
|
152
|
+
'this',
|
|
153
|
+
'have',
|
|
154
|
+
'has',
|
|
155
|
+
'are',
|
|
156
|
+
'was',
|
|
157
|
+
'were',
|
|
158
|
+
'build',
|
|
159
|
+
'create',
|
|
160
|
+
'make',
|
|
161
|
+
'add',
|
|
162
|
+
'get',
|
|
163
|
+
'use',
|
|
164
|
+
'using',
|
|
165
|
+
'how',
|
|
166
|
+
'what',
|
|
167
|
+
'when',
|
|
168
|
+
'where',
|
|
169
|
+
'which',
|
|
170
|
+
'who',
|
|
171
|
+
'why',
|
|
172
|
+
'can',
|
|
173
|
+
'should',
|
|
174
|
+
'will',
|
|
175
|
+
'would',
|
|
176
|
+
'could',
|
|
177
|
+
'into',
|
|
178
|
+
'onto',
|
|
179
|
+
'about',
|
|
180
|
+
'than',
|
|
181
|
+
'then',
|
|
182
|
+
'also',
|
|
183
|
+
]);
|
|
184
|
+
|
|
185
|
+
function findAgentDir(start) {
|
|
186
|
+
let cur = path.resolve(start || process.cwd());
|
|
187
|
+
while (cur) {
|
|
188
|
+
const candidate = path.join(cur, '.agent');
|
|
189
|
+
if (fs.existsSync(candidate) && fs.statSync(candidate).isDirectory()) {
|
|
190
|
+
return candidate;
|
|
191
|
+
}
|
|
192
|
+
const parent = path.dirname(cur);
|
|
193
|
+
if (parent === cur) break;
|
|
194
|
+
cur = parent;
|
|
195
|
+
}
|
|
196
|
+
return path.resolve('.agent');
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// Failure modes mapping to high-signal skills
|
|
200
|
+
const FAILURE_SIGNALS = [
|
|
201
|
+
{
|
|
202
|
+
match: /(?:retry|duplicate|idempot|replay|network fail|double charge|dedup)/i,
|
|
203
|
+
skills: ['error-resilience', 'api-patterns'],
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
match: /(?:transaction|acid|rollback|atomic|deadlock|isolation)/i,
|
|
207
|
+
skills: ['database-design', 'sql-pro', 'error-resilience'],
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
match: /(?:n\+1|slow query|index|query optim|latency|explain)/i,
|
|
211
|
+
skills: ['sql-pro', 'database-design'],
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
match: /(?:auth|jwt|token|session|csrf|xss|injection|owasp|credential)/i,
|
|
215
|
+
skills: ['agentshield-security', 'audit-and-fix', 'authentication-best-practices'],
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
match: /(?:responsive|mobile|breakpoint|touch|layout shift|cls)/i,
|
|
219
|
+
skills: ['adapt', 'mobile-design', 'better-ui'],
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
match: /(?:memory leak|oom|heap|profiling|saturation|cpu)/i,
|
|
223
|
+
skills: ['performance-profiling'],
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
match: /(?:regression|flaky|test fail|mock drift)/i,
|
|
227
|
+
skills: ['tdd-workflow', 'testing-patterns', 'verification-before-completion'],
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
match: /(?:race condition|concurrency|mutex|lock|semaphore)/i,
|
|
231
|
+
skills: ['error-resilience', 'system-design-pro'],
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
match: /(?:prompt injection|jailbreak|llm security|hallucin)/i,
|
|
235
|
+
skills: ['ai-prompt-injection-defense', 'anti-slop-enforcement'],
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
match: /(?:ci|cd|pipeline|github action|docker|deploy)/i,
|
|
239
|
+
skills: ['cicd-pro', 'devops-engineer'],
|
|
240
|
+
},
|
|
241
|
+
];
|
|
242
|
+
|
|
243
|
+
// Pipeline execution order weights (lower = earlier in DAG)
|
|
244
|
+
const PIPELINE_ORDER = {
|
|
245
|
+
architecture: 10,
|
|
246
|
+
'domain-modeling': 15,
|
|
247
|
+
'database-design': 20,
|
|
248
|
+
'sql-pro': 25,
|
|
249
|
+
'api-patterns': 30,
|
|
250
|
+
'clean-code': 35,
|
|
251
|
+
'error-resilience': 40,
|
|
252
|
+
'frontend-design': 45,
|
|
253
|
+
adapt: 50,
|
|
254
|
+
'better-ui': 55,
|
|
255
|
+
'tdd-workflow': 60,
|
|
256
|
+
'testing-patterns': 65,
|
|
257
|
+
'verification-before-completion': 70,
|
|
258
|
+
'agentshield-security': 80,
|
|
259
|
+
'audit-and-fix': 85,
|
|
260
|
+
'performance-profiling': 90,
|
|
261
|
+
'cicd-pro': 95,
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
function parseSkillFrontmatter(content) {
|
|
265
|
+
const match = content.match(/^---\s*([\s\S]*?)\s*---/);
|
|
266
|
+
if (!match) return {};
|
|
267
|
+
const lines = match[1].split('\n');
|
|
268
|
+
const meta = {};
|
|
269
|
+
for (const line of lines) {
|
|
270
|
+
const colon = line.indexOf(':');
|
|
271
|
+
if (colon !== -1) {
|
|
272
|
+
const key = line.slice(0, colon).trim();
|
|
273
|
+
const val = line
|
|
274
|
+
.slice(colon + 1)
|
|
275
|
+
.trim()
|
|
276
|
+
.replace(/^['"]|['"]$/g, '');
|
|
277
|
+
meta[key] = val;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return meta;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function loadAllSkills(agentDir) {
|
|
284
|
+
agentDir = agentDir || findAgentDir(process.cwd());
|
|
285
|
+
const cacheKey = path.resolve(agentDir);
|
|
286
|
+
if (_skillsCache.has(cacheKey)) {
|
|
287
|
+
return _skillsCache.get(cacheKey);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
let skillsDir = path.join(agentDir, 'skills');
|
|
291
|
+
if (!fs.existsSync(skillsDir)) {
|
|
292
|
+
const rootSkills = path.join(path.dirname(agentDir), 'skills');
|
|
293
|
+
if (fs.existsSync(rootSkills)) {
|
|
294
|
+
skillsDir = rootSkills;
|
|
295
|
+
} else {
|
|
296
|
+
return [];
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
const list = [];
|
|
301
|
+
const entries = fs.readdirSync(skillsDir, { withFileTypes: true });
|
|
302
|
+
for (const entry of entries) {
|
|
303
|
+
if (!entry.isDirectory()) continue;
|
|
304
|
+
const skillName = entry.name;
|
|
305
|
+
const skillPath = path.join(skillsDir, skillName, 'SKILL.md');
|
|
306
|
+
let description = '';
|
|
307
|
+
let domain = 'general';
|
|
308
|
+
let triggers = [];
|
|
309
|
+
|
|
310
|
+
if (fs.existsSync(skillPath)) {
|
|
311
|
+
try {
|
|
312
|
+
const text = fs.readFileSync(skillPath, 'utf8');
|
|
313
|
+
const meta = parseSkillFrontmatter(text);
|
|
314
|
+
description = meta.description || '';
|
|
315
|
+
domain = meta.domain || 'general';
|
|
316
|
+
if (meta.triggers) {
|
|
317
|
+
triggers = meta.triggers.split(',').map(s => s.trim().toLowerCase());
|
|
318
|
+
}
|
|
319
|
+
} catch (_) {}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
list.push({
|
|
323
|
+
name: skillName,
|
|
324
|
+
description,
|
|
325
|
+
domain,
|
|
326
|
+
triggers,
|
|
327
|
+
path: skillPath,
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
_skillsCache.set(cacheKey, list);
|
|
331
|
+
return list;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
function discoverSkills(taskQuery, agentDir, options = {}) {
|
|
335
|
+
const allSkills = loadAllSkills(agentDir);
|
|
336
|
+
const q = taskQuery.toLowerCase();
|
|
337
|
+
const rawTokens = q.split(/\W+/).filter(t => t.length > 2);
|
|
338
|
+
const queryTokens = rawTokens.filter(t => !STOP_WORDS.has(t));
|
|
339
|
+
|
|
340
|
+
const explicitIncludes = options.explicitIncludes || [];
|
|
341
|
+
const explicitExcludes = options.explicitExcludes || [];
|
|
342
|
+
|
|
343
|
+
// Evaluate failure mode hits
|
|
344
|
+
const failureSkills = new Set();
|
|
345
|
+
for (const sig of FAILURE_SIGNALS) {
|
|
346
|
+
if (sig.match.test(q)) {
|
|
347
|
+
sig.skills.forEach(s => failureSkills.add(s));
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
const routingDecision = {
|
|
352
|
+
requestId: options.requestId || `REQ-${Date.now()}`,
|
|
353
|
+
candidates: [],
|
|
354
|
+
selected: [],
|
|
355
|
+
policy: {
|
|
356
|
+
priority: options.priority || 'standard',
|
|
357
|
+
conflictResolution: 'explicit-wins',
|
|
358
|
+
},
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
const scored = [];
|
|
362
|
+
|
|
363
|
+
for (const skill of allSkills) {
|
|
364
|
+
let score = 0;
|
|
365
|
+
const signals = {
|
|
366
|
+
keyword: false,
|
|
367
|
+
domain: false,
|
|
368
|
+
concept: false,
|
|
369
|
+
semantic: false,
|
|
370
|
+
dependency: false,
|
|
371
|
+
};
|
|
372
|
+
const sName = skill.name.toLowerCase();
|
|
373
|
+
const sDesc = skill.description.toLowerCase();
|
|
374
|
+
let rejected = false;
|
|
375
|
+
let rejectionReason = null;
|
|
376
|
+
let isExplicit = false;
|
|
377
|
+
|
|
378
|
+
if (explicitExcludes.includes(skill.name)) {
|
|
379
|
+
rejected = true;
|
|
380
|
+
rejectionReason = 'Explicitly excluded by user';
|
|
381
|
+
} else if (explicitIncludes.includes(skill.name)) {
|
|
382
|
+
score += 100;
|
|
383
|
+
isExplicit = true;
|
|
384
|
+
signals.keyword = true;
|
|
385
|
+
} else {
|
|
386
|
+
// Exact skill name in query
|
|
387
|
+
if (q.includes(sName.replace(/-/g, ' ')) || q.includes(sName)) {
|
|
388
|
+
score += 15;
|
|
389
|
+
signals.keyword = true;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
// Token matches in skill name
|
|
393
|
+
for (const token of queryTokens) {
|
|
394
|
+
if (sName === token) {
|
|
395
|
+
score += 12;
|
|
396
|
+
signals.keyword = true;
|
|
397
|
+
} else if (sName.includes(token)) {
|
|
398
|
+
score += 6;
|
|
399
|
+
signals.keyword = true;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// Trigger matches
|
|
403
|
+
if (skill.triggers.some(tr => tr.includes(token))) {
|
|
404
|
+
score += 8;
|
|
405
|
+
signals.concept = true;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
// Description token match (exact word boundary)
|
|
409
|
+
const wordRegex = new RegExp(`\\b${token}\\b`, 'i');
|
|
410
|
+
if (wordRegex.test(sDesc)) {
|
|
411
|
+
score += 3;
|
|
412
|
+
signals.semantic = true;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// Failure mode signal boost
|
|
417
|
+
if (failureSkills.has(skill.name)) {
|
|
418
|
+
score += 10;
|
|
419
|
+
signals.domain = true;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
if (score >= 4 || rejected) {
|
|
424
|
+
let state = 'OPTIONAL';
|
|
425
|
+
if (score >= 12 || isExplicit) {
|
|
426
|
+
state = 'MANDATORY';
|
|
427
|
+
} else if (score >= 6) {
|
|
428
|
+
state = 'RECOMMENDED';
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
routingDecision.candidates.push({
|
|
432
|
+
skillId: skill.name,
|
|
433
|
+
score,
|
|
434
|
+
signals,
|
|
435
|
+
matched: !rejected,
|
|
436
|
+
rejected,
|
|
437
|
+
rejectionReason,
|
|
438
|
+
});
|
|
439
|
+
|
|
440
|
+
if (!rejected) {
|
|
441
|
+
scored.push({
|
|
442
|
+
skill: skill.name,
|
|
443
|
+
score,
|
|
444
|
+
state,
|
|
445
|
+
domain: skill.domain,
|
|
446
|
+
description: skill.description,
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
// Sort descending by score
|
|
453
|
+
scored.sort((a, b) => b.score - a.score);
|
|
454
|
+
|
|
455
|
+
// Composed Execution Pipeline: Mandatory + Recommended skills (ordered by pipeline stage)
|
|
456
|
+
const pipelineCandidates = scored.filter(
|
|
457
|
+
s => s.state === 'MANDATORY' || s.state === 'RECOMMENDED',
|
|
458
|
+
);
|
|
459
|
+
const pipeline = [...pipelineCandidates].sort((a, b) => {
|
|
460
|
+
const orderA = PIPELINE_ORDER[a.skill] || 50;
|
|
461
|
+
const orderB = PIPELINE_ORDER[b.skill] || 50;
|
|
462
|
+
return orderA - orderB;
|
|
463
|
+
});
|
|
464
|
+
|
|
465
|
+
routingDecision.selected = pipelineCandidates.map(p => ({
|
|
466
|
+
skillId: p.skill,
|
|
467
|
+
score: p.score,
|
|
468
|
+
confidence: p.state,
|
|
469
|
+
}));
|
|
470
|
+
|
|
471
|
+
return {
|
|
472
|
+
query: taskQuery,
|
|
473
|
+
totalDiscovered: scored.length,
|
|
474
|
+
mandatory: scored.filter(s => s.state === 'MANDATORY'),
|
|
475
|
+
recommended: scored.filter(s => s.state === 'RECOMMENDED'),
|
|
476
|
+
optional: scored.filter(s => s.state === 'OPTIONAL'),
|
|
477
|
+
pipeline: pipeline.map(p => p.skill),
|
|
478
|
+
routingDecision,
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
function generateVerificationPlan(conceptData, considerations, coverageData) {
|
|
483
|
+
const plan = [];
|
|
484
|
+
for (const c of conceptData.all_concepts || []) {
|
|
485
|
+
switch (c.id) {
|
|
486
|
+
case 'idempotency':
|
|
487
|
+
plan.push({
|
|
488
|
+
target: 'idempotency',
|
|
489
|
+
test: 'Duplicate Request Safety',
|
|
490
|
+
action:
|
|
491
|
+
'Replay request with identical idempotency key; verify exactly one business effect executed.',
|
|
492
|
+
});
|
|
493
|
+
break;
|
|
494
|
+
case 'transaction-integrity':
|
|
495
|
+
plan.push({
|
|
496
|
+
target: 'transaction-integrity',
|
|
497
|
+
test: 'Atomic Rollback on Error',
|
|
498
|
+
action:
|
|
499
|
+
'Simulate mid-operation failure; verify database state rolls back completely without partial commits.',
|
|
500
|
+
});
|
|
501
|
+
break;
|
|
502
|
+
case 'concurrency-control':
|
|
503
|
+
plan.push({
|
|
504
|
+
target: 'concurrency-control',
|
|
505
|
+
test: 'Concurrent Mutation Race Test',
|
|
506
|
+
action:
|
|
507
|
+
'Dispatch parallel concurrent requests for same entity; verify race conditions are serialized/rejected.',
|
|
508
|
+
});
|
|
509
|
+
break;
|
|
510
|
+
case 'retry-and-backoff':
|
|
511
|
+
plan.push({
|
|
512
|
+
target: 'retry-and-backoff',
|
|
513
|
+
test: 'Retry Jitter & Circuit Breaking',
|
|
514
|
+
action:
|
|
515
|
+
'Simulate downstream latency/failure; verify retry backoff applies jitter and triggers circuit breaker.',
|
|
516
|
+
});
|
|
517
|
+
break;
|
|
518
|
+
case 'query-optimization':
|
|
519
|
+
plan.push({
|
|
520
|
+
target: 'query-optimization',
|
|
521
|
+
test: 'EXPLAIN Query Plan & Index Verification',
|
|
522
|
+
action:
|
|
523
|
+
'Run EXPLAIN ANALYZE on query; verify index scan is utilized and table scan is avoided.',
|
|
524
|
+
});
|
|
525
|
+
break;
|
|
526
|
+
case 'authentication-and-authorization':
|
|
527
|
+
plan.push({
|
|
528
|
+
target: 'authentication-and-authorization',
|
|
529
|
+
test: 'Unauthorized & Expired Token Rejection',
|
|
530
|
+
action:
|
|
531
|
+
'Send malformed, expired, and unauthorized requests; verify strict 401/403 rejection before business logic.',
|
|
532
|
+
});
|
|
533
|
+
break;
|
|
534
|
+
case 'input-validation-and-sanitization':
|
|
535
|
+
plan.push({
|
|
536
|
+
target: 'input-validation-and-sanitization',
|
|
537
|
+
test: 'Schema Boundary Mutation Defense',
|
|
538
|
+
action:
|
|
539
|
+
'Inject unexpected types and boundary extremes; verify 422 Unprocessable Entity without crashing.',
|
|
540
|
+
});
|
|
541
|
+
break;
|
|
542
|
+
case 'file-upload-and-storage':
|
|
543
|
+
plan.push({
|
|
544
|
+
target: 'file-upload-and-storage',
|
|
545
|
+
test: 'MIME Verification & Byte-Limit Defense',
|
|
546
|
+
action: 'Upload oversized and spoofed MIME files; verify immediate rejection.',
|
|
547
|
+
});
|
|
548
|
+
break;
|
|
549
|
+
case 'ai-agent-security-and-sandboxing':
|
|
550
|
+
plan.push({
|
|
551
|
+
target: 'ai-agent-security-and-sandboxing',
|
|
552
|
+
test: 'Subprocess Permission Boundary Check',
|
|
553
|
+
action: 'Inject shell escapes; verify permission gate blocks unauthorized system calls.',
|
|
554
|
+
});
|
|
555
|
+
break;
|
|
556
|
+
case 'realtime-collaboration-and-sync':
|
|
557
|
+
plan.push({
|
|
558
|
+
target: 'realtime-collaboration-and-sync',
|
|
559
|
+
test: 'CRDT Concurrent Edit Convergence',
|
|
560
|
+
action:
|
|
561
|
+
'Simulate concurrent conflicting edits from multiple clients; verify deterministic state convergence.',
|
|
562
|
+
});
|
|
563
|
+
break;
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
if (plan.length === 0) {
|
|
568
|
+
plan.push({
|
|
569
|
+
target: 'general-verification',
|
|
570
|
+
test: 'Functional Contract Verification',
|
|
571
|
+
action: 'Run unit test suite and verify expected return schema and error handling.',
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
return plan;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
function analyzeTask(taskQuery, agentDir, options = {}) {
|
|
579
|
+
if (typeof agentDir === 'object' && agentDir !== null && !options.store) {
|
|
580
|
+
options = agentDir;
|
|
581
|
+
agentDir = undefined;
|
|
582
|
+
}
|
|
583
|
+
agentDir = agentDir || findAgentDir(process.cwd());
|
|
584
|
+
const conceptData = extractConcepts(taskQuery, agentDir);
|
|
585
|
+
const considerations = generateConsiderations(conceptData, agentDir);
|
|
586
|
+
|
|
587
|
+
// Phase 5: Retrieve relevant engineering memory as hypotheses
|
|
588
|
+
const memStore = options.store || getEngineeringMemoryStore();
|
|
589
|
+
const metricsTracker = getPhase5MetricsTracker();
|
|
590
|
+
metricsTracker.recordEvent('total_retrieval_queries');
|
|
591
|
+
|
|
592
|
+
const retrievedMemories = retrieveRelevantMemories(
|
|
593
|
+
taskQuery,
|
|
594
|
+
{
|
|
595
|
+
concepts: conceptData.all_concepts,
|
|
596
|
+
technologies: options.technologies || [],
|
|
597
|
+
project_id: options.project_id || null,
|
|
598
|
+
scale: options.scale,
|
|
599
|
+
strict_freshness: options.strict_freshness,
|
|
600
|
+
},
|
|
601
|
+
memStore,
|
|
602
|
+
options,
|
|
603
|
+
);
|
|
604
|
+
|
|
605
|
+
metricsTracker.recordEvent('relevant_memories_retrieved', retrievedMemories.length);
|
|
606
|
+
|
|
607
|
+
const patternHypotheses = retrievedMemories.filter(m => m.type === MEMORY_TYPES.PATTERN);
|
|
608
|
+
const failureHypotheses = retrievedMemories.filter(
|
|
609
|
+
m => m.type === MEMORY_TYPES.FAILURE || m.type === MEMORY_TYPES.ANTI_PATTERN,
|
|
610
|
+
);
|
|
611
|
+
const verificationStrategies = retrievedMemories.filter(
|
|
612
|
+
m => m.type === MEMORY_TYPES.VERIFICATION,
|
|
613
|
+
);
|
|
614
|
+
const pastDecisions = retrievedMemories.filter(m => m.type === MEMORY_TYPES.DECISION);
|
|
615
|
+
|
|
616
|
+
// Surface failure memories into considerations risks (Section 10 & 11)
|
|
617
|
+
if (failureHypotheses.length > 0) {
|
|
618
|
+
metricsTracker.recordEvent('repeated_failures_prevented', failureHypotheses.length);
|
|
619
|
+
for (const f of failureHypotheses) {
|
|
620
|
+
const riskStr = `[HISTORICAL FAILURE PREVENTED] ${f.title}`;
|
|
621
|
+
if (!considerations.risks.some(r => typeof r === 'string' && r.includes(f.title))) {
|
|
622
|
+
considerations.risks.push(riskStr);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
const discoveredSkills = discoverSkills(taskQuery, agentDir, options);
|
|
628
|
+
const allSkills = loadAllSkills(agentDir);
|
|
629
|
+
const coverageData = evaluateCoverage(conceptData, discoveredSkills, allSkills);
|
|
630
|
+
|
|
631
|
+
const pipelineSet = new Set(discoveredSkills.pipeline);
|
|
632
|
+
for (const add of coverageData.candidate_additions) {
|
|
633
|
+
pipelineSet.add(add);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
const composedPipeline = Array.from(pipelineSet).sort((a, b) => {
|
|
637
|
+
const orderA = PIPELINE_ORDER[a] || 50;
|
|
638
|
+
const orderB = PIPELINE_ORDER[b] || 50;
|
|
639
|
+
return orderA - orderB;
|
|
640
|
+
});
|
|
641
|
+
|
|
642
|
+
const verificationPlan = generateVerificationPlan(conceptData, considerations, coverageData);
|
|
643
|
+
|
|
644
|
+
// Enhance verification plan with verified strategies from memory (Section 12)
|
|
645
|
+
if (verificationStrategies.length > 0) {
|
|
646
|
+
metricsTracker.recordEvent('verification_strategies_reused', verificationStrategies.length);
|
|
647
|
+
for (const vs of verificationStrategies) {
|
|
648
|
+
if (
|
|
649
|
+
!verificationPlan.some(vp => vp.test === vs.verification?.strategy || vp.test === vs.title)
|
|
650
|
+
) {
|
|
651
|
+
verificationPlan.unshift({
|
|
652
|
+
target: vs.concepts?.[0] || 'memory-verified-strategy',
|
|
653
|
+
test: vs.title,
|
|
654
|
+
action: `${vs.verification?.strategy || vs.content}. Assertion: ${vs.verification?.assertion || 'Strict property verification'}`,
|
|
655
|
+
provenance: vs.provenance,
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
const materiality = evaluateMateriality(
|
|
662
|
+
considerations.all_considerations,
|
|
663
|
+
taskQuery,
|
|
664
|
+
conceptData,
|
|
665
|
+
);
|
|
666
|
+
const outcomeContract = generateOutcomeContract(taskQuery, conceptData, considerations, {
|
|
667
|
+
agentDir,
|
|
668
|
+
});
|
|
669
|
+
const tradeoffs = detectTradeoffs(composedPipeline);
|
|
670
|
+
|
|
671
|
+
const conceptsArray = conceptData.all_concepts.map(c => ({
|
|
672
|
+
id: c.id,
|
|
673
|
+
name: c.name,
|
|
674
|
+
domain: c.domain,
|
|
675
|
+
implicit: !conceptData.explicit_concepts.some(e => e.id === c.id),
|
|
676
|
+
reason: c.implied_reason || null,
|
|
677
|
+
}));
|
|
678
|
+
conceptsArray.explicit = conceptData.explicit_concepts;
|
|
679
|
+
conceptsArray.implicit = conceptData.implicit_concepts;
|
|
680
|
+
conceptsArray.all = conceptData.all_concepts.map(c => c.name);
|
|
681
|
+
|
|
682
|
+
const skillsList = [...composedPipeline];
|
|
683
|
+
skillsList.query = discoveredSkills.query;
|
|
684
|
+
skillsList.totalDiscovered = discoveredSkills.totalDiscovered;
|
|
685
|
+
skillsList.mandatory = discoveredSkills.mandatory;
|
|
686
|
+
skillsList.recommended = discoveredSkills.recommended;
|
|
687
|
+
skillsList.optional = discoveredSkills.optional;
|
|
688
|
+
skillsList.pipeline = composedPipeline;
|
|
689
|
+
|
|
690
|
+
const conflicts = detectRequirementConflicts(taskQuery);
|
|
691
|
+
const counterfactuals = runCounterfactualAnalysis(taskQuery);
|
|
692
|
+
const engineeringSmells = detectEngineeringSmells(taskQuery, composedPipeline);
|
|
693
|
+
const reversibility = classifyReversibility(taskQuery);
|
|
694
|
+
const relevantLessons = recallRelevantLessons(taskQuery);
|
|
695
|
+
const initialJudgment = evaluateJudgmentState({
|
|
696
|
+
task: taskQuery,
|
|
697
|
+
outcomeContract,
|
|
698
|
+
uncertainties: conflicts.map(c =>
|
|
699
|
+
createUncertaintyRecord(c.conflict, { impact_if_wrong: c.explanation, status: 'assumed' }),
|
|
700
|
+
),
|
|
701
|
+
});
|
|
702
|
+
|
|
703
|
+
// Phase 6: System Simulation & Pre-Mortem Intelligence
|
|
704
|
+
const phase6Tracker = getPhase6MetricsTracker();
|
|
705
|
+
phase6Tracker.recordEvent('pre_mortems_executed');
|
|
706
|
+
const preMortem = runPreMortem(taskQuery, {
|
|
707
|
+
concepts: conceptData.all_concepts.map(c => c.name),
|
|
708
|
+
technologies: options.technologies || [],
|
|
709
|
+
assumptions: options.assumptions,
|
|
710
|
+
dependencies: options.dependencies,
|
|
711
|
+
complexity: materiality.level,
|
|
712
|
+
evidence: options.evidence || [],
|
|
713
|
+
});
|
|
714
|
+
|
|
715
|
+
phase6Tracker.recordEvent('predictions_generated', preMortem.predictions.length);
|
|
716
|
+
if (preMortem.failure_chains.length > 0) {
|
|
717
|
+
phase6Tracker.recordEvent('failure_chains_detected', preMortem.failure_chains.length);
|
|
718
|
+
phase6Tracker.recordEvent(
|
|
719
|
+
'systemic_failures_identified',
|
|
720
|
+
preMortem.failure_chains.filter(c => c.systemic).length,
|
|
721
|
+
);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
const unsupportedClaims = detectUnsupportedClaims(taskQuery);
|
|
725
|
+
if (unsupportedClaims.length > 0) {
|
|
726
|
+
phase6Tracker.recordEvent('unsupported_claims_caught', unsupportedClaims.length);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
// Integrate pre-mortem predictions into verification plan
|
|
730
|
+
for (const p of preMortem.predictions) {
|
|
731
|
+
if (p.verification_method && !verificationPlan.some(v => v.test === p.prediction)) {
|
|
732
|
+
verificationPlan.push({
|
|
733
|
+
target: p.category,
|
|
734
|
+
test: p.prediction,
|
|
735
|
+
action: `[PRE-MORTEM VERIFICATION] ${p.verification_method}. Failure condition: ${p.reason}`,
|
|
736
|
+
status: p.status,
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
return {
|
|
742
|
+
task: {
|
|
743
|
+
query: taskQuery,
|
|
744
|
+
actions: conceptData.actions,
|
|
745
|
+
domains: conceptData.domains,
|
|
746
|
+
},
|
|
747
|
+
concepts: conceptsArray,
|
|
748
|
+
considerations: considerations.all_considerations,
|
|
749
|
+
materiality: materiality.all_evaluated,
|
|
750
|
+
material_considerations: materiality.material,
|
|
751
|
+
outcome_contract: outcomeContract,
|
|
752
|
+
tradeoffs,
|
|
753
|
+
conflicts,
|
|
754
|
+
counterfactuals,
|
|
755
|
+
anti_slop: engineeringSmells,
|
|
756
|
+
engineering_smells: engineeringSmells,
|
|
757
|
+
reversibility,
|
|
758
|
+
institutional_lessons: relevantLessons,
|
|
759
|
+
judgment: initialJudgment,
|
|
760
|
+
memories: {
|
|
761
|
+
retrieved: retrievedMemories,
|
|
762
|
+
patterns: patternHypotheses,
|
|
763
|
+
failures_to_avoid: failureHypotheses,
|
|
764
|
+
verification_strategies: verificationStrategies,
|
|
765
|
+
decisions: pastDecisions,
|
|
766
|
+
},
|
|
767
|
+
metrics: metricsTracker.getMetrics(),
|
|
768
|
+
// Phase 6 System Simulation & Pre-Mortem artifacts
|
|
769
|
+
pre_mortem: preMortem,
|
|
770
|
+
predictions: preMortem.predictions,
|
|
771
|
+
failure_chains: preMortem.failure_chains,
|
|
772
|
+
blast_radius: preMortem.blast_radius,
|
|
773
|
+
unsupported_claims: unsupportedClaims,
|
|
774
|
+
simulation_plan: preMortem.simulation_plan,
|
|
775
|
+
phase6_metrics: phase6Tracker.getMetrics(),
|
|
776
|
+
risks: considerations.risks,
|
|
777
|
+
failure_modes: considerations.failure_modes,
|
|
778
|
+
quality_attributes: considerations.quality_attributes,
|
|
779
|
+
skills: skillsList,
|
|
780
|
+
routing_decision: discoveredSkills.routingDecision,
|
|
781
|
+
coverage: coverageData.coverage_matrix,
|
|
782
|
+
coverage_summary: {
|
|
783
|
+
full: coverageData.full.length,
|
|
784
|
+
partial: coverageData.partial.length,
|
|
785
|
+
uncovered: coverageData.uncovered.length,
|
|
786
|
+
},
|
|
787
|
+
composition: {
|
|
788
|
+
pipeline: composedPipeline,
|
|
789
|
+
candidate_promotions: coverageData.candidate_additions,
|
|
790
|
+
},
|
|
791
|
+
gaps: coverageData.true_gaps,
|
|
792
|
+
creation_gate: {
|
|
793
|
+
new_skill_required: coverageData.true_gaps.length > 0,
|
|
794
|
+
reason:
|
|
795
|
+
coverageData.true_gaps.length > 0
|
|
796
|
+
? `Uncovered gaps: ${coverageData.true_gaps.join(', ')}`
|
|
797
|
+
: 'Existing capabilities can be composed.',
|
|
798
|
+
},
|
|
799
|
+
verification_plan: verificationPlan,
|
|
800
|
+
confidence: {
|
|
801
|
+
concept_recall: 0.95,
|
|
802
|
+
coverage_score: coverageData.full.length / Math.max(1, coverageData.total_concepts),
|
|
803
|
+
},
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
function evaluateCreationGate(needDescription, agentDir) {
|
|
808
|
+
const allSkills = loadAllSkills(agentDir);
|
|
809
|
+
const target = needDescription.toLowerCase();
|
|
810
|
+
const rawTokens = target.split(/\W+/).filter(t => t.length > 2);
|
|
811
|
+
const tokens = rawTokens.filter(t => !STOP_WORDS.has(t));
|
|
812
|
+
|
|
813
|
+
const exact = allSkills.find(s => s.name === target || s.name.replace(/-/g, ' ') === target);
|
|
814
|
+
|
|
815
|
+
const overlaps = [];
|
|
816
|
+
for (const s of allSkills) {
|
|
817
|
+
let matchCount = 0;
|
|
818
|
+
for (const tok of tokens) {
|
|
819
|
+
if (s.name.includes(tok)) matchCount += 2;
|
|
820
|
+
const re = new RegExp(`\\b${tok}\\b`, 'i');
|
|
821
|
+
if (re.test(s.description)) matchCount += 1;
|
|
822
|
+
}
|
|
823
|
+
if (matchCount > 0) {
|
|
824
|
+
overlaps.push({ skill: s.name, matches: matchCount });
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
overlaps.sort((a, b) => b.matches - a.matches);
|
|
828
|
+
|
|
829
|
+
const topOverlaps = overlaps.slice(0, 3).map(o => o.skill);
|
|
830
|
+
const nearestSkill = topOverlaps[0] || null;
|
|
831
|
+
|
|
832
|
+
const checks = [
|
|
833
|
+
{
|
|
834
|
+
name: 'Existing skill searched',
|
|
835
|
+
passed: true,
|
|
836
|
+
detail: `Searched ${allSkills.length} skills`,
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
name: 'Semantic matches evaluated',
|
|
840
|
+
passed: true,
|
|
841
|
+
detail:
|
|
842
|
+
topOverlaps.length > 0
|
|
843
|
+
? `Found candidate matches: ${topOverlaps.join(', ')}`
|
|
844
|
+
: 'No direct matches',
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
name: 'Related skills checked',
|
|
848
|
+
passed: true,
|
|
849
|
+
detail: `${topOverlaps.length} related skills analyzed`,
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
name: 'Composition attempted',
|
|
853
|
+
passed: topOverlaps.length >= 2,
|
|
854
|
+
detail:
|
|
855
|
+
topOverlaps.length >= 2
|
|
856
|
+
? `Can potentially compose [${topOverlaps.join(', ')}]`
|
|
857
|
+
: 'Composition insufficient',
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
name: 'Duplicate capability checked',
|
|
861
|
+
passed: !exact,
|
|
862
|
+
detail: exact ? `Exact match exists: ${exact.name}` : 'No exact duplicate',
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
name: 'Capability gap confirmed',
|
|
866
|
+
passed: !exact && topOverlaps.length < 2,
|
|
867
|
+
detail: exact
|
|
868
|
+
? 'Duplicate exists'
|
|
869
|
+
: topOverlaps.length >= 2
|
|
870
|
+
? 'Covered by existing composition'
|
|
871
|
+
: 'Genuine gap',
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
name: 'Reusability justified',
|
|
875
|
+
passed: tokens.length >= 1,
|
|
876
|
+
detail: 'Assessed for modularity',
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
name: 'Concept coverage checked',
|
|
880
|
+
passed: topOverlaps.length < 2,
|
|
881
|
+
detail: topOverlaps.length >= 2 ? 'Covered by existing concepts' : 'New concept domain',
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
name: 'Failure-mode coverage checked',
|
|
885
|
+
passed: true,
|
|
886
|
+
detail: 'Failure modes evaluated against existing guardrails',
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
name: 'Verification capability checked',
|
|
890
|
+
passed: true,
|
|
891
|
+
detail: 'Automated test assertions possible',
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
name: 'Existing skill improvement evaluated',
|
|
895
|
+
passed: !nearestSkill,
|
|
896
|
+
detail: nearestSkill
|
|
897
|
+
? `Evaluate extending '${nearestSkill}' instead`
|
|
898
|
+
: 'No suitable base skill to extend',
|
|
899
|
+
},
|
|
900
|
+
];
|
|
901
|
+
|
|
902
|
+
const canCreate = !exact && !nearestSkill;
|
|
903
|
+
let recommendation = '';
|
|
904
|
+
if (exact) {
|
|
905
|
+
recommendation = `REJECT: Skill '${exact.name}' already exists. Use or enhance it instead.`;
|
|
906
|
+
} else if (topOverlaps.length >= 2) {
|
|
907
|
+
recommendation = `COMPOSE FIRST: Capabilities can be satisfied by composing existing skills: [${topOverlaps.join(', ')}].`;
|
|
908
|
+
} else if (nearestSkill) {
|
|
909
|
+
recommendation = `IMPROVE FIRST: Nearest skill '${nearestSkill}' can be extended to cover this capability without creating a new skill.`;
|
|
910
|
+
} else {
|
|
911
|
+
recommendation = `APPROVED: Capability gap confirmed. Minimal focused reusable skill creation justified.`;
|
|
912
|
+
try {
|
|
913
|
+
getCapabilityGapTracker().recordCapabilityGap({
|
|
914
|
+
capability_need: needDescription,
|
|
915
|
+
source_task: 'Creation Gate Evaluation',
|
|
916
|
+
reason_insufficient:
|
|
917
|
+
checks.find(c => c.name === 'Capability gap confirmed')?.detail ||
|
|
918
|
+
'Genuine capability gap',
|
|
919
|
+
});
|
|
920
|
+
} catch (e) {}
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
return {
|
|
924
|
+
need: needDescription,
|
|
925
|
+
canCreate,
|
|
926
|
+
recommendation,
|
|
927
|
+
checks,
|
|
928
|
+
candidateSkills: topOverlaps,
|
|
929
|
+
nearestSkill,
|
|
930
|
+
};
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
function runAudit(agentDir) {
|
|
934
|
+
const all = loadAllSkills(agentDir);
|
|
935
|
+
console.log(
|
|
936
|
+
`\n${BOLD}${CYAN}━━━ Skill Intelligence Engine: Discovery Readiness Audit ━━━${RESET}\n`,
|
|
937
|
+
);
|
|
938
|
+
console.log(`Total skills indexed: ${BOLD}${all.length}${RESET}`);
|
|
939
|
+
|
|
940
|
+
let withoutDesc = 0;
|
|
941
|
+
for (const s of all) {
|
|
942
|
+
if (!s.description || s.description.length < 10) {
|
|
943
|
+
withoutDesc++;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
console.log(`Skills with full metadata: ${GREEN}${all.length - withoutDesc}${RESET}`);
|
|
948
|
+
if (withoutDesc > 0) {
|
|
949
|
+
console.log(`Skills needing richer description: ${YELLOW}${withoutDesc}${RESET}`);
|
|
950
|
+
} else {
|
|
951
|
+
console.log(`Coverage: ${GREEN}100% Discoverable${RESET}`);
|
|
952
|
+
}
|
|
953
|
+
console.log(
|
|
954
|
+
`\n${GREEN}✓ Skill Intelligence Engine ready for zero-hallucination discovery.${RESET}\n`,
|
|
955
|
+
);
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
function main() {
|
|
959
|
+
const args = process.argv.slice(2);
|
|
960
|
+
let query = null;
|
|
961
|
+
let gateNeed = null;
|
|
962
|
+
let audit = false;
|
|
963
|
+
let json = false;
|
|
964
|
+
let workspaceDir = '.';
|
|
965
|
+
|
|
966
|
+
let premortem = false;
|
|
967
|
+
let simulate = false;
|
|
968
|
+
let chainsOnly = false;
|
|
969
|
+
let claimsOnly = false;
|
|
970
|
+
|
|
971
|
+
for (let i = 0; i < args.length; i++) {
|
|
972
|
+
const a = args[i];
|
|
973
|
+
if (a === '--query' && i + 1 < args.length) {
|
|
974
|
+
query = args[++i];
|
|
975
|
+
} else if (a === '--gate' || a === '-g') {
|
|
976
|
+
if (i + 1 < args.length && !args[i + 1].startsWith('-')) {
|
|
977
|
+
gateNeed = args[++i];
|
|
978
|
+
}
|
|
979
|
+
} else if (a === '--need' && i + 1 < args.length) {
|
|
980
|
+
gateNeed = args[++i];
|
|
981
|
+
} else if (a === '--audit') {
|
|
982
|
+
audit = true;
|
|
983
|
+
} else if (a === '--pre-mortem' || a === '--premortem') {
|
|
984
|
+
premortem = true;
|
|
985
|
+
} else if (a === '--simulate') {
|
|
986
|
+
simulate = true;
|
|
987
|
+
} else if (a === '--chains') {
|
|
988
|
+
chainsOnly = true;
|
|
989
|
+
} else if (a === '--claims') {
|
|
990
|
+
claimsOnly = true;
|
|
991
|
+
} else if (a === '--json') {
|
|
992
|
+
json = true;
|
|
993
|
+
} else if (a === '--workspace' && i + 1 < args.length) {
|
|
994
|
+
workspaceDir = args[++i];
|
|
995
|
+
} else if (!a.startsWith('-') && !query) {
|
|
996
|
+
query = a;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
const agentDir = findAgentDir(path.resolve(workspaceDir));
|
|
1001
|
+
|
|
1002
|
+
if (audit) {
|
|
1003
|
+
runAudit(agentDir);
|
|
1004
|
+
return;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
if (gateNeed) {
|
|
1008
|
+
const gateResult = evaluateCreationGate(gateNeed, agentDir);
|
|
1009
|
+
if (json) {
|
|
1010
|
+
console.log(JSON.stringify(gateResult, null, 2));
|
|
1011
|
+
return;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
console.log(`\n${BOLD}${CYAN}━━━ New Skill Creation Gate Audit (11-Check Gate) ━━━${RESET}\n`);
|
|
1015
|
+
console.log(`Requested Capability: ${BOLD}${gateNeed}${RESET}`);
|
|
1016
|
+
console.log(
|
|
1017
|
+
`Gate Status: ${gateResult.canCreate ? GREEN + 'APPROVED' : RED + 'BLOCKED'}${RESET}\n`,
|
|
1018
|
+
);
|
|
1019
|
+
for (const c of gateResult.checks) {
|
|
1020
|
+
const icon = c.passed ? `${GREEN}✓ PASS${RESET}` : `${RED}✖ FAIL${RESET}`;
|
|
1021
|
+
console.log(` [${icon}] ${BOLD}${c.name.padEnd(38)}${RESET} ${DIM}(${c.detail})${RESET}`);
|
|
1022
|
+
}
|
|
1023
|
+
console.log(`\n${BOLD}Decision:${RESET} ${gateResult.recommendation}\n`);
|
|
1024
|
+
return;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
if (query) {
|
|
1028
|
+
const analysis = analyzeTask(query, agentDir);
|
|
1029
|
+
|
|
1030
|
+
if (chainsOnly) {
|
|
1031
|
+
if (json) {
|
|
1032
|
+
console.log(JSON.stringify(analysis.failure_chains, null, 2));
|
|
1033
|
+
return;
|
|
1034
|
+
}
|
|
1035
|
+
console.log(`\n${BOLD}${CYAN}━━━ CAUSAL FAILURE CHAINS ━━━${RESET}\n`);
|
|
1036
|
+
for (const fc of analysis.failure_chains) {
|
|
1037
|
+
console.log(
|
|
1038
|
+
` ⚡ ${BOLD}${fc.name || fc.id}${RESET} [Blast: ${fc.blast_radius} | ${fc.severity}]`,
|
|
1039
|
+
);
|
|
1040
|
+
console.log(` ${DIM}${fc.chain}${RESET}\n`);
|
|
1041
|
+
}
|
|
1042
|
+
return;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
if (claimsOnly) {
|
|
1046
|
+
if (json) {
|
|
1047
|
+
console.log(JSON.stringify(analysis.unsupported_claims, null, 2));
|
|
1048
|
+
return;
|
|
1049
|
+
}
|
|
1050
|
+
console.log(`\n${BOLD}${CYAN}━━━ UNSUPPORTED CLAIMS AUDIT ━━━${RESET}\n`);
|
|
1051
|
+
if (analysis.unsupported_claims.length === 0) {
|
|
1052
|
+
console.log(` ${GREEN}✓ No unsupported architectural claims detected.${RESET}\n`);
|
|
1053
|
+
} else {
|
|
1054
|
+
for (const uc of analysis.unsupported_claims) {
|
|
1055
|
+
console.log(` ⚠ ${RED}"${uc.claim}"${RESET} — ${DIM}${uc.reason}${RESET}`);
|
|
1056
|
+
console.log(` Action: ${YELLOW}${uc.action_required}${RESET}\n`);
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
return;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
if (premortem || simulate) {
|
|
1063
|
+
if (json) {
|
|
1064
|
+
console.log(JSON.stringify(analysis.pre_mortem, null, 2));
|
|
1065
|
+
return;
|
|
1066
|
+
}
|
|
1067
|
+
console.log(`\n${BOLD}${CYAN}━━━ SYSTEM PRE-MORTEM & FAILURE SIMULATION ━━━${RESET}\n`);
|
|
1068
|
+
console.log(`Task: ${BOLD}${query}${RESET}`);
|
|
1069
|
+
console.log(
|
|
1070
|
+
`Simulation Level: ${YELLOW}${analysis.simulation_plan.selected_level.name}${RESET}\n`,
|
|
1071
|
+
);
|
|
1072
|
+
|
|
1073
|
+
console.log(`${BOLD}Predictions & Hypotheses (${analysis.predictions.length}):${RESET}`);
|
|
1074
|
+
for (const p of analysis.predictions) {
|
|
1075
|
+
const impCol = p.impact === 'CRITICAL' ? RED : p.impact === 'HIGH' ? YELLOW : CYAN;
|
|
1076
|
+
console.log(
|
|
1077
|
+
` • [${impCol}${p.impact}${RESET}] ${BOLD}${p.prediction}${RESET} (${p.category})`,
|
|
1078
|
+
);
|
|
1079
|
+
console.log(` Reason: ${DIM}${p.reason}${RESET}`);
|
|
1080
|
+
console.log(` Verification: ${CYAN}${p.verification_method}${RESET}`);
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
if (analysis.failure_chains.length > 0) {
|
|
1084
|
+
console.log(`\n${BOLD}Causal Failure Chains (${analysis.failure_chains.length}):${RESET}`);
|
|
1085
|
+
for (const fc of analysis.failure_chains) {
|
|
1086
|
+
console.log(` ⚡ ${BOLD}${fc.name || fc.id}${RESET} [Blast: ${fc.blast_radius}]`);
|
|
1087
|
+
console.log(` ${DIM}${fc.chain}${RESET}`);
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
if (analysis.unsupported_claims.length > 0) {
|
|
1092
|
+
console.log(
|
|
1093
|
+
`\n${BOLD}${RED}Unsupported Claims Detected (${analysis.unsupported_claims.length}):${RESET}`,
|
|
1094
|
+
);
|
|
1095
|
+
for (const uc of analysis.unsupported_claims) {
|
|
1096
|
+
console.log(` ⚠ "${uc.claim}" — ${DIM}${uc.reason}${RESET}`);
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
console.log();
|
|
1100
|
+
return;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
if (json) {
|
|
1104
|
+
console.log(JSON.stringify(analysis, null, 2));
|
|
1105
|
+
return;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
console.log(`\n${BOLD}${CYAN}━━━ TASK INTELLIGENCE ━━━${RESET}\n`);
|
|
1109
|
+
console.log(`Task: ${BOLD}${query}${RESET}`);
|
|
1110
|
+
if (analysis.risks.length > 0) {
|
|
1111
|
+
console.log(`Risk Signals: ${RED}${analysis.risks.join(' | ')}${RESET}`);
|
|
1112
|
+
}
|
|
1113
|
+
console.log();
|
|
1114
|
+
|
|
1115
|
+
console.log(`${BOLD}${CYAN}━━━ CONCEPTS ━━━${RESET}`);
|
|
1116
|
+
if (analysis.concepts.explicit.length > 0) {
|
|
1117
|
+
console.log(` ${BOLD}Explicit Concepts:${RESET}`);
|
|
1118
|
+
analysis.concepts.explicit.forEach(c =>
|
|
1119
|
+
console.log(` • ${BOLD}${c.name}${RESET} ${DIM}(domain: ${c.domain})${RESET}`),
|
|
1120
|
+
);
|
|
1121
|
+
}
|
|
1122
|
+
if (analysis.concepts.implicit.length > 0) {
|
|
1123
|
+
console.log(` ${BOLD}Implicit Considerations:${RESET}`);
|
|
1124
|
+
analysis.concepts.implicit.forEach(c =>
|
|
1125
|
+
console.log(
|
|
1126
|
+
` • ${BOLD}${c.name}${RESET} ${DIM}(domain: ${c.domain}) — ${c.reason}${RESET}`,
|
|
1127
|
+
),
|
|
1128
|
+
);
|
|
1129
|
+
}
|
|
1130
|
+
console.log();
|
|
1131
|
+
|
|
1132
|
+
console.log(`${BOLD}${CYAN}━━━ ENGINEERING CONSIDERATIONS ━━━${RESET}`);
|
|
1133
|
+
const critical = analysis.considerations.filter(c => c.severity === 'CRITICAL');
|
|
1134
|
+
const high = analysis.considerations.filter(c => c.severity === 'HIGH');
|
|
1135
|
+
const medium = analysis.considerations.filter(c => c.severity === 'MEDIUM');
|
|
1136
|
+
|
|
1137
|
+
if (critical.length > 0) {
|
|
1138
|
+
console.log(` ${BOLD}${RED}[CRITICAL]${RESET}`);
|
|
1139
|
+
critical.forEach(c =>
|
|
1140
|
+
console.log(` • ${BOLD}${c.title}${RESET} (${c.category}) — ${c.rationale}`),
|
|
1141
|
+
);
|
|
1142
|
+
}
|
|
1143
|
+
if (high.length > 0) {
|
|
1144
|
+
console.log(` ${BOLD}${YELLOW}[HIGH]${RESET}`);
|
|
1145
|
+
high.forEach(c =>
|
|
1146
|
+
console.log(` • ${BOLD}${c.title}${RESET} (${c.category}) — ${c.rationale}`),
|
|
1147
|
+
);
|
|
1148
|
+
}
|
|
1149
|
+
if (medium.length > 0) {
|
|
1150
|
+
console.log(` ${BOLD}${CYAN}[MEDIUM]${RESET}`);
|
|
1151
|
+
medium.forEach(c =>
|
|
1152
|
+
console.log(` • ${BOLD}${c.title}${RESET} (${c.category}) — ${c.rationale}`),
|
|
1153
|
+
);
|
|
1154
|
+
}
|
|
1155
|
+
console.log();
|
|
1156
|
+
|
|
1157
|
+
console.log(`${BOLD}${CYAN}━━━ SKILL COVERAGE ━━━${RESET}`);
|
|
1158
|
+
console.log(` ${'Concept'.padEnd(38)} ${'Coverage'.padEnd(10)} Matched Skill`);
|
|
1159
|
+
console.log(` ${'─'.repeat(38)} ${'─'.repeat(10)} ${'─'.repeat(20)}`);
|
|
1160
|
+
for (const row of analysis.coverage) {
|
|
1161
|
+
const covColor = row.coverage === 'FULL' ? GREEN : row.coverage === 'PARTIAL' ? YELLOW : RED;
|
|
1162
|
+
console.log(
|
|
1163
|
+
` ${row.concept_name.slice(0, 36).padEnd(38)} ${covColor}${row.coverage.padEnd(10)}${RESET} ${row.matched_skill || DIM + 'NONE' + RESET}`,
|
|
1164
|
+
);
|
|
1165
|
+
}
|
|
1166
|
+
console.log();
|
|
1167
|
+
|
|
1168
|
+
console.log(`${BOLD}${CYAN}━━━ COMPOSED CAPABILITY PIPELINE DAG ━━━${RESET}`);
|
|
1169
|
+
console.log(` ${GREEN}${analysis.composition.pipeline.join(' → ')}${RESET}\n`);
|
|
1170
|
+
|
|
1171
|
+
console.log(`${BOLD}${CYAN}━━━ SYSTEM PRE-MORTEM HYPOTHESES & CHAINS ━━━${RESET}`);
|
|
1172
|
+
console.log(
|
|
1173
|
+
` Simulation Level: ${YELLOW}${analysis.simulation_plan.selected_level.name}${RESET}`,
|
|
1174
|
+
);
|
|
1175
|
+
console.log(
|
|
1176
|
+
` Predictions: ${BOLD}${analysis.predictions.length}${RESET} | Causal Chains: ${BOLD}${analysis.failure_chains.length}${RESET}`,
|
|
1177
|
+
);
|
|
1178
|
+
if (analysis.failure_chains.length > 0) {
|
|
1179
|
+
for (const fc of analysis.failure_chains.slice(0, 2)) {
|
|
1180
|
+
console.log(` ⚡ ${BOLD}${fc.name || fc.id}${RESET} [Blast: ${fc.blast_radius}]`);
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
console.log();
|
|
1184
|
+
|
|
1185
|
+
console.log(`${BOLD}${CYAN}━━━ VERIFICATION PLAN ━━━${RESET}`);
|
|
1186
|
+
for (const v of analysis.verification_plan) {
|
|
1187
|
+
console.log(` • [${BOLD}${v.target}${RESET}] ${v.test}: ${DIM}${v.action}${RESET}`);
|
|
1188
|
+
}
|
|
1189
|
+
console.log();
|
|
1190
|
+
return;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
console.log(`
|
|
1194
|
+
${BOLD}Tribunal Skill Intelligence Engine — Phase 2${RESET}
|
|
1195
|
+
Usage:
|
|
1196
|
+
node scripts/skill_intelligence.js --query "<task>"
|
|
1197
|
+
node scripts/skill_intelligence.js --gate --need "<capability>"
|
|
1198
|
+
node scripts/skill_intelligence.js --audit
|
|
1199
|
+
node scripts/skill_intelligence.js --query "<task>" --json
|
|
1200
|
+
`);
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
module.exports = {
|
|
1204
|
+
discoverSkills,
|
|
1205
|
+
evaluateCreationGate,
|
|
1206
|
+
loadAllSkills,
|
|
1207
|
+
clearSkillsCache,
|
|
1208
|
+
analyzeTask,
|
|
1209
|
+
generateVerificationPlan,
|
|
1210
|
+
auditPostExecution,
|
|
1211
|
+
generateImprovementProposal,
|
|
1212
|
+
evaluateMateriality,
|
|
1213
|
+
checkMinimumSufficientEngineering,
|
|
1214
|
+
determineOutcomeBudget,
|
|
1215
|
+
determineQualityDimensions,
|
|
1216
|
+
generateOutcomeContract,
|
|
1217
|
+
detectTradeoffs,
|
|
1218
|
+
auditOutcome,
|
|
1219
|
+
evaluateOutcomeRegression,
|
|
1220
|
+
FAILURE_SIGNALS,
|
|
1221
|
+
// Phase 4: Engineering Judgment & Adaptive Execution
|
|
1222
|
+
EVIDENCE_LEVELS,
|
|
1223
|
+
REVERSIBILITY_LEVELS,
|
|
1224
|
+
classifyEvidence,
|
|
1225
|
+
createUncertaintyRecord,
|
|
1226
|
+
calculateInformationValue,
|
|
1227
|
+
classifyReversibility,
|
|
1228
|
+
recordDecision,
|
|
1229
|
+
invalidateDecision,
|
|
1230
|
+
detectRequirementConflicts,
|
|
1231
|
+
runCounterfactualAnalysis,
|
|
1232
|
+
detectEngineeringSmells,
|
|
1233
|
+
evaluateEscalation,
|
|
1234
|
+
evaluateJudgmentState,
|
|
1235
|
+
DynamicCapabilityGraph,
|
|
1236
|
+
adaptPipelineOnSignal,
|
|
1237
|
+
analyzeChangeImpact,
|
|
1238
|
+
recordEngineeringLesson,
|
|
1239
|
+
recallRelevantLessons,
|
|
1240
|
+
evaluateSkillEffectiveness,
|
|
1241
|
+
runFinalEngineeringReview,
|
|
1242
|
+
// Phase 5: Engineering Memory & Continuous Capability Evolution
|
|
1243
|
+
MEMORY_TYPES,
|
|
1244
|
+
PROVENANCE_TYPES,
|
|
1245
|
+
TRUST_STATES,
|
|
1246
|
+
TRUST_RANKS,
|
|
1247
|
+
MEMORY_SCOPES,
|
|
1248
|
+
sanitizeContentAndEvidence,
|
|
1249
|
+
validateMemoryAdmission,
|
|
1250
|
+
createMemoryRecord,
|
|
1251
|
+
validateApplicability,
|
|
1252
|
+
evaluateMemoryStaleness,
|
|
1253
|
+
evaluateMemoryHypothesisWithCurrentEvidence,
|
|
1254
|
+
recordConflictResolution,
|
|
1255
|
+
MemoryGraph,
|
|
1256
|
+
EngineeringMemoryStore,
|
|
1257
|
+
getEngineeringMemoryStore,
|
|
1258
|
+
retrieveRelevantMemories,
|
|
1259
|
+
extractEngineeringMemory,
|
|
1260
|
+
SkillTelemetryRegistry,
|
|
1261
|
+
getSkillTelemetryRegistry,
|
|
1262
|
+
CapabilityGapTracker,
|
|
1263
|
+
getCapabilityGapTracker,
|
|
1264
|
+
PROPOSAL_STATUS,
|
|
1265
|
+
SkillImprovementManager,
|
|
1266
|
+
getSkillImprovementManager,
|
|
1267
|
+
Phase5MetricsTracker,
|
|
1268
|
+
getPhase5MetricsTracker,
|
|
1269
|
+
// Phase 6: System Simulation & Pre-Mortem Intelligence
|
|
1270
|
+
FAILURE_TAXONOMY,
|
|
1271
|
+
BLAST_RADIUS_TIERS,
|
|
1272
|
+
SIMULATION_LEVELS,
|
|
1273
|
+
PREDICTION_STATUS,
|
|
1274
|
+
createPredictionRecord,
|
|
1275
|
+
analyzeBlastRadius,
|
|
1276
|
+
buildFailureChains,
|
|
1277
|
+
simulateDependencyFailures,
|
|
1278
|
+
simulateConcurrencyRisks,
|
|
1279
|
+
simulateRetryAmplification,
|
|
1280
|
+
simulateDatabaseFailures,
|
|
1281
|
+
simulateQueueFailures,
|
|
1282
|
+
simulateCacheFailures,
|
|
1283
|
+
simulateCapacityAndQueueing,
|
|
1284
|
+
simulateLatencyBudget,
|
|
1285
|
+
runSecurityPreMortem,
|
|
1286
|
+
runAgentPreMortem,
|
|
1287
|
+
runCostPreMortem,
|
|
1288
|
+
simulateDeploymentAndRecovery,
|
|
1289
|
+
generateChaosScenarios,
|
|
1290
|
+
detectUnsupportedClaims,
|
|
1291
|
+
determineSimulationLevel,
|
|
1292
|
+
runPreMortem,
|
|
1293
|
+
comparePredictionsWithObserved,
|
|
1294
|
+
Phase6MetricsTracker,
|
|
1295
|
+
getPhase6MetricsTracker,
|
|
1296
|
+
};
|
|
1297
|
+
|
|
1298
|
+
if (require.main === module) {
|
|
1299
|
+
main();
|
|
1300
|
+
}
|