tribunal-kit 9.0.2 → 9.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/agents/backend-specialist.md +1 -1
- package/.agent/agents/code-archaeologist.md +1 -1
- package/.agent/agents/database-architect.md +1 -1
- package/.agent/agents/debugger.md +1 -1
- package/.agent/agents/devops-engineer.md +1 -1
- package/.agent/agents/documentation-writer.md +1 -1
- package/.agent/agents/explorer-agent.md +1 -1
- package/.agent/agents/game-developer.md +1 -1
- package/.agent/agents/minimalist-reviewer.md +1 -1
- package/.agent/agents/mobile-developer.md +1 -1
- package/.agent/agents/orchestrator.md +44 -2
- package/.agent/agents/penetration-tester.md +1 -1
- package/.agent/agents/performance-optimizer.md +1 -1
- package/.agent/agents/product-manager.md +1 -1
- package/.agent/agents/product-owner.md +1 -1
- package/.agent/agents/project-planner.md +1 -1
- package/.agent/agents/qa-automation-engineer.md +1 -1
- package/.agent/agents/seo-specialist.md +1 -1
- package/.agent/agents/test-engineer.md +1 -1
- package/.agent/config/claude.json +1 -1
- package/.agent/config/plugin.json +1 -1
- package/.agent/history/architecture-explorer.html +352 -0
- package/.agent/history/architecture-graph.yaml +181 -1
- package/.agent/history/graph-cache.json +323 -13
- package/.agent/history/integrity_manifest.json +3937 -299
- package/.agent/history/memory/.memory.idx +50 -50
- package/.agent/history/snapshots/.opencode__plugins__tribunal.js.json +12 -0
- package/.agent/history/snapshots/.pi__extensions__tribunal.ts.json +12 -0
- package/.agent/history/snapshots/bin__adapter-install.js.json +1 -1
- package/.agent/history/snapshots/bin__mcp-server.js.json +4 -2
- package/.agent/history/snapshots/bin__proxy-server.js.json +1 -1
- package/.agent/history/snapshots/bin__spawn-agent.js.json +1 -1
- package/.agent/history/snapshots/bin__wrapper.js.json +1 -1
- package/.agent/history/snapshots/eslint.config.js.json +1 -1
- package/.agent/history/snapshots/hooks__session-start.js.json +11 -0
- package/.agent/history/snapshots/scripts__apply-version.js.json +11 -0
- package/.agent/history/snapshots/scripts__audit_skill_sdo.js.json +11 -0
- package/.agent/history/snapshots/scripts__clean-pycache.js.json +11 -0
- package/.agent/history/snapshots/scripts__context_compiler.js.json +17 -0
- package/.agent/history/snapshots/scripts__modernize_skills.js.json +11 -0
- package/.agent/history/snapshots/scripts__package-cores.js.json +12 -0
- package/.agent/history/snapshots/scripts__skill_enhancement_engine.js.json +11 -0
- package/.agent/history/snapshots/scripts__sync-skills.js.json +11 -0
- package/.agent/history/snapshots/scripts__telemetry_gc.js.json +11 -0
- package/.agent/history/snapshots/scripts__validate-payload.js.json +1 -1
- package/.agent/history/snapshots/test__integration__browser_cli.test.js.json +12 -0
- package/.agent/history/snapshots/test__integration__sync_status.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__ast_context_loader.test.js.json +12 -0
- package/.agent/history/snapshots/test__unit__browser_case_bridge.test.js.json +11 -0
- package/.agent/history/snapshots/test__unit__browser_discovery.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__browser_idpi.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__browser_sentinel.test.js.json +11 -0
- package/.agent/history/snapshots/test__unit__browser_synapse.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__browser_trimmer.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__context_compiler.test.js.json +26 -0
- package/.agent/history/snapshots/test__unit__init.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__learn.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__mcp_server.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__platform_download_audit.test.js.json +11 -0
- package/.agent/history/snapshots/test__unit__prompt_compiler.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__sdd_integration.test.js.json +12 -0
- package/.agent/history/snapshots/test__unit__stress.test.js.json +1 -1
- package/.agent/history/snapshots/test__unit__token_budget_broker.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__tui.test.js.json +10 -0
- package/.agent/routing_index.json +266 -1531
- package/.agent/rules/kernel.md +86 -0
- package/.agent/scripts/_utils.js +78 -0
- package/.agent/scripts/browser_audit.js +13 -5
- package/.agent/scripts/bundle_analyzer.js +7 -3
- package/.agent/scripts/context_broker.js +0 -8
- package/.agent/scripts/context_compiler.js +1106 -3
- package/.agent/scripts/dependency_analyzer.js +16 -16
- package/.agent/scripts/guardrail_engine.js +48 -11
- package/.agent/scripts/inner_loop_validator.js +1 -1
- package/.agent/scripts/memory_engine.js +490 -329
- package/.agent/scripts/payload_schemas.js +18 -0
- package/.agent/scripts/pipeline_engine.js +29 -105
- package/.agent/scripts/schema_validator.js +2 -1
- package/.agent/scripts/swarm_dispatcher.js +148 -46
- package/.agent/scripts/test_runner.js +1 -2
- package/.agent/skill_topic_map.json +71 -22
- package/.agent/skills/12-principles-of-animation/SKILL.md +1 -76
- package/.agent/skills/60fps-animation/SKILL.md +4 -77
- package/.agent/skills/accessible-animation/SKILL.md +9 -86
- package/.agent/skills/adapt/SKILL.md +1 -76
- package/.agent/skills/advanced-rag-pipelines/SKILL.md +1 -76
- package/.agent/skills/agent-organizer/SKILL.md +1 -76
- package/.agent/skills/agentic-patterns/SKILL.md +1 -76
- package/.agent/skills/agentic-workflows-2026/SKILL.md +1 -75
- package/.agent/skills/ai-app-hardening/SKILL.md +1 -75
- package/.agent/skills/ai-prompt-injection-defense/SKILL.md +1 -76
- package/.agent/skills/animation-on-scroll/SKILL.md +16 -87
- package/.agent/skills/animation-systems/SKILL.md +15 -90
- package/.agent/skills/antfu-conventions/SKILL.md +0 -75
- package/.agent/skills/api-patterns/SKILL.md +1 -76
- package/.agent/skills/api-security-auditor/SKILL.md +1 -76
- package/.agent/skills/app-builder/SKILL.md +1 -76
- package/.agent/skills/appflow-wireframe/SKILL.md +1 -78
- package/.agent/skills/apple-design/SKILL.md +1 -76
- package/.agent/skills/architecture/SKILL.md +1 -76
- package/.agent/skills/audit-and-fix/SKILL.md +41 -77
- package/.agent/skills/authentication-best-practices/SKILL.md +1 -76
- package/.agent/skills/backend-security-expert/SKILL.md +1 -76
- package/.agent/skills/baseline-ui/SKILL.md +1 -76
- package/.agent/skills/bash-linux/SKILL.md +1 -76
- package/.agent/skills/behavioral-modes/SKILL.md +1 -76
- package/.agent/skills/better-colors/SKILL.md +1 -76
- package/.agent/skills/better-typography/SKILL.md +1 -75
- package/.agent/skills/better-ui/SKILL.md +18 -81
- package/.agent/skills/bolder/SKILL.md +1 -76
- package/.agent/skills/brainstorming/SKILL.md +1 -75
- package/.agent/skills/browser-audit/SKILL.md +15 -83
- package/.agent/skills/browser-native-ai/SKILL.md +1 -76
- package/.agent/skills/build-primitive/SKILL.md +1 -76
- package/.agent/skills/building-native-ui/SKILL.md +1 -76
- package/.agent/skills/cicd-pro/SKILL.md +1 -76
- package/.agent/skills/clarify/SKILL.md +1 -76
- package/.agent/skills/clean-code/SKILL.md +1 -76
- package/.agent/skills/cloud-architect/SKILL.md +1 -76
- package/.agent/skills/cobejs/SKILL.md +1 -76
- package/.agent/skills/code-review-checklist/SKILL.md +1 -76
- package/.agent/skills/codebase-design/SKILL.md +1 -76
- package/.agent/skills/colorize/SKILL.md +1 -76
- package/.agent/skills/compact-landing/SKILL.md +1 -76
- package/.agent/skills/company-logos/SKILL.md +1 -76
- package/.agent/skills/config-validator/SKILL.md +1 -76
- package/.agent/skills/containerization-pro/SKILL.md +1 -76
- package/.agent/skills/context-engineering-pro/SKILL.md +1 -75
- package/.agent/skills/create-design-md/SKILL.md +1 -76
- package/.agent/skills/critique/SKILL.md +1 -76
- package/.agent/skills/csharp-developer/SKILL.md +1 -76
- package/.agent/skills/data-validation-schemas/SKILL.md +1 -76
- package/.agent/skills/database-design/SKILL.md +1 -76
- package/.agent/skills/delight/SKILL.md +1 -76
- package/.agent/skills/deployment-procedures/SKILL.md +1 -76
- package/.agent/skills/design-lab/SKILL.md +0 -75
- package/.agent/skills/devops-engineer/SKILL.md +1 -76
- package/.agent/skills/devops-incident-responder/SKILL.md +1 -76
- package/.agent/skills/diagnosing-bugs/SKILL.md +0 -75
- package/.agent/skills/distill/SKILL.md +1 -76
- package/.agent/skills/documentation-templates/SKILL.md +1 -76
- package/.agent/skills/domain-modeling/SKILL.md +1 -76
- package/.agent/skills/duckdb-analytical-sql/SKILL.md +1 -75
- package/.agent/skills/edge-ai-mobile/SKILL.md +1 -75
- package/.agent/skills/edge-computing/SKILL.md +1 -76
- package/.agent/skills/emil-design-eng/SKILL.md +1 -76
- package/.agent/skills/error-resilience/SKILL.md +1 -76
- package/.agent/skills/expo-router-v4/SKILL.md +1 -75
- package/.agent/skills/extract-design-system/SKILL.md +1 -76
- package/.agent/skills/fabel-protocol/SKILL.md +1 -76
- package/.agent/skills/fixing-accessibility/SKILL.md +1 -76
- package/.agent/skills/fixing-metadata/SKILL.md +1 -76
- package/.agent/skills/fixing-motion-performance/SKILL.md +1 -76
- package/.agent/skills/framer-motion-expert/SKILL.md +1 -76
- package/.agent/skills/frontend-design/SKILL.md +1 -76
- package/.agent/skills/frontend-security-expert/SKILL.md +1 -76
- package/.agent/skills/game-design-expert/SKILL.md +1 -76
- package/.agent/skills/game-engineering-expert/SKILL.md +1 -76
- package/.agent/skills/generative-ui-expert/SKILL.md +1 -76
- package/.agent/skills/geo-fundamentals/SKILL.md +1 -76
- package/.agent/skills/git-pro/SKILL.md +1 -76
- package/.agent/skills/github-operations/SKILL.md +1 -76
- package/.agent/skills/gpt-taste/SKILL.md +1 -76
- package/.agent/skills/gsap-core/SKILL.md +1 -76
- package/.agent/skills/gsap-frameworks/SKILL.md +1 -76
- package/.agent/skills/gsap-performance/SKILL.md +1 -76
- package/.agent/skills/gsap-plugins/SKILL.md +1 -76
- package/.agent/skills/gsap-react/SKILL.md +1 -76
- package/.agent/skills/gsap-scrolltrigger/SKILL.md +1 -76
- package/.agent/skills/gsap-timeline/SKILL.md +1 -76
- package/.agent/skills/gsap-utils/SKILL.md +1 -76
- package/.agent/skills/harden/SKILL.md +1 -76
- package/.agent/skills/harness-protocol/SKILL.md +1 -76
- package/.agent/skills/i18n-localization/SKILL.md +1 -76
- package/.agent/skills/impeccable/SKILL.md +1 -76
- package/.agent/skills/improve-codebase-architecture/SKILL.md +1 -76
- package/.agent/skills/improve-ui/SKILL.md +1 -76
- package/.agent/skills/intelligent-routing/SKILL.md +2 -87
- package/.agent/skills/knowledge-graph/SKILL.md +1 -76
- package/.agent/skills/landing-page/SKILL.md +1 -76
- package/.agent/skills/lint-and-validate/SKILL.md +1 -76
- package/.agent/skills/llm-engineering/SKILL.md +1 -76
- package/.agent/skills/local-first/SKILL.md +1 -76
- package/.agent/skills/local-first-architecture/SKILL.md +1 -76
- package/.agent/skills/lottie-animation/SKILL.md +1 -76
- package/.agent/skills/marquee-loop/SKILL.md +1 -76
- package/.agent/skills/masked-reveal/SKILL.md +1 -76
- package/.agent/skills/mcp-builder/SKILL.md +1 -76
- package/.agent/skills/micro-interaction/SKILL.md +19 -87
- package/.agent/skills/mobile-design/SKILL.md +1 -76
- package/.agent/skills/monorepo-management/SKILL.md +1 -76
- package/.agent/skills/morphing-icons/SKILL.md +1 -76
- package/.agent/skills/motion-engineering/SKILL.md +1 -76
- package/.agent/skills/nextjs-react-expert/SKILL.md +1 -76
- package/.agent/skills/nodejs-best-practices/SKILL.md +1 -76
- package/.agent/skills/observability/SKILL.md +1 -76
- package/.agent/skills/opentelemetry-observability/SKILL.md +1 -75
- package/.agent/skills/page-transition-animation/SKILL.md +1 -76
- package/.agent/skills/parallel-agents/SKILL.md +1 -76
- package/.agent/skills/performance-profiling/SKILL.md +1 -76
- package/.agent/skills/plan-writing/SKILL.md +1 -76
- package/.agent/skills/platform-engineer/SKILL.md +1 -76
- package/.agent/skills/platform-engineering-opentofu/SKILL.md +1 -75
- package/.agent/skills/playwright-ai-e2e/SKILL.md +1 -75
- package/.agent/skills/playwright-best-practices/SKILL.md +1 -76
- package/.agent/skills/polish/SKILL.md +1 -76
- package/.agent/skills/powershell-windows/SKILL.md +1 -76
- package/.agent/skills/pricing-page/SKILL.md +1 -76
- package/.agent/skills/product-aware-heuristics/SKILL.md +1 -76
- package/.agent/skills/progressive-blur/SKILL.md +1 -76
- package/.agent/skills/project-idioms/SKILL.md +1 -76
- package/.agent/skills/property-based-testing/SKILL.md +1 -75
- package/.agent/skills/python-patterns/SKILL.md +1 -76
- package/.agent/skills/python-pro/SKILL.md +1 -76
- package/.agent/skills/quieter/SKILL.md +1 -76
- package/.agent/skills/react-doctor/SKILL.md +1 -76
- package/.agent/skills/react-specialist/SKILL.md +1 -76
- package/.agent/skills/readme-builder/SKILL.md +1 -76
- package/.agent/skills/realtime-patterns/SKILL.md +1 -76
- package/.agent/skills/red-team-tactics/SKILL.md +1 -76
- package/.agent/skills/redesign-skill/SKILL.md +1 -76
- package/.agent/skills/review-animations/SKILL.md +1 -76
- package/.agent/skills/rust-pro/SKILL.md +1 -76
- package/.agent/skills/seo-fundamentals/SKILL.md +1 -76
- package/.agent/skills/server-management/SKILL.md +1 -76
- package/.agent/skills/shadcn-ui-expert/SKILL.md +1 -76
- package/.agent/skills/shape/SKILL.md +1 -76
- package/.agent/skills/skill-creator/SKILL.md +127 -86
- package/.agent/skills/soft-skill/SKILL.md +1 -76
- package/.agent/skills/sounds-on-the-web/SKILL.md +1 -76
- package/.agent/skills/sql-pro/SKILL.md +1 -76
- package/.agent/skills/supabase-postgres-best-practices/SKILL.md +1 -76
- package/.agent/skills/svg-animation/SKILL.md +1 -76
- package/.agent/skills/swiftui-expert/SKILL.md +1 -76
- package/.agent/skills/swiss-design/SKILL.md +1 -76
- package/.agent/skills/system-design-pro/SKILL.md +1 -76
- package/.agent/skills/systematic-debugging/SKILL.md +2 -76
- package/.agent/skills/systematic-debugging/condition-based-waiting.md +14 -9
- package/.agent/skills/systematic-debugging/defense-in-depth.md +9 -3
- package/.agent/skills/systematic-debugging/root-cause-tracing.md +14 -0
- package/.agent/skills/tailwind-patterns/SKILL.md +1 -76
- package/.agent/skills/taste-skill/SKILL.md +1 -76
- package/.agent/skills/tdd-workflow/SKILL.md +8 -82
- package/.agent/skills/test-result-analyzer/SKILL.md +1 -76
- package/.agent/skills/testing-patterns/SKILL.md +1 -76
- package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
- package/.agent/skills/thinking-protocol/SKILL.md +1 -77
- package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
- package/.agent/skills/transitions-dev/SKILL.md +1 -76
- package/.agent/skills/trend-researcher/SKILL.md +1 -76
- package/.agent/skills/typescript-advanced/SKILL.md +1 -76
- package/.agent/skills/typeset/SKILL.md +1 -76
- package/.agent/skills/ui-reasoning-engine/SKILL.md +1 -76
- package/.agent/skills/ui-skill-packs/SKILL.md +1 -76
- package/.agent/skills/ui-skills-root/SKILL.md +1 -76
- package/.agent/skills/ui-ux-pro-max/SKILL.md +1 -76
- package/.agent/skills/ui-ux-researcher/SKILL.md +1 -76
- package/.agent/skills/vector-search-pgvector/SKILL.md +1 -75
- package/.agent/skills/verification-before-completion/SKILL.md +20 -91
- package/.agent/skills/vue-expert/SKILL.md +1 -76
- package/.agent/skills/vulnerability-scanner/SKILL.md +1 -76
- package/.agent/skills/web-accessibility-auditor/SKILL.md +1 -76
- package/.agent/skills/web-design-guidelines/SKILL.md +1 -76
- package/.agent/skills/web-quality-audit/SKILL.md +1 -76
- package/.agent/skills/webapp-testing/SKILL.md +1 -76
- package/.agent/skills/webgpu-performance/SKILL.md +1 -76
- package/.agent/skills/whimsy-injector/SKILL.md +1 -76
- package/.agent/skills/workflow-optimizer/SKILL.md +1 -76
- package/.agent/skills/zero-trust-passkeys/SKILL.md +1 -75
- package/.agent/templates/DESIGN.md +312 -290
- package/.agent/templates/sdd/task-reviewer-prompt.md +2 -2
- package/.agent/workflows/audit-live.md +4 -3
- package/.agent/workflows/brainstorm.md +1 -0
- package/.agent/workflows/context.md +9 -7
- package/.agent/workflows/generate.md +1 -1
- package/.agent/workflows/minimal.md +3 -2
- package/.agent/workflows/orchestrate.md +1 -1
- package/.agent/workflows/plan.md +1 -1
- package/.agent/workflows/review-ai.md +1 -1
- package/.agent/workflows/sdd.md +15 -0
- package/.agent/workflows/skill-enhancement-engine.md +17 -21
- package/.agent/workflows/super-prompt.md +25 -24
- package/.agent/workflows/swarm.md +1 -1
- package/.agent/workflows/tribunal-backend.md +1 -1
- package/.agent/workflows/tribunal-cicd.md +1 -1
- package/.agent/workflows/tribunal-database.md +1 -1
- package/.agent/workflows/tribunal-frontend.md +1 -1
- package/.agent/workflows/tribunal-full.md +9 -9
- package/.agent/workflows/tribunal-mobile.md +1 -1
- package/.agent/workflows/tribunal-speed.md +1 -1
- package/.agent/workflows/tribunal-ui.md +1 -1
- package/.agents/skills/12-principles-of-animation/SKILL.md +1 -76
- package/.agents/skills/60fps-animation/SKILL.md +4 -77
- package/.agents/skills/accessible-animation/SKILL.md +9 -86
- package/.agents/skills/adapt/SKILL.md +1 -76
- package/.agents/skills/advanced-rag-pipelines/SKILL.md +1 -76
- package/.agents/skills/agent-organizer/SKILL.md +1 -76
- package/.agents/skills/agentic-patterns/SKILL.md +1 -76
- package/.agents/skills/agentic-workflows-2026/SKILL.md +1 -75
- package/.agents/skills/ai-app-hardening/SKILL.md +1 -75
- package/.agents/skills/ai-prompt-injection-defense/SKILL.md +1 -76
- package/.agents/skills/animation-on-scroll/SKILL.md +16 -87
- package/.agents/skills/animation-systems/SKILL.md +15 -90
- package/.agents/skills/antfu-conventions/SKILL.md +0 -75
- package/.agents/skills/api-patterns/SKILL.md +1 -76
- package/.agents/skills/api-security-auditor/SKILL.md +1 -76
- package/.agents/skills/app-builder/SKILL.md +1 -76
- package/.agents/skills/appflow-wireframe/SKILL.md +1 -78
- package/.agents/skills/apple-design/SKILL.md +1 -76
- package/.agents/skills/architecture/SKILL.md +1 -76
- package/.agents/skills/audit-and-fix/SKILL.md +41 -77
- package/.agents/skills/authentication-best-practices/SKILL.md +1 -76
- package/.agents/skills/backend-security-expert/SKILL.md +1 -76
- package/.agents/skills/baseline-ui/SKILL.md +1 -76
- package/.agents/skills/bash-linux/SKILL.md +1 -76
- package/.agents/skills/behavioral-modes/SKILL.md +1 -76
- package/.agents/skills/better-colors/SKILL.md +1 -76
- package/.agents/skills/better-typography/SKILL.md +1 -75
- package/.agents/skills/better-ui/SKILL.md +18 -81
- package/.agents/skills/bolder/SKILL.md +1 -76
- package/.agents/skills/brainstorming/SKILL.md +1 -75
- package/.agents/skills/browser-audit/SKILL.md +15 -83
- package/.agents/skills/browser-native-ai/SKILL.md +1 -76
- package/.agents/skills/build-primitive/SKILL.md +1 -76
- package/.agents/skills/building-native-ui/SKILL.md +1 -76
- package/.agents/skills/cicd-pro/SKILL.md +1 -76
- package/.agents/skills/clarify/SKILL.md +1 -76
- package/.agents/skills/clean-code/SKILL.md +1 -76
- package/.agents/skills/cloud-architect/SKILL.md +1 -76
- package/.agents/skills/cobejs/SKILL.md +1 -76
- package/.agents/skills/code-review-checklist/SKILL.md +1 -76
- package/.agents/skills/codebase-design/SKILL.md +1 -76
- package/.agents/skills/colorize/SKILL.md +1 -76
- package/.agents/skills/compact-landing/SKILL.md +1 -76
- package/.agents/skills/company-logos/SKILL.md +1 -76
- package/.agents/skills/config-validator/SKILL.md +1 -76
- package/.agents/skills/containerization-pro/SKILL.md +1 -76
- package/.agents/skills/context-engineering-pro/SKILL.md +1 -75
- package/.agents/skills/create-design-md/SKILL.md +1 -76
- package/.agents/skills/critique/SKILL.md +1 -76
- package/.agents/skills/csharp-developer/SKILL.md +1 -76
- package/.agents/skills/data-validation-schemas/SKILL.md +1 -76
- package/.agents/skills/database-design/SKILL.md +1 -76
- package/.agents/skills/delight/SKILL.md +1 -76
- package/.agents/skills/deployment-procedures/SKILL.md +1 -76
- package/.agents/skills/design-lab/SKILL.md +0 -75
- package/.agents/skills/devops-engineer/SKILL.md +1 -76
- package/.agents/skills/devops-incident-responder/SKILL.md +1 -76
- package/.agents/skills/diagnosing-bugs/SKILL.md +0 -75
- package/.agents/skills/distill/SKILL.md +1 -76
- package/.agents/skills/documentation-templates/SKILL.md +1 -76
- package/.agents/skills/domain-modeling/SKILL.md +1 -76
- package/.agents/skills/duckdb-analytical-sql/SKILL.md +1 -75
- package/.agents/skills/edge-ai-mobile/SKILL.md +1 -75
- package/.agents/skills/edge-computing/SKILL.md +1 -76
- package/.agents/skills/emil-design-eng/SKILL.md +1 -76
- package/.agents/skills/error-resilience/SKILL.md +1 -76
- package/.agents/skills/expo-router-v4/SKILL.md +1 -75
- package/.agents/skills/extract-design-system/SKILL.md +1 -76
- package/.agents/skills/fabel-protocol/SKILL.md +1 -76
- package/.agents/skills/fixing-accessibility/SKILL.md +1 -76
- package/.agents/skills/fixing-metadata/SKILL.md +1 -76
- package/.agents/skills/fixing-motion-performance/SKILL.md +1 -76
- package/.agents/skills/framer-motion-expert/SKILL.md +1 -76
- package/.agents/skills/frontend-design/SKILL.md +1 -76
- package/.agents/skills/frontend-security-expert/SKILL.md +1 -76
- package/.agents/skills/game-design-expert/SKILL.md +1 -76
- package/.agents/skills/game-engineering-expert/SKILL.md +1 -76
- package/.agents/skills/generative-ui-expert/SKILL.md +1 -76
- package/.agents/skills/geo-fundamentals/SKILL.md +1 -76
- package/.agents/skills/git-pro/SKILL.md +1 -76
- package/.agents/skills/github-operations/SKILL.md +1 -76
- package/.agents/skills/gpt-taste/SKILL.md +1 -76
- package/.agents/skills/gsap-core/SKILL.md +1 -76
- package/.agents/skills/gsap-frameworks/SKILL.md +1 -76
- package/.agents/skills/gsap-performance/SKILL.md +1 -76
- package/.agents/skills/gsap-plugins/SKILL.md +1 -76
- package/.agents/skills/gsap-react/SKILL.md +1 -76
- package/.agents/skills/gsap-scrolltrigger/SKILL.md +1 -76
- package/.agents/skills/gsap-timeline/SKILL.md +1 -76
- package/.agents/skills/gsap-utils/SKILL.md +1 -76
- package/.agents/skills/harden/SKILL.md +1 -76
- package/.agents/skills/harness-protocol/SKILL.md +1 -76
- package/.agents/skills/i18n-localization/SKILL.md +1 -76
- package/.agents/skills/impeccable/SKILL.md +1 -76
- package/.agents/skills/improve-codebase-architecture/SKILL.md +1 -76
- package/.agents/skills/improve-ui/SKILL.md +1 -76
- package/.agents/skills/intelligent-routing/SKILL.md +2 -87
- package/.agents/skills/knowledge-graph/SKILL.md +1 -76
- package/.agents/skills/landing-page/SKILL.md +1 -76
- package/.agents/skills/lint-and-validate/SKILL.md +1 -76
- package/.agents/skills/llm-engineering/SKILL.md +1 -76
- package/.agents/skills/local-first/SKILL.md +1 -76
- package/.agents/skills/local-first-architecture/SKILL.md +1 -76
- package/.agents/skills/lottie-animation/SKILL.md +1 -76
- package/.agents/skills/marquee-loop/SKILL.md +1 -76
- package/.agents/skills/masked-reveal/SKILL.md +1 -76
- package/.agents/skills/mcp-builder/SKILL.md +1 -76
- package/.agents/skills/micro-interaction/SKILL.md +19 -87
- package/.agents/skills/mobile-design/SKILL.md +1 -76
- package/.agents/skills/monorepo-management/SKILL.md +1 -76
- package/.agents/skills/morphing-icons/SKILL.md +1 -76
- package/.agents/skills/motion-engineering/SKILL.md +1 -76
- package/.agents/skills/nextjs-react-expert/SKILL.md +1 -76
- package/.agents/skills/nodejs-best-practices/SKILL.md +1 -76
- package/.agents/skills/observability/SKILL.md +1 -76
- package/.agents/skills/opentelemetry-observability/SKILL.md +1 -75
- package/.agents/skills/page-transition-animation/SKILL.md +1 -76
- package/.agents/skills/parallel-agents/SKILL.md +1 -76
- package/.agents/skills/performance-profiling/SKILL.md +1 -76
- package/.agents/skills/plan-writing/SKILL.md +1 -76
- package/.agents/skills/platform-engineer/SKILL.md +1 -76
- package/.agents/skills/platform-engineering-opentofu/SKILL.md +1 -75
- package/.agents/skills/playwright-ai-e2e/SKILL.md +1 -75
- package/.agents/skills/playwright-best-practices/SKILL.md +1 -76
- package/.agents/skills/polish/SKILL.md +1 -76
- package/.agents/skills/powershell-windows/SKILL.md +1 -76
- package/.agents/skills/pricing-page/SKILL.md +1 -76
- package/.agents/skills/product-aware-heuristics/SKILL.md +1 -76
- package/.agents/skills/progressive-blur/SKILL.md +1 -76
- package/.agents/skills/project-idioms/SKILL.md +1 -76
- package/.agents/skills/property-based-testing/SKILL.md +1 -75
- package/.agents/skills/python-patterns/SKILL.md +1 -76
- package/.agents/skills/python-pro/SKILL.md +1 -76
- package/.agents/skills/quieter/SKILL.md +1 -76
- package/.agents/skills/react-doctor/SKILL.md +1 -76
- package/.agents/skills/react-specialist/SKILL.md +1 -76
- package/.agents/skills/readme-builder/SKILL.md +1 -76
- package/.agents/skills/realtime-patterns/SKILL.md +1 -76
- package/.agents/skills/red-team-tactics/SKILL.md +1 -76
- package/.agents/skills/redesign-skill/SKILL.md +1 -76
- package/.agents/skills/review-animations/SKILL.md +1 -76
- package/.agents/skills/rust-pro/SKILL.md +1 -76
- package/.agents/skills/seo-fundamentals/SKILL.md +1 -76
- package/.agents/skills/server-management/SKILL.md +1 -76
- package/.agents/skills/shadcn-ui-expert/SKILL.md +1 -76
- package/.agents/skills/shape/SKILL.md +1 -76
- package/.agents/skills/skill-creator/SKILL.md +127 -86
- package/.agents/skills/soft-skill/SKILL.md +1 -76
- package/.agents/skills/sounds-on-the-web/SKILL.md +1 -76
- package/.agents/skills/sql-pro/SKILL.md +1 -76
- package/.agents/skills/supabase-postgres-best-practices/SKILL.md +1 -76
- package/.agents/skills/svg-animation/SKILL.md +1 -76
- package/.agents/skills/swiftui-expert/SKILL.md +1 -76
- package/.agents/skills/swiss-design/SKILL.md +1 -76
- package/.agents/skills/system-design-pro/SKILL.md +1 -76
- package/.agents/skills/systematic-debugging/SKILL.md +2 -76
- package/.agents/skills/systematic-debugging/condition-based-waiting.md +14 -9
- package/.agents/skills/systematic-debugging/defense-in-depth.md +9 -3
- package/.agents/skills/systematic-debugging/root-cause-tracing.md +14 -0
- package/.agents/skills/tailwind-patterns/SKILL.md +1 -76
- package/.agents/skills/taste-skill/SKILL.md +1 -76
- package/.agents/skills/tdd-workflow/SKILL.md +8 -82
- package/.agents/skills/test-result-analyzer/SKILL.md +1 -76
- package/.agents/skills/testing-patterns/SKILL.md +1 -76
- package/.agents/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
- package/.agents/skills/thinking-protocol/SKILL.md +1 -77
- package/.agents/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
- package/.agents/skills/transitions-dev/SKILL.md +1 -76
- package/.agents/skills/trend-researcher/SKILL.md +1 -76
- package/.agents/skills/typescript-advanced/SKILL.md +1 -76
- package/.agents/skills/typeset/SKILL.md +1 -76
- package/.agents/skills/ui-reasoning-engine/SKILL.md +1 -76
- package/.agents/skills/ui-skill-packs/SKILL.md +1 -76
- package/.agents/skills/ui-skills-root/SKILL.md +1 -76
- package/.agents/skills/ui-ux-pro-max/SKILL.md +1 -76
- package/.agents/skills/ui-ux-researcher/SKILL.md +1 -76
- package/.agents/skills/vector-search-pgvector/SKILL.md +1 -75
- package/.agents/skills/verification-before-completion/SKILL.md +20 -91
- package/.agents/skills/vue-expert/SKILL.md +1 -76
- package/.agents/skills/vulnerability-scanner/SKILL.md +1 -76
- package/.agents/skills/web-accessibility-auditor/SKILL.md +1 -76
- package/.agents/skills/web-design-guidelines/SKILL.md +1 -76
- package/.agents/skills/web-quality-audit/SKILL.md +1 -76
- package/.agents/skills/webapp-testing/SKILL.md +1 -76
- package/.agents/skills/webgpu-performance/SKILL.md +1 -76
- package/.agents/skills/whimsy-injector/SKILL.md +1 -76
- package/.agents/skills/workflow-optimizer/SKILL.md +1 -76
- package/.agents/skills/zero-trust-passkeys/SKILL.md +1 -75
- package/.codex-plugin/plugin.json +1 -5
- package/.kimi-plugin/plugin.json +1 -5
- package/.opencode/INSTALL.md +1 -0
- package/.opencode/plugins/tribunal.js +15 -6
- package/.pi/extensions/tribunal.ts +26 -29
- package/AGENTS.md +15 -13
- package/CLAUDE.md +3 -1
- package/README.md +23 -16
- package/bin/adapter-install.js +1 -1
- package/bin/mcp-server.js +88 -58
- package/bin/wrapper.js +22 -2
- package/dist/commands/init.js +25 -11
- package/dist/tui/banner.js +77 -77
- package/gemini-extension.json +1 -1
- package/package.json +13 -10
- package/plugin.json +1 -1
- package/scripts/apply-version.js +2 -2
- package/scripts/audit_skill_sdo.js +6 -4
- package/scripts/context_compiler.js +256 -83
- package/scripts/modernize_skills.js +25 -11
- package/scripts/package-cores.js +4 -1
- package/scripts/skill_enhancement_engine.js +212 -77
- package/scripts/telemetry_gc.js +156 -0
- package/scripts/validate-payload.js +1 -6
- package/skills/12-principles-of-animation/SKILL.md +1 -76
- package/skills/60fps-animation/SKILL.md +4 -77
- package/skills/accessible-animation/SKILL.md +9 -86
- package/skills/adapt/SKILL.md +1 -76
- package/skills/advanced-rag-pipelines/SKILL.md +1 -76
- package/skills/agent-organizer/SKILL.md +1 -76
- package/skills/agentic-patterns/SKILL.md +1 -76
- package/skills/agentic-workflows-2026/SKILL.md +1 -75
- package/skills/ai-app-hardening/SKILL.md +1 -75
- package/skills/ai-prompt-injection-defense/SKILL.md +1 -76
- package/skills/animation-on-scroll/SKILL.md +16 -87
- package/skills/animation-systems/SKILL.md +15 -90
- package/skills/antfu-conventions/SKILL.md +0 -75
- package/skills/api-patterns/SKILL.md +1 -76
- package/skills/api-security-auditor/SKILL.md +1 -76
- package/skills/app-builder/SKILL.md +1 -76
- package/skills/appflow-wireframe/SKILL.md +1 -78
- package/skills/apple-design/SKILL.md +1 -76
- package/skills/architecture/SKILL.md +1 -76
- package/skills/audit-and-fix/SKILL.md +41 -77
- package/skills/authentication-best-practices/SKILL.md +1 -76
- package/skills/backend-security-expert/SKILL.md +1 -76
- package/skills/baseline-ui/SKILL.md +1 -76
- package/skills/bash-linux/SKILL.md +1 -76
- package/skills/behavioral-modes/SKILL.md +1 -76
- package/skills/better-colors/SKILL.md +1 -76
- package/skills/better-typography/SKILL.md +1 -75
- package/skills/better-ui/SKILL.md +18 -81
- package/skills/bolder/SKILL.md +1 -76
- package/skills/brainstorming/SKILL.md +1 -75
- package/skills/browser-audit/SKILL.md +15 -83
- package/skills/browser-native-ai/SKILL.md +1 -76
- package/skills/build-primitive/SKILL.md +1 -76
- package/skills/building-native-ui/SKILL.md +1 -76
- package/skills/cicd-pro/SKILL.md +1 -76
- package/skills/clarify/SKILL.md +1 -76
- package/skills/clean-code/SKILL.md +1 -76
- package/skills/cloud-architect/SKILL.md +1 -76
- package/skills/cobejs/SKILL.md +1 -76
- package/skills/code-review-checklist/SKILL.md +1 -76
- package/skills/codebase-design/SKILL.md +1 -76
- package/skills/colorize/SKILL.md +1 -76
- package/skills/compact-landing/SKILL.md +1 -76
- package/skills/company-logos/SKILL.md +1 -76
- package/skills/config-validator/SKILL.md +1 -76
- package/skills/containerization-pro/SKILL.md +1 -76
- package/skills/context-engineering-pro/SKILL.md +1 -75
- package/skills/create-design-md/SKILL.md +1 -76
- package/skills/critique/SKILL.md +1 -76
- package/skills/csharp-developer/SKILL.md +1 -76
- package/skills/data-validation-schemas/SKILL.md +1 -76
- package/skills/database-design/SKILL.md +1 -76
- package/skills/delight/SKILL.md +1 -76
- package/skills/deployment-procedures/SKILL.md +1 -76
- package/skills/design-lab/SKILL.md +0 -75
- package/skills/devops-engineer/SKILL.md +1 -76
- package/skills/devops-incident-responder/SKILL.md +1 -76
- package/skills/diagnosing-bugs/SKILL.md +0 -75
- package/skills/distill/SKILL.md +1 -76
- package/skills/documentation-templates/SKILL.md +1 -76
- package/skills/domain-modeling/SKILL.md +1 -76
- package/skills/duckdb-analytical-sql/SKILL.md +1 -75
- package/skills/edge-ai-mobile/SKILL.md +1 -75
- package/skills/edge-computing/SKILL.md +1 -76
- package/skills/emil-design-eng/SKILL.md +1 -76
- package/skills/error-resilience/SKILL.md +1 -76
- package/skills/expo-router-v4/SKILL.md +1 -75
- package/skills/extract-design-system/SKILL.md +1 -76
- package/skills/fabel-protocol/SKILL.md +1 -76
- package/skills/fixing-accessibility/SKILL.md +1 -76
- package/skills/fixing-metadata/SKILL.md +1 -76
- package/skills/fixing-motion-performance/SKILL.md +1 -76
- package/skills/framer-motion-expert/SKILL.md +1 -76
- package/skills/frontend-design/SKILL.md +1 -76
- package/skills/frontend-security-expert/SKILL.md +1 -76
- package/skills/game-design-expert/SKILL.md +1 -76
- package/skills/game-engineering-expert/SKILL.md +1 -76
- package/skills/generative-ui-expert/SKILL.md +1 -76
- package/skills/geo-fundamentals/SKILL.md +1 -76
- package/skills/git-pro/SKILL.md +1 -76
- package/skills/github-operations/SKILL.md +1 -76
- package/skills/gpt-taste/SKILL.md +1 -76
- package/skills/gsap-core/SKILL.md +1 -76
- package/skills/gsap-frameworks/SKILL.md +1 -76
- package/skills/gsap-performance/SKILL.md +1 -76
- package/skills/gsap-plugins/SKILL.md +1 -76
- package/skills/gsap-react/SKILL.md +1 -76
- package/skills/gsap-scrolltrigger/SKILL.md +1 -76
- package/skills/gsap-timeline/SKILL.md +1 -76
- package/skills/gsap-utils/SKILL.md +1 -76
- package/skills/harden/SKILL.md +1 -76
- package/skills/harness-protocol/SKILL.md +1 -76
- package/skills/i18n-localization/SKILL.md +1 -76
- package/skills/impeccable/SKILL.md +1 -76
- package/skills/improve-codebase-architecture/SKILL.md +1 -76
- package/skills/improve-ui/SKILL.md +1 -76
- package/skills/intelligent-routing/SKILL.md +2 -87
- package/skills/knowledge-graph/SKILL.md +1 -76
- package/skills/landing-page/SKILL.md +1 -76
- package/skills/lint-and-validate/SKILL.md +1 -76
- package/skills/llm-engineering/SKILL.md +1 -76
- package/skills/local-first/SKILL.md +1 -76
- package/skills/local-first-architecture/SKILL.md +1 -76
- package/skills/lottie-animation/SKILL.md +1 -76
- package/skills/marquee-loop/SKILL.md +1 -76
- package/skills/masked-reveal/SKILL.md +1 -76
- package/skills/mcp-builder/SKILL.md +1 -76
- package/skills/micro-interaction/SKILL.md +19 -87
- package/skills/mobile-design/SKILL.md +1 -76
- package/skills/monorepo-management/SKILL.md +1 -76
- package/skills/morphing-icons/SKILL.md +1 -76
- package/skills/motion-engineering/SKILL.md +1 -76
- package/skills/nextjs-react-expert/SKILL.md +1 -76
- package/skills/nodejs-best-practices/SKILL.md +1 -76
- package/skills/observability/SKILL.md +1 -76
- package/skills/opentelemetry-observability/SKILL.md +1 -75
- package/skills/page-transition-animation/SKILL.md +1 -76
- package/skills/parallel-agents/SKILL.md +1 -76
- package/skills/performance-profiling/SKILL.md +1 -76
- package/skills/plan-writing/SKILL.md +1 -76
- package/skills/platform-engineer/SKILL.md +1 -76
- package/skills/platform-engineering-opentofu/SKILL.md +1 -75
- package/skills/playwright-ai-e2e/SKILL.md +1 -75
- package/skills/playwright-best-practices/SKILL.md +1 -76
- package/skills/polish/SKILL.md +1 -76
- package/skills/powershell-windows/SKILL.md +1 -76
- package/skills/pricing-page/SKILL.md +1 -76
- package/skills/product-aware-heuristics/SKILL.md +1 -76
- package/skills/progressive-blur/SKILL.md +1 -76
- package/skills/project-idioms/SKILL.md +1 -76
- package/skills/property-based-testing/SKILL.md +1 -75
- package/skills/python-patterns/SKILL.md +1 -76
- package/skills/python-pro/SKILL.md +1 -76
- package/skills/quieter/SKILL.md +1 -76
- package/skills/react-doctor/SKILL.md +1 -76
- package/skills/react-specialist/SKILL.md +1 -76
- package/skills/readme-builder/SKILL.md +1 -76
- package/skills/realtime-patterns/SKILL.md +1 -76
- package/skills/red-team-tactics/SKILL.md +1 -76
- package/skills/redesign-skill/SKILL.md +1 -76
- package/skills/review-animations/SKILL.md +1 -76
- package/skills/rust-pro/SKILL.md +1 -76
- package/skills/seo-fundamentals/SKILL.md +1 -76
- package/skills/server-management/SKILL.md +1 -76
- package/skills/shadcn-ui-expert/SKILL.md +1 -76
- package/skills/shape/SKILL.md +1 -76
- package/skills/skill-creator/SKILL.md +127 -86
- package/skills/soft-skill/SKILL.md +1 -76
- package/skills/sounds-on-the-web/SKILL.md +1 -76
- package/skills/sql-pro/SKILL.md +1 -76
- package/skills/supabase-postgres-best-practices/SKILL.md +1 -76
- package/skills/svg-animation/SKILL.md +1 -76
- package/skills/swiftui-expert/SKILL.md +1 -76
- package/skills/swiss-design/SKILL.md +1 -76
- package/skills/system-design-pro/SKILL.md +1 -76
- package/skills/systematic-debugging/SKILL.md +2 -76
- package/skills/systematic-debugging/condition-based-waiting.md +14 -9
- package/skills/systematic-debugging/defense-in-depth.md +9 -3
- package/skills/systematic-debugging/root-cause-tracing.md +14 -0
- package/skills/tailwind-patterns/SKILL.md +1 -76
- package/skills/taste-skill/SKILL.md +1 -76
- package/skills/tdd-workflow/SKILL.md +8 -82
- package/skills/test-result-analyzer/SKILL.md +1 -76
- package/skills/testing-patterns/SKILL.md +1 -76
- package/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
- package/skills/thinking-protocol/SKILL.md +1 -77
- package/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
- package/skills/transitions-dev/SKILL.md +1 -76
- package/skills/trend-researcher/SKILL.md +1 -76
- package/skills/typescript-advanced/SKILL.md +1 -76
- package/skills/typeset/SKILL.md +1 -76
- package/skills/ui-reasoning-engine/SKILL.md +1 -76
- package/skills/ui-skill-packs/SKILL.md +1 -76
- package/skills/ui-skills-root/SKILL.md +1 -76
- package/skills/ui-ux-pro-max/SKILL.md +1 -76
- package/skills/ui-ux-researcher/SKILL.md +1 -76
- package/skills/vector-search-pgvector/SKILL.md +1 -75
- package/skills/verification-before-completion/SKILL.md +20 -91
- package/skills/vue-expert/SKILL.md +1 -76
- package/skills/vulnerability-scanner/SKILL.md +1 -76
- package/skills/web-accessibility-auditor/SKILL.md +1 -76
- package/skills/web-design-guidelines/SKILL.md +1 -76
- package/skills/web-quality-audit/SKILL.md +1 -76
- package/skills/webapp-testing/SKILL.md +1 -76
- package/skills/webgpu-performance/SKILL.md +1 -76
- package/skills/whimsy-injector/SKILL.md +1 -76
- package/skills/workflow-optimizer/SKILL.md +1 -76
- package/skills/zero-trust-passkeys/SKILL.md +1 -75
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: swiss-design
|
|
3
|
-
description: Use when International Typographic Style (Swiss Design) principles for web interfaces. Strict grid discipline, asymmetric layouts, bold typographic contrast, flush-left un-justified text, and mathematical negative space.
|
|
3
|
+
description: "Use when International Typographic Style (Swiss Design) principles for web interfaces. Strict grid discipline, asymmetric layouts, bold typographic contrast, flush-left un-justified text, and mathematical negative space."
|
|
4
4
|
version: 5.0.0
|
|
5
5
|
last-updated: 2026-09-13
|
|
6
6
|
skills:
|
|
@@ -15,42 +15,12 @@ scripts-binding:
|
|
|
15
15
|
|
|
16
16
|
# Swiss Design — International Typographic Style for Web
|
|
17
17
|
|
|
18
|
-
## Mandatory Pre-Flight Context Inspection
|
|
19
|
-
|
|
20
|
-
Before generating, refactoring, or reviewing code in the `swiss-design` domain, inspect these 5 critical parameters:
|
|
21
|
-
|
|
22
|
-
1. **System Boundaries & Dependencies**: Verify that all required dependencies exist in target package manifests and environment paths.
|
|
23
|
-
2. **Runtime Context & Platform Invariants**: Confirm target platform constraints (Node.js, Browser, Mobile OS, Edge runtime) before applying APIs.
|
|
24
|
-
3. **Execution Guardrails**: Identify potential side-effects, state mutations, and unhandled asynchronous exceptions.
|
|
25
|
-
4. **Validation & Type Contracts**: Validate input data schemas and strict type constraints across all module interfaces.
|
|
26
|
-
5. **Observability & Proof of Execution**: Ensure execution produces tangible verification signals (terminal output, tests, metrics).
|
|
27
|
-
|
|
28
|
-
## Activation Boundaries
|
|
29
|
-
|
|
30
|
-
- **Activate when:** Use when International Typographic Style (Swiss Design) principles for web interfaces. Strict grid discipline, asymmetric layouts, bold typographic contrast, flush-left un-justified text, and mathematical negative space.
|
|
31
|
-
- **DO NOT activate when:** The task falls outside the `swiss-design` domain or is managed by a different dedicated specialist.
|
|
32
|
-
|
|
33
|
-
## 🔁 Multi-Pass Execution Protocol
|
|
34
|
-
|
|
35
|
-
Execute all non-trivial tasks through this 7-pass cognitive loop:
|
|
36
|
-
|
|
37
|
-
| Pass | Phase | Core Action |
|
|
38
|
-
|:---|:---|:---|
|
|
39
|
-
| **Pass 1** | **Understand** | Deconstruct the user's explicit objective, implicit requirements, and platform constraints. |
|
|
40
|
-
| **Pass 2** | **Plan** | Decompose the task into smallest logical steps; map dependencies and required tool calls. |
|
|
41
|
-
| **Pass 3** | **Execute** | Implement the solution with production-grade craft, zero placeholders, and strict typing. |
|
|
42
|
-
| **Pass 4** | **Verify** | Run linters, unit tests, or compiler checks to validate structural correctness. |
|
|
43
|
-
| **Pass 5** | **Attack** | Perform an adversarial review searching for edge-case failures, race conditions, and traps. |
|
|
44
|
-
| **Pass 6** | **Improve** | Eliminate discovered friction, optimize performance, and harden error boundaries. |
|
|
45
|
-
| **Pass 7** | **Quality Gate** | Enforce Verification-Before-Completion (VBC) with concrete terminal proof before finalizing. |
|
|
46
|
-
|
|
47
18
|
---
|
|
48
19
|
|
|
49
20
|
## 🛠️ Technical Architecture & Reference Recipes
|
|
50
21
|
|
|
51
22
|
---
|
|
52
23
|
|
|
53
|
-
|
|
54
24
|
---
|
|
55
25
|
|
|
56
26
|
## 4 Swiss Design Pillars
|
|
@@ -72,48 +42,3 @@ Execute all non-trivial tasks through this 7-pass cognitive loop:
|
|
|
72
42
|
### 4. Mathematical Numbering & Labels
|
|
73
43
|
|
|
74
44
|
- Use small uppercase metadata badges (`SECTION 01 // OVERVIEW`) with tracking (`letter-spacing: 0.08em`) and monospace or tabular numbers (`font-variant-numeric: tabular-nums`).
|
|
75
|
-
|
|
76
|
-
---
|
|
77
|
-
|
|
78
|
-
## 🚨 Edge-Case & Failure Mode Matrix
|
|
79
|
-
|
|
80
|
-
| Scenario | Risk | Mitigation Strategy |
|
|
81
|
-
|:---|:---|:---|
|
|
82
|
-
| **Empty or Null Inputs** | Unhandled exception or unexpected rendering collapse | Enforce fallback guards, optional chaining, and explicit empty state handlers |
|
|
83
|
-
| **Network Timeout / Latency** | Hanging operations or duplicate side-effects | Implement bounded abort controllers, exponential backoff, and idempotency keys |
|
|
84
|
-
| **Concurrency / Race Conditions** | Stale state overwrite or inconsistent data mutations | Use atomic transactions, mutex locking, or cancel-on-resubmit controls |
|
|
85
|
-
| **Invalid Schema / Malformed Payload** | Downstream runtime errors or security injection | Validate boundary payloads with Zod/Pydantic schemas prior to execution |
|
|
86
|
-
| **Resource / Memory Saturation** | OOM errors, frame drops, or memory leaks | Clean up listeners, cancel active timers, and enforce pagination/virtualization |
|
|
87
|
-
|
|
88
|
-
---
|
|
89
|
-
|
|
90
|
-
## 🤖 LLM-Specific Traps Table
|
|
91
|
-
|
|
92
|
-
| Anti-Pattern | What AI Commonly Does Wrong | What Is Actually Correct |
|
|
93
|
-
|:---|:---|:---|
|
|
94
|
-
| **Uncontrolled Re-render Loop** | Mutating state inside render bodies or omitting hook dependencies | Wrap effects with explicit deps and isolate reactive derivations in useMemo |
|
|
95
|
-
| **Accessibility Neglect** | Interactive <div> without role="button", tabIndex, or onKeyDown | Use semantic <button> or provide ARIA role, keyboard handlers, and focus ring |
|
|
96
|
-
| **Layout Shift Flash** | Images/dynamic content without aspect-ratio or explicit dimensions | Enforce aspect-ratio or skeleton placeholders to guarantee zero CLS |
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
## 🏛️ Tribunal Verification & Guardrails
|
|
101
|
-
|
|
102
|
-
**Active Reviewers:** `frontend-reviewer` · `type-safety` · `ui-ux-auditor` · `complexity-reviewer`
|
|
103
|
-
**Slash Command:** `/review` or `/tribunal-full`
|
|
104
|
-
|
|
105
|
-
### ✅ Pre-Flight Self-Audit Checklist
|
|
106
|
-
|
|
107
|
-
```
|
|
108
|
-
✅ Are all component props strictly typed with zero implicit "any"?
|
|
109
|
-
✅ Are responsive breakpoints, fluid typography, and optical balance verified?
|
|
110
|
-
✅ Is accessibility (ARIA labels, keyboard focus, contrast) validated?
|
|
111
|
-
✅ Are re-renders minimized and state lifecycles cleanly separated?
|
|
112
|
-
✅ Did I verify all imported UI components and icon sets actually exist?
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
### 🛑 Verification-Before-Completion (VBC) Protocol
|
|
116
|
-
|
|
117
|
-
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
118
|
-
- ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
119
|
-
- ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing test suites, compiler success, or equivalent operational proof) that your output works as intended.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: system-design-pro
|
|
3
|
-
description: Use when Industry-level system design mastery for interviews and production. The 6-step design framework, scale estimation (DAU→QPS→storage→bandwidth), core building blocks (load balancers L4/L7, CDN, caches, queues), database selection matrix, CAP Theorem applied, and reference designs for URL shortener, rate limiter, Twitter feed, distributed cache, and notification system. Use when designing systems for scale, conducting architecture reviews, or preparing system design discussions.
|
|
3
|
+
description: "Use when Industry-level system design mastery for interviews and production. The 6-step design framework, scale estimation (DAU→QPS→storage→bandwidth), core building blocks (load balancers L4/L7, CDN, caches, queues), database selection matrix, CAP Theorem applied, and reference designs for URL shortener, rate limiter, Twitter feed, distributed cache, and notification system. Use when designing systems for scale, conducting architecture reviews, or preparing system design discussions."
|
|
4
4
|
version: 5.0.0
|
|
5
5
|
last-updated: 2026-09-13
|
|
6
6
|
skills:
|
|
@@ -15,42 +15,12 @@ scripts-binding:
|
|
|
15
15
|
|
|
16
16
|
# System Design Pro — Industry-Level Mastery
|
|
17
17
|
|
|
18
|
-
## Mandatory Pre-Flight Context Inspection
|
|
19
|
-
|
|
20
|
-
Before generating, refactoring, or reviewing code in the `system-design-pro` domain, inspect these 5 critical parameters:
|
|
21
|
-
|
|
22
|
-
1. **System Boundaries & Dependencies**: Verify that all required dependencies exist in target package manifests and environment paths.
|
|
23
|
-
2. **Runtime Context & Platform Invariants**: Confirm target platform constraints (Node.js, Browser, Mobile OS, Edge runtime) before applying APIs.
|
|
24
|
-
3. **Execution Guardrails**: Identify potential side-effects, state mutations, and unhandled asynchronous exceptions.
|
|
25
|
-
4. **Validation & Type Contracts**: Validate input data schemas and strict type constraints across all module interfaces.
|
|
26
|
-
5. **Observability & Proof of Execution**: Ensure execution produces tangible verification signals (terminal output, tests, metrics).
|
|
27
|
-
|
|
28
|
-
## Activation Boundaries
|
|
29
|
-
|
|
30
|
-
- **Activate when:** Use when Industry-level system design mastery for interviews and production. The 6-step design framework, scale estimation (DAU→QPS→storage→bandwidth), core building blocks (load balancers L4/L7, CDN, caches, queues), database selection matrix, CAP Theorem applied, and reference designs for URL shortener, rate limiter, Twitter feed, distributed cache, and notification system. Use when designing systems for scale, conducting architecture reviews, or preparing system design discussions.
|
|
31
|
-
- **DO NOT activate when:** The task falls outside the `system-design-pro` domain or is managed by a different dedicated specialist.
|
|
32
|
-
|
|
33
|
-
## 🔁 Multi-Pass Execution Protocol
|
|
34
|
-
|
|
35
|
-
Execute all non-trivial tasks through this 7-pass cognitive loop:
|
|
36
|
-
|
|
37
|
-
| Pass | Phase | Core Action |
|
|
38
|
-
|:---|:---|:---|
|
|
39
|
-
| **Pass 1** | **Understand** | Deconstruct the user's explicit objective, implicit requirements, and platform constraints. |
|
|
40
|
-
| **Pass 2** | **Plan** | Decompose the task into smallest logical steps; map dependencies and required tool calls. |
|
|
41
|
-
| **Pass 3** | **Execute** | Implement the solution with production-grade craft, zero placeholders, and strict typing. |
|
|
42
|
-
| **Pass 4** | **Verify** | Run linters, unit tests, or compiler checks to validate structural correctness. |
|
|
43
|
-
| **Pass 5** | **Attack** | Perform an adversarial review searching for edge-case failures, race conditions, and traps. |
|
|
44
|
-
| **Pass 6** | **Improve** | Eliminate discovered friction, optimize performance, and harden error boundaries. |
|
|
45
|
-
| **Pass 7** | **Quality Gate** | Enforce Verification-Before-Completion (VBC) with concrete terminal proof before finalizing. |
|
|
46
|
-
|
|
47
18
|
---
|
|
48
19
|
|
|
49
20
|
## 🛠️ Technical Architecture & Reference Recipes
|
|
50
21
|
|
|
51
22
|
---
|
|
52
23
|
|
|
53
|
-
|
|
54
24
|
## Hallucination Traps (Read First)
|
|
55
25
|
|
|
56
26
|
- ❌ "Just use microservices" for <10K RPM → ✅ Microservices add operational complexity that kills small teams. Start monolith.
|
|
@@ -346,48 +316,3 @@ Failure handling:
|
|
|
346
316
|
- Exponential backoff: 1s → 10s → 100s → dead letter
|
|
347
317
|
- Alert on dead letter queue depth > threshold
|
|
348
318
|
```
|
|
349
|
-
|
|
350
|
-
---
|
|
351
|
-
|
|
352
|
-
## 🚨 Edge-Case & Failure Mode Matrix
|
|
353
|
-
|
|
354
|
-
| Scenario | Risk | Mitigation Strategy |
|
|
355
|
-
|:---|:---|:---|
|
|
356
|
-
| **Empty or Null Inputs** | Unhandled exception or unexpected rendering collapse | Enforce fallback guards, optional chaining, and explicit empty state handlers |
|
|
357
|
-
| **Network Timeout / Latency** | Hanging operations or duplicate side-effects | Implement bounded abort controllers, exponential backoff, and idempotency keys |
|
|
358
|
-
| **Concurrency / Race Conditions** | Stale state overwrite or inconsistent data mutations | Use atomic transactions, mutex locking, or cancel-on-resubmit controls |
|
|
359
|
-
| **Invalid Schema / Malformed Payload** | Downstream runtime errors or security injection | Validate boundary payloads with Zod/Pydantic schemas prior to execution |
|
|
360
|
-
| **Resource / Memory Saturation** | OOM errors, frame drops, or memory leaks | Clean up listeners, cancel active timers, and enforce pagination/virtualization |
|
|
361
|
-
|
|
362
|
-
---
|
|
363
|
-
|
|
364
|
-
## 🤖 LLM-Specific Traps Table
|
|
365
|
-
|
|
366
|
-
| Anti-Pattern | What AI Commonly Does Wrong | What Is Actually Correct |
|
|
367
|
-
|:---|:---|:---|
|
|
368
|
-
| **Hallucinated Tool Capabilities** | Assuming an external library or CLI command exists without verification | Run a verification check or verify package.json before referencing tools |
|
|
369
|
-
| **Premature Completion Claim** | Declaring a task finished because code was generated without verification | Execute tests, linters, or terminal commands to provide concrete proof |
|
|
370
|
-
| **Context Bloat Dumping** | Pasting entire multi-thousand-line files into prompt context | Extract targeted excerpts, symbols, and signatures to preserve tokens |
|
|
371
|
-
|
|
372
|
-
---
|
|
373
|
-
|
|
374
|
-
## 🏛️ Tribunal Verification & Guardrails
|
|
375
|
-
|
|
376
|
-
**Active Reviewers:** `orchestrator` · `agent-organizer` · `logic-reviewer`
|
|
377
|
-
**Slash Command:** `/review` or `/tribunal-full`
|
|
378
|
-
|
|
379
|
-
### ✅ Pre-Flight Self-Audit Checklist
|
|
380
|
-
|
|
381
|
-
```
|
|
382
|
-
✅ Did I deconstruct the root objective before proposing architecture?
|
|
383
|
-
✅ Did I identify dependencies, bottlenecks, and parallelizable sub-tasks?
|
|
384
|
-
✅ Did I avoid over-engineering and select the simplest effective pattern?
|
|
385
|
-
✅ Did I verify assumptions with concrete file reads instead of speculation?
|
|
386
|
-
✅ Did I establish measurable verification criteria before completion?
|
|
387
|
-
```
|
|
388
|
-
|
|
389
|
-
### 🛑 Verification-Before-Completion (VBC) Protocol
|
|
390
|
-
|
|
391
|
-
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
392
|
-
- ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
393
|
-
- ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing test suites, compiler success, or equivalent operational proof) that your output works as intended.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: systematic-debugging
|
|
3
|
-
description: Use when Systematic debugging framework. Root-cause isolation, 4-phase methodology, hypothesis testing, log tracing, avoiding shotgun-surgery, memory allocation analysis, and empirical evidence gathering. Use when debugging complex, highly-coupled, or elusive bugs across mixed execution environments.
|
|
3
|
+
description: "Use when Systematic debugging framework. Root-cause isolation, 4-phase methodology, hypothesis testing, log tracing, avoiding shotgun-surgery, memory allocation analysis, and empirical evidence gathering. Use when debugging complex, highly-coupled, or elusive bugs across mixed execution environments."
|
|
4
4
|
version: 5.0.0
|
|
5
5
|
last-updated: 2026-09-13
|
|
6
6
|
skills:
|
|
@@ -16,42 +16,12 @@ scripts-binding:
|
|
|
16
16
|
|
|
17
17
|
# Systematic Debugging — Root Cause Mastery
|
|
18
18
|
|
|
19
|
-
## Mandatory Pre-Flight Context Inspection
|
|
20
|
-
|
|
21
|
-
Before generating, refactoring, or reviewing code in the `systematic-debugging` domain, inspect these 5 critical parameters:
|
|
22
|
-
|
|
23
|
-
1. **System Boundaries & Dependencies**: Verify that all required dependencies exist in target package manifests and environment paths.
|
|
24
|
-
2. **Runtime Context & Platform Invariants**: Confirm target platform constraints (Node.js, Browser, Mobile OS, Edge runtime) before applying APIs.
|
|
25
|
-
3. **Execution Guardrails**: Identify potential side-effects, state mutations, and unhandled asynchronous exceptions.
|
|
26
|
-
4. **Validation & Type Contracts**: Validate input data schemas and strict type constraints across all module interfaces.
|
|
27
|
-
5. **Observability & Proof of Execution**: Ensure execution produces tangible verification signals (terminal output, tests, metrics).
|
|
28
|
-
|
|
29
|
-
## Activation Boundaries
|
|
30
|
-
|
|
31
|
-
- **Activate when:** Use when Systematic debugging framework. Root-cause isolation, 4-phase methodology, hypothesis testing, log tracing, avoiding shotgun-surgery, memory allocation analysis, and empirical evidence gathering. Use when debugging complex, highly-coupled, or elusive bugs across mixed execution environments.
|
|
32
|
-
- **DO NOT activate when:** The task falls outside the `systematic-debugging` domain or is managed by a different dedicated specialist.
|
|
33
|
-
|
|
34
|
-
## 🔁 Multi-Pass Execution Protocol
|
|
35
|
-
|
|
36
|
-
Execute all non-trivial tasks through this 7-pass cognitive loop:
|
|
37
|
-
|
|
38
|
-
| Pass | Phase | Core Action |
|
|
39
|
-
|:---|:---|:---|
|
|
40
|
-
| **Pass 1** | **Understand** | Deconstruct the user's explicit objective, implicit requirements, and platform constraints. |
|
|
41
|
-
| **Pass 2** | **Plan** | Decompose the task into smallest logical steps; map dependencies and required tool calls. |
|
|
42
|
-
| **Pass 3** | **Execute** | Implement the solution with production-grade craft, zero placeholders, and strict typing. |
|
|
43
|
-
| **Pass 4** | **Verify** | Run linters, unit tests, or compiler checks to validate structural correctness. |
|
|
44
|
-
| **Pass 5** | **Attack** | Perform an adversarial review searching for edge-case failures, race conditions, and traps. |
|
|
45
|
-
| **Pass 6** | **Improve** | Eliminate discovered friction, optimize performance, and harden error boundaries. |
|
|
46
|
-
| **Pass 7** | **Quality Gate** | Enforce Verification-Before-Completion (VBC) with concrete terminal proof before finalizing. |
|
|
47
|
-
|
|
48
19
|
---
|
|
49
20
|
|
|
50
21
|
## 🛠️ Technical Architecture & Reference Recipes
|
|
51
22
|
|
|
52
23
|
---
|
|
53
24
|
|
|
54
|
-
|
|
55
25
|
## Hallucination Traps (Read First)
|
|
56
26
|
|
|
57
27
|
- ❌ Changing multiple things at once to fix a bug -> ✅ Change ONE variable at a time; multiple changes make it impossible to identify the fix
|
|
@@ -97,6 +67,7 @@ Never jump straight into modifying code when a bug is reported.
|
|
|
97
67
|
## 2. Specialized Diagnostic Techniques
|
|
98
68
|
|
|
99
69
|
When debugging intricate or elusive bugs, reference these specialized technique guides:
|
|
70
|
+
|
|
100
71
|
- **Root Cause Tracing (`./root-cause-tracing.md`):** Trace backwards up the call stack to identify where invalid data originated, rather than fixing where the error appears.
|
|
101
72
|
- **Condition-Based Waiting (`./condition-based-waiting.md`):** Eliminate flaky tests and timing bugs by waiting for specific deterministic state conditions instead of arbitrary `setTimeout` or `sleep` calls.
|
|
102
73
|
- **Defense in Depth (`./defense-in-depth.md`):** Add validation and runtime assertions at multiple component boundaries.
|
|
@@ -151,48 +122,3 @@ Do not skim. Stack traces tell the exact sequence of destruction.
|
|
|
151
122
|
1. **Top line:** The final fatal blow (e.g., `TypeError: Cannot read properties of undefined (reading 'map')`).
|
|
152
123
|
2. **First Application Function:** Scroll down past `node_modules` and framework internals. Find the absolute top-most function call that YOU wrote (e.g., `at UserList (src/components/UserList.tsx:45)`).
|
|
153
124
|
3. **The Parameter Conclusion:** Therefore, line 45 invoked `.map` on a variable that was `undefined`. Why did the parent layer pass `undefined` instead of `[]`?
|
|
154
|
-
|
|
155
|
-
---
|
|
156
|
-
|
|
157
|
-
## 🚨 Edge-Case & Failure Mode Matrix
|
|
158
|
-
|
|
159
|
-
| Scenario | Risk | Mitigation Strategy |
|
|
160
|
-
|:---|:---|:---|
|
|
161
|
-
| **Empty or Null Inputs** | Unhandled exception or unexpected rendering collapse | Enforce fallback guards, optional chaining, and explicit empty state handlers |
|
|
162
|
-
| **Network Timeout / Latency** | Hanging operations or duplicate side-effects | Implement bounded abort controllers, exponential backoff, and idempotency keys |
|
|
163
|
-
| **Concurrency / Race Conditions** | Stale state overwrite or inconsistent data mutations | Use atomic transactions, mutex locking, or cancel-on-resubmit controls |
|
|
164
|
-
| **Invalid Schema / Malformed Payload** | Downstream runtime errors or security injection | Validate boundary payloads with Zod/Pydantic schemas prior to execution |
|
|
165
|
-
| **Resource / Memory Saturation** | OOM errors, frame drops, or memory leaks | Clean up listeners, cancel active timers, and enforce pagination/virtualization |
|
|
166
|
-
|
|
167
|
-
---
|
|
168
|
-
|
|
169
|
-
## 🤖 LLM-Specific Traps Table
|
|
170
|
-
|
|
171
|
-
| Anti-Pattern | What AI Commonly Does Wrong | What Is Actually Correct |
|
|
172
|
-
|:---|:---|:---|
|
|
173
|
-
| **Hallucinated Tool Capabilities** | Assuming an external library or CLI command exists without verification | Run a verification check or verify package.json before referencing tools |
|
|
174
|
-
| **Premature Completion Claim** | Declaring a task finished because code was generated without verification | Execute tests, linters, or terminal commands to provide concrete proof |
|
|
175
|
-
| **Context Bloat Dumping** | Pasting entire multi-thousand-line files into prompt context | Extract targeted excerpts, symbols, and signatures to preserve tokens |
|
|
176
|
-
|
|
177
|
-
---
|
|
178
|
-
|
|
179
|
-
## 🏛️ Tribunal Verification & Guardrails
|
|
180
|
-
|
|
181
|
-
**Active Reviewers:** `orchestrator` · `agent-organizer` · `logic-reviewer`
|
|
182
|
-
**Slash Command:** `/review` or `/tribunal-full`
|
|
183
|
-
|
|
184
|
-
### ✅ Pre-Flight Self-Audit Checklist
|
|
185
|
-
|
|
186
|
-
```
|
|
187
|
-
✅ Did I deconstruct the root objective before proposing architecture?
|
|
188
|
-
✅ Did I identify dependencies, bottlenecks, and parallelizable sub-tasks?
|
|
189
|
-
✅ Did I avoid over-engineering and select the simplest effective pattern?
|
|
190
|
-
✅ Did I verify assumptions with concrete file reads instead of speculation?
|
|
191
|
-
✅ Did I establish measurable verification criteria before completion?
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
### 🛑 Verification-Before-Completion (VBC) Protocol
|
|
195
|
-
|
|
196
|
-
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
197
|
-
- ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
198
|
-
- ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing test suites, compiler success, or equivalent operational proof) that your output works as intended.
|
|
@@ -22,12 +22,14 @@ digraph when_to_use {
|
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
**Use when:**
|
|
25
|
+
|
|
25
26
|
- Tests have arbitrary delays (`setTimeout`, `sleep`, `time.sleep()`)
|
|
26
27
|
- Tests are flaky (pass sometimes, fail under load)
|
|
27
28
|
- Tests timeout when run in parallel
|
|
28
29
|
- Waiting for async operations to complete
|
|
29
30
|
|
|
30
31
|
**Don't use when:**
|
|
32
|
+
|
|
31
33
|
- Testing actual timing behavior (debounce, throttle intervals)
|
|
32
34
|
- Always document WHY if using arbitrary timeout
|
|
33
35
|
|
|
@@ -47,22 +49,23 @@ expect(result).toBeDefined();
|
|
|
47
49
|
|
|
48
50
|
## Quick Patterns
|
|
49
51
|
|
|
50
|
-
| Scenario
|
|
51
|
-
|
|
52
|
-
| Wait for event
|
|
53
|
-
| Wait for state
|
|
54
|
-
| Wait for count
|
|
55
|
-
| Wait for file
|
|
56
|
-
| Complex condition | `waitFor(() => obj.ready && obj.value > 10)`
|
|
52
|
+
| Scenario | Pattern |
|
|
53
|
+
| ----------------- | ---------------------------------------------------- |
|
|
54
|
+
| Wait for event | `waitFor(() => events.find(e => e.type === 'DONE'))` |
|
|
55
|
+
| Wait for state | `waitFor(() => machine.state === 'ready')` |
|
|
56
|
+
| Wait for count | `waitFor(() => items.length >= 5)` |
|
|
57
|
+
| Wait for file | `waitFor(() => fs.existsSync(path))` |
|
|
58
|
+
| Complex condition | `waitFor(() => obj.ready && obj.value > 10)` |
|
|
57
59
|
|
|
58
60
|
## Implementation
|
|
59
61
|
|
|
60
62
|
Generic polling function:
|
|
63
|
+
|
|
61
64
|
```typescript
|
|
62
65
|
async function waitFor<T>(
|
|
63
66
|
condition: () => T | undefined | null | false,
|
|
64
67
|
description: string,
|
|
65
|
-
timeoutMs = 5000
|
|
68
|
+
timeoutMs = 5000,
|
|
66
69
|
): Promise<T> {
|
|
67
70
|
const startTime = Date.now();
|
|
68
71
|
|
|
@@ -97,11 +100,12 @@ See `condition-based-waiting-example.ts` in this directory for complete implemen
|
|
|
97
100
|
```typescript
|
|
98
101
|
// Tool ticks every 100ms - need 2 ticks to verify partial output
|
|
99
102
|
await waitForEvent(manager, 'TOOL_STARTED'); // First: wait for condition
|
|
100
|
-
await new Promise(r => setTimeout(r, 200));
|
|
103
|
+
await new Promise(r => setTimeout(r, 200)); // Then: wait for timed behavior
|
|
101
104
|
// 200ms = 2 ticks at 100ms intervals - documented and justified
|
|
102
105
|
```
|
|
103
106
|
|
|
104
107
|
**Requirements:**
|
|
108
|
+
|
|
105
109
|
1. First wait for triggering condition
|
|
106
110
|
2. Based on known timing (not guessing)
|
|
107
111
|
3. Comment explaining WHY
|
|
@@ -109,6 +113,7 @@ await new Promise(r => setTimeout(r, 200)); // Then: wait for timed behavior
|
|
|
109
113
|
## Real-World Impact
|
|
110
114
|
|
|
111
115
|
From debugging session (2025-10-03):
|
|
116
|
+
|
|
112
117
|
- Fixed 15 flaky tests across 3 files
|
|
113
118
|
- Pass rate: 60% → 100%
|
|
114
119
|
- Execution time: 40% faster
|
|
@@ -12,6 +12,7 @@ Single validation: "We fixed the bug"
|
|
|
12
12
|
Multiple layers: "We made the bug impossible"
|
|
13
13
|
|
|
14
14
|
Different layers catch different cases:
|
|
15
|
+
|
|
15
16
|
- Entry validation catches most bugs
|
|
16
17
|
- Business logic catches edge cases
|
|
17
18
|
- Environment guards prevent context-specific dangers
|
|
@@ -20,6 +21,7 @@ Different layers catch different cases:
|
|
|
20
21
|
## The Four Layers
|
|
21
22
|
|
|
22
23
|
### Layer 1: Entry Point Validation
|
|
24
|
+
|
|
23
25
|
**Purpose:** Reject obviously invalid input at API boundary
|
|
24
26
|
|
|
25
27
|
```typescript
|
|
@@ -38,6 +40,7 @@ function createProject(name: string, workingDirectory: string) {
|
|
|
38
40
|
```
|
|
39
41
|
|
|
40
42
|
### Layer 2: Business Logic Validation
|
|
43
|
+
|
|
41
44
|
**Purpose:** Ensure data makes sense for this operation
|
|
42
45
|
|
|
43
46
|
```typescript
|
|
@@ -50,6 +53,7 @@ function initializeWorkspace(projectDir: string, sessionId: string) {
|
|
|
50
53
|
```
|
|
51
54
|
|
|
52
55
|
### Layer 3: Environment Guards
|
|
56
|
+
|
|
53
57
|
**Purpose:** Prevent dangerous operations in specific contexts
|
|
54
58
|
|
|
55
59
|
```typescript
|
|
@@ -60,9 +64,7 @@ async function gitInit(directory: string) {
|
|
|
60
64
|
const tmpDir = normalize(resolve(tmpdir()));
|
|
61
65
|
|
|
62
66
|
if (!normalized.startsWith(tmpDir)) {
|
|
63
|
-
throw new Error(
|
|
64
|
-
`Refusing git init outside temp dir during tests: ${directory}`
|
|
65
|
-
);
|
|
67
|
+
throw new Error(`Refusing git init outside temp dir during tests: ${directory}`);
|
|
66
68
|
}
|
|
67
69
|
}
|
|
68
70
|
// ... proceed
|
|
@@ -70,6 +72,7 @@ async function gitInit(directory: string) {
|
|
|
70
72
|
```
|
|
71
73
|
|
|
72
74
|
### Layer 4: Debug Instrumentation
|
|
75
|
+
|
|
73
76
|
**Purpose:** Capture context for forensics
|
|
74
77
|
|
|
75
78
|
```typescript
|
|
@@ -98,12 +101,14 @@ When you find a bug:
|
|
|
98
101
|
Bug: Empty `projectDir` caused `git init` in source code
|
|
99
102
|
|
|
100
103
|
**Data flow:**
|
|
104
|
+
|
|
101
105
|
1. Test setup → empty string
|
|
102
106
|
2. `Project.create(name, '')`
|
|
103
107
|
3. `WorkspaceManager.createWorkspace('')`
|
|
104
108
|
4. `git init` runs in `process.cwd()`
|
|
105
109
|
|
|
106
110
|
**Four layers added:**
|
|
111
|
+
|
|
107
112
|
- Layer 1: `Project.create()` validates not empty/exists/writable
|
|
108
113
|
- Layer 2: `WorkspaceManager` validates projectDir not empty
|
|
109
114
|
- Layer 3: `WorktreeManager` refuses git init outside tmpdir in tests
|
|
@@ -114,6 +119,7 @@ Bug: Empty `projectDir` caused `git init` in source code
|
|
|
114
119
|
## Key Insight
|
|
115
120
|
|
|
116
121
|
All four layers were necessary. During testing, each layer caught bugs the others missed:
|
|
122
|
+
|
|
117
123
|
- Different code paths bypassed entry validation
|
|
118
124
|
- Mocks bypassed business logic checks
|
|
119
125
|
- Edge cases on different platforms needed environment guards
|
|
@@ -24,6 +24,7 @@ digraph when_to_use {
|
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
**Use when:**
|
|
27
|
+
|
|
27
28
|
- Error happens deep in execution (not at entry point)
|
|
28
29
|
- Stack trace shows long call chain
|
|
29
30
|
- Unclear where invalid data originated
|
|
@@ -32,17 +33,21 @@ digraph when_to_use {
|
|
|
32
33
|
## The Tracing Process
|
|
33
34
|
|
|
34
35
|
### 1. Observe the Symptom
|
|
36
|
+
|
|
35
37
|
```
|
|
36
38
|
Error: git init failed in ~/project/packages/core
|
|
37
39
|
```
|
|
38
40
|
|
|
39
41
|
### 2. Find Immediate Cause
|
|
42
|
+
|
|
40
43
|
**What code directly causes this?**
|
|
44
|
+
|
|
41
45
|
```typescript
|
|
42
46
|
await execFileAsync('git', ['init'], { cwd: projectDir });
|
|
43
47
|
```
|
|
44
48
|
|
|
45
49
|
### 3. Ask: What Called This?
|
|
50
|
+
|
|
46
51
|
```typescript
|
|
47
52
|
WorktreeManager.createSessionWorktree(projectDir, sessionId)
|
|
48
53
|
→ called by Session.initializeWorkspace()
|
|
@@ -51,13 +56,17 @@ WorktreeManager.createSessionWorktree(projectDir, sessionId)
|
|
|
51
56
|
```
|
|
52
57
|
|
|
53
58
|
### 4. Keep Tracing Up
|
|
59
|
+
|
|
54
60
|
**What value was passed?**
|
|
61
|
+
|
|
55
62
|
- `projectDir = ''` (empty string!)
|
|
56
63
|
- Empty string as `cwd` resolves to `process.cwd()`
|
|
57
64
|
- That's the source code directory!
|
|
58
65
|
|
|
59
66
|
### 5. Find Original Trigger
|
|
67
|
+
|
|
60
68
|
**Where did empty string come from?**
|
|
69
|
+
|
|
61
70
|
```typescript
|
|
62
71
|
const context = setupCoreTest(); // Returns { tempDir: '' }
|
|
63
72
|
Project.create('name', context.tempDir); // Accessed before beforeEach!
|
|
@@ -85,11 +94,13 @@ async function gitInit(directory: string) {
|
|
|
85
94
|
**Critical:** Use `console.error()` in tests (not logger - may not show)
|
|
86
95
|
|
|
87
96
|
**Run and capture:**
|
|
97
|
+
|
|
88
98
|
```bash
|
|
89
99
|
npm test 2>&1 | grep 'DEBUG git init'
|
|
90
100
|
```
|
|
91
101
|
|
|
92
102
|
**Analyze stack traces:**
|
|
103
|
+
|
|
93
104
|
- Look for test file names
|
|
94
105
|
- Find the line number triggering the call
|
|
95
106
|
- Identify the pattern (same test? same parameter?)
|
|
@@ -111,6 +122,7 @@ Runs tests one-by-one, stops at first polluter. See script for usage.
|
|
|
111
122
|
**Symptom:** `.git` created in `packages/core/` (source code)
|
|
112
123
|
|
|
113
124
|
**Trace chain:**
|
|
125
|
+
|
|
114
126
|
1. `git init` runs in `process.cwd()` ← empty cwd parameter
|
|
115
127
|
2. WorktreeManager called with empty projectDir
|
|
116
128
|
3. Session.create() passed empty string
|
|
@@ -122,6 +134,7 @@ Runs tests one-by-one, stops at first polluter. See script for usage.
|
|
|
122
134
|
**Fix:** Made tempDir a getter that throws if accessed before beforeEach
|
|
123
135
|
|
|
124
136
|
**Also added defense-in-depth:**
|
|
137
|
+
|
|
125
138
|
- Layer 1: Project.create() validates directory
|
|
126
139
|
- Layer 2: WorkspaceManager validates not empty
|
|
127
140
|
- Layer 3: NODE_ENV guard refuses git init outside tmpdir
|
|
@@ -163,6 +176,7 @@ digraph principle {
|
|
|
163
176
|
## Real-World Impact
|
|
164
177
|
|
|
165
178
|
From debugging session (2025-10-03):
|
|
179
|
+
|
|
166
180
|
- Found root cause through 5-level trace
|
|
167
181
|
- Fixed at source (getter validation)
|
|
168
182
|
- Added 4 layers of defense
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: tailwind-patterns
|
|
3
|
-
description: Use when Tailwind CSS v4+ mastery. CSS-first configuration, @theme directive, container queries, scroll-driven animations, logical properties, clamp(), fluid typography, responsive design, dark mode, custom variants, component extraction, and performance optimization. Use when styling with Tailwind, building design systems, or optimizing CSS output.
|
|
3
|
+
description: "Use when Tailwind CSS v4+ mastery. CSS-first configuration, @theme directive, container queries, scroll-driven animations, logical properties, clamp(), fluid typography, responsive design, dark mode, custom variants, component extraction, and performance optimization. Use when styling with Tailwind, building design systems, or optimizing CSS output."
|
|
4
4
|
version: 5.0.0
|
|
5
5
|
last-updated: 2026-09-13
|
|
6
6
|
skills:
|
|
@@ -15,42 +15,12 @@ scripts-binding:
|
|
|
15
15
|
|
|
16
16
|
# Tailwind CSS v4+ — CSS-First Mastery
|
|
17
17
|
|
|
18
|
-
## Mandatory Pre-Flight Context Inspection
|
|
19
|
-
|
|
20
|
-
Before generating, refactoring, or reviewing code in the `tailwind-patterns` domain, inspect these 5 critical parameters:
|
|
21
|
-
|
|
22
|
-
1. **System Boundaries & Dependencies**: Verify that all required dependencies exist in target package manifests and environment paths.
|
|
23
|
-
2. **Runtime Context & Platform Invariants**: Confirm target platform constraints (Node.js, Browser, Mobile OS, Edge runtime) before applying APIs.
|
|
24
|
-
3. **Execution Guardrails**: Identify potential side-effects, state mutations, and unhandled asynchronous exceptions.
|
|
25
|
-
4. **Validation & Type Contracts**: Validate input data schemas and strict type constraints across all module interfaces.
|
|
26
|
-
5. **Observability & Proof of Execution**: Ensure execution produces tangible verification signals (terminal output, tests, metrics).
|
|
27
|
-
|
|
28
|
-
## Activation Boundaries
|
|
29
|
-
|
|
30
|
-
- **Activate when:** Use when Tailwind CSS v4+ mastery. CSS-first configuration, @theme directive, container queries, scroll-driven animations, logical properties, clamp(), fluid typography, responsive design, dark mode, custom variants, component extraction, and performance optimization. Use when styling with Tailwind, building design systems, or optimizing CSS output.
|
|
31
|
-
- **DO NOT activate when:** The task falls outside the `tailwind-patterns` domain or is managed by a different dedicated specialist.
|
|
32
|
-
|
|
33
|
-
## 🔁 Multi-Pass Execution Protocol
|
|
34
|
-
|
|
35
|
-
Execute all non-trivial tasks through this 7-pass cognitive loop:
|
|
36
|
-
|
|
37
|
-
| Pass | Phase | Core Action |
|
|
38
|
-
|:---|:---|:---|
|
|
39
|
-
| **Pass 1** | **Understand** | Deconstruct the user's explicit objective, implicit requirements, and platform constraints. |
|
|
40
|
-
| **Pass 2** | **Plan** | Decompose the task into smallest logical steps; map dependencies and required tool calls. |
|
|
41
|
-
| **Pass 3** | **Execute** | Implement the solution with production-grade craft, zero placeholders, and strict typing. |
|
|
42
|
-
| **Pass 4** | **Verify** | Run linters, unit tests, or compiler checks to validate structural correctness. |
|
|
43
|
-
| **Pass 5** | **Attack** | Perform an adversarial review searching for edge-case failures, race conditions, and traps. |
|
|
44
|
-
| **Pass 6** | **Improve** | Eliminate discovered friction, optimize performance, and harden error boundaries. |
|
|
45
|
-
| **Pass 7** | **Quality Gate** | Enforce Verification-Before-Completion (VBC) with concrete terminal proof before finalizing. |
|
|
46
|
-
|
|
47
18
|
---
|
|
48
19
|
|
|
49
20
|
## 🛠️ Technical Architecture & Reference Recipes
|
|
50
21
|
|
|
51
22
|
---
|
|
52
23
|
|
|
53
|
-
|
|
54
24
|
---
|
|
55
25
|
|
|
56
26
|
## v4 Configuration (CSS-First)
|
|
@@ -611,48 +581,3 @@ Execute all non-trivial tasks through this 7-pass cognitive loop:
|
|
|
611
581
|
Accessible button
|
|
612
582
|
</button>
|
|
613
583
|
```
|
|
614
|
-
|
|
615
|
-
---
|
|
616
|
-
|
|
617
|
-
## 🚨 Edge-Case & Failure Mode Matrix
|
|
618
|
-
|
|
619
|
-
| Scenario | Risk | Mitigation Strategy |
|
|
620
|
-
|:---|:---|:---|
|
|
621
|
-
| **Empty or Null Inputs** | Unhandled exception or unexpected rendering collapse | Enforce fallback guards, optional chaining, and explicit empty state handlers |
|
|
622
|
-
| **Network Timeout / Latency** | Hanging operations or duplicate side-effects | Implement bounded abort controllers, exponential backoff, and idempotency keys |
|
|
623
|
-
| **Concurrency / Race Conditions** | Stale state overwrite or inconsistent data mutations | Use atomic transactions, mutex locking, or cancel-on-resubmit controls |
|
|
624
|
-
| **Invalid Schema / Malformed Payload** | Downstream runtime errors or security injection | Validate boundary payloads with Zod/Pydantic schemas prior to execution |
|
|
625
|
-
| **Resource / Memory Saturation** | OOM errors, frame drops, or memory leaks | Clean up listeners, cancel active timers, and enforce pagination/virtualization |
|
|
626
|
-
|
|
627
|
-
---
|
|
628
|
-
|
|
629
|
-
## 🤖 LLM-Specific Traps Table
|
|
630
|
-
|
|
631
|
-
| Anti-Pattern | What AI Commonly Does Wrong | What Is Actually Correct |
|
|
632
|
-
|:---|:---|:---|
|
|
633
|
-
| **Uncontrolled Re-render Loop** | Mutating state inside render bodies or omitting hook dependencies | Wrap effects with explicit deps and isolate reactive derivations in useMemo |
|
|
634
|
-
| **Accessibility Neglect** | Interactive <div> without role="button", tabIndex, or onKeyDown | Use semantic <button> or provide ARIA role, keyboard handlers, and focus ring |
|
|
635
|
-
| **Layout Shift Flash** | Images/dynamic content without aspect-ratio or explicit dimensions | Enforce aspect-ratio or skeleton placeholders to guarantee zero CLS |
|
|
636
|
-
|
|
637
|
-
---
|
|
638
|
-
|
|
639
|
-
## 🏛️ Tribunal Verification & Guardrails
|
|
640
|
-
|
|
641
|
-
**Active Reviewers:** `frontend-reviewer` · `type-safety` · `ui-ux-auditor` · `complexity-reviewer`
|
|
642
|
-
**Slash Command:** `/review` or `/tribunal-full`
|
|
643
|
-
|
|
644
|
-
### ✅ Pre-Flight Self-Audit Checklist
|
|
645
|
-
|
|
646
|
-
```
|
|
647
|
-
✅ Are all component props strictly typed with zero implicit "any"?
|
|
648
|
-
✅ Are responsive breakpoints, fluid typography, and optical balance verified?
|
|
649
|
-
✅ Is accessibility (ARIA labels, keyboard focus, contrast) validated?
|
|
650
|
-
✅ Are re-renders minimized and state lifecycles cleanly separated?
|
|
651
|
-
✅ Did I verify all imported UI components and icon sets actually exist?
|
|
652
|
-
```
|
|
653
|
-
|
|
654
|
-
### 🛑 Verification-Before-Completion (VBC) Protocol
|
|
655
|
-
|
|
656
|
-
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
657
|
-
- ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
658
|
-
- ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing test suites, compiler success, or equivalent operational proof) that your output works as intended.
|