tribunal-kit 7.0.0 โ 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/ARCHITECTURE.md +2 -2
- package/.agent/config/claude.json +18 -0
- package/.agent/config/plugin.json +102 -0
- package/.agent/config/slash-commands.json +103 -0
- package/.agent/config/specialist-registry.json +415 -0
- package/.agent/config/system-prompt.md +244 -0
- package/.agent/history/architecture-graph.yaml +302 -3
- package/.agent/history/graph-cache.json +515 -45
- package/.agent/history/memory.db +0 -0
- package/.agent/history/snapshots/bin__adapter-install.js.json +13 -0
- package/.agent/history/snapshots/bin__global-store.js.json +15 -0
- package/.agent/history/snapshots/bin__mcp-server.js.json +19 -0
- package/.agent/history/snapshots/bin__proxy-server.js.json +20 -0
- package/.agent/history/snapshots/bin__spawn-agent.js.json +12 -0
- package/.agent/history/snapshots/bin__tk-proxy.js.json +21 -0
- package/.agent/history/snapshots/bin__tribunal-kit.js.json +9 -7
- package/.agent/history/snapshots/bin__wrapper.js.json +14 -0
- package/.agent/history/snapshots/eslint.config.js.json +1 -2
- package/.agent/history/snapshots/scripts__benchmark.js.json +14 -0
- package/.agent/history/snapshots/scripts__changelog.js.json +1 -2
- package/.agent/history/snapshots/scripts__fix-vbc.js.json +11 -0
- package/.agent/history/snapshots/scripts__stress_benchmark.js.json +15 -0
- package/.agent/history/snapshots/scripts__sync-version.js.json +1 -2
- package/.agent/history/snapshots/scripts__validate-payload.js.json +1 -2
- package/.agent/history/snapshots/scripts__visual_audit.js.json +11 -0
- package/.agent/history/snapshots/test__integration__bridges.test.js.json +1 -2
- package/.agent/history/snapshots/test__integration__graceful_degradation.test.js.json +12 -0
- package/.agent/history/snapshots/test__integration__init.test.js.json +1 -2
- package/.agent/history/snapshots/test__integration__minimal_change_pipeline.test.js.json +13 -0
- package/.agent/history/snapshots/test__integration__parallel_tribunal.test.js.json +12 -0
- package/.agent/history/snapshots/test__integration__routing.test.js.json +1 -2
- package/.agent/history/snapshots/test__integration__swarm_dispatcher.test.js.json +1 -2
- package/.agent/history/snapshots/test__integration__sync_status.test.js.json +13 -0
- package/.agent/history/snapshots/test__integration__wave2.test.js.json +1 -2
- package/.agent/history/snapshots/test__integration__wrapper.test.js.json +13 -0
- package/.agent/history/snapshots/test__unit__align.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__args.test.js.json +3 -3
- package/.agent/history/snapshots/test__unit__audit_release.test.js.json +16 -0
- package/.agent/history/snapshots/test__unit__case_law_manager.test.js.json +1 -2
- package/.agent/history/snapshots/test__unit__cicd_validator.test.js.json +12 -0
- package/.agent/history/snapshots/test__unit__compile.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__context_broker.test.js.json +1 -2
- package/.agent/history/snapshots/test__unit__contract_engine.test.js.json +13 -0
- package/.agent/history/snapshots/test__unit__copyDir.test.js.json +3 -3
- package/.agent/history/snapshots/test__unit__graph_tools.test.js.json +1 -2
- package/.agent/history/snapshots/test__unit__guardrail_engine.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__impact_classifier.test.js.json +12 -0
- package/.agent/history/snapshots/test__unit__init.test.js.json +14 -0
- package/.agent/history/snapshots/test__unit__inner_loop_validator.test.js.json +1 -2
- package/.agent/history/snapshots/test__unit__integrity_manifest.test.js.json +13 -0
- package/.agent/history/snapshots/test__unit__learn.test.js.json +11 -0
- package/.agent/history/snapshots/test__unit__marathon.test.js.json +22 -0
- package/.agent/history/snapshots/test__unit__mcp_server.test.js.json +16 -0
- package/.agent/history/snapshots/test__unit__memory.test.js.json +13 -0
- package/.agent/history/snapshots/test__unit__minimal_change.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__native.test.js.json +10 -0
- package/.agent/history/snapshots/test__unit__optimize.test.js.json +13 -0
- package/.agent/history/snapshots/test__unit__path_resolution.test.js.json +14 -0
- package/.agent/history/snapshots/test__unit__production_readiness_evidence.test.js.json +21 -0
- package/.agent/history/snapshots/test__unit__selfInstall.test.js.json +3 -3
- package/.agent/history/snapshots/test__unit__semver.test.js.json +3 -3
- package/.agent/history/snapshots/test__unit__skill_evolution.test.js.json +11 -0
- package/.agent/history/snapshots/test__unit__stress.test.js.json +15 -0
- package/.agent/history/snapshots/test__unit__swarm_dispatcher.test.js.json +3 -3
- package/.agent/history/snapshots/test__unit__utils.test.js.json +10 -0
- package/.agent/routing_index.json +2 -2
- package/.agent/scripts/ast_context_loader.js +137 -0
- package/.agent/scripts/memory_engine.js +581 -0
- package/.agent/scripts/payload_schemas.js +146 -0
- package/.agent/scripts/prompt_compiler.js +59 -11
- package/.agent/scripts/swarm_dispatcher.js +295 -67
- package/.agent/scripts/token_budget_broker.js +117 -6
- package/.agent/skills/12-principles-of-animation/SKILL.md +19 -16
- package/.agent/skills/60fps-animation/SKILL.md +47 -21
- package/.agent/skills/accessible-animation/SKILL.md +19 -16
- package/.agent/skills/adapt/SKILL.md +19 -16
- package/.agent/skills/advanced-rag-pipelines/SKILL.md +41 -40
- package/.agent/skills/agent-organizer/SKILL.md +9 -59
- package/.agent/skills/agentic-patterns/SKILL.md +9 -57
- package/.agent/skills/agentic-workflows-2026/SKILL.md +45 -8
- package/.agent/skills/ai-app-hardening/SKILL.md +31 -5
- package/.agent/skills/ai-prompt-injection-defense/SKILL.md +28 -66
- package/.agent/skills/animation-on-scroll/SKILL.md +19 -16
- package/.agent/skills/animation-systems/SKILL.md +19 -15
- package/.agent/skills/antfu-conventions/SKILL.md +19 -18
- package/.agent/skills/api-patterns/SKILL.md +8 -58
- package/.agent/skills/api-security-auditor/SKILL.md +8 -58
- package/.agent/skills/app-builder/SKILL.md +9 -59
- package/.agent/skills/appflow-wireframe/SKILL.md +13 -57
- package/.agent/skills/apple-design/SKILL.md +22 -14
- package/.agent/skills/architecture/SKILL.md +9 -59
- package/.agent/skills/audit-and-fix/SKILL.md +19 -16
- package/.agent/skills/authentication-best-practices/SKILL.md +8 -58
- package/.agent/skills/backend-security-expert/SKILL.md +32 -65
- package/.agent/skills/baseline-ui/SKILL.md +22 -14
- package/.agent/skills/bash-linux/SKILL.md +9 -59
- package/.agent/skills/behavioral-modes/SKILL.md +9 -57
- package/.agent/skills/better-colors/SKILL.md +22 -14
- package/.agent/skills/better-typography/SKILL.md +26 -14
- package/.agent/skills/better-ui/SKILL.md +54 -19
- package/.agent/skills/bolder/SKILL.md +19 -16
- package/.agent/skills/brainstorming/SKILL.md +9 -57
- package/.agent/skills/browser-native-ai/SKILL.md +9 -28
- package/.agent/skills/build-primitive/SKILL.md +19 -16
- package/.agent/skills/building-native-ui/SKILL.md +9 -59
- package/.agent/skills/cicd-pro/SKILL.md +21 -28
- package/.agent/skills/clarify/SKILL.md +19 -16
- package/.agent/skills/clean-code/SKILL.md +18 -61
- package/.agent/skills/cloud-architect/SKILL.md +21 -28
- package/.agent/skills/cobejs/SKILL.md +19 -15
- package/.agent/skills/code-review-checklist/SKILL.md +8 -58
- package/.agent/skills/codebase-design/SKILL.md +33 -22
- package/.agent/skills/colorize/SKILL.md +19 -16
- package/.agent/skills/compact-landing/SKILL.md +19 -16
- package/.agent/skills/company-logos/SKILL.md +19 -16
- package/.agent/skills/config-validator/SKILL.md +9 -59
- package/.agent/skills/containerization-pro/SKILL.md +21 -28
- package/.agent/skills/context-engineering-pro/SKILL.md +31 -5
- package/.agent/skills/create-design-md/SKILL.md +22 -14
- package/.agent/skills/critique/SKILL.md +20 -11
- package/.agent/skills/csharp-developer/SKILL.md +8 -58
- package/.agent/skills/data-validation-schemas/SKILL.md +9 -59
- package/.agent/skills/database-design/SKILL.md +27 -67
- package/.agent/skills/delight/SKILL.md +19 -16
- package/.agent/skills/deployment-procedures/SKILL.md +9 -59
- package/.agent/skills/design-lab/SKILL.md +19 -16
- package/.agent/skills/devops-engineer/SKILL.md +8 -58
- package/.agent/skills/devops-incident-responder/SKILL.md +9 -59
- package/.agent/skills/diagnosing-bugs/SKILL.md +20 -21
- package/.agent/skills/distill/SKILL.md +19 -16
- package/.agent/skills/documentation-templates/SKILL.md +9 -59
- package/.agent/skills/domain-modeling/SKILL.md +19 -18
- package/.agent/skills/duckdb-analytical-sql/SKILL.md +31 -5
- package/.agent/skills/edge-ai-mobile/SKILL.md +31 -5
- package/.agent/skills/edge-computing/SKILL.md +9 -59
- package/.agent/skills/emil-design-eng/SKILL.md +21 -24
- package/.agent/skills/error-resilience/SKILL.md +31 -66
- package/.agent/skills/expo-router-v4/SKILL.md +31 -5
- package/.agent/skills/extract-design-system/SKILL.md +9 -59
- package/.agent/skills/fabel-protocol/SKILL.md +26 -8
- package/.agent/skills/fixing-accessibility/SKILL.md +22 -14
- package/.agent/skills/fixing-metadata/SKILL.md +19 -16
- package/.agent/skills/fixing-motion-performance/SKILL.md +22 -14
- package/.agent/skills/framer-motion-expert/SKILL.md +9 -57
- package/.agent/skills/frontend-design/SKILL.md +27 -7
- package/.agent/skills/frontend-security-expert/SKILL.md +8 -58
- package/.agent/skills/game-design-expert/SKILL.md +9 -59
- package/.agent/skills/game-engineering-expert/SKILL.md +9 -59
- package/.agent/skills/generative-ui-expert/SKILL.md +9 -28
- package/.agent/skills/geo-fundamentals/SKILL.md +9 -59
- package/.agent/skills/git-pro/SKILL.md +19 -30
- package/.agent/skills/github-operations/SKILL.md +8 -58
- package/.agent/skills/gpt-taste/SKILL.md +19 -16
- package/.agent/skills/gsap-core/SKILL.md +8 -78
- package/.agent/skills/gsap-frameworks/SKILL.md +8 -78
- package/.agent/skills/gsap-performance/SKILL.md +9 -77
- package/.agent/skills/gsap-plugins/SKILL.md +9 -77
- package/.agent/skills/gsap-react/SKILL.md +9 -21
- package/.agent/skills/gsap-scrolltrigger/SKILL.md +8 -78
- package/.agent/skills/gsap-timeline/SKILL.md +9 -77
- package/.agent/skills/gsap-utils/SKILL.md +9 -77
- package/.agent/skills/harden/SKILL.md +19 -16
- package/.agent/skills/harness-protocol/SKILL.md +9 -21
- package/.agent/skills/i18n-localization/SKILL.md +9 -59
- package/.agent/skills/impeccable/SKILL.md +19 -18
- package/.agent/skills/improve-codebase-architecture/SKILL.md +19 -17
- package/.agent/skills/improve-ui/SKILL.md +22 -14
- package/.agent/skills/intelligent-routing/SKILL.md +9 -23
- package/.agent/skills/knowledge-graph/SKILL.md +9 -21
- package/.agent/skills/landing-page/SKILL.md +19 -16
- package/.agent/skills/lint-and-validate/SKILL.md +9 -59
- package/.agent/skills/llm-engineering/SKILL.md +8 -58
- package/.agent/skills/local-first/SKILL.md +9 -59
- package/.agent/skills/local-first-architecture/SKILL.md +37 -20
- package/.agent/skills/lottie-animation/SKILL.md +19 -15
- package/.agent/skills/marquee-loop/SKILL.md +19 -16
- package/.agent/skills/masked-reveal/SKILL.md +19 -15
- package/.agent/skills/mcp-builder/SKILL.md +9 -59
- package/.agent/skills/micro-interaction/SKILL.md +19 -16
- package/.agent/skills/mobile-design/SKILL.md +8 -58
- package/.agent/skills/monorepo-management/SKILL.md +9 -59
- package/.agent/skills/morphing-icons/SKILL.md +19 -15
- package/.agent/skills/motion-engineering/SKILL.md +22 -15
- package/.agent/skills/nextjs-react-expert/SKILL.md +35 -67
- package/.agent/skills/nodejs-best-practices/SKILL.md +34 -61
- package/.agent/skills/observability/SKILL.md +8 -58
- package/.agent/skills/opentelemetry-observability/SKILL.md +31 -5
- package/.agent/skills/page-transition-animation/SKILL.md +19 -16
- package/.agent/skills/parallel-agents/SKILL.md +9 -59
- package/.agent/skills/performance-profiling/SKILL.md +8 -58
- package/.agent/skills/plan-writing/SKILL.md +36 -69
- package/.agent/skills/platform-engineer/SKILL.md +9 -59
- package/.agent/skills/platform-engineering-opentofu/SKILL.md +31 -5
- package/.agent/skills/playwright-ai-e2e/SKILL.md +31 -5
- package/.agent/skills/playwright-best-practices/SKILL.md +9 -59
- package/.agent/skills/polish/SKILL.md +19 -16
- package/.agent/skills/powershell-windows/SKILL.md +8 -58
- package/.agent/skills/pricing-page/SKILL.md +19 -16
- package/.agent/skills/product-aware-heuristics/SKILL.md +27 -8
- package/.agent/skills/progressive-blur/SKILL.md +19 -16
- package/.agent/skills/project-idioms/SKILL.md +9 -59
- package/.agent/skills/property-based-testing/SKILL.md +31 -5
- package/.agent/skills/python-patterns/SKILL.md +9 -59
- package/.agent/skills/python-pro/SKILL.md +35 -67
- package/.agent/skills/quieter/SKILL.md +19 -16
- package/.agent/skills/react-doctor/SKILL.md +19 -16
- package/.agent/skills/react-specialist/SKILL.md +26 -65
- package/.agent/skills/readme-builder/SKILL.md +9 -59
- package/.agent/skills/realtime-patterns/SKILL.md +8 -58
- package/.agent/skills/red-team-tactics/SKILL.md +9 -59
- package/.agent/skills/redesign-skill/SKILL.md +19 -16
- package/.agent/skills/review-animations/SKILL.md +21 -25
- package/.agent/skills/rust-pro/SKILL.md +30 -61
- package/.agent/skills/seo-fundamentals/SKILL.md +9 -59
- package/.agent/skills/server-management/SKILL.md +9 -59
- package/.agent/skills/shadcn-ui-expert/SKILL.md +9 -59
- package/.agent/skills/shape/SKILL.md +19 -16
- package/.agent/skills/skill-creator/SKILL.md +36 -86
- package/.agent/skills/soft-skill/SKILL.md +19 -16
- package/.agent/skills/sounds-on-the-web/SKILL.md +19 -16
- package/.agent/skills/sql-pro/SKILL.md +47 -62
- package/.agent/skills/supabase-postgres-best-practices/SKILL.md +9 -59
- package/.agent/skills/svg-animation/SKILL.md +19 -15
- package/.agent/skills/swiftui-expert/SKILL.md +9 -59
- package/.agent/skills/swiss-design/SKILL.md +19 -16
- package/.agent/skills/system-design-pro/SKILL.md +21 -26
- package/.agent/skills/systematic-debugging/SKILL.md +19 -60
- package/.agent/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/.agent/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/.agent/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/.agent/skills/tailwind-patterns/SKILL.md +8 -58
- package/.agent/skills/taste-skill/SKILL.md +19 -16
- package/.agent/skills/tdd-workflow/SKILL.md +65 -25
- package/.agent/skills/test-result-analyzer/SKILL.md +9 -59
- package/.agent/skills/testing-patterns/SKILL.md +8 -58
- package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +19 -18
- package/.agent/skills/thinking-protocol/SKILL.md +33 -2
- package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +19 -15
- package/.agent/skills/transitions-dev/SKILL.md +19 -15
- package/.agent/skills/trend-researcher/SKILL.md +9 -59
- package/.agent/skills/typescript-advanced/SKILL.md +21 -64
- package/.agent/skills/typeset/SKILL.md +19 -16
- package/.agent/skills/ui-reasoning-engine/SKILL.md +27 -8
- package/.agent/skills/ui-skill-packs/SKILL.md +26 -16
- package/.agent/skills/ui-skills-root/SKILL.md +22 -14
- package/.agent/skills/ui-ux-pro-max/SKILL.md +38 -12
- package/.agent/skills/ui-ux-researcher/SKILL.md +9 -59
- package/.agent/skills/vector-search-pgvector/SKILL.md +31 -5
- package/.agent/skills/verification-before-completion/SKILL.md +125 -0
- package/.agent/skills/vue-expert/SKILL.md +9 -57
- package/.agent/skills/vulnerability-scanner/SKILL.md +8 -58
- package/.agent/skills/web-accessibility-auditor/SKILL.md +9 -59
- package/.agent/skills/web-design-guidelines/SKILL.md +27 -7
- package/.agent/skills/web-quality-audit/SKILL.md +19 -16
- package/.agent/skills/webapp-testing/SKILL.md +9 -59
- package/.agent/skills/webgpu-performance/SKILL.md +9 -28
- package/.agent/skills/whimsy-injector/SKILL.md +9 -57
- package/.agent/skills/workflow-optimizer/SKILL.md +9 -57
- package/.agent/skills/zero-trust-passkeys/SKILL.md +31 -5
- package/.agent/templates/DESIGN.md +680 -160
- package/.agent/templates/sdd/implementer-prompt.md +53 -0
- package/.agent/templates/sdd/re-review-prompt.md +28 -0
- package/.agent/templates/sdd/task-reviewer-prompt.md +59 -0
- package/.agent/workflows/acf.md +4 -0
- package/.agent/workflows/api-tester.md +5 -0
- package/.agent/workflows/audit.md +5 -0
- package/.agent/workflows/brainstorm.md +17 -1
- package/.agent/workflows/changelog.md +5 -0
- package/.agent/workflows/contract.md +19 -0
- package/.agent/workflows/create.md +6 -1
- package/.agent/workflows/debug.md +5 -0
- package/.agent/workflows/deploy.md +6 -1
- package/.agent/workflows/enhance.md +6 -1
- package/.agent/workflows/fix-ci.md +5 -0
- package/.agent/workflows/fix.md +5 -0
- package/.agent/workflows/generate.md +5 -0
- package/.agent/workflows/marathon.md +6 -1
- package/.agent/workflows/migrate.md +5 -0
- package/.agent/workflows/minimal.md +4 -0
- package/.agent/workflows/orchestrate.md +6 -1
- package/.agent/workflows/performance-benchmarker.md +6 -1
- package/.agent/workflows/pipeline.md +5 -0
- package/.agent/workflows/plan.md +6 -1
- package/.agent/workflows/preview.md +6 -1
- package/.agent/workflows/refactor.md +6 -0
- package/.agent/workflows/review-ai.md +5 -0
- package/.agent/workflows/review.md +5 -0
- package/.agent/workflows/sdd.md +122 -0
- package/.agent/workflows/session.md +5 -0
- package/.agent/workflows/status.md +4 -0
- package/.agent/workflows/super-prompt.md +4 -0
- package/.agent/workflows/swarm.md +6 -1
- package/.agent/workflows/test.md +6 -1
- package/.agent/workflows/tribunal-backend.md +5 -0
- package/.agent/workflows/tribunal-cicd.md +5 -0
- package/.agent/workflows/tribunal-database.md +5 -0
- package/.agent/workflows/tribunal-full.md +8 -0
- package/.agent/workflows/tribunal-mobile.md +5 -0
- package/.agent/workflows/tribunal-performance.md +5 -0
- package/.agent/workflows/tribunal-speed.md +5 -0
- package/.agent/workflows/tribunal-ui.md +7 -0
- package/.agents/plugins/marketplace.json +20 -0
- package/.claude/CLAUDE.md +442 -0
- package/.claude-plugin/marketplace.json +17 -0
- package/.claude-plugin/plugin.json +26 -0
- package/.codex-plugin/plugin.json +45 -0
- package/.cursor-plugin/plugin.json +26 -0
- package/.devin-plugin/plugin.json +14 -0
- package/.hermes-plugin/__init__.py +102 -0
- package/.hermes-plugin/plugin.yaml +6 -0
- package/.kimi-plugin/plugin.json +38 -0
- package/.opencode/INSTALL.md +41 -0
- package/.opencode/plugins/tribunal.js +101 -0
- package/.pi/extensions/tribunal.ts +133 -0
- package/CONTRIBUTING.md +1 -1
- package/README.md +253 -218
- package/SECURITY.md +3 -3
- package/bin/adapter-install.js +240 -0
- package/bin/global-store.js +48 -0
- package/bin/mcp-server.js +568 -252
- package/bin/proxy-server.js +113 -0
- package/bin/spawn-agent.js +39 -0
- package/bin/tk-proxy.js +34 -0
- package/bin/wrapper.js +1 -0
- package/dist/cli.js +355 -355
- package/dist/commands/init.js +8 -51
- package/dist/commands/status.js +61 -36
- package/dist/commands/validate.js +22 -31
- package/dist/esm/index.mjs +142 -142
- package/dist/index.d.ts +349 -343
- package/dist/tui/banner.js +77 -0
- package/dist/tui/index.js +21 -0
- package/dist/tui/reviewer-grid.js +90 -0
- package/dist/tui/shimmer.js +91 -0
- package/dist/tui/theme.js +130 -0
- package/dist/tui/tree.js +93 -0
- package/dist/tui/wizard.js +148 -0
- package/dist/utils/helpers.js +5 -41
- package/gemini-extension.json +6 -0
- package/hooks/hooks-cursor.json +16 -0
- package/hooks/hooks.json +16 -0
- package/hooks/session-start.js +77 -0
- package/package.json +165 -129
- package/scripts/audit_skill_sdo.js +87 -0
- package/scripts/build-graph.js +71 -0
- package/scripts/modernize_skills.js +254 -0
- package/.agent/history/snapshots/migrate_refs.js.json +0 -11
- package/.agent/scripts/compile_router.py +0 -5
- package/.agent/scripts/migrate_skills_frontmatter.py +0 -5
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
name: monorepo-management
|
|
3
3
|
description: Monorepo architecture and tooling mastery. Turborepo, Nx, pnpm workspaces, shared package design, task pipelines, dependency hoisting, change detection, versioning strategies (independent vs. fixed), shared TypeScript configs, internal packages, and CI optimization for monorepos. Use when setting up monorepos, managing shared code across apps, or optimizing build pipelines.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
|
-
version:
|
|
6
|
-
last-updated: 2026-07
|
|
5
|
+
version: 4.0.0
|
|
6
|
+
last-updated: 2026-09-07
|
|
7
7
|
skills:
|
|
8
8
|
- cicd-pro
|
|
9
9
|
- codebase-design
|
|
@@ -25,6 +25,12 @@ Before organizing workspace packages or writing Turborepo/pnpm configs, you MUST
|
|
|
25
25
|
2. Topological Task Dependencies (Section 146) โ Define topological ordering (`"^build"`) in `turbo.json` to ensure dependencies build before consumers
|
|
26
26
|
3. Domain-Focused Package Partitioning (Section 261) โ Divide shared code into domain packages (`packages/ui`, `packages/db`, `packages/utils`); ban single monolithic `packages/shared` dumpsters
|
|
27
27
|
|
|
28
|
+
|
|
29
|
+
## Activation Boundaries
|
|
30
|
+
|
|
31
|
+
- **Activate when:** Operating in tasks requiring Monorepo architecture and tooling mastery. Turborepo, Nx, pnpm workspaces, shared package design, task pipelines, dependency hoisting, change detection, versioning strategies (independent vs. fixed), shared TypeScript configs, internal packages, and CI optimization for monorepos. Use when setting up monorepos, managing shared code across apps, or optimizing build pipelines..
|
|
32
|
+
- **DO NOT activate when:** The task falls strictly outside monorepo-management domain or belongs to a different dedicated specialist.
|
|
33
|
+
|
|
28
34
|
## Hallucination Traps (Read First)
|
|
29
35
|
|
|
30
36
|
- โ Publishing internal packages to npm when they're meant to stay private -> โ
Internal packages use `"private": true` and workspace protocol `"workspace:*"`
|
|
@@ -33,8 +39,6 @@ Before organizing workspace packages or writing Turborepo/pnpm configs, you MUST
|
|
|
33
39
|
|
|
34
40
|
---
|
|
35
41
|
|
|
36
|
-
# Monorepo Management โ Scaling Multi-Package Projects
|
|
37
|
-
|
|
38
42
|
---
|
|
39
43
|
|
|
40
44
|
## Tool Selection
|
|
@@ -314,69 +318,17 @@ AI coding assistants often fall into specific bad habits when dealing with this
|
|
|
314
318
|
|
|
315
319
|
---
|
|
316
320
|
|
|
317
|
-
|
|
318
|
-
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
319
|
-
|
|
320
|
-
### โ Forbidden AI Tropes
|
|
321
|
-
|
|
322
|
-
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
323
|
-
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
324
|
-
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
325
|
-
|
|
326
|
-
Review these questions before confirming output:
|
|
327
|
-
|
|
328
|
-
```
|
|
329
|
-
โ
Did I rely ONLY on real, verified tools and methods?
|
|
330
|
-
โ
Is this solution appropriately scoped to the user's constraints?
|
|
331
|
-
โ
Did I handle potential failure modes and edge cases?
|
|
332
|
-
โ
Have I avoided generic boilerplate that doesn't add value?
|
|
333
|
-
```
|
|
334
|
-
|
|
335
|
-
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
336
|
-
|
|
337
|
-
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
338
|
-
|
|
339
|
-
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
340
|
-
- โ
**Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.
|
|
341
|
-
|
|
342
|
-
## Pre-Flight Checklist
|
|
343
|
-
|
|
344
|
-
- [ ] Have I reviewed the user's specific constraints and requests?
|
|
345
|
-
- [ ] Have I checked the environment for relevant existing implementations?
|
|
346
|
-
|
|
347
|
-
## VBC Protocol (Verification-Before-Completion)
|
|
348
|
-
|
|
349
|
-
You MUST verify existing code signatures and variables before attempting to modify or call them. No hallucination is permitted.
|
|
350
|
-
|
|
351
|
-
---
|
|
352
|
-
|
|
353
|
-
## ๐ค LLM-Specific Traps
|
|
354
|
-
|
|
355
|
-
AI coding assistants often fall into specific bad habits when dealing with this domain. These are strictly forbidden:
|
|
356
|
-
|
|
357
|
-
1. **Over-engineering:** Proposing complex abstractions or distributed systems when a simpler approach suffices.
|
|
358
|
-
2. **Hallucinated Libraries/Methods:** Using non-existent methods or packages. Always `// VERIFY` or check `package.json` / `requirements.txt`.
|
|
359
|
-
3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
|
|
360
|
-
4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
361
|
-
5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
|
|
362
|
-
|
|
363
|
-
---
|
|
364
|
-
|
|
365
|
-
## ๐๏ธ Tribunal Integration (Anti-Hallucination)
|
|
321
|
+
## ๐๏ธ Tribunal Verification & Guardrails
|
|
366
322
|
|
|
367
323
|
**Slash command: `/review` or `/tribunal-full`**
|
|
368
324
|
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
369
325
|
|
|
370
326
|
### โ Forbidden AI Tropes
|
|
371
|
-
|
|
372
327
|
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
373
328
|
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
374
329
|
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
375
330
|
|
|
376
331
|
### โ
Pre-Flight Self-Audit
|
|
377
|
-
|
|
378
|
-
Review these questions before confirming output:
|
|
379
|
-
|
|
380
332
|
```
|
|
381
333
|
โ
Did I rely ONLY on real, verified tools and methods?
|
|
382
334
|
โ
Is this solution appropriately scoped to the user's constraints?
|
|
@@ -385,8 +337,6 @@ Review these questions before confirming output:
|
|
|
385
337
|
```
|
|
386
338
|
|
|
387
339
|
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
388
|
-
|
|
389
340
|
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
390
|
-
|
|
391
341
|
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
392
342
|
- โ
**Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: morphing-icons
|
|
3
3
|
description: Build morphing SVG icon components that transition smoothly between states (Play <-> Pause, Hamburger Menu <-> Close X, Sun <-> Moon).
|
|
4
|
-
version:
|
|
5
|
-
last-updated: 2026-07
|
|
4
|
+
version: 4.0.0
|
|
5
|
+
last-updated: 2026-09-07
|
|
6
6
|
skills:
|
|
7
7
|
- svg-animation
|
|
8
8
|
- micro-interaction
|
|
@@ -27,6 +27,12 @@ Before implementing morphing icon components, you MUST inspect:
|
|
|
27
27
|
|
|
28
28
|
Architect crisp, interactive SVG icon components that morph seamlessly between operational states.
|
|
29
29
|
|
|
30
|
+
|
|
31
|
+
## Activation Boundaries
|
|
32
|
+
|
|
33
|
+
- **Activate when:** Operating in tasks requiring Build morphing SVG icon components that transition smoothly between states (Play <-> Pause, Hamburger Menu <-> Close X, Sun <-> Moon)..
|
|
34
|
+
- **DO NOT activate when:** The task falls strictly outside morphing-icons domain or belongs to a different dedicated specialist.
|
|
35
|
+
|
|
30
36
|
---
|
|
31
37
|
|
|
32
38
|
## The Hamburger Menu <-> Close X Morph Recipe
|
|
@@ -78,27 +84,25 @@ export function MenuToCloseIcon({ isOpen, onClick }: { isOpen: boolean; onClick:
|
|
|
78
84
|
|
|
79
85
|
---
|
|
80
86
|
|
|
81
|
-
##
|
|
87
|
+
## ๐๏ธ Tribunal Verification & Guardrails
|
|
82
88
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
---
|
|
89
|
+
**Slash command: `/review` or `/tribunal-full`**
|
|
90
|
+
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
87
91
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
**
|
|
92
|
+
### โ Forbidden AI Tropes
|
|
93
|
+
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
94
|
+
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
95
|
+
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
91
96
|
|
|
92
97
|
### โ
Pre-Flight Self-Audit
|
|
93
|
-
|
|
94
98
|
```
|
|
95
|
-
โ
|
|
96
|
-
โ
Is
|
|
99
|
+
โ
Did I rely ONLY on real, verified tools and methods?
|
|
100
|
+
โ
Is this solution appropriately scoped to the user's constraints?
|
|
101
|
+
โ
Did I handle potential failure modes and edge cases?
|
|
102
|
+
โ
Have I avoided generic boilerplate that doesn't add value?
|
|
97
103
|
```
|
|
98
104
|
|
|
99
105
|
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
100
|
-
|
|
101
106
|
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
102
|
-
|
|
103
107
|
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
104
108
|
- โ
**Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
name: motion-engineering
|
|
3
3
|
description: Motion Engineering mastery for 2026 web UI. Covers all 20 modern animation styles across 4 tiers (Core UX, Immersive, Advanced, Specialized). Use when designing motion strategy, choosing animation libraries (Framer, GSAP, WebGL, CSS), or implementing animated UI patterns.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
|
-
version:
|
|
6
|
-
last-updated: 2026-07
|
|
5
|
+
version: 4.0.0
|
|
6
|
+
last-updated: 2026-09-07
|
|
7
7
|
skills:
|
|
8
8
|
- 60fps-animation
|
|
9
9
|
- accessible-animation
|
|
@@ -28,6 +28,12 @@ Before engineering web animations or selecting motion libraries, you MUST inspec
|
|
|
28
28
|
|
|
29
29
|
You are the Motion Engineering Specialist. Your purpose is to bridge the gap between static UI and fluid, intuitive, and high-performance digital experiences. You understand that motion is not decoration; it is usability, narrative, and state communication.
|
|
30
30
|
|
|
31
|
+
|
|
32
|
+
## Activation Boundaries
|
|
33
|
+
|
|
34
|
+
- **Activate when:** Operating in tasks requiring Motion Engineering mastery for 2026 web UI. Covers all 20 modern animation styles across 4 tiers (Core UX, Immersive, Advanced, Specialized). Use when designing motion strategy, choosing animation libraries (Framer, GSAP, WebGL, CSS), or implementing animated UI patterns..
|
|
35
|
+
- **DO NOT activate when:** The task falls strictly outside motion-engineering domain or belongs to a different dedicated specialist.
|
|
36
|
+
|
|
31
37
|
## Hallucination Traps & Motion Sins (Read First)
|
|
32
38
|
|
|
33
39
|
- โ Linear motion (`ease-linear`, CSS `transition: all`) โ โ
Spring physics (`stiffness/damping`) or custom cubic-beziers. Linear looks robotic.
|
|
@@ -204,24 +210,25 @@ function AccessibleComponent() {
|
|
|
204
210
|
|
|
205
211
|
---
|
|
206
212
|
|
|
207
|
-
##
|
|
213
|
+
## ๐๏ธ Tribunal Verification & Guardrails
|
|
208
214
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
3. **GSAP Memory Leaks:** Forgetting to kill GSAP timelines on component unmount.
|
|
215
|
+
**Slash command: `/review` or `/tribunal-full`**
|
|
216
|
+
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
212
217
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
218
|
+
### โ Forbidden AI Tropes
|
|
219
|
+
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
220
|
+
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
221
|
+
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
216
222
|
|
|
217
223
|
### โ
Pre-Flight Self-Audit
|
|
218
|
-
|
|
219
224
|
```
|
|
220
|
-
โ
|
|
221
|
-
โ
Is
|
|
222
|
-
โ
|
|
225
|
+
โ
Did I rely ONLY on real, verified tools and methods?
|
|
226
|
+
โ
Is this solution appropriately scoped to the user's constraints?
|
|
227
|
+
โ
Did I handle potential failure modes and edge cases?
|
|
228
|
+
โ
Have I avoided generic boilerplate that doesn't add value?
|
|
223
229
|
```
|
|
224
230
|
|
|
225
231
|
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
226
|
-
|
|
227
|
-
|
|
232
|
+
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
233
|
+
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
234
|
+
- โ
**Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
name: nextjs-react-expert
|
|
3
3
|
description: Next.js 15+ App Router mastery. Server Components, Server Actions, PPR, caching, metadata, middleware, parallel/intercepting routes. Use when building Next.js apps or optimizing Next.js performance.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
|
-
version:
|
|
6
|
-
last-updated: 2026-07
|
|
5
|
+
version: 4.0.0
|
|
6
|
+
last-updated: 2026-09-07
|
|
7
7
|
skills:
|
|
8
8
|
- react-specialist
|
|
9
9
|
- react-doctor
|
|
@@ -21,20 +21,42 @@ scripts-binding:
|
|
|
21
21
|
|
|
22
22
|
Before engineering Next.js 15+ App Router code, you MUST inspect:
|
|
23
23
|
|
|
24
|
-
1.
|
|
25
|
-
2. Server
|
|
26
|
-
3.
|
|
24
|
+
1. Next.js 15 Async Dynamic APIs โ `cookies()`, `headers()`, and route `params` / `searchParams` are now **async Promises** (`await params`)
|
|
25
|
+
2. Server Components by Default โ Keep data fetching on the server; add `"use client"` only for user interactions or hooks
|
|
26
|
+
3. Server Action Validation & Taint โ Always declare `"use server"`, validate inputs with Zod (`schema.safeParse`), and use `experimental_taintUniqueValue` for secrets
|
|
27
|
+
4. Caching Semantics โ `fetch()` is UNCACHED by default in Next.js 15; explicitly specify `{ cache: 'force-cache' }` or `revalidateTag()` when static caching is intended
|
|
28
|
+
|
|
29
|
+
## Activation Boundaries
|
|
30
|
+
|
|
31
|
+
- **Activate when:** Building Next.js 15 App Router applications, Server Actions, route handlers, middleware, and configuring Partial Prerendering (PPR).
|
|
32
|
+
- **DO NOT activate when:** Building pure client-only Vite/SPA applications or Express/Fastify standalone backend servers.
|
|
33
|
+
|
|
34
|
+
## 2026 Next.js 15 Architecture & Performance Invariants
|
|
35
|
+
|
|
36
|
+
1. **Async Route Params**: In Next.js 15, `params` and `searchParams` are Promises:
|
|
37
|
+
```tsx
|
|
38
|
+
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
|
|
39
|
+
const { id } = await params;
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
2. **Async Headers & Cookies**: Always `await cookies()` and `await headers()`:
|
|
43
|
+
```ts
|
|
44
|
+
import { cookies } from 'next/headers';
|
|
45
|
+
const cookieStore = await cookies();
|
|
46
|
+
```
|
|
47
|
+
3. **Partial Prerendering (PPR)**: Isolate dynamic data fetches within `<Suspense>` boundaries so the static shell renders instantly.
|
|
48
|
+
4. **Server Action CSRF & Origin Verification**: Next.js 15 checks host header by default; ensure actions validate permissions before mutations.
|
|
27
49
|
|
|
28
50
|
## Hallucination Traps (Read First)
|
|
29
51
|
|
|
52
|
+
- โ Synchronous `const { id } = params` โ โ
Next.js 15: `const { id } = await params`
|
|
53
|
+
- โ Synchronous `const c = cookies()` โ โ
Next.js 15: `const c = await cookies()`
|
|
54
|
+
- โ Assuming `fetch()` is cached by default โ โ
Next.js 15 defaults to `{ cache: 'no-store' }`
|
|
30
55
|
- โ `pages/api/` or `_app.tsx` โ โ
App Router only: `app/api/route.ts`, `app/layout.tsx`
|
|
31
|
-
- โ `getServerSideProps` โ โ
`async
|
|
32
|
-
- โ `next/router` โ โ
`next/navigation` (`useRouter`, `usePathname
|
|
33
|
-
- โ Server Action without `"use server"` โ โ
Required at top of file or
|
|
34
|
-
- โ
|
|
35
|
-
- โ `cookies()` at top of page โ โ
Opts entire route into dynamic rendering, breaking PPR. Wrap inside `<Suspense>`
|
|
36
|
-
- โ Passing functions as props Server โ Client โ โ
Illegal. Use Server Actions instead.
|
|
37
|
-
- โ Plain `Response` in route handler โ โ
Use `NextResponse.json()`
|
|
56
|
+
- โ `getServerSideProps` โ โ
Direct `async` Server Components
|
|
57
|
+
- โ `next/router` โ โ
`next/navigation` (`useRouter`, `usePathname`)
|
|
58
|
+
- โ Server Action without `"use server"` โ โ
Required at top of file or function
|
|
59
|
+
- โ Passing functions as props Server โ Client โ โ
Use Server Actions
|
|
38
60
|
|
|
39
61
|
---
|
|
40
62
|
|
|
@@ -217,69 +239,17 @@ AI coding assistants often fall into specific bad habits when dealing with this
|
|
|
217
239
|
|
|
218
240
|
---
|
|
219
241
|
|
|
220
|
-
|
|
221
|
-
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
222
|
-
|
|
223
|
-
### โ Forbidden AI Tropes
|
|
224
|
-
|
|
225
|
-
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
226
|
-
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
227
|
-
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
228
|
-
|
|
229
|
-
Review these questions before confirming output:
|
|
230
|
-
|
|
231
|
-
```
|
|
232
|
-
โ
Did I rely ONLY on real, verified tools and methods?
|
|
233
|
-
โ
Is this solution appropriately scoped to the user's constraints?
|
|
234
|
-
โ
Did I handle potential failure modes and edge cases?
|
|
235
|
-
โ
Have I avoided generic boilerplate that doesn't add value?
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
239
|
-
|
|
240
|
-
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
241
|
-
|
|
242
|
-
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
243
|
-
- โ
**Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.
|
|
244
|
-
|
|
245
|
-
## Pre-Flight Checklist
|
|
246
|
-
|
|
247
|
-
- [ ] Have I reviewed the user's specific constraints and requests?
|
|
248
|
-
- [ ] Have I checked the environment for relevant existing implementations?
|
|
249
|
-
|
|
250
|
-
## VBC Protocol (Verification-Before-Completion)
|
|
251
|
-
|
|
252
|
-
You MUST verify existing code signatures and variables before attempting to modify or call them. No hallucination is permitted.
|
|
253
|
-
|
|
254
|
-
---
|
|
255
|
-
|
|
256
|
-
## ๐ค LLM-Specific Traps
|
|
257
|
-
|
|
258
|
-
AI coding assistants often fall into specific bad habits when dealing with this domain. These are strictly forbidden:
|
|
259
|
-
|
|
260
|
-
1. **Over-engineering:** Proposing complex abstractions or distributed systems when a simpler approach suffices.
|
|
261
|
-
2. **Hallucinated Libraries/Methods:** Using non-existent methods or packages. Always `// VERIFY` or check `package.json` / `requirements.txt`.
|
|
262
|
-
3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
|
|
263
|
-
4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
264
|
-
5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
|
|
265
|
-
|
|
266
|
-
---
|
|
267
|
-
|
|
268
|
-
## ๐๏ธ Tribunal Integration (Anti-Hallucination)
|
|
242
|
+
## ๐๏ธ Tribunal Verification & Guardrails
|
|
269
243
|
|
|
270
244
|
**Slash command: `/review` or `/tribunal-full`**
|
|
271
245
|
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
272
246
|
|
|
273
247
|
### โ Forbidden AI Tropes
|
|
274
|
-
|
|
275
248
|
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
276
249
|
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
277
250
|
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
278
251
|
|
|
279
252
|
### โ
Pre-Flight Self-Audit
|
|
280
|
-
|
|
281
|
-
Review these questions before confirming output:
|
|
282
|
-
|
|
283
253
|
```
|
|
284
254
|
โ
Did I rely ONLY on real, verified tools and methods?
|
|
285
255
|
โ
Is this solution appropriately scoped to the user's constraints?
|
|
@@ -288,8 +258,6 @@ Review these questions before confirming output:
|
|
|
288
258
|
```
|
|
289
259
|
|
|
290
260
|
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
291
|
-
|
|
292
261
|
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
293
|
-
|
|
294
262
|
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
295
263
|
- โ
**Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
name: nodejs-best-practices
|
|
3
3
|
description: Node.js 22+ production mastery. ES Modules, async patterns, Express/Fastify/Hono, middleware architecture, error handling, streaming, worker threads, environment config, security hardening, process management, and deployment patterns. Use when building Node.js servers, APIs, CLI tools, or any server-side JavaScript.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
|
-
version:
|
|
6
|
-
last-updated: 2026-07
|
|
5
|
+
version: 4.0.0
|
|
6
|
+
last-updated: 2026-09-07
|
|
7
7
|
skills:
|
|
8
8
|
- backend-security-expert
|
|
9
9
|
- api-patterns
|
|
@@ -21,11 +21,38 @@ scripts-binding:
|
|
|
21
21
|
|
|
22
22
|
Before building Node.js services or middleware, you MUST inspect:
|
|
23
23
|
|
|
24
|
-
1.
|
|
25
|
-
2.
|
|
26
|
-
3.
|
|
24
|
+
1. Built-in `node:` Prefix & ESM โ Always use explicit `node:` protocol prefix (`import fs from 'node:fs/promises'`); ban legacy CommonJS `require()`
|
|
25
|
+
2. Node 22+ Built-ins โ Use `node:sqlite` for local relational data; use `import.meta.dirname` (banning verbose `fileURLToPath(import.meta.url)`)
|
|
26
|
+
3. Event Loop Non-Blocking & Stream Backpressure โ Never use sync I/O in hot paths (`readFileSync`); handle stream backpressure with `pipeline()` from `node:stream/promises`
|
|
27
|
+
4. Startup Environment Validation โ Validate all `process.env` keys at startup with Zod/Valibot; fail fast before listening on ports
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
## Activation Boundaries
|
|
30
|
+
|
|
31
|
+
- **Activate when:** Designing server-side Node.js 22+ backends, Fastify/Hono/Express APIs, microservices, CLI tools, worker queues, and event loop performance tuning.
|
|
32
|
+
- **DO NOT activate when:** Writing client-side browser DOM code, or mobile cross-platform scripts.
|
|
33
|
+
|
|
34
|
+
## 2026 Node.js 22+ Performance & Runtime Invariants
|
|
35
|
+
|
|
36
|
+
1. **`node:sqlite` Built-in Database**: In Node 22+, use `node:sqlite` for embedded storage without requiring compiled native C++ bindings:
|
|
37
|
+
```ts
|
|
38
|
+
import { DatabaseSync } from 'node:sqlite';
|
|
39
|
+
const db = new DatabaseSync(':memory:');
|
|
40
|
+
```
|
|
41
|
+
2. **`import.meta.dirname` & `import.meta.filename`**: Native in Node 20.11+ and 22+:
|
|
42
|
+
```ts
|
|
43
|
+
import { join } from 'node:path';
|
|
44
|
+
const configPath = join(import.meta.dirname, 'config.json');
|
|
45
|
+
```
|
|
46
|
+
3. **Safe Async Stream Pipelining**: Always use `pipeline` from `node:stream/promises` to automatically destroy streams on error and prevent memory leaks.
|
|
47
|
+
4. **Native Test Runner**: Use `node:test` and `node:assert/strict` for zero-dependency high-speed test suites.
|
|
48
|
+
|
|
49
|
+
## Hallucination Traps (Read First)
|
|
50
|
+
|
|
51
|
+
- โ `import fs from "fs"` โ โ
`import fs from "node:fs"` (always use `node:` prefix)
|
|
52
|
+
- โ `path.dirname(fileURLToPath(import.meta.url))` โ โ
Node 22+: `import.meta.dirname`
|
|
53
|
+
- โ Installing `better-sqlite3` for basic SQLite โ โ
Use native `import { DatabaseSync } from 'node:sqlite'`
|
|
54
|
+
- โ `fs.readFileSync()` inside request handlers โ โ
`await fs.readFile()` from `node:fs/promises`
|
|
55
|
+
- โ Unhandled promise rejections without crashing โ โ
In Node 22+, always handle or exit cleanly
|
|
29
56
|
|
|
30
57
|
---
|
|
31
58
|
|
|
@@ -538,69 +565,17 @@ AI coding assistants often fall into specific bad habits when dealing with this
|
|
|
538
565
|
|
|
539
566
|
---
|
|
540
567
|
|
|
541
|
-
|
|
542
|
-
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
543
|
-
|
|
544
|
-
### โ Forbidden AI Tropes
|
|
545
|
-
|
|
546
|
-
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
547
|
-
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
548
|
-
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
549
|
-
|
|
550
|
-
Review these questions before confirming output:
|
|
551
|
-
|
|
552
|
-
```
|
|
553
|
-
โ
Did I rely ONLY on real, verified tools and methods?
|
|
554
|
-
โ
Is this solution appropriately scoped to the user's constraints?
|
|
555
|
-
โ
Did I handle potential failure modes and edge cases?
|
|
556
|
-
โ
Have I avoided generic boilerplate that doesn't add value?
|
|
557
|
-
```
|
|
558
|
-
|
|
559
|
-
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
560
|
-
|
|
561
|
-
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
562
|
-
|
|
563
|
-
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
564
|
-
- โ
**Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.
|
|
565
|
-
|
|
566
|
-
## Pre-Flight Checklist
|
|
567
|
-
|
|
568
|
-
- [ ] Have I reviewed the user's specific constraints and requests?
|
|
569
|
-
- [ ] Have I checked the environment for relevant existing implementations?
|
|
570
|
-
|
|
571
|
-
## VBC Protocol (Verification-Before-Completion)
|
|
572
|
-
|
|
573
|
-
You MUST verify existing code signatures and variables before attempting to modify or call them. No hallucination is permitted.
|
|
574
|
-
|
|
575
|
-
---
|
|
576
|
-
|
|
577
|
-
## ๐ค LLM-Specific Traps
|
|
578
|
-
|
|
579
|
-
AI coding assistants often fall into specific bad habits when dealing with this domain. These are strictly forbidden:
|
|
580
|
-
|
|
581
|
-
1. **Over-engineering:** Proposing complex abstractions or distributed systems when a simpler approach suffices.
|
|
582
|
-
2. **Hallucinated Libraries/Methods:** Using non-existent methods or packages. Always `// VERIFY` or check `package.json` / `requirements.txt`.
|
|
583
|
-
3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
|
|
584
|
-
4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
585
|
-
5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
|
|
586
|
-
|
|
587
|
-
---
|
|
588
|
-
|
|
589
|
-
## ๐๏ธ Tribunal Integration (Anti-Hallucination)
|
|
568
|
+
## ๐๏ธ Tribunal Verification & Guardrails
|
|
590
569
|
|
|
591
570
|
**Slash command: `/review` or `/tribunal-full`**
|
|
592
571
|
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
593
572
|
|
|
594
573
|
### โ Forbidden AI Tropes
|
|
595
|
-
|
|
596
574
|
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
597
575
|
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
598
576
|
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
599
577
|
|
|
600
578
|
### โ
Pre-Flight Self-Audit
|
|
601
|
-
|
|
602
|
-
Review these questions before confirming output:
|
|
603
|
-
|
|
604
579
|
```
|
|
605
580
|
โ
Did I rely ONLY on real, verified tools and methods?
|
|
606
581
|
โ
Is this solution appropriately scoped to the user's constraints?
|
|
@@ -609,8 +584,6 @@ Review these questions before confirming output:
|
|
|
609
584
|
```
|
|
610
585
|
|
|
611
586
|
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
612
|
-
|
|
613
587
|
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
614
|
-
|
|
615
588
|
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
616
589
|
- โ
**Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
name: observability
|
|
3
3
|
description: Production observability mastery. Structured logging (Pino/Winston), OpenTelemetry tracing, metrics (Prometheus/Grafana), SLIs/SLOs/error budgets, distributed tracing, alerting design, health checks, and AI observability. Use when setting up monitoring, debugging production issues, or designing observable distributed systems.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
|
-
version:
|
|
6
|
-
last-updated: 2026-07
|
|
5
|
+
version: 4.0.0
|
|
6
|
+
last-updated: 2026-09-07
|
|
7
7
|
skills:
|
|
8
8
|
- devops-incident-responder
|
|
9
9
|
- nodejs-best-practices
|
|
@@ -25,7 +25,11 @@ Before instrumenting applications for observability, you MUST inspect:
|
|
|
25
25
|
2. Separation of Liveness & Readiness Checks (Section 253) โ Isolate `/health/live` (process active) from `/health/ready` (DB connected); ban DB calls in liveness checks to prevent restart loops
|
|
26
26
|
3. Correlation Tracking Context (Section 80) โ Inject `x-request-id` via AsyncLocalStorage or middleware so every log line is correlated to a specific request
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
|
|
29
|
+
## Activation Boundaries
|
|
30
|
+
|
|
31
|
+
- **Activate when:** Operating in tasks requiring Production observability mastery. Structured logging (Pino/Winston), OpenTelemetry tracing, metrics (Prometheus/Grafana), SLIs/SLOs/error budgets, distributed tracing, alerting design, health checks, and AI observability. Use when setting up monitoring, debugging production issues, or designing observable distributed systems..
|
|
32
|
+
- **DO NOT activate when:** The task falls strictly outside observability domain or belongs to a different dedicated specialist.
|
|
29
33
|
|
|
30
34
|
---
|
|
31
35
|
|
|
@@ -322,69 +326,17 @@ AI coding assistants often fall into specific bad habits when dealing with this
|
|
|
322
326
|
|
|
323
327
|
---
|
|
324
328
|
|
|
325
|
-
|
|
326
|
-
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
327
|
-
|
|
328
|
-
### โ Forbidden AI Tropes
|
|
329
|
-
|
|
330
|
-
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
331
|
-
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
332
|
-
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
333
|
-
|
|
334
|
-
Review these questions before confirming output:
|
|
335
|
-
|
|
336
|
-
```
|
|
337
|
-
โ
Did I rely ONLY on real, verified tools and methods?
|
|
338
|
-
โ
Is this solution appropriately scoped to the user's constraints?
|
|
339
|
-
โ
Did I handle potential failure modes and edge cases?
|
|
340
|
-
โ
Have I avoided generic boilerplate that doesn't add value?
|
|
341
|
-
```
|
|
342
|
-
|
|
343
|
-
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
344
|
-
|
|
345
|
-
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
346
|
-
|
|
347
|
-
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
348
|
-
- โ
**Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.
|
|
349
|
-
|
|
350
|
-
## Pre-Flight Checklist
|
|
351
|
-
|
|
352
|
-
- [ ] Have I reviewed the user's specific constraints and requests?
|
|
353
|
-
- [ ] Have I checked the environment for relevant existing implementations?
|
|
354
|
-
|
|
355
|
-
## VBC Protocol (Verification-Before-Completion)
|
|
356
|
-
|
|
357
|
-
You MUST verify existing code signatures and variables before attempting to modify or call them. No hallucination is permitted.
|
|
358
|
-
|
|
359
|
-
---
|
|
360
|
-
|
|
361
|
-
## ๐ค LLM-Specific Traps
|
|
362
|
-
|
|
363
|
-
AI coding assistants often fall into specific bad habits when dealing with this domain. These are strictly forbidden:
|
|
364
|
-
|
|
365
|
-
1. **Over-engineering:** Proposing complex abstractions or distributed systems when a simpler approach suffices.
|
|
366
|
-
2. **Hallucinated Libraries/Methods:** Using non-existent methods or packages. Always `// VERIFY` or check `package.json` / `requirements.txt`.
|
|
367
|
-
3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
|
|
368
|
-
4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
369
|
-
5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
|
|
370
|
-
|
|
371
|
-
---
|
|
372
|
-
|
|
373
|
-
## ๐๏ธ Tribunal Integration (Anti-Hallucination)
|
|
329
|
+
## ๐๏ธ Tribunal Verification & Guardrails
|
|
374
330
|
|
|
375
331
|
**Slash command: `/review` or `/tribunal-full`**
|
|
376
332
|
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
377
333
|
|
|
378
334
|
### โ Forbidden AI Tropes
|
|
379
|
-
|
|
380
335
|
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
381
336
|
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
382
337
|
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
383
338
|
|
|
384
339
|
### โ
Pre-Flight Self-Audit
|
|
385
|
-
|
|
386
|
-
Review these questions before confirming output:
|
|
387
|
-
|
|
388
340
|
```
|
|
389
341
|
โ
Did I rely ONLY on real, verified tools and methods?
|
|
390
342
|
โ
Is this solution appropriately scoped to the user's constraints?
|
|
@@ -393,8 +345,6 @@ Review these questions before confirming output:
|
|
|
393
345
|
```
|
|
394
346
|
|
|
395
347
|
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
396
|
-
|
|
397
348
|
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
398
|
-
|
|
399
349
|
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
400
350
|
- โ
**Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.
|