tribunal-kit 8.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.
Files changed (258) hide show
  1. package/.agent/ARCHITECTURE.md +2 -2
  2. package/.agent/config/plugin.json +4 -4
  3. package/.agent/config/system-prompt.md +54 -1
  4. package/.agent/routing_index.json +2 -2
  5. package/.agent/skills/12-principles-of-animation/SKILL.md +19 -16
  6. package/.agent/skills/60fps-animation/SKILL.md +47 -21
  7. package/.agent/skills/accessible-animation/SKILL.md +19 -16
  8. package/.agent/skills/adapt/SKILL.md +19 -16
  9. package/.agent/skills/advanced-rag-pipelines/SKILL.md +41 -40
  10. package/.agent/skills/agent-organizer/SKILL.md +9 -59
  11. package/.agent/skills/agentic-patterns/SKILL.md +9 -57
  12. package/.agent/skills/agentic-workflows-2026/SKILL.md +45 -8
  13. package/.agent/skills/ai-app-hardening/SKILL.md +31 -5
  14. package/.agent/skills/ai-prompt-injection-defense/SKILL.md +28 -66
  15. package/.agent/skills/animation-on-scroll/SKILL.md +19 -16
  16. package/.agent/skills/animation-systems/SKILL.md +19 -15
  17. package/.agent/skills/antfu-conventions/SKILL.md +19 -18
  18. package/.agent/skills/api-patterns/SKILL.md +8 -58
  19. package/.agent/skills/api-security-auditor/SKILL.md +8 -58
  20. package/.agent/skills/app-builder/SKILL.md +9 -59
  21. package/.agent/skills/appflow-wireframe/SKILL.md +13 -57
  22. package/.agent/skills/apple-design/SKILL.md +22 -14
  23. package/.agent/skills/architecture/SKILL.md +9 -59
  24. package/.agent/skills/audit-and-fix/SKILL.md +19 -16
  25. package/.agent/skills/authentication-best-practices/SKILL.md +8 -58
  26. package/.agent/skills/backend-security-expert/SKILL.md +32 -65
  27. package/.agent/skills/baseline-ui/SKILL.md +22 -14
  28. package/.agent/skills/bash-linux/SKILL.md +9 -59
  29. package/.agent/skills/behavioral-modes/SKILL.md +9 -57
  30. package/.agent/skills/better-colors/SKILL.md +22 -14
  31. package/.agent/skills/better-typography/SKILL.md +26 -14
  32. package/.agent/skills/better-ui/SKILL.md +54 -19
  33. package/.agent/skills/bolder/SKILL.md +19 -16
  34. package/.agent/skills/brainstorming/SKILL.md +9 -57
  35. package/.agent/skills/browser-native-ai/SKILL.md +9 -28
  36. package/.agent/skills/build-primitive/SKILL.md +19 -16
  37. package/.agent/skills/building-native-ui/SKILL.md +9 -59
  38. package/.agent/skills/cicd-pro/SKILL.md +21 -28
  39. package/.agent/skills/clarify/SKILL.md +19 -16
  40. package/.agent/skills/clean-code/SKILL.md +18 -61
  41. package/.agent/skills/cloud-architect/SKILL.md +21 -28
  42. package/.agent/skills/cobejs/SKILL.md +19 -15
  43. package/.agent/skills/code-review-checklist/SKILL.md +8 -58
  44. package/.agent/skills/codebase-design/SKILL.md +33 -22
  45. package/.agent/skills/colorize/SKILL.md +19 -16
  46. package/.agent/skills/compact-landing/SKILL.md +19 -16
  47. package/.agent/skills/company-logos/SKILL.md +19 -16
  48. package/.agent/skills/config-validator/SKILL.md +9 -59
  49. package/.agent/skills/containerization-pro/SKILL.md +21 -28
  50. package/.agent/skills/context-engineering-pro/SKILL.md +31 -5
  51. package/.agent/skills/create-design-md/SKILL.md +22 -14
  52. package/.agent/skills/critique/SKILL.md +20 -11
  53. package/.agent/skills/csharp-developer/SKILL.md +8 -58
  54. package/.agent/skills/data-validation-schemas/SKILL.md +9 -59
  55. package/.agent/skills/database-design/SKILL.md +27 -67
  56. package/.agent/skills/delight/SKILL.md +19 -16
  57. package/.agent/skills/deployment-procedures/SKILL.md +9 -59
  58. package/.agent/skills/design-lab/SKILL.md +19 -16
  59. package/.agent/skills/devops-engineer/SKILL.md +8 -58
  60. package/.agent/skills/devops-incident-responder/SKILL.md +9 -59
  61. package/.agent/skills/diagnosing-bugs/SKILL.md +20 -21
  62. package/.agent/skills/distill/SKILL.md +19 -16
  63. package/.agent/skills/documentation-templates/SKILL.md +9 -59
  64. package/.agent/skills/domain-modeling/SKILL.md +19 -18
  65. package/.agent/skills/duckdb-analytical-sql/SKILL.md +31 -5
  66. package/.agent/skills/edge-ai-mobile/SKILL.md +31 -5
  67. package/.agent/skills/edge-computing/SKILL.md +9 -59
  68. package/.agent/skills/emil-design-eng/SKILL.md +21 -24
  69. package/.agent/skills/error-resilience/SKILL.md +31 -66
  70. package/.agent/skills/expo-router-v4/SKILL.md +31 -5
  71. package/.agent/skills/extract-design-system/SKILL.md +9 -59
  72. package/.agent/skills/fabel-protocol/SKILL.md +26 -8
  73. package/.agent/skills/fixing-accessibility/SKILL.md +22 -14
  74. package/.agent/skills/fixing-metadata/SKILL.md +19 -16
  75. package/.agent/skills/fixing-motion-performance/SKILL.md +22 -14
  76. package/.agent/skills/framer-motion-expert/SKILL.md +9 -57
  77. package/.agent/skills/frontend-design/SKILL.md +27 -7
  78. package/.agent/skills/frontend-security-expert/SKILL.md +8 -58
  79. package/.agent/skills/game-design-expert/SKILL.md +9 -59
  80. package/.agent/skills/game-engineering-expert/SKILL.md +9 -59
  81. package/.agent/skills/generative-ui-expert/SKILL.md +9 -28
  82. package/.agent/skills/geo-fundamentals/SKILL.md +9 -59
  83. package/.agent/skills/git-pro/SKILL.md +19 -30
  84. package/.agent/skills/github-operations/SKILL.md +8 -58
  85. package/.agent/skills/gpt-taste/SKILL.md +19 -16
  86. package/.agent/skills/gsap-core/SKILL.md +8 -78
  87. package/.agent/skills/gsap-frameworks/SKILL.md +8 -78
  88. package/.agent/skills/gsap-performance/SKILL.md +9 -77
  89. package/.agent/skills/gsap-plugins/SKILL.md +9 -77
  90. package/.agent/skills/gsap-react/SKILL.md +9 -21
  91. package/.agent/skills/gsap-scrolltrigger/SKILL.md +8 -78
  92. package/.agent/skills/gsap-timeline/SKILL.md +9 -77
  93. package/.agent/skills/gsap-utils/SKILL.md +9 -77
  94. package/.agent/skills/harden/SKILL.md +19 -16
  95. package/.agent/skills/harness-protocol/SKILL.md +9 -21
  96. package/.agent/skills/i18n-localization/SKILL.md +9 -59
  97. package/.agent/skills/impeccable/SKILL.md +19 -18
  98. package/.agent/skills/improve-codebase-architecture/SKILL.md +19 -17
  99. package/.agent/skills/improve-ui/SKILL.md +22 -14
  100. package/.agent/skills/intelligent-routing/SKILL.md +9 -23
  101. package/.agent/skills/knowledge-graph/SKILL.md +9 -21
  102. package/.agent/skills/landing-page/SKILL.md +19 -16
  103. package/.agent/skills/lint-and-validate/SKILL.md +9 -59
  104. package/.agent/skills/llm-engineering/SKILL.md +8 -58
  105. package/.agent/skills/local-first/SKILL.md +9 -59
  106. package/.agent/skills/local-first-architecture/SKILL.md +37 -20
  107. package/.agent/skills/lottie-animation/SKILL.md +19 -15
  108. package/.agent/skills/marquee-loop/SKILL.md +19 -16
  109. package/.agent/skills/masked-reveal/SKILL.md +19 -15
  110. package/.agent/skills/mcp-builder/SKILL.md +9 -59
  111. package/.agent/skills/micro-interaction/SKILL.md +19 -16
  112. package/.agent/skills/mobile-design/SKILL.md +8 -58
  113. package/.agent/skills/monorepo-management/SKILL.md +9 -59
  114. package/.agent/skills/morphing-icons/SKILL.md +19 -15
  115. package/.agent/skills/motion-engineering/SKILL.md +22 -15
  116. package/.agent/skills/nextjs-react-expert/SKILL.md +35 -67
  117. package/.agent/skills/nodejs-best-practices/SKILL.md +34 -61
  118. package/.agent/skills/observability/SKILL.md +8 -58
  119. package/.agent/skills/opentelemetry-observability/SKILL.md +31 -5
  120. package/.agent/skills/page-transition-animation/SKILL.md +19 -16
  121. package/.agent/skills/parallel-agents/SKILL.md +9 -59
  122. package/.agent/skills/performance-profiling/SKILL.md +8 -58
  123. package/.agent/skills/plan-writing/SKILL.md +36 -69
  124. package/.agent/skills/platform-engineer/SKILL.md +9 -59
  125. package/.agent/skills/platform-engineering-opentofu/SKILL.md +31 -5
  126. package/.agent/skills/playwright-ai-e2e/SKILL.md +31 -5
  127. package/.agent/skills/playwright-best-practices/SKILL.md +9 -59
  128. package/.agent/skills/polish/SKILL.md +19 -16
  129. package/.agent/skills/powershell-windows/SKILL.md +8 -58
  130. package/.agent/skills/pricing-page/SKILL.md +19 -16
  131. package/.agent/skills/product-aware-heuristics/SKILL.md +27 -8
  132. package/.agent/skills/progressive-blur/SKILL.md +19 -16
  133. package/.agent/skills/project-idioms/SKILL.md +9 -59
  134. package/.agent/skills/property-based-testing/SKILL.md +31 -5
  135. package/.agent/skills/python-patterns/SKILL.md +9 -59
  136. package/.agent/skills/python-pro/SKILL.md +35 -67
  137. package/.agent/skills/quieter/SKILL.md +19 -16
  138. package/.agent/skills/react-doctor/SKILL.md +19 -16
  139. package/.agent/skills/react-specialist/SKILL.md +26 -65
  140. package/.agent/skills/readme-builder/SKILL.md +9 -59
  141. package/.agent/skills/realtime-patterns/SKILL.md +8 -58
  142. package/.agent/skills/red-team-tactics/SKILL.md +9 -59
  143. package/.agent/skills/redesign-skill/SKILL.md +19 -16
  144. package/.agent/skills/review-animations/SKILL.md +21 -25
  145. package/.agent/skills/rust-pro/SKILL.md +30 -61
  146. package/.agent/skills/seo-fundamentals/SKILL.md +9 -59
  147. package/.agent/skills/server-management/SKILL.md +9 -59
  148. package/.agent/skills/shadcn-ui-expert/SKILL.md +9 -59
  149. package/.agent/skills/shape/SKILL.md +19 -16
  150. package/.agent/skills/skill-creator/SKILL.md +36 -86
  151. package/.agent/skills/soft-skill/SKILL.md +19 -16
  152. package/.agent/skills/sounds-on-the-web/SKILL.md +19 -16
  153. package/.agent/skills/sql-pro/SKILL.md +47 -62
  154. package/.agent/skills/supabase-postgres-best-practices/SKILL.md +9 -59
  155. package/.agent/skills/svg-animation/SKILL.md +19 -15
  156. package/.agent/skills/swiftui-expert/SKILL.md +9 -59
  157. package/.agent/skills/swiss-design/SKILL.md +19 -16
  158. package/.agent/skills/system-design-pro/SKILL.md +21 -26
  159. package/.agent/skills/systematic-debugging/SKILL.md +19 -60
  160. package/.agent/skills/systematic-debugging/condition-based-waiting.md +115 -0
  161. package/.agent/skills/systematic-debugging/defense-in-depth.md +122 -0
  162. package/.agent/skills/systematic-debugging/root-cause-tracing.md +169 -0
  163. package/.agent/skills/tailwind-patterns/SKILL.md +8 -58
  164. package/.agent/skills/taste-skill/SKILL.md +19 -16
  165. package/.agent/skills/tdd-workflow/SKILL.md +65 -25
  166. package/.agent/skills/test-result-analyzer/SKILL.md +9 -59
  167. package/.agent/skills/testing-patterns/SKILL.md +8 -58
  168. package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +19 -18
  169. package/.agent/skills/thinking-protocol/SKILL.md +33 -2
  170. package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +19 -15
  171. package/.agent/skills/transitions-dev/SKILL.md +19 -15
  172. package/.agent/skills/trend-researcher/SKILL.md +9 -59
  173. package/.agent/skills/typescript-advanced/SKILL.md +21 -64
  174. package/.agent/skills/typeset/SKILL.md +19 -16
  175. package/.agent/skills/ui-reasoning-engine/SKILL.md +27 -8
  176. package/.agent/skills/ui-skill-packs/SKILL.md +26 -16
  177. package/.agent/skills/ui-skills-root/SKILL.md +22 -14
  178. package/.agent/skills/ui-ux-pro-max/SKILL.md +38 -12
  179. package/.agent/skills/ui-ux-researcher/SKILL.md +9 -59
  180. package/.agent/skills/vector-search-pgvector/SKILL.md +31 -5
  181. package/.agent/skills/verification-before-completion/SKILL.md +125 -0
  182. package/.agent/skills/vue-expert/SKILL.md +9 -57
  183. package/.agent/skills/vulnerability-scanner/SKILL.md +8 -58
  184. package/.agent/skills/web-accessibility-auditor/SKILL.md +9 -59
  185. package/.agent/skills/web-design-guidelines/SKILL.md +27 -7
  186. package/.agent/skills/web-quality-audit/SKILL.md +19 -16
  187. package/.agent/skills/webapp-testing/SKILL.md +9 -59
  188. package/.agent/skills/webgpu-performance/SKILL.md +9 -28
  189. package/.agent/skills/whimsy-injector/SKILL.md +9 -57
  190. package/.agent/skills/workflow-optimizer/SKILL.md +9 -57
  191. package/.agent/skills/zero-trust-passkeys/SKILL.md +31 -5
  192. package/.agent/templates/DESIGN.md +680 -160
  193. package/.agent/templates/sdd/implementer-prompt.md +53 -0
  194. package/.agent/templates/sdd/re-review-prompt.md +28 -0
  195. package/.agent/templates/sdd/task-reviewer-prompt.md +59 -0
  196. package/.agent/workflows/acf.md +4 -0
  197. package/.agent/workflows/api-tester.md +5 -0
  198. package/.agent/workflows/audit.md +5 -0
  199. package/.agent/workflows/brainstorm.md +17 -1
  200. package/.agent/workflows/changelog.md +5 -0
  201. package/.agent/workflows/contract.md +19 -0
  202. package/.agent/workflows/create.md +6 -1
  203. package/.agent/workflows/debug.md +5 -0
  204. package/.agent/workflows/deploy.md +6 -1
  205. package/.agent/workflows/enhance.md +6 -1
  206. package/.agent/workflows/fix-ci.md +5 -0
  207. package/.agent/workflows/fix.md +5 -0
  208. package/.agent/workflows/generate.md +5 -0
  209. package/.agent/workflows/marathon.md +6 -1
  210. package/.agent/workflows/migrate.md +5 -0
  211. package/.agent/workflows/minimal.md +4 -0
  212. package/.agent/workflows/orchestrate.md +6 -1
  213. package/.agent/workflows/performance-benchmarker.md +6 -1
  214. package/.agent/workflows/pipeline.md +5 -0
  215. package/.agent/workflows/plan.md +6 -1
  216. package/.agent/workflows/preview.md +6 -1
  217. package/.agent/workflows/refactor.md +6 -0
  218. package/.agent/workflows/review-ai.md +5 -0
  219. package/.agent/workflows/review.md +5 -0
  220. package/.agent/workflows/sdd.md +122 -0
  221. package/.agent/workflows/session.md +5 -0
  222. package/.agent/workflows/status.md +4 -0
  223. package/.agent/workflows/super-prompt.md +4 -0
  224. package/.agent/workflows/swarm.md +6 -1
  225. package/.agent/workflows/test.md +6 -1
  226. package/.agent/workflows/tribunal-backend.md +5 -0
  227. package/.agent/workflows/tribunal-cicd.md +5 -0
  228. package/.agent/workflows/tribunal-database.md +5 -0
  229. package/.agent/workflows/tribunal-full.md +8 -0
  230. package/.agent/workflows/tribunal-mobile.md +5 -0
  231. package/.agent/workflows/tribunal-performance.md +5 -0
  232. package/.agent/workflows/tribunal-speed.md +5 -0
  233. package/.agent/workflows/tribunal-ui.md +7 -0
  234. package/.agents/plugins/marketplace.json +20 -0
  235. package/.claude-plugin/marketplace.json +17 -0
  236. package/.claude-plugin/plugin.json +26 -0
  237. package/.codex-plugin/plugin.json +45 -0
  238. package/.cursor-plugin/plugin.json +26 -0
  239. package/.devin-plugin/plugin.json +14 -0
  240. package/.hermes-plugin/__init__.py +102 -0
  241. package/.hermes-plugin/plugin.yaml +6 -0
  242. package/.kimi-plugin/plugin.json +38 -0
  243. package/.opencode/INSTALL.md +41 -0
  244. package/.opencode/plugins/tribunal.js +101 -0
  245. package/.pi/extensions/tribunal.ts +133 -0
  246. package/CONTRIBUTING.md +1 -1
  247. package/README.md +246 -221
  248. package/bin/wrapper.js +1 -0
  249. package/dist/cli.js +355 -355
  250. package/dist/esm/index.mjs +142 -142
  251. package/dist/index.d.ts +349 -343
  252. package/gemini-extension.json +6 -0
  253. package/hooks/hooks-cursor.json +16 -0
  254. package/hooks/hooks.json +16 -0
  255. package/hooks/session-start.js +77 -0
  256. package/package.json +165 -146
  257. package/scripts/audit_skill_sdo.js +87 -0
  258. package/scripts/modernize_skills.js +254 -0
@@ -2,8 +2,8 @@
2
2
  name: cicd-pro
3
3
  description: Enterprise-grade CI/CD mastery. Golden Path - GitHub Actions + Docker + AWS ECS. 3-stage pipeline architecture (Validate→Build→Deploy), OIDC-based AWS auth (no static secrets), Blue/Green and Canary deployment with ECS, environment promotion gates (dev→staging→production), rollback playbooks, Slack notifications, and reusable workflow patterns. Use when designing or implementing production CI/CD pipelines.
4
4
  tools: Read, Grep, Glob, Bash, Edit, Write
5
- version: 3.0.0
6
- last-updated: 2026-07-30
5
+ version: 4.0.0
6
+ last-updated: 2026-09-07
7
7
  skills:
8
8
  - containerization-pro
9
9
  - cloud-architect
@@ -25,6 +25,12 @@ Before designing CI/CD workflows or deployment scripts, you MUST inspect:
25
25
  2. OIDC Authentication Protocol (Section 20) → Use OIDC (`id-token: write` permission) for AWS/cloud credentials; ban static access keys in secrets
26
26
  3. Production Promotion Gates (Section 21) → Enforce environment promotion gates (`staging` → `production` with manual reviewers) before deploying
27
27
 
28
+
29
+ ## Activation Boundaries
30
+
31
+ - **Activate when:** Operating in tasks requiring Enterprise-grade CI/CD mastery. Golden Path - GitHub Actions + Docker + AWS ECS. 3-stage pipeline architecture (Validate→Build→Deploy), OIDC-based AWS auth (no static secrets), Blue/Green and Canary deployment with ECS, environment promotion gates (dev→staging→production), rollback playbooks, Slack notifications, and reusable workflow patterns. Use when designing or implementing production CI/CD pipelines..
32
+ - **DO NOT activate when:** The task falls strictly outside cicd-pro domain or belongs to a different dedicated specialist.
33
+
28
34
  ## Hallucination Traps (Read First)
29
35
 
30
36
  - ❌ Missing `concurrency:` block → ✅ Without it, parallel deploys collide and corrupt production state
@@ -36,8 +42,6 @@ Before designing CI/CD workflows or deployment scripts, you MUST inspect:
36
42
 
37
43
  ---
38
44
 
39
- # CI/CD Pro — Enterprise Pipeline Mastery
40
-
41
45
  ## 1. The 3-Stage Pipeline Model
42
46
 
43
47
  ```
@@ -419,36 +423,25 @@ resource "github_repository_environment" "production" {
419
423
 
420
424
  ---
421
425
 
422
- ## 🤖 LLM-Specific Traps
423
-
424
- 1. **No `concurrency:` block**: Without it, two deploys can run simultaneously, causing task definition conflicts in ECS and corrupted deployments.
425
- 2. **Deploying without a stability wait**: `wait-for-service-stability: true` is critical. Without it, the pipeline reports success while ECS is still starting containers.
426
- 3. **Hardcoded task definition revisions**: Never hardcode `:1` or `:latest` in ECS deploy steps. Always fetch the current revision dynamically with `describe-task-definition`.
427
- 4. **Missing Slack failure notification**: Success notifications alone create false security. Always add `if: failure()` Slack step.
428
- 5. **Using `needs.job.result` incorrectly**: `needs.build.outputs.image` only works if `build` job has `outputs:` defined. Verify the output name matches exactly.
429
-
430
- ---
431
-
432
- ## 🏛️ Tribunal Integration (Anti-Hallucination)
426
+ ## 🏛️ Tribunal Verification & Guardrails
433
427
 
434
428
  **Slash command: `/review` or `/tribunal-full`**
435
- **Active reviewers: `logic-reviewer` · `security-auditor` · `devops-engineer`**
429
+ **Active reviewers: `logic-reviewer` · `security-auditor`**
436
430
 
437
- ### Pre-Flight Self-Audit
431
+ ### Forbidden AI Tropes
432
+ 1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
433
+ 2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
434
+ 3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
438
435
 
436
+ ### ✅ Pre-Flight Self-Audit
439
437
  ```
440
- Does the workflow have a concurrency: block?
441
- ✅ Is AWS auth using OIDC (id-token: write permission)?
442
- Does staging gate exist before production?
443
- Is production environment configured with required reviewers?
444
- ✅ Is there a rollback strategy documented and tested?
445
- ✅ Does the Slack notification cover BOTH success AND failure cases?
446
- ✅ Is wait-for-service-stability: true set on the ECS deploy step?
438
+ Did I rely ONLY on real, verified tools and methods?
439
+ ✅ Is this solution appropriately scoped to the user's constraints?
440
+ Did I handle potential failure modes and edge cases?
441
+ Have I avoided generic boilerplate that doesn't add value?
447
442
  ```
448
443
 
449
444
  ### 🛑 Verification-Before-Completion (VBC) Protocol
450
-
451
445
  **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
452
-
453
- - **Forbidden**: Declaring a pipeline correct because the YAML is syntactically valid.
454
- - ✅ **Required**: A real GitHub Actions run must succeed (green checkmarks across all stages) before the pipeline is declared production-ready.
446
+ - ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
447
+ - **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: clarify
3
3
  description: Improve UX microcopy, label optimization, error messages, and cognitive clarity. Use when text in a UI is confusing, wordy, ambiguous, or unhelpful.
4
- version: 3.0.0
5
- last-updated: 2026-07-30
4
+ version: 4.0.0
5
+ last-updated: 2026-09-07
6
6
  skills:
7
7
  - distill
8
8
  - shape
@@ -27,6 +27,12 @@ Before optimizing UI text or error messages, you MUST inspect:
27
27
 
28
28
  Optimize user interface text, button labels, error messaging, and helper copy for maximum clarity and minimum cognitive friction.
29
29
 
30
+
31
+ ## Activation Boundaries
32
+
33
+ - **Activate when:** Operating in tasks requiring Improve UX microcopy, label optimization, error messages, and cognitive clarity. Use when text in a UI is confusing, wordy, ambiguous, or unhelpful..
34
+ - **DO NOT activate when:** The task falls strictly outside clarify domain or belongs to a different dedicated specialist.
35
+
30
36
  ---
31
37
 
32
38
  ## 4 UX Copy Rules
@@ -62,28 +68,25 @@ Optimize user interface text, button labels, error messaging, and helper copy fo
62
68
 
63
69
  ---
64
70
 
65
- ## 🤖 LLM-Specific Traps
71
+ ## 🏛️ Tribunal Verification & Guardrails
66
72
 
67
- 1. **Generic OK/Cancel Modals**: Writing modal dialogs with generic "OK" buttons that obscure the action consequence.
68
- 2. **Snarky or Overly Clever Copy**: Using cute or humorous error messages when users are frustrated by a failure.
69
-
70
- ---
73
+ **Slash command: `/review` or `/tribunal-full`**
74
+ **Active reviewers: `logic-reviewer` · `security-auditor`**
71
75
 
72
- ## 🏛️ Tribunal Integration (Anti-Hallucination)
73
-
74
- **Active reviewers: `ui-ux-auditor`**
76
+ ### Forbidden AI Tropes
77
+ 1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
78
+ 2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
79
+ 3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
75
80
 
76
81
  ### ✅ Pre-Flight Self-Audit
77
-
78
82
  ```
79
- Does every button start with an explicit action verb?
80
- Do error messages clearly instruct the user how to resolve the issue?
81
- Is passive corporate jargon completely eliminated?
83
+ Did I rely ONLY on real, verified tools and methods?
84
+ Is this solution appropriately scoped to the user's constraints?
85
+ Did I handle potential failure modes and edge cases?
86
+ ✅ Have I avoided generic boilerplate that doesn't add value?
82
87
  ```
83
88
 
84
89
  ### 🛑 Verification-Before-Completion (VBC) Protocol
85
-
86
90
  **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
87
-
88
91
  - ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
89
92
  - ✅ **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: clean-code
3
3
  description: Clean code mastery. Naming conventions, function design, DRY vs WET, SOLID principles with code examples, refactoring patterns, code smells detection, error handling philosophy, comments that add value, and the art of simplicity. Use when reviewing code quality, refactoring, or establishing coding standards.
4
4
  tools: Read, Grep, Glob, Bash, Edit, Write
5
- version: 3.0.0
6
- last-updated: 2026-07-30
5
+ version: 4.0.0
6
+ last-updated: 2026-09-07
7
7
  skills:
8
8
  - codebase-design
9
9
  - code-review-checklist
@@ -24,16 +24,27 @@ Before refactoring code or evaluating clean code standards, you MUST inspect:
24
24
  1. Intent-Revealing Naming (Section 25) → Name variables/functions to reveal explicit intent; ban cryptic abbreviations (`d`, `proc`, `u`)
25
25
  2. Single-Purpose Functions (Section 95) → Ensure functions perform 1 single task; extract sub-operations if function exceeds ~30 lines
26
26
  3. Guard Clause Early Returns (Section 344) → Flatten nested logic (>3 levels) using guard clauses and fail-fast early returns
27
+ 4. Algorithmic Complexity & Lookups → Prefer `Set` / `Map` for O(1) membership lookups instead of repeated O(N) array scans
28
+
29
+ ## Activation Boundaries
30
+
31
+ - **Activate when:** Refactoring existing codebases, establishing code quality standards, designing function boundaries, eliminating code smells, and writing logic-bearing business modules.
32
+ - **DO NOT activate when:** Writing quick disposable test fixtures, raw low-level binary protocol buffers, or machine-generated artifacts where human maintainability is not an invariant.
33
+
34
+ ## 2026 Code Performance & Logic Invariants
35
+
36
+ 1. **Fail-Fast Early Returns**: Flatten nested conditionals (`if ... else if ... else`). Return or throw immediately on validation failure.
37
+ 2. **O(1) Data Structures**: Replace repeated `array.find()` or `array.includes()` in loops with `Set.has()` or `Map.get()`.
38
+ 3. **Cyclomatic Complexity Cap**: No single function may exceed cyclomatic complexity > 10. Split multi-branch operations into dedicated strategy handlers.
39
+ 4. **Pure Core, Imperative Shell**: Keep business calculations pure and deterministic; push network I/O, file access, and mutation to the boundaries.
40
+ 5. **Typed Error Hierarchy**: Never throw raw strings or generic `Error`. Throw domain-specific error classes containing structured metadata (`code`, `retryable`, `context`).
27
41
 
28
42
  ## Hallucination Traps (Read First)
29
43
 
30
44
  - ❌ Over-abstracting code that is used in only one place -> ✅ Don't DRY single-use code; premature abstraction is worse than duplication
31
45
  - ❌ Adding comments that restate what the code does -> ✅ Comments explain WHY, not WHAT; the code explains what
32
46
  - ❌ Creating utility functions for trivial one-liners -> ✅ Inline is clearer when the operation is self-documenting
33
-
34
- ---
35
-
36
- # Clean Code — The Art of Readable Software
47
+ - ❌ Using `array.find()` inside an `array.filter()` loop (O(N²)) -> ✅ Index into a `Map` first (O(N))
37
48
 
38
49
  ---
39
50
 
@@ -379,69 +390,17 @@ AI coding assistants often fall into specific bad habits when dealing with this
379
390
 
380
391
  ---
381
392
 
382
- **Slash command: `/review` or `/tribunal-full`**
383
- **Active reviewers: `logic-reviewer` · `security-auditor`**
384
-
385
- ### ❌ Forbidden AI Tropes
386
-
387
- 1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
388
- 2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
389
- 3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
390
-
391
- Review these questions before confirming output:
392
-
393
- ```
394
- ✅ Did I rely ONLY on real, verified tools and methods?
395
- ✅ Is this solution appropriately scoped to the user's constraints?
396
- ✅ Did I handle potential failure modes and edge cases?
397
- ✅ Have I avoided generic boilerplate that doesn't add value?
398
- ```
399
-
400
- ### 🛑 Verification-Before-Completion (VBC) Protocol
401
-
402
- **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
403
-
404
- - ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
405
- - ✅ **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.
406
-
407
- ## Pre-Flight Checklist
408
-
409
- - [ ] Have I reviewed the user's specific constraints and requests?
410
- - [ ] Have I checked the environment for relevant existing implementations?
411
-
412
- ## VBC Protocol (Verification-Before-Completion)
413
-
414
- You MUST verify existing code signatures and variables before attempting to modify or call them. No hallucination is permitted.
415
-
416
- ---
417
-
418
- ## 🤖 LLM-Specific Traps
419
-
420
- AI coding assistants often fall into specific bad habits when dealing with this domain. These are strictly forbidden:
421
-
422
- 1. **Over-engineering:** Proposing complex abstractions or distributed systems when a simpler approach suffices.
423
- 2. **Hallucinated Libraries/Methods:** Using non-existent methods or packages. Always `// VERIFY` or check `package.json` / `requirements.txt`.
424
- 3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
425
- 4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
426
- 5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
427
-
428
- ---
429
-
430
- ## 🏛️ Tribunal Integration (Anti-Hallucination)
393
+ ## 🏛️ Tribunal Verification & Guardrails
431
394
 
432
395
  **Slash command: `/review` or `/tribunal-full`**
433
396
  **Active reviewers: `logic-reviewer` · `security-auditor`**
434
397
 
435
398
  ### ❌ Forbidden AI Tropes
436
-
437
399
  1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
438
400
  2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
439
401
  3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
440
402
 
441
403
  ### ✅ Pre-Flight Self-Audit
442
-
443
- Review these questions before confirming output:
444
-
445
404
  ```
446
405
  ✅ Did I rely ONLY on real, verified tools and methods?
447
406
  ✅ Is this solution appropriately scoped to the user's constraints?
@@ -450,8 +409,6 @@ Review these questions before confirming output:
450
409
  ```
451
410
 
452
411
  ### 🛑 Verification-Before-Completion (VBC) Protocol
453
-
454
412
  **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
455
-
456
413
  - ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
457
414
  - ✅ **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: cloud-architect
3
3
  description: Production AWS cloud architecture mastery. Service selection (ECS Fargate vs Lambda vs EC2, RDS vs Aurora vs DynamoDB), Terraform IaC patterns with HCL examples, VPC networking design, IAM least privilege, Secrets Manager, CloudWatch observability, cost optimization, and multi-environment AWS Organizations strategy. Golden Path - AWS. Use when architecting cloud infrastructure, writing Terraform, or making AWS service selection decisions.
4
4
  tools: Read, Grep, Glob, Bash, Edit, Write
5
- version: 3.0.0
6
- last-updated: 2026-07-30
5
+ version: 4.0.0
6
+ last-updated: 2026-09-07
7
7
  skills:
8
8
  - cicd-pro
9
9
  - devops-engineer
@@ -25,6 +25,12 @@ Before architecting AWS cloud infrastructure or writing Terraform HCL, you MUST
25
25
  2. Private Subnet Application Placement (Section 23) → Place application compute (ECS, Lambda) strictly in private subnets; only ALB and NAT Gateway live in public subnets
26
26
  3. Secrets Manager Secret Injection (Section 21) → Reference secret ARNs from AWS Secrets Manager in ECS task definitions; ban plaintext environment variables for passwords/tokens
27
27
 
28
+
29
+ ## Activation Boundaries
30
+
31
+ - **Activate when:** Operating in tasks requiring Production AWS cloud architecture mastery. Service selection (ECS Fargate vs Lambda vs EC2, RDS vs Aurora vs DynamoDB), Terraform IaC patterns with HCL examples, VPC networking design, IAM least privilege, Secrets Manager, CloudWatch observability, cost optimization, and multi-environment AWS Organizations strategy. Golden Path - AWS. Use when architecting cloud infrastructure, writing Terraform, or making AWS service selection decisions..
32
+ - **DO NOT activate when:** The task falls strictly outside cloud-architect domain or belongs to a different dedicated specialist.
33
+
28
34
  ## Hallucination Traps (Read First)
29
35
 
30
36
  - ❌ Confusing availability zones with regions → ✅ `us-east-1` is a region. `us-east-1a` is an AZ within that region. Multi-AZ ≠ multi-region.
@@ -36,8 +42,6 @@ Before architecting AWS cloud infrastructure or writing Terraform HCL, you MUST
36
42
 
37
43
  ---
38
44
 
39
- # Cloud Architect — Production AWS Mastery
40
-
41
45
  ## 1. Service Selection Matrix
42
46
 
43
47
  ### Compute
@@ -416,36 +420,25 @@ terraform {
416
420
 
417
421
  ---
418
422
 
419
- ## 🤖 LLM-Specific Traps
420
-
421
- 1. **Omitting `data.aws_caller_identity.current.account_id`**: Never hardcode AWS account IDs in Terraform. Use the data source.
422
- 2. **Lambda for database-heavy operations**: Lambda's ephemeral compute model means each invocation opens a new DB connection. Use RDS Proxy for Lambda → RDS patterns.
423
- 3. **Ignoring NAT Gateway costs**: NAT Gateways cost ~$32/month + $0.045/GB. For staging, a single NAT Gateway is fine. For production, one per AZ for HA.
424
- 4. **Security groups as firewalls**: Security groups are stateful. NACLs are stateless. Never use NACLs as your primary defense layer — security groups are the right tool.
425
- 5. **Missing `lifecycle { ignore_changes }` on ECS services**: Without this, Terraform fights with your CI/CD pipeline over the running task definition revision.
426
-
427
- ---
428
-
429
- ## 🏛️ Tribunal Integration (Anti-Hallucination)
423
+ ## 🏛️ Tribunal Verification & Guardrails
430
424
 
431
425
  **Slash command: `/review` or `/tribunal-full`**
432
- **Active reviewers: `logic-reviewer` · `security-auditor` · `cloud-engineer`**
426
+ **Active reviewers: `logic-reviewer` · `security-auditor`**
433
427
 
434
- ### Pre-Flight Self-Audit
428
+ ### Forbidden AI Tropes
429
+ 1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
430
+ 2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
431
+ 3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
435
432
 
433
+ ### ✅ Pre-Flight Self-Audit
436
434
  ```
437
- Are all secrets stored in Secrets Manager (not plaintext env vars)?
438
- Are application servers in private subnets?
439
- Are IAM policies scoped to specific resources (no wildcard Resource: "*")?
440
- Is Terraform state stored in S3 with DynamoDB locking?
441
- ✅ Are CloudWatch alarms defined for error rates AND latency?
442
- ✅ Is auto-rollback configured on the ECS service circuit breaker?
443
- ✅ Are hardcoded account IDs / region strings replaced with data sources?
435
+ Did I rely ONLY on real, verified tools and methods?
436
+ Is this solution appropriately scoped to the user's constraints?
437
+ Did I handle potential failure modes and edge cases?
438
+ Have I avoided generic boilerplate that doesn't add value?
444
439
  ```
445
440
 
446
441
  ### 🛑 Verification-Before-Completion (VBC) Protocol
447
-
448
442
  **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
449
-
450
- - **Forbidden**: Declaring Terraform configuration correct because it "looks right."
451
- - ✅ **Required**: Run `terraform plan` with zero unexpected changes AND `terraform apply` successfully completes before marking infrastructure work as done.
443
+ - ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
444
+ - **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: cobejs
3
3
  description: Build lightweight, hardware-accelerated 3D interactive animated globes and web orbs using Cobe WebGL.
4
- version: 3.0.0
5
- last-updated: 2026-07-30
4
+ version: 4.0.0
5
+ last-updated: 2026-09-07
6
6
  skills:
7
7
  - 60fps-animation
8
8
  - motion-engineering
@@ -27,6 +27,12 @@ Before building WebGL 3D globe components with Cobe, you MUST inspect:
27
27
 
28
28
  Integrate ultra-fast, 5KB WebGL interactive globes for landing page hero sections and interactive location maps.
29
29
 
30
+
31
+ ## Activation Boundaries
32
+
33
+ - **Activate when:** Operating in tasks requiring Build lightweight, hardware-accelerated 3D interactive animated globes and web orbs using Cobe WebGL..
34
+ - **DO NOT activate when:** The task falls strictly outside cobejs domain or belongs to a different dedicated specialist.
35
+
30
36
  ---
31
37
 
32
38
  ## Cobe Canvas Setup Recipe (React)
@@ -77,27 +83,25 @@ export function InteractiveGlobe() {
77
83
 
78
84
  ---
79
85
 
80
- ## 🤖 LLM-Specific Traps
86
+ ## 🏛️ Tribunal Verification & Guardrails
81
87
 
82
- 1. **Forgetting Canvas Destroy Cleanup**: Failing to call `globe.destroy()` on component unmount, causing WebGL context leaks.
83
- 2. **Missing `aspectRatio: 1`**: Failing to constrain aspect ratio, causing globe canvas stretching.
84
-
85
- ---
88
+ **Slash command: `/review` or `/tribunal-full`**
89
+ **Active reviewers: `logic-reviewer` · `security-auditor`**
86
90
 
87
- ## 🏛️ Tribunal Integration (Anti-Hallucination)
88
-
89
- **Active reviewers: `frontend-reviewer` · `performance-optimizer`**
91
+ ### Forbidden AI Tropes
92
+ 1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
93
+ 2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
94
+ 3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
90
95
 
91
96
  ### ✅ Pre-Flight Self-Audit
92
-
93
97
  ```
94
- Is `globe.destroy()` invoked in the unmount cleanup function?
95
- ✅ Is `devicePixelRatio` set to match high-DPI screens without GPU slowdown?
98
+ Did I rely ONLY on real, verified tools and methods?
99
+ ✅ Is this solution appropriately scoped to the user's constraints?
100
+ ✅ Did I handle potential failure modes and edge cases?
101
+ ✅ Have I avoided generic boilerplate that doesn't add value?
96
102
  ```
97
103
 
98
104
  ### 🛑 Verification-Before-Completion (VBC) Protocol
99
-
100
105
  **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
101
-
102
106
  - ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
103
107
  - ✅ **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: code-review-checklist
3
3
  description: Code review guidelines covering code quality, security, and best practices.
4
4
  tools: Read, Grep, Glob, Bash, Edit, Write
5
- version: 3.0.0
6
- last-updated: 2026-07-30
5
+ version: 4.0.0
6
+ last-updated: 2026-09-07
7
7
  skills:
8
8
  - clean-code
9
9
  - lint-and-validate
@@ -25,7 +25,11 @@ Before performing code reviews or writing PR comments, you MUST inspect:
25
25
  2. Context Window Discipline (Section 120) → Quote concise 1-3 line snippets with line numbers; ban pasting massive blocks of unchanged code
26
26
  3. Anti-Nitpicking Rule (Section 130) → Delegate syntax/formatting formatting checks to linters (`eslint`/Prettier); focus reviews on logic and security
27
27
 
28
- # Code Review Standards
28
+
29
+ ## Activation Boundaries
30
+
31
+ - **Activate when:** Operating in tasks requiring Code review guidelines covering code quality, security, and best practices..
32
+ - **DO NOT activate when:** The task falls strictly outside code-review-checklist domain or belongs to a different dedicated specialist.
29
33
 
30
34
  ---
31
35
 
@@ -182,69 +186,17 @@ AI coding assistants often fall into specific bad habits when dealing with this
182
186
 
183
187
  ---
184
188
 
185
- **Slash command: `/review` or `/tribunal-full`**
186
- **Active reviewers: `logic-reviewer` · `security-auditor`**
187
-
188
- ### ❌ Forbidden AI Tropes
189
-
190
- 1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
191
- 2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
192
- 3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
193
-
194
- Review these questions before confirming output:
195
-
196
- ```
197
- ✅ Did I rely ONLY on real, verified tools and methods?
198
- ✅ Is this solution appropriately scoped to the user's constraints?
199
- ✅ Did I handle potential failure modes and edge cases?
200
- ✅ Have I avoided generic boilerplate that doesn't add value?
201
- ```
202
-
203
- ### 🛑 Verification-Before-Completion (VBC) Protocol
204
-
205
- **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
206
-
207
- - ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
208
- - ✅ **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.
209
-
210
- ## Pre-Flight Checklist
211
-
212
- - [ ] Have I reviewed the user's specific constraints and requests?
213
- - [ ] Have I checked the environment for relevant existing implementations?
214
-
215
- ## VBC Protocol (Verification-Before-Completion)
216
-
217
- You MUST verify existing code signatures and variables before attempting to modify or call them. No hallucination is permitted.
218
-
219
- ---
220
-
221
- ## 🤖 LLM-Specific Traps
222
-
223
- AI coding assistants often fall into specific bad habits when dealing with this domain. These are strictly forbidden:
224
-
225
- 1. **Over-engineering:** Proposing complex abstractions or distributed systems when a simpler approach suffices.
226
- 2. **Hallucinated Libraries/Methods:** Using non-existent methods or packages. Always `// VERIFY` or check `package.json` / `requirements.txt`.
227
- 3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
228
- 4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
229
- 5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
230
-
231
- ---
232
-
233
- ## 🏛️ Tribunal Integration (Anti-Hallucination)
189
+ ## 🏛️ Tribunal Verification & Guardrails
234
190
 
235
191
  **Slash command: `/review` or `/tribunal-full`**
236
192
  **Active reviewers: `logic-reviewer` · `security-auditor`**
237
193
 
238
194
  ### ❌ Forbidden AI Tropes
239
-
240
195
  1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
241
196
  2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
242
197
  3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
243
198
 
244
199
  ### ✅ Pre-Flight Self-Audit
245
-
246
- Review these questions before confirming output:
247
-
248
200
  ```
249
201
  ✅ Did I rely ONLY on real, verified tools and methods?
250
202
  ✅ Is this solution appropriately scoped to the user's constraints?
@@ -253,8 +205,6 @@ Review these questions before confirming output:
253
205
  ```
254
206
 
255
207
  ### 🛑 Verification-Before-Completion (VBC) Protocol
256
-
257
208
  **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
258
-
259
209
  - ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
260
210
  - ✅ **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: codebase-design
3
3
  description: Guidance for designing deep modules with small interfaces and clean seams. Use when structuring a new module, refactoring complex codebases, or designing internal library boundaries.
4
4
  tools: Read, Grep, Glob, Bash, Edit, Write
5
- version: 3.0.0
6
- last-updated: 2026-07-30
5
+ version: 4.0.0
6
+ last-updated: 2026-09-07
7
7
  skills:
8
8
  - architecture
9
9
  - clean-code
@@ -21,13 +21,28 @@ scripts-binding:
21
21
 
22
22
  Before designing module boundaries or internal libraries, you MUST inspect:
23
23
 
24
- 1. Deep Module Ratio Rule (Section 25) → Create deep modules (small simple interface hiding heavy internal complexity); ban shallow 1-line wrapper functions
25
- 2. Strict Information Hiding (Section 46) → Keep internal data structures and vendor clients strictly private (`#privateField`); ban leaking internal ORM/DB types in public APIs
26
- 3. Policy vs Mechanism Separation (Section 53) Separate generic execution mechanisms (SQL queries, HTTP fetches) from domain business policies (retry rules, validation)
24
+ 1. Deep Module Ratio Rule → Create deep modules (small simple interface hiding heavy internal complexity); ban shallow 1-line wrapper functions
25
+ 2. Strict Information Hiding → Keep internal data structures and vendor clients strictly private (`#privateField`); ban leaking internal ORM/DB entities in public APIs
26
+ 3. Ports & Adapters Isolation Define abstract interfaces for external services (storage, payments, email); keep core business domain logic decoupled from vendor SDKs
27
+ 4. Policy vs Mechanism Separation → Separate generic execution mechanisms (SQL queries, HTTP fetches) from domain business policies (retry rules, pricing models)
27
28
 
28
- # Codebase Design — Deep Modules & Clean Seams
29
+ ## Activation Boundaries
30
+
31
+ - **Activate when:** Structuring new software packages, refactoring monolithic files into modular boundaries, designing internal SDKs, and decoupling domain logic from third-party dependencies.
32
+ - **DO NOT activate when:** Writing localized one-off utility helper functions or pure CSS styles.
33
+
34
+ ## 2026 Architecture & Module Invariants
29
35
 
30
- Architect software with **deep modules**: modules that hide immense internal complexity behind small, simple, intuitive interface seams.
36
+ 1. **Deep vs Shallow Ratio**: Aim for interfaces with ≤ 3 primary methods that encapsulate multi-step workflows. If a consumer must orchestrate 5 method calls in sequence, your module interface is too shallow.
37
+ 2. **Domain Model Immutability**: Return frozen or readonly representations (`Readonly<User>`) from module boundaries to prevent callers from mutating internal state without going through domain methods.
38
+ 3. **Seam Testing with Stubs**: When modules have clean seams, testing requires stubbing only the narrow boundary interface rather than mocking 15 internal methods.
39
+
40
+ ## Hallucination Traps (Read First)
41
+
42
+ - ❌ Exposing Prisma/Mongoose documents directly to API callers → ✅ Map to domain DTOs at the module boundary
43
+ - ❌ Creating "manager", "helper", or "util" classes with 40 unrelated methods → ✅ Group around cohesive bounded contexts
44
+ - ❌ Passing 10 configuration flags to a function → ✅ Use sensible defaults and the builder or options pattern
45
+ - ❌ Breaking a 50-line method into five 10-line shallow classes → ✅ Keep cohesive code together unless there is real reuse
31
46
 
32
47
  ---
33
48
 
@@ -72,29 +87,25 @@ class DeepUserStorage {
72
87
 
73
88
  ---
74
89
 
75
- ## 🤖 LLM-Specific Traps
90
+ ## 🏛️ Tribunal Verification & Guardrails
76
91
 
77
- 1. **Creating Anemic Shallow Wrappers**: Writing 1-line wrapper functions around third-party libraries that add zero abstraction value.
78
- 2. **Leaking Internal Implementation Types**: Exporting low-level internal database types directly in public API interfaces.
92
+ **Slash command: `/review` or `/tribunal-full`**
93
+ **Active reviewers: `logic-reviewer` · `security-auditor`**
79
94
 
80
- ---
81
-
82
- ## 🏛️ Tribunal Integration (Anti-Hallucination)
83
-
84
- **Slash command: `/review` or `/tribunal-backend`**
85
- **Active reviewers: `logic-reviewer` · `type-safety` · `complexity-reviewer`**
95
+ ### ❌ Forbidden AI Tropes
96
+ 1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
97
+ 2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
98
+ 3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
86
99
 
87
100
  ### ✅ Pre-Flight Self-Audit
88
-
89
101
  ```
90
- Does the module expose a minimal interface while encapsulating internal complexity?
91
- Are internal vendor data structures hidden behind clean domain seams?
92
- Is policy separated cleanly from low-level mechanism?
102
+ Did I rely ONLY on real, verified tools and methods?
103
+ Is this solution appropriately scoped to the user's constraints?
104
+ Did I handle potential failure modes and edge cases?
105
+ ✅ Have I avoided generic boilerplate that doesn't add value?
93
106
  ```
94
107
 
95
108
  ### 🛑 Verification-Before-Completion (VBC) Protocol
96
-
97
109
  **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
98
-
99
110
  - ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
100
111
  - ✅ **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.