tribunal-kit 9.2.1 โ†’ 9.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (637) hide show
  1. package/.agent/agents/orchestrator.md +2 -0
  2. package/.agent/config/claude.json +1 -1
  3. package/.agent/config/plugin.json +1 -1
  4. package/.agent/history/architecture-explorer.html +352 -0
  5. package/.agent/history/architecture-graph.yaml +181 -1
  6. package/.agent/history/graph-cache.json +323 -13
  7. package/.agent/history/integrity_manifest.json +3937 -299
  8. package/.agent/history/memory/.memory.idx +50 -50
  9. package/.agent/history/snapshots/.opencode__plugins__tribunal.js.json +12 -0
  10. package/.agent/history/snapshots/.pi__extensions__tribunal.ts.json +12 -0
  11. package/.agent/history/snapshots/bin__adapter-install.js.json +1 -1
  12. package/.agent/history/snapshots/bin__mcp-server.js.json +4 -2
  13. package/.agent/history/snapshots/bin__proxy-server.js.json +1 -1
  14. package/.agent/history/snapshots/bin__spawn-agent.js.json +1 -1
  15. package/.agent/history/snapshots/bin__wrapper.js.json +1 -1
  16. package/.agent/history/snapshots/eslint.config.js.json +1 -1
  17. package/.agent/history/snapshots/hooks__session-start.js.json +11 -0
  18. package/.agent/history/snapshots/scripts__apply-version.js.json +11 -0
  19. package/.agent/history/snapshots/scripts__audit_skill_sdo.js.json +11 -0
  20. package/.agent/history/snapshots/scripts__clean-pycache.js.json +11 -0
  21. package/.agent/history/snapshots/scripts__context_compiler.js.json +17 -0
  22. package/.agent/history/snapshots/scripts__modernize_skills.js.json +11 -0
  23. package/.agent/history/snapshots/scripts__package-cores.js.json +12 -0
  24. package/.agent/history/snapshots/scripts__skill_enhancement_engine.js.json +11 -0
  25. package/.agent/history/snapshots/scripts__sync-skills.js.json +11 -0
  26. package/.agent/history/snapshots/scripts__telemetry_gc.js.json +11 -0
  27. package/.agent/history/snapshots/scripts__validate-payload.js.json +1 -1
  28. package/.agent/history/snapshots/test__integration__browser_cli.test.js.json +12 -0
  29. package/.agent/history/snapshots/test__integration__sync_status.test.js.json +1 -1
  30. package/.agent/history/snapshots/test__unit__ast_context_loader.test.js.json +12 -0
  31. package/.agent/history/snapshots/test__unit__browser_case_bridge.test.js.json +11 -0
  32. package/.agent/history/snapshots/test__unit__browser_discovery.test.js.json +10 -0
  33. package/.agent/history/snapshots/test__unit__browser_idpi.test.js.json +10 -0
  34. package/.agent/history/snapshots/test__unit__browser_sentinel.test.js.json +11 -0
  35. package/.agent/history/snapshots/test__unit__browser_synapse.test.js.json +10 -0
  36. package/.agent/history/snapshots/test__unit__browser_trimmer.test.js.json +10 -0
  37. package/.agent/history/snapshots/test__unit__context_compiler.test.js.json +26 -0
  38. package/.agent/history/snapshots/test__unit__init.test.js.json +1 -1
  39. package/.agent/history/snapshots/test__unit__learn.test.js.json +1 -1
  40. package/.agent/history/snapshots/test__unit__mcp_server.test.js.json +1 -1
  41. package/.agent/history/snapshots/test__unit__platform_download_audit.test.js.json +11 -0
  42. package/.agent/history/snapshots/test__unit__prompt_compiler.test.js.json +10 -0
  43. package/.agent/history/snapshots/test__unit__sdd_integration.test.js.json +12 -0
  44. package/.agent/history/snapshots/test__unit__stress.test.js.json +1 -1
  45. package/.agent/history/snapshots/test__unit__token_budget_broker.test.js.json +10 -0
  46. package/.agent/history/snapshots/test__unit__tui.test.js.json +10 -0
  47. package/.agent/routing_index.json +1 -1
  48. package/.agent/rules/kernel.md +86 -0
  49. package/.agent/scripts/_utils.js +78 -0
  50. package/.agent/scripts/context_broker.js +0 -8
  51. package/.agent/scripts/context_compiler.js +1106 -3
  52. package/.agent/scripts/guardrail_engine.js +48 -11
  53. package/.agent/scripts/memory_engine.js +490 -329
  54. package/.agent/scripts/pipeline_engine.js +29 -106
  55. package/.agent/scripts/swarm_dispatcher.js +123 -48
  56. package/.agent/skill_topic_map.json +71 -22
  57. package/.agent/skills/12-principles-of-animation/SKILL.md +1 -76
  58. package/.agent/skills/60fps-animation/SKILL.md +1 -76
  59. package/.agent/skills/accessible-animation/SKILL.md +1 -76
  60. package/.agent/skills/adapt/SKILL.md +1 -76
  61. package/.agent/skills/advanced-rag-pipelines/SKILL.md +1 -76
  62. package/.agent/skills/agent-organizer/SKILL.md +1 -76
  63. package/.agent/skills/agentic-patterns/SKILL.md +1 -76
  64. package/.agent/skills/agentic-workflows-2026/SKILL.md +1 -76
  65. package/.agent/skills/ai-app-hardening/SKILL.md +1 -76
  66. package/.agent/skills/ai-prompt-injection-defense/SKILL.md +1 -76
  67. package/.agent/skills/animation-on-scroll/SKILL.md +1 -76
  68. package/.agent/skills/animation-systems/SKILL.md +1 -76
  69. package/.agent/skills/antfu-conventions/SKILL.md +0 -75
  70. package/.agent/skills/api-patterns/SKILL.md +1 -76
  71. package/.agent/skills/api-security-auditor/SKILL.md +1 -76
  72. package/.agent/skills/app-builder/SKILL.md +1 -76
  73. package/.agent/skills/appflow-wireframe/SKILL.md +1 -76
  74. package/.agent/skills/apple-design/SKILL.md +1 -76
  75. package/.agent/skills/architecture/SKILL.md +1 -76
  76. package/.agent/skills/audit-and-fix/SKILL.md +41 -77
  77. package/.agent/skills/authentication-best-practices/SKILL.md +1 -76
  78. package/.agent/skills/backend-security-expert/SKILL.md +1 -76
  79. package/.agent/skills/baseline-ui/SKILL.md +1 -76
  80. package/.agent/skills/bash-linux/SKILL.md +1 -76
  81. package/.agent/skills/behavioral-modes/SKILL.md +1 -76
  82. package/.agent/skills/better-colors/SKILL.md +1 -76
  83. package/.agent/skills/better-typography/SKILL.md +1 -76
  84. package/.agent/skills/better-ui/SKILL.md +1 -76
  85. package/.agent/skills/bolder/SKILL.md +1 -76
  86. package/.agent/skills/brainstorming/SKILL.md +1 -76
  87. package/.agent/skills/browser-audit/SKILL.md +1 -76
  88. package/.agent/skills/browser-native-ai/SKILL.md +1 -76
  89. package/.agent/skills/build-primitive/SKILL.md +1 -76
  90. package/.agent/skills/building-native-ui/SKILL.md +1 -76
  91. package/.agent/skills/cicd-pro/SKILL.md +1 -76
  92. package/.agent/skills/clarify/SKILL.md +1 -76
  93. package/.agent/skills/clean-code/SKILL.md +1 -76
  94. package/.agent/skills/cloud-architect/SKILL.md +1 -76
  95. package/.agent/skills/cobejs/SKILL.md +1 -76
  96. package/.agent/skills/code-review-checklist/SKILL.md +1 -76
  97. package/.agent/skills/codebase-design/SKILL.md +1 -76
  98. package/.agent/skills/colorize/SKILL.md +1 -76
  99. package/.agent/skills/compact-landing/SKILL.md +1 -76
  100. package/.agent/skills/company-logos/SKILL.md +1 -76
  101. package/.agent/skills/config-validator/SKILL.md +1 -76
  102. package/.agent/skills/containerization-pro/SKILL.md +1 -76
  103. package/.agent/skills/context-engineering-pro/SKILL.md +1 -76
  104. package/.agent/skills/create-design-md/SKILL.md +1 -76
  105. package/.agent/skills/critique/SKILL.md +1 -76
  106. package/.agent/skills/csharp-developer/SKILL.md +1 -76
  107. package/.agent/skills/data-validation-schemas/SKILL.md +1 -76
  108. package/.agent/skills/database-design/SKILL.md +1 -76
  109. package/.agent/skills/delight/SKILL.md +1 -76
  110. package/.agent/skills/deployment-procedures/SKILL.md +1 -76
  111. package/.agent/skills/design-lab/SKILL.md +1 -76
  112. package/.agent/skills/devops-engineer/SKILL.md +1 -76
  113. package/.agent/skills/devops-incident-responder/SKILL.md +1 -76
  114. package/.agent/skills/diagnosing-bugs/SKILL.md +1 -76
  115. package/.agent/skills/distill/SKILL.md +1 -76
  116. package/.agent/skills/documentation-templates/SKILL.md +1 -76
  117. package/.agent/skills/domain-modeling/SKILL.md +1 -76
  118. package/.agent/skills/duckdb-analytical-sql/SKILL.md +1 -76
  119. package/.agent/skills/edge-ai-mobile/SKILL.md +1 -76
  120. package/.agent/skills/edge-computing/SKILL.md +1 -76
  121. package/.agent/skills/emil-design-eng/SKILL.md +1 -76
  122. package/.agent/skills/error-resilience/SKILL.md +1 -76
  123. package/.agent/skills/expo-router-v4/SKILL.md +1 -76
  124. package/.agent/skills/extract-design-system/SKILL.md +1 -76
  125. package/.agent/skills/fabel-protocol/SKILL.md +1 -76
  126. package/.agent/skills/fixing-accessibility/SKILL.md +1 -76
  127. package/.agent/skills/fixing-metadata/SKILL.md +1 -76
  128. package/.agent/skills/fixing-motion-performance/SKILL.md +1 -76
  129. package/.agent/skills/framer-motion-expert/SKILL.md +1 -76
  130. package/.agent/skills/frontend-design/SKILL.md +1 -76
  131. package/.agent/skills/frontend-security-expert/SKILL.md +1 -76
  132. package/.agent/skills/game-design-expert/SKILL.md +1 -76
  133. package/.agent/skills/game-engineering-expert/SKILL.md +1 -76
  134. package/.agent/skills/generative-ui-expert/SKILL.md +1 -76
  135. package/.agent/skills/geo-fundamentals/SKILL.md +1 -76
  136. package/.agent/skills/git-pro/SKILL.md +1 -76
  137. package/.agent/skills/github-operations/SKILL.md +1 -76
  138. package/.agent/skills/gpt-taste/SKILL.md +1 -76
  139. package/.agent/skills/gsap-core/SKILL.md +1 -76
  140. package/.agent/skills/gsap-frameworks/SKILL.md +1 -76
  141. package/.agent/skills/gsap-performance/SKILL.md +1 -76
  142. package/.agent/skills/gsap-plugins/SKILL.md +1 -76
  143. package/.agent/skills/gsap-react/SKILL.md +1 -76
  144. package/.agent/skills/gsap-scrolltrigger/SKILL.md +1 -76
  145. package/.agent/skills/gsap-timeline/SKILL.md +1 -76
  146. package/.agent/skills/gsap-utils/SKILL.md +1 -76
  147. package/.agent/skills/harden/SKILL.md +1 -76
  148. package/.agent/skills/harness-protocol/SKILL.md +1 -76
  149. package/.agent/skills/i18n-localization/SKILL.md +1 -76
  150. package/.agent/skills/impeccable/SKILL.md +1 -76
  151. package/.agent/skills/improve-codebase-architecture/SKILL.md +1 -76
  152. package/.agent/skills/improve-ui/SKILL.md +1 -76
  153. package/.agent/skills/intelligent-routing/SKILL.md +2 -88
  154. package/.agent/skills/knowledge-graph/SKILL.md +1 -76
  155. package/.agent/skills/landing-page/SKILL.md +1 -76
  156. package/.agent/skills/lint-and-validate/SKILL.md +1 -76
  157. package/.agent/skills/llm-engineering/SKILL.md +1 -76
  158. package/.agent/skills/local-first/SKILL.md +1 -76
  159. package/.agent/skills/local-first-architecture/SKILL.md +1 -76
  160. package/.agent/skills/lottie-animation/SKILL.md +1 -76
  161. package/.agent/skills/marquee-loop/SKILL.md +1 -76
  162. package/.agent/skills/masked-reveal/SKILL.md +1 -76
  163. package/.agent/skills/mcp-builder/SKILL.md +1 -76
  164. package/.agent/skills/micro-interaction/SKILL.md +1 -76
  165. package/.agent/skills/mobile-design/SKILL.md +1 -76
  166. package/.agent/skills/monorepo-management/SKILL.md +1 -76
  167. package/.agent/skills/morphing-icons/SKILL.md +1 -76
  168. package/.agent/skills/motion-engineering/SKILL.md +1 -76
  169. package/.agent/skills/nextjs-react-expert/SKILL.md +1 -76
  170. package/.agent/skills/nodejs-best-practices/SKILL.md +1 -76
  171. package/.agent/skills/observability/SKILL.md +1 -76
  172. package/.agent/skills/opentelemetry-observability/SKILL.md +1 -76
  173. package/.agent/skills/page-transition-animation/SKILL.md +1 -76
  174. package/.agent/skills/parallel-agents/SKILL.md +1 -76
  175. package/.agent/skills/performance-profiling/SKILL.md +1 -76
  176. package/.agent/skills/plan-writing/SKILL.md +1 -76
  177. package/.agent/skills/platform-engineer/SKILL.md +1 -76
  178. package/.agent/skills/platform-engineering-opentofu/SKILL.md +1 -76
  179. package/.agent/skills/playwright-ai-e2e/SKILL.md +1 -76
  180. package/.agent/skills/playwright-best-practices/SKILL.md +1 -76
  181. package/.agent/skills/polish/SKILL.md +1 -76
  182. package/.agent/skills/powershell-windows/SKILL.md +1 -76
  183. package/.agent/skills/pricing-page/SKILL.md +1 -76
  184. package/.agent/skills/product-aware-heuristics/SKILL.md +1 -76
  185. package/.agent/skills/progressive-blur/SKILL.md +1 -76
  186. package/.agent/skills/project-idioms/SKILL.md +1 -76
  187. package/.agent/skills/property-based-testing/SKILL.md +1 -76
  188. package/.agent/skills/python-patterns/SKILL.md +1 -76
  189. package/.agent/skills/python-pro/SKILL.md +1 -76
  190. package/.agent/skills/quieter/SKILL.md +1 -76
  191. package/.agent/skills/react-doctor/SKILL.md +1 -76
  192. package/.agent/skills/react-specialist/SKILL.md +1 -76
  193. package/.agent/skills/readme-builder/SKILL.md +1 -76
  194. package/.agent/skills/realtime-patterns/SKILL.md +1 -76
  195. package/.agent/skills/red-team-tactics/SKILL.md +1 -76
  196. package/.agent/skills/redesign-skill/SKILL.md +1 -76
  197. package/.agent/skills/review-animations/SKILL.md +1 -76
  198. package/.agent/skills/rust-pro/SKILL.md +1 -76
  199. package/.agent/skills/seo-fundamentals/SKILL.md +1 -76
  200. package/.agent/skills/server-management/SKILL.md +1 -76
  201. package/.agent/skills/shadcn-ui-expert/SKILL.md +1 -76
  202. package/.agent/skills/shape/SKILL.md +1 -76
  203. package/.agent/skills/skill-creator/SKILL.md +124 -90
  204. package/.agent/skills/soft-skill/SKILL.md +1 -76
  205. package/.agent/skills/sounds-on-the-web/SKILL.md +1 -76
  206. package/.agent/skills/sql-pro/SKILL.md +1 -76
  207. package/.agent/skills/supabase-postgres-best-practices/SKILL.md +1 -76
  208. package/.agent/skills/svg-animation/SKILL.md +1 -76
  209. package/.agent/skills/swiftui-expert/SKILL.md +1 -76
  210. package/.agent/skills/swiss-design/SKILL.md +1 -76
  211. package/.agent/skills/system-design-pro/SKILL.md +1 -76
  212. package/.agent/skills/systematic-debugging/SKILL.md +1 -76
  213. package/.agent/skills/tailwind-patterns/SKILL.md +1 -76
  214. package/.agent/skills/taste-skill/SKILL.md +1 -76
  215. package/.agent/skills/tdd-workflow/SKILL.md +1 -76
  216. package/.agent/skills/test-result-analyzer/SKILL.md +1 -76
  217. package/.agent/skills/testing-patterns/SKILL.md +1 -76
  218. package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
  219. package/.agent/skills/thinking-protocol/SKILL.md +1 -78
  220. package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
  221. package/.agent/skills/transitions-dev/SKILL.md +1 -76
  222. package/.agent/skills/trend-researcher/SKILL.md +1 -76
  223. package/.agent/skills/typescript-advanced/SKILL.md +1 -76
  224. package/.agent/skills/typeset/SKILL.md +1 -76
  225. package/.agent/skills/ui-reasoning-engine/SKILL.md +1 -76
  226. package/.agent/skills/ui-skill-packs/SKILL.md +1 -76
  227. package/.agent/skills/ui-skills-root/SKILL.md +1 -76
  228. package/.agent/skills/ui-ux-pro-max/SKILL.md +1 -76
  229. package/.agent/skills/ui-ux-researcher/SKILL.md +1 -76
  230. package/.agent/skills/vector-search-pgvector/SKILL.md +1 -76
  231. package/.agent/skills/verification-before-completion/SKILL.md +1 -76
  232. package/.agent/skills/vue-expert/SKILL.md +1 -76
  233. package/.agent/skills/vulnerability-scanner/SKILL.md +1 -76
  234. package/.agent/skills/web-accessibility-auditor/SKILL.md +1 -76
  235. package/.agent/skills/web-design-guidelines/SKILL.md +1 -76
  236. package/.agent/skills/web-quality-audit/SKILL.md +1 -76
  237. package/.agent/skills/webapp-testing/SKILL.md +1 -76
  238. package/.agent/skills/webgpu-performance/SKILL.md +1 -76
  239. package/.agent/skills/whimsy-injector/SKILL.md +1 -76
  240. package/.agent/skills/workflow-optimizer/SKILL.md +1 -76
  241. package/.agent/skills/zero-trust-passkeys/SKILL.md +1 -76
  242. package/.agent/workflows/generate.md +1 -1
  243. package/.agent/workflows/orchestrate.md +1 -1
  244. package/.agent/workflows/review-ai.md +1 -1
  245. package/.agent/workflows/skill-enhancement-engine.md +6 -10
  246. package/.agent/workflows/swarm.md +1 -1
  247. package/.agent/workflows/tribunal-backend.md +1 -1
  248. package/.agent/workflows/tribunal-cicd.md +1 -1
  249. package/.agent/workflows/tribunal-database.md +1 -1
  250. package/.agent/workflows/tribunal-frontend.md +1 -1
  251. package/.agent/workflows/tribunal-full.md +9 -9
  252. package/.agent/workflows/tribunal-mobile.md +1 -1
  253. package/.agent/workflows/tribunal-speed.md +1 -1
  254. package/.agent/workflows/tribunal-ui.md +1 -1
  255. package/.agents/skills/12-principles-of-animation/SKILL.md +1 -76
  256. package/.agents/skills/60fps-animation/SKILL.md +1 -76
  257. package/.agents/skills/accessible-animation/SKILL.md +1 -76
  258. package/.agents/skills/adapt/SKILL.md +1 -76
  259. package/.agents/skills/advanced-rag-pipelines/SKILL.md +1 -76
  260. package/.agents/skills/agent-organizer/SKILL.md +1 -76
  261. package/.agents/skills/agentic-patterns/SKILL.md +1 -76
  262. package/.agents/skills/agentic-workflows-2026/SKILL.md +1 -76
  263. package/.agents/skills/ai-app-hardening/SKILL.md +1 -76
  264. package/.agents/skills/ai-prompt-injection-defense/SKILL.md +1 -76
  265. package/.agents/skills/animation-on-scroll/SKILL.md +1 -76
  266. package/.agents/skills/animation-systems/SKILL.md +1 -76
  267. package/.agents/skills/antfu-conventions/SKILL.md +0 -75
  268. package/.agents/skills/api-patterns/SKILL.md +1 -76
  269. package/.agents/skills/api-security-auditor/SKILL.md +1 -76
  270. package/.agents/skills/app-builder/SKILL.md +1 -76
  271. package/.agents/skills/appflow-wireframe/SKILL.md +1 -76
  272. package/.agents/skills/apple-design/SKILL.md +1 -76
  273. package/.agents/skills/architecture/SKILL.md +1 -76
  274. package/.agents/skills/audit-and-fix/SKILL.md +41 -77
  275. package/.agents/skills/authentication-best-practices/SKILL.md +1 -76
  276. package/.agents/skills/backend-security-expert/SKILL.md +1 -76
  277. package/.agents/skills/baseline-ui/SKILL.md +1 -76
  278. package/.agents/skills/bash-linux/SKILL.md +1 -76
  279. package/.agents/skills/behavioral-modes/SKILL.md +1 -76
  280. package/.agents/skills/better-colors/SKILL.md +1 -76
  281. package/.agents/skills/better-typography/SKILL.md +1 -76
  282. package/.agents/skills/better-ui/SKILL.md +1 -76
  283. package/.agents/skills/bolder/SKILL.md +1 -76
  284. package/.agents/skills/brainstorming/SKILL.md +1 -76
  285. package/.agents/skills/browser-audit/SKILL.md +1 -76
  286. package/.agents/skills/browser-native-ai/SKILL.md +1 -76
  287. package/.agents/skills/build-primitive/SKILL.md +1 -76
  288. package/.agents/skills/building-native-ui/SKILL.md +1 -76
  289. package/.agents/skills/cicd-pro/SKILL.md +1 -76
  290. package/.agents/skills/clarify/SKILL.md +1 -76
  291. package/.agents/skills/clean-code/SKILL.md +1 -76
  292. package/.agents/skills/cloud-architect/SKILL.md +1 -76
  293. package/.agents/skills/cobejs/SKILL.md +1 -76
  294. package/.agents/skills/code-review-checklist/SKILL.md +1 -76
  295. package/.agents/skills/codebase-design/SKILL.md +1 -76
  296. package/.agents/skills/colorize/SKILL.md +1 -76
  297. package/.agents/skills/compact-landing/SKILL.md +1 -76
  298. package/.agents/skills/company-logos/SKILL.md +1 -76
  299. package/.agents/skills/config-validator/SKILL.md +1 -76
  300. package/.agents/skills/containerization-pro/SKILL.md +1 -76
  301. package/.agents/skills/context-engineering-pro/SKILL.md +1 -76
  302. package/.agents/skills/create-design-md/SKILL.md +1 -76
  303. package/.agents/skills/critique/SKILL.md +1 -76
  304. package/.agents/skills/csharp-developer/SKILL.md +1 -76
  305. package/.agents/skills/data-validation-schemas/SKILL.md +1 -76
  306. package/.agents/skills/database-design/SKILL.md +1 -76
  307. package/.agents/skills/delight/SKILL.md +1 -76
  308. package/.agents/skills/deployment-procedures/SKILL.md +1 -76
  309. package/.agents/skills/design-lab/SKILL.md +1 -76
  310. package/.agents/skills/devops-engineer/SKILL.md +1 -76
  311. package/.agents/skills/devops-incident-responder/SKILL.md +1 -76
  312. package/.agents/skills/diagnosing-bugs/SKILL.md +1 -76
  313. package/.agents/skills/distill/SKILL.md +1 -76
  314. package/.agents/skills/documentation-templates/SKILL.md +1 -76
  315. package/.agents/skills/domain-modeling/SKILL.md +1 -76
  316. package/.agents/skills/duckdb-analytical-sql/SKILL.md +1 -76
  317. package/.agents/skills/edge-ai-mobile/SKILL.md +1 -76
  318. package/.agents/skills/edge-computing/SKILL.md +1 -76
  319. package/.agents/skills/emil-design-eng/SKILL.md +1 -76
  320. package/.agents/skills/error-resilience/SKILL.md +1 -76
  321. package/.agents/skills/expo-router-v4/SKILL.md +1 -76
  322. package/.agents/skills/extract-design-system/SKILL.md +1 -76
  323. package/.agents/skills/fabel-protocol/SKILL.md +1 -76
  324. package/.agents/skills/fixing-accessibility/SKILL.md +1 -76
  325. package/.agents/skills/fixing-metadata/SKILL.md +1 -76
  326. package/.agents/skills/fixing-motion-performance/SKILL.md +1 -76
  327. package/.agents/skills/framer-motion-expert/SKILL.md +1 -76
  328. package/.agents/skills/frontend-design/SKILL.md +1 -76
  329. package/.agents/skills/frontend-security-expert/SKILL.md +1 -76
  330. package/.agents/skills/game-design-expert/SKILL.md +1 -76
  331. package/.agents/skills/game-engineering-expert/SKILL.md +1 -76
  332. package/.agents/skills/generative-ui-expert/SKILL.md +1 -76
  333. package/.agents/skills/geo-fundamentals/SKILL.md +1 -76
  334. package/.agents/skills/git-pro/SKILL.md +1 -76
  335. package/.agents/skills/github-operations/SKILL.md +1 -76
  336. package/.agents/skills/gpt-taste/SKILL.md +1 -76
  337. package/.agents/skills/gsap-core/SKILL.md +1 -76
  338. package/.agents/skills/gsap-frameworks/SKILL.md +1 -76
  339. package/.agents/skills/gsap-performance/SKILL.md +1 -76
  340. package/.agents/skills/gsap-plugins/SKILL.md +1 -76
  341. package/.agents/skills/gsap-react/SKILL.md +1 -76
  342. package/.agents/skills/gsap-scrolltrigger/SKILL.md +1 -76
  343. package/.agents/skills/gsap-timeline/SKILL.md +1 -76
  344. package/.agents/skills/gsap-utils/SKILL.md +1 -76
  345. package/.agents/skills/harden/SKILL.md +1 -76
  346. package/.agents/skills/harness-protocol/SKILL.md +1 -76
  347. package/.agents/skills/i18n-localization/SKILL.md +1 -76
  348. package/.agents/skills/impeccable/SKILL.md +1 -76
  349. package/.agents/skills/improve-codebase-architecture/SKILL.md +1 -76
  350. package/.agents/skills/improve-ui/SKILL.md +1 -76
  351. package/.agents/skills/intelligent-routing/SKILL.md +2 -88
  352. package/.agents/skills/knowledge-graph/SKILL.md +1 -76
  353. package/.agents/skills/landing-page/SKILL.md +1 -76
  354. package/.agents/skills/lint-and-validate/SKILL.md +1 -76
  355. package/.agents/skills/llm-engineering/SKILL.md +1 -76
  356. package/.agents/skills/local-first/SKILL.md +1 -76
  357. package/.agents/skills/local-first-architecture/SKILL.md +1 -76
  358. package/.agents/skills/lottie-animation/SKILL.md +1 -76
  359. package/.agents/skills/marquee-loop/SKILL.md +1 -76
  360. package/.agents/skills/masked-reveal/SKILL.md +1 -76
  361. package/.agents/skills/mcp-builder/SKILL.md +1 -76
  362. package/.agents/skills/micro-interaction/SKILL.md +1 -76
  363. package/.agents/skills/mobile-design/SKILL.md +1 -76
  364. package/.agents/skills/monorepo-management/SKILL.md +1 -76
  365. package/.agents/skills/morphing-icons/SKILL.md +1 -76
  366. package/.agents/skills/motion-engineering/SKILL.md +1 -76
  367. package/.agents/skills/nextjs-react-expert/SKILL.md +1 -76
  368. package/.agents/skills/nodejs-best-practices/SKILL.md +1 -76
  369. package/.agents/skills/observability/SKILL.md +1 -76
  370. package/.agents/skills/opentelemetry-observability/SKILL.md +1 -76
  371. package/.agents/skills/page-transition-animation/SKILL.md +1 -76
  372. package/.agents/skills/parallel-agents/SKILL.md +1 -76
  373. package/.agents/skills/performance-profiling/SKILL.md +1 -76
  374. package/.agents/skills/plan-writing/SKILL.md +1 -76
  375. package/.agents/skills/platform-engineer/SKILL.md +1 -76
  376. package/.agents/skills/platform-engineering-opentofu/SKILL.md +1 -76
  377. package/.agents/skills/playwright-ai-e2e/SKILL.md +1 -76
  378. package/.agents/skills/playwright-best-practices/SKILL.md +1 -76
  379. package/.agents/skills/polish/SKILL.md +1 -76
  380. package/.agents/skills/powershell-windows/SKILL.md +1 -76
  381. package/.agents/skills/pricing-page/SKILL.md +1 -76
  382. package/.agents/skills/product-aware-heuristics/SKILL.md +1 -76
  383. package/.agents/skills/progressive-blur/SKILL.md +1 -76
  384. package/.agents/skills/project-idioms/SKILL.md +1 -76
  385. package/.agents/skills/property-based-testing/SKILL.md +1 -76
  386. package/.agents/skills/python-patterns/SKILL.md +1 -76
  387. package/.agents/skills/python-pro/SKILL.md +1 -76
  388. package/.agents/skills/quieter/SKILL.md +1 -76
  389. package/.agents/skills/react-doctor/SKILL.md +1 -76
  390. package/.agents/skills/react-specialist/SKILL.md +1 -76
  391. package/.agents/skills/readme-builder/SKILL.md +1 -76
  392. package/.agents/skills/realtime-patterns/SKILL.md +1 -76
  393. package/.agents/skills/red-team-tactics/SKILL.md +1 -76
  394. package/.agents/skills/redesign-skill/SKILL.md +1 -76
  395. package/.agents/skills/review-animations/SKILL.md +1 -76
  396. package/.agents/skills/rust-pro/SKILL.md +1 -76
  397. package/.agents/skills/seo-fundamentals/SKILL.md +1 -76
  398. package/.agents/skills/server-management/SKILL.md +1 -76
  399. package/.agents/skills/shadcn-ui-expert/SKILL.md +1 -76
  400. package/.agents/skills/shape/SKILL.md +1 -76
  401. package/.agents/skills/skill-creator/SKILL.md +124 -90
  402. package/.agents/skills/soft-skill/SKILL.md +1 -76
  403. package/.agents/skills/sounds-on-the-web/SKILL.md +1 -76
  404. package/.agents/skills/sql-pro/SKILL.md +1 -76
  405. package/.agents/skills/supabase-postgres-best-practices/SKILL.md +1 -76
  406. package/.agents/skills/svg-animation/SKILL.md +1 -76
  407. package/.agents/skills/swiftui-expert/SKILL.md +1 -76
  408. package/.agents/skills/swiss-design/SKILL.md +1 -76
  409. package/.agents/skills/system-design-pro/SKILL.md +1 -76
  410. package/.agents/skills/systematic-debugging/SKILL.md +1 -76
  411. package/.agents/skills/tailwind-patterns/SKILL.md +1 -76
  412. package/.agents/skills/taste-skill/SKILL.md +1 -76
  413. package/.agents/skills/tdd-workflow/SKILL.md +1 -76
  414. package/.agents/skills/test-result-analyzer/SKILL.md +1 -76
  415. package/.agents/skills/testing-patterns/SKILL.md +1 -76
  416. package/.agents/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
  417. package/.agents/skills/thinking-protocol/SKILL.md +1 -78
  418. package/.agents/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
  419. package/.agents/skills/transitions-dev/SKILL.md +1 -76
  420. package/.agents/skills/trend-researcher/SKILL.md +1 -76
  421. package/.agents/skills/typescript-advanced/SKILL.md +1 -76
  422. package/.agents/skills/typeset/SKILL.md +1 -76
  423. package/.agents/skills/ui-reasoning-engine/SKILL.md +1 -76
  424. package/.agents/skills/ui-skill-packs/SKILL.md +1 -76
  425. package/.agents/skills/ui-skills-root/SKILL.md +1 -76
  426. package/.agents/skills/ui-ux-pro-max/SKILL.md +1 -76
  427. package/.agents/skills/ui-ux-researcher/SKILL.md +1 -76
  428. package/.agents/skills/vector-search-pgvector/SKILL.md +1 -76
  429. package/.agents/skills/verification-before-completion/SKILL.md +1 -76
  430. package/.agents/skills/vue-expert/SKILL.md +1 -76
  431. package/.agents/skills/vulnerability-scanner/SKILL.md +1 -76
  432. package/.agents/skills/web-accessibility-auditor/SKILL.md +1 -76
  433. package/.agents/skills/web-design-guidelines/SKILL.md +1 -76
  434. package/.agents/skills/web-quality-audit/SKILL.md +1 -76
  435. package/.agents/skills/webapp-testing/SKILL.md +1 -76
  436. package/.agents/skills/webgpu-performance/SKILL.md +1 -76
  437. package/.agents/skills/whimsy-injector/SKILL.md +1 -76
  438. package/.agents/skills/workflow-optimizer/SKILL.md +1 -76
  439. package/.agents/skills/zero-trust-passkeys/SKILL.md +1 -76
  440. package/README.md +542 -542
  441. package/bin/adapter-install.js +263 -263
  442. package/bin/mcp-server.js +71 -46
  443. package/bin/wrapper.js +10 -1
  444. package/dist/commands/init.js +25 -11
  445. package/dist/tui/banner.js +1 -1
  446. package/gemini-extension.json +1 -1
  447. package/package.json +13 -10
  448. package/plugin.json +1 -1
  449. package/scripts/context_compiler.js +49 -0
  450. package/scripts/skill_enhancement_engine.js +5 -31
  451. package/scripts/telemetry_gc.js +3 -1
  452. package/scripts/validate-payload.js +1 -6
  453. package/skills/12-principles-of-animation/SKILL.md +1 -76
  454. package/skills/60fps-animation/SKILL.md +1 -76
  455. package/skills/accessible-animation/SKILL.md +1 -76
  456. package/skills/adapt/SKILL.md +1 -76
  457. package/skills/advanced-rag-pipelines/SKILL.md +1 -76
  458. package/skills/agent-organizer/SKILL.md +1 -76
  459. package/skills/agentic-patterns/SKILL.md +1 -76
  460. package/skills/agentic-workflows-2026/SKILL.md +1 -76
  461. package/skills/ai-app-hardening/SKILL.md +1 -76
  462. package/skills/ai-prompt-injection-defense/SKILL.md +1 -76
  463. package/skills/animation-on-scroll/SKILL.md +1 -76
  464. package/skills/animation-systems/SKILL.md +1 -76
  465. package/skills/antfu-conventions/SKILL.md +0 -75
  466. package/skills/api-patterns/SKILL.md +1 -76
  467. package/skills/api-security-auditor/SKILL.md +1 -76
  468. package/skills/app-builder/SKILL.md +1 -76
  469. package/skills/appflow-wireframe/SKILL.md +1 -76
  470. package/skills/apple-design/SKILL.md +1 -76
  471. package/skills/architecture/SKILL.md +1 -76
  472. package/skills/audit-and-fix/SKILL.md +41 -77
  473. package/skills/authentication-best-practices/SKILL.md +1 -76
  474. package/skills/backend-security-expert/SKILL.md +1 -76
  475. package/skills/baseline-ui/SKILL.md +1 -76
  476. package/skills/bash-linux/SKILL.md +1 -76
  477. package/skills/behavioral-modes/SKILL.md +1 -76
  478. package/skills/better-colors/SKILL.md +1 -76
  479. package/skills/better-typography/SKILL.md +1 -76
  480. package/skills/better-ui/SKILL.md +1 -76
  481. package/skills/bolder/SKILL.md +1 -76
  482. package/skills/brainstorming/SKILL.md +1 -76
  483. package/skills/browser-audit/SKILL.md +1 -76
  484. package/skills/browser-native-ai/SKILL.md +1 -76
  485. package/skills/build-primitive/SKILL.md +1 -76
  486. package/skills/building-native-ui/SKILL.md +1 -76
  487. package/skills/cicd-pro/SKILL.md +1 -76
  488. package/skills/clarify/SKILL.md +1 -76
  489. package/skills/clean-code/SKILL.md +1 -76
  490. package/skills/cloud-architect/SKILL.md +1 -76
  491. package/skills/cobejs/SKILL.md +1 -76
  492. package/skills/code-review-checklist/SKILL.md +1 -76
  493. package/skills/codebase-design/SKILL.md +1 -76
  494. package/skills/colorize/SKILL.md +1 -76
  495. package/skills/compact-landing/SKILL.md +1 -76
  496. package/skills/company-logos/SKILL.md +1 -76
  497. package/skills/config-validator/SKILL.md +1 -76
  498. package/skills/containerization-pro/SKILL.md +1 -76
  499. package/skills/context-engineering-pro/SKILL.md +1 -76
  500. package/skills/create-design-md/SKILL.md +1 -76
  501. package/skills/critique/SKILL.md +1 -76
  502. package/skills/csharp-developer/SKILL.md +1 -76
  503. package/skills/data-validation-schemas/SKILL.md +1 -76
  504. package/skills/database-design/SKILL.md +1 -76
  505. package/skills/delight/SKILL.md +1 -76
  506. package/skills/deployment-procedures/SKILL.md +1 -76
  507. package/skills/design-lab/SKILL.md +1 -76
  508. package/skills/devops-engineer/SKILL.md +1 -76
  509. package/skills/devops-incident-responder/SKILL.md +1 -76
  510. package/skills/diagnosing-bugs/SKILL.md +1 -76
  511. package/skills/distill/SKILL.md +1 -76
  512. package/skills/documentation-templates/SKILL.md +1 -76
  513. package/skills/domain-modeling/SKILL.md +1 -76
  514. package/skills/duckdb-analytical-sql/SKILL.md +1 -76
  515. package/skills/edge-ai-mobile/SKILL.md +1 -76
  516. package/skills/edge-computing/SKILL.md +1 -76
  517. package/skills/emil-design-eng/SKILL.md +1 -76
  518. package/skills/error-resilience/SKILL.md +1 -76
  519. package/skills/expo-router-v4/SKILL.md +1 -76
  520. package/skills/extract-design-system/SKILL.md +1 -76
  521. package/skills/fabel-protocol/SKILL.md +1 -76
  522. package/skills/fixing-accessibility/SKILL.md +1 -76
  523. package/skills/fixing-metadata/SKILL.md +1 -76
  524. package/skills/fixing-motion-performance/SKILL.md +1 -76
  525. package/skills/framer-motion-expert/SKILL.md +1 -76
  526. package/skills/frontend-design/SKILL.md +1 -76
  527. package/skills/frontend-security-expert/SKILL.md +1 -76
  528. package/skills/game-design-expert/SKILL.md +1 -76
  529. package/skills/game-engineering-expert/SKILL.md +1 -76
  530. package/skills/generative-ui-expert/SKILL.md +1 -76
  531. package/skills/geo-fundamentals/SKILL.md +1 -76
  532. package/skills/git-pro/SKILL.md +1 -76
  533. package/skills/github-operations/SKILL.md +1 -76
  534. package/skills/gpt-taste/SKILL.md +1 -76
  535. package/skills/gsap-core/SKILL.md +1 -76
  536. package/skills/gsap-frameworks/SKILL.md +1 -76
  537. package/skills/gsap-performance/SKILL.md +1 -76
  538. package/skills/gsap-plugins/SKILL.md +1 -76
  539. package/skills/gsap-react/SKILL.md +1 -76
  540. package/skills/gsap-scrolltrigger/SKILL.md +1 -76
  541. package/skills/gsap-timeline/SKILL.md +1 -76
  542. package/skills/gsap-utils/SKILL.md +1 -76
  543. package/skills/harden/SKILL.md +1 -76
  544. package/skills/harness-protocol/SKILL.md +1 -76
  545. package/skills/i18n-localization/SKILL.md +1 -76
  546. package/skills/impeccable/SKILL.md +1 -76
  547. package/skills/improve-codebase-architecture/SKILL.md +1 -76
  548. package/skills/improve-ui/SKILL.md +1 -76
  549. package/skills/intelligent-routing/SKILL.md +2 -88
  550. package/skills/knowledge-graph/SKILL.md +1 -76
  551. package/skills/landing-page/SKILL.md +1 -76
  552. package/skills/lint-and-validate/SKILL.md +1 -76
  553. package/skills/llm-engineering/SKILL.md +1 -76
  554. package/skills/local-first/SKILL.md +1 -76
  555. package/skills/local-first-architecture/SKILL.md +1 -76
  556. package/skills/lottie-animation/SKILL.md +1 -76
  557. package/skills/marquee-loop/SKILL.md +1 -76
  558. package/skills/masked-reveal/SKILL.md +1 -76
  559. package/skills/mcp-builder/SKILL.md +1 -76
  560. package/skills/micro-interaction/SKILL.md +1 -76
  561. package/skills/mobile-design/SKILL.md +1 -76
  562. package/skills/monorepo-management/SKILL.md +1 -76
  563. package/skills/morphing-icons/SKILL.md +1 -76
  564. package/skills/motion-engineering/SKILL.md +1 -76
  565. package/skills/nextjs-react-expert/SKILL.md +1 -76
  566. package/skills/nodejs-best-practices/SKILL.md +1 -76
  567. package/skills/observability/SKILL.md +1 -76
  568. package/skills/opentelemetry-observability/SKILL.md +1 -76
  569. package/skills/page-transition-animation/SKILL.md +1 -76
  570. package/skills/parallel-agents/SKILL.md +1 -76
  571. package/skills/performance-profiling/SKILL.md +1 -76
  572. package/skills/plan-writing/SKILL.md +1 -76
  573. package/skills/platform-engineer/SKILL.md +1 -76
  574. package/skills/platform-engineering-opentofu/SKILL.md +1 -76
  575. package/skills/playwright-ai-e2e/SKILL.md +1 -76
  576. package/skills/playwright-best-practices/SKILL.md +1 -76
  577. package/skills/polish/SKILL.md +1 -76
  578. package/skills/powershell-windows/SKILL.md +1 -76
  579. package/skills/pricing-page/SKILL.md +1 -76
  580. package/skills/product-aware-heuristics/SKILL.md +1 -76
  581. package/skills/progressive-blur/SKILL.md +1 -76
  582. package/skills/project-idioms/SKILL.md +1 -76
  583. package/skills/property-based-testing/SKILL.md +1 -76
  584. package/skills/python-patterns/SKILL.md +1 -76
  585. package/skills/python-pro/SKILL.md +1 -76
  586. package/skills/quieter/SKILL.md +1 -76
  587. package/skills/react-doctor/SKILL.md +1 -76
  588. package/skills/react-specialist/SKILL.md +1 -76
  589. package/skills/readme-builder/SKILL.md +1 -76
  590. package/skills/realtime-patterns/SKILL.md +1 -76
  591. package/skills/red-team-tactics/SKILL.md +1 -76
  592. package/skills/redesign-skill/SKILL.md +1 -76
  593. package/skills/review-animations/SKILL.md +1 -76
  594. package/skills/rust-pro/SKILL.md +1 -76
  595. package/skills/seo-fundamentals/SKILL.md +1 -76
  596. package/skills/server-management/SKILL.md +1 -76
  597. package/skills/shadcn-ui-expert/SKILL.md +1 -76
  598. package/skills/shape/SKILL.md +1 -76
  599. package/skills/skill-creator/SKILL.md +124 -90
  600. package/skills/soft-skill/SKILL.md +1 -76
  601. package/skills/sounds-on-the-web/SKILL.md +1 -76
  602. package/skills/sql-pro/SKILL.md +1 -76
  603. package/skills/supabase-postgres-best-practices/SKILL.md +1 -76
  604. package/skills/svg-animation/SKILL.md +1 -76
  605. package/skills/swiftui-expert/SKILL.md +1 -76
  606. package/skills/swiss-design/SKILL.md +1 -76
  607. package/skills/system-design-pro/SKILL.md +1 -76
  608. package/skills/systematic-debugging/SKILL.md +1 -76
  609. package/skills/tailwind-patterns/SKILL.md +1 -76
  610. package/skills/taste-skill/SKILL.md +1 -76
  611. package/skills/tdd-workflow/SKILL.md +1 -76
  612. package/skills/test-result-analyzer/SKILL.md +1 -76
  613. package/skills/testing-patterns/SKILL.md +1 -76
  614. package/skills/thermo-nuclear-code-quality-review/SKILL.md +1 -76
  615. package/skills/thinking-protocol/SKILL.md +1 -78
  616. package/skills/to-spring-or-not-to-spring/SKILL.md +1 -76
  617. package/skills/transitions-dev/SKILL.md +1 -76
  618. package/skills/trend-researcher/SKILL.md +1 -76
  619. package/skills/typescript-advanced/SKILL.md +1 -76
  620. package/skills/typeset/SKILL.md +1 -76
  621. package/skills/ui-reasoning-engine/SKILL.md +1 -76
  622. package/skills/ui-skill-packs/SKILL.md +1 -76
  623. package/skills/ui-skills-root/SKILL.md +1 -76
  624. package/skills/ui-ux-pro-max/SKILL.md +1 -76
  625. package/skills/ui-ux-researcher/SKILL.md +1 -76
  626. package/skills/vector-search-pgvector/SKILL.md +1 -76
  627. package/skills/verification-before-completion/SKILL.md +1 -76
  628. package/skills/vue-expert/SKILL.md +1 -76
  629. package/skills/vulnerability-scanner/SKILL.md +1 -76
  630. package/skills/web-accessibility-auditor/SKILL.md +1 -76
  631. package/skills/web-design-guidelines/SKILL.md +1 -76
  632. package/skills/web-quality-audit/SKILL.md +1 -76
  633. package/skills/webapp-testing/SKILL.md +1 -76
  634. package/skills/webgpu-performance/SKILL.md +1 -76
  635. package/skills/whimsy-injector/SKILL.md +1 -76
  636. package/skills/workflow-optimizer/SKILL.md +1 -76
  637. package/skills/zero-trust-passkeys/SKILL.md +1 -76
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: apple-design
3
- description: Use when Apple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring animations, drag/swipe/sheet interactions, momentum and interruptible transitions, translucent materials and depth, typography (optical sizing, tracking, leading), reduced-motion, or the design foundations behind Apple-style interfaces.
3
+ description: "Use when Apple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring animations, drag/swipe/sheet interactions, momentum and interruptible transitions, translucent materials and depth, typography (optical sizing, tracking, leading), reduced-motion, or the design foundations behind Apple-style interfaces."
4
4
  version: 5.0.0
5
5
  last-updated: 2026-09-13
6
6
  skills:
@@ -15,35 +15,6 @@ scripts-binding:
15
15
 
16
16
  # Apple Design โ€” Fluid Motion, Physicality & Translucent Depth
17
17
 
18
- ## Mandatory Pre-Flight Context Inspection
19
-
20
- Before generating, refactoring, or reviewing code in the `apple-design` domain, inspect these 5 critical parameters:
21
-
22
- 1. **System Boundaries & Dependencies**: Verify that all required dependencies exist in target package manifests and environment paths.
23
- 2. **Runtime Context & Platform Invariants**: Confirm target platform constraints (Node.js, Browser, Mobile OS, Edge runtime) before applying APIs.
24
- 3. **Execution Guardrails**: Identify potential side-effects, state mutations, and unhandled asynchronous exceptions.
25
- 4. **Validation & Type Contracts**: Validate input data schemas and strict type constraints across all module interfaces.
26
- 5. **Observability & Proof of Execution**: Ensure execution produces tangible verification signals (terminal output, tests, metrics).
27
-
28
- ## Activation Boundaries
29
-
30
- - **Activate when:** Use when Apple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring animations, drag/swipe/sheet interactions, momentum and interruptible transitions, translucent materials and depth, typography (optical sizing, tracking, leading), reduced-motion, or the design foundations behind Apple-style interfaces.
31
- - **DO NOT activate when:** The task falls outside the `apple-design` domain or is managed by a different dedicated specialist.
32
-
33
- ## ๐Ÿ” Multi-Pass Execution Protocol
34
-
35
- Execute all non-trivial tasks through this 7-pass cognitive loop:
36
-
37
- | Pass | Phase | Core Action |
38
- | :--------- | :--------------- | :------------------------------------------------------------------------------------------- |
39
- | **Pass 1** | **Understand** | Deconstruct the user's explicit objective, implicit requirements, and platform constraints. |
40
- | **Pass 2** | **Plan** | Decompose the task into smallest logical steps; map dependencies and required tool calls. |
41
- | **Pass 3** | **Execute** | Implement the solution with production-grade craft, zero placeholders, and strict typing. |
42
- | **Pass 4** | **Verify** | Run linters, unit tests, or compiler checks to validate structural correctness. |
43
- | **Pass 5** | **Attack** | Perform an adversarial review searching for edge-case failures, race conditions, and traps. |
44
- | **Pass 6** | **Improve** | Eliminate discovered friction, optimize performance, and harden error boundaries. |
45
- | **Pass 7** | **Quality Gate** | Enforce Verification-Before-Completion (VBC) with concrete terminal proof before finalizing. |
46
-
47
18
  ---
48
19
 
49
20
  ## ๐Ÿ› ๏ธ Technical Architecture & Reference Recipes
@@ -116,49 +87,3 @@ Apple depth relies on subtle, multi-layered backdrop blur and border highlights:
116
87
  | Rigid linear/ease transitions | Physics-based spring curves (`stiffness: 300, damping: 24`) | Simulates real-world physical momentum |
117
88
  | Opaque static dropdowns | Translucent backdrop blur panel (`blur(20px) saturate(180%)`) | Preserves spatial context beneath UI |
118
89
  | Sudden state jumps | Interruptible velocity-preserving spring animations | Prevents visual jarring during rapid user input |
119
-
120
- ---
121
-
122
- ## ๐Ÿšจ Edge-Case & Failure Mode Matrix
123
-
124
- | Scenario | Risk | Mitigation Strategy |
125
- | :------------------------------------- | :--------------------------------------------------- | :------------------------------------------------------------------------------ |
126
- | **Empty or Null Inputs** | Unhandled exception or unexpected rendering collapse | Enforce fallback guards, optional chaining, and explicit empty state handlers |
127
- | **Network Timeout / Latency** | Hanging operations or duplicate side-effects | Implement bounded abort controllers, exponential backoff, and idempotency keys |
128
- | **Concurrency / Race Conditions** | Stale state overwrite or inconsistent data mutations | Use atomic transactions, mutex locking, or cancel-on-resubmit controls |
129
- | **Invalid Schema / Malformed Payload** | Downstream runtime errors or security injection | Validate boundary payloads with Zod/Pydantic schemas prior to execution |
130
- | **Resource / Memory Saturation** | OOM errors, frame drops, or memory leaks | Clean up listeners, cancel active timers, and enforce pagination/virtualization |
131
-
132
- ---
133
-
134
- ## ๐Ÿค– LLM-Specific Traps Table
135
-
136
- | Anti-Pattern | What AI Commonly Does Wrong | What Is Actually Correct |
137
- | :------------------------------ | :----------------------------------------------------------------- | :---------------------------------------------------------------------------- |
138
- | **Uncontrolled Re-render Loop** | Mutating state inside render bodies or omitting hook dependencies | Wrap effects with explicit deps and isolate reactive derivations in useMemo |
139
- | **Accessibility Neglect** | Interactive <div> without role="button", tabIndex, or onKeyDown | Use semantic <button> or provide ARIA role, keyboard handlers, and focus ring |
140
- | **Layout Shift Flash** | Images/dynamic content without aspect-ratio or explicit dimensions | Enforce aspect-ratio or skeleton placeholders to guarantee zero CLS |
141
-
142
- ---
143
-
144
- ## ๐Ÿ›๏ธ Tribunal Verification & Guardrails
145
-
146
- **Active Reviewers:** `frontend-reviewer` ยท `type-safety` ยท `ui-ux-auditor` ยท `complexity-reviewer`
147
- **Slash Command:** `/review` or `/tribunal-full`
148
-
149
- ### โœ… Pre-Flight Self-Audit Checklist
150
-
151
- ```
152
- โœ… Are all component props strictly typed with zero implicit "any"?
153
- โœ… Are responsive breakpoints, fluid typography, and optical balance verified?
154
- โœ… Is accessibility (ARIA labels, keyboard focus, contrast) validated?
155
- โœ… Are re-renders minimized and state lifecycles cleanly separated?
156
- โœ… Did I verify all imported UI components and icon sets actually exist?
157
- ```
158
-
159
- ### ๐Ÿ›‘ Verification-Before-Completion (VBC) Protocol
160
-
161
- **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
162
-
163
- - โŒ **Forbidden:** Declaring a task complete because the output "looks correct."
164
- - โœ… **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing test suites, compiler success, or equivalent operational proof) that your output works as intended.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: architecture
3
- description: Use when Software architecture mastery. System design patterns, clean architecture, hexagonal/ports-and-adapters, event-driven architecture, microservices vs monolith decision framework, CQRS, domain-driven design, Architecture Decision Records (ADRs), and scalability patterns. Use when making architecture decisions, designing systems, or documenting technical decisions.
3
+ description: "Use when Software architecture mastery. System design patterns, clean architecture, hexagonal/ports-and-adapters, event-driven architecture, microservices vs monolith decision framework, CQRS, domain-driven design, Architecture Decision Records (ADRs), and scalability patterns. Use when making architecture decisions, designing systems, or documenting technical decisions."
4
4
  version: 5.0.0
5
5
  last-updated: 2026-09-13
6
6
  skills:
@@ -15,35 +15,6 @@ scripts-binding:
15
15
 
16
16
  # Architecture โ€” System Design Mastery
17
17
 
18
- ## Mandatory Pre-Flight Context Inspection
19
-
20
- Before generating, refactoring, or reviewing code in the `architecture` domain, inspect these 5 critical parameters:
21
-
22
- 1. **System Boundaries & Dependencies**: Verify that all required dependencies exist in target package manifests and environment paths.
23
- 2. **Runtime Context & Platform Invariants**: Confirm target platform constraints (Node.js, Browser, Mobile OS, Edge runtime) before applying APIs.
24
- 3. **Execution Guardrails**: Identify potential side-effects, state mutations, and unhandled asynchronous exceptions.
25
- 4. **Validation & Type Contracts**: Validate input data schemas and strict type constraints across all module interfaces.
26
- 5. **Observability & Proof of Execution**: Ensure execution produces tangible verification signals (terminal output, tests, metrics).
27
-
28
- ## Activation Boundaries
29
-
30
- - **Activate when:** Use when Software architecture mastery. System design patterns, clean architecture, hexagonal/ports-and-adapters, event-driven architecture, microservices vs monolith decision framework, CQRS, domain-driven design, Architecture Decision Records (ADRs), and scalability patterns. Use when making architecture decisions, designing systems, or documenting technical decisions.
31
- - **DO NOT activate when:** The task falls outside the `architecture` domain or is managed by a different dedicated specialist.
32
-
33
- ## ๐Ÿ” Multi-Pass Execution Protocol
34
-
35
- Execute all non-trivial tasks through this 7-pass cognitive loop:
36
-
37
- | Pass | Phase | Core Action |
38
- | :--------- | :--------------- | :------------------------------------------------------------------------------------------- |
39
- | **Pass 1** | **Understand** | Deconstruct the user's explicit objective, implicit requirements, and platform constraints. |
40
- | **Pass 2** | **Plan** | Decompose the task into smallest logical steps; map dependencies and required tool calls. |
41
- | **Pass 3** | **Execute** | Implement the solution with production-grade craft, zero placeholders, and strict typing. |
42
- | **Pass 4** | **Verify** | Run linters, unit tests, or compiler checks to validate structural correctness. |
43
- | **Pass 5** | **Attack** | Perform an adversarial review searching for edge-case failures, race conditions, and traps. |
44
- | **Pass 6** | **Improve** | Eliminate discovered friction, optimize performance, and harden error boundaries. |
45
- | **Pass 7** | **Quality Gate** | Enforce Verification-Before-Completion (VBC) with concrete terminal proof before finalizing. |
46
-
47
18
  ---
48
19
 
49
20
  ## ๐Ÿ› ๏ธ Technical Architecture & Reference Recipes
@@ -215,49 +186,3 @@ Team: Solo 2โ€“10 10+
215
186
  Architecture: Simple Mono Modular Mono Distributed
216
187
  Framework: Next.js API NestJS Microservices
217
188
  ```
218
-
219
- ---
220
-
221
- ## ๐Ÿšจ Edge-Case & Failure Mode Matrix
222
-
223
- | Scenario | Risk | Mitigation Strategy |
224
- | :------------------------------------- | :--------------------------------------------------- | :------------------------------------------------------------------------------ |
225
- | **Empty or Null Inputs** | Unhandled exception or unexpected rendering collapse | Enforce fallback guards, optional chaining, and explicit empty state handlers |
226
- | **Network Timeout / Latency** | Hanging operations or duplicate side-effects | Implement bounded abort controllers, exponential backoff, and idempotency keys |
227
- | **Concurrency / Race Conditions** | Stale state overwrite or inconsistent data mutations | Use atomic transactions, mutex locking, or cancel-on-resubmit controls |
228
- | **Invalid Schema / Malformed Payload** | Downstream runtime errors or security injection | Validate boundary payloads with Zod/Pydantic schemas prior to execution |
229
- | **Resource / Memory Saturation** | OOM errors, frame drops, or memory leaks | Clean up listeners, cancel active timers, and enforce pagination/virtualization |
230
-
231
- ---
232
-
233
- ## ๐Ÿค– LLM-Specific Traps Table
234
-
235
- | Anti-Pattern | What AI Commonly Does Wrong | What Is Actually Correct |
236
- | :--------------------------------- | :------------------------------------------------------------------------ | :----------------------------------------------------------------------- |
237
- | **Hallucinated Tool Capabilities** | Assuming an external library or CLI command exists without verification | Run a verification check or verify package.json before referencing tools |
238
- | **Premature Completion Claim** | Declaring a task finished because code was generated without verification | Execute tests, linters, or terminal commands to provide concrete proof |
239
- | **Context Bloat Dumping** | Pasting entire multi-thousand-line files into prompt context | Extract targeted excerpts, symbols, and signatures to preserve tokens |
240
-
241
- ---
242
-
243
- ## ๐Ÿ›๏ธ Tribunal Verification & Guardrails
244
-
245
- **Active Reviewers:** `orchestrator` ยท `agent-organizer` ยท `logic-reviewer`
246
- **Slash Command:** `/review` or `/tribunal-full`
247
-
248
- ### โœ… Pre-Flight Self-Audit Checklist
249
-
250
- ```
251
- โœ… Did I deconstruct the root objective before proposing architecture?
252
- โœ… Did I identify dependencies, bottlenecks, and parallelizable sub-tasks?
253
- โœ… Did I avoid over-engineering and select the simplest effective pattern?
254
- โœ… Did I verify assumptions with concrete file reads instead of speculation?
255
- โœ… Did I establish measurable verification criteria before completion?
256
- ```
257
-
258
- ### ๐Ÿ›‘ Verification-Before-Completion (VBC) Protocol
259
-
260
- **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
261
-
262
- - โŒ **Forbidden:** Declaring a task complete because the output "looks correct."
263
- - โœ… **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing test suites, compiler success, or equivalent operational proof) that your output works as intended.
@@ -1,12 +1,15 @@
1
1
  ---
2
2
  name: audit-and-fix
3
- description: Use when Accessibility auditing and remediation workflow combining detection, prioritization, and practical code fixes for WCAG 2.2 AA compliance issues.
3
+ description: "Use when Use for dual-purpose remediation: Accessibility auditing (WCAG 2.2 AA) and Deep Backend Security Remediation (Cloudflare protocols, Auth, CSRF, JWT)."
4
4
  version: 5.0.0
5
5
  last-updated: 2026-09-13
6
6
  skills:
7
7
  - fixing-accessibility
8
8
  - build-primitive
9
9
  - baseline-ui
10
+ - cf-security-audit-core
11
+ - cf-web-protocol-and-auth
12
+ - cf-attack-classes
10
13
  tools: Read, Grep, Glob, Bash, Edit, Write
11
14
  scripts-binding:
12
15
  - .agent/scripts/lint_runner.js
@@ -15,35 +18,6 @@ scripts-binding:
15
18
 
16
19
  # Audit and Fix โ€” Accessibility Remediation Workflow
17
20
 
18
- ## Mandatory Pre-Flight Context Inspection
19
-
20
- Before generating, refactoring, or reviewing code in the `audit-and-fix` domain, inspect these 5 critical parameters:
21
-
22
- 1. **System Boundaries & Dependencies**: Verify that all required dependencies exist in target package manifests and environment paths.
23
- 2. **Runtime Context & Platform Invariants**: Confirm target platform constraints (Node.js, Browser, Mobile OS, Edge runtime) before applying APIs.
24
- 3. **Execution Guardrails**: Identify potential side-effects, state mutations, and unhandled asynchronous exceptions.
25
- 4. **Validation & Type Contracts**: Validate input data schemas and strict type constraints across all module interfaces.
26
- 5. **Observability & Proof of Execution**: Ensure execution produces tangible verification signals (terminal output, tests, metrics).
27
-
28
- ## Activation Boundaries
29
-
30
- - **Activate when:** Use when Accessibility auditing and remediation workflow combining detection, prioritization, and practical code fixes for WCAG 2.2 AA compliance issues.
31
- - **DO NOT activate when:** The task falls outside the `audit-and-fix` domain or is managed by a different dedicated specialist.
32
-
33
- ## ๐Ÿ” Multi-Pass Execution Protocol
34
-
35
- Execute all non-trivial tasks through this 7-pass cognitive loop:
36
-
37
- | Pass | Phase | Core Action |
38
- | :--------- | :--------------- | :------------------------------------------------------------------------------------------- |
39
- | **Pass 1** | **Understand** | Deconstruct the user's explicit objective, implicit requirements, and platform constraints. |
40
- | **Pass 2** | **Plan** | Decompose the task into smallest logical steps; map dependencies and required tool calls. |
41
- | **Pass 3** | **Execute** | Implement the solution with production-grade craft, zero placeholders, and strict typing. |
42
- | **Pass 4** | **Verify** | Run linters, unit tests, or compiler checks to validate structural correctness. |
43
- | **Pass 5** | **Attack** | Perform an adversarial review searching for edge-case failures, race conditions, and traps. |
44
- | **Pass 6** | **Improve** | Eliminate discovered friction, optimize performance, and harden error boundaries. |
45
- | **Pass 7** | **Quality Gate** | Enforce Verification-Before-Completion (VBC) with concrete terminal proof before finalizing. |
46
-
47
21
  ---
48
22
 
49
23
  ## ๐Ÿ› ๏ธ Technical Architecture & Reference Recipes
@@ -56,23 +30,32 @@ Execute all non-trivial tasks through this 7-pass cognitive loop:
56
30
 
57
31
  ### 1. Automated Violation Detection
58
32
 
59
- Scan component code for:
33
+ Scan component code for **Accessibility**:
60
34
 
61
35
  - Missing `alt` tags on `<img>` elements.
62
36
  - Form controls (`<input>`, `<select>`) missing associated `<label>` or `aria-label`.
63
37
  - Buttons with icon-only content missing `aria-label`.
64
38
  - Non-interactive elements (`<div>`, `<span>`) with `onClick` handlers missing `role="button"` and `tabIndex={0}`.
65
39
 
40
+ Scan backend code for **Security (Cloudflare Protocols)**:
41
+
42
+ - JWTs lacking explicit `alg`, `aud`, and `exp` validation.
43
+ - Missing CSRF tokens on state-mutating HTTP methods (`POST`, `PUT`, `DELETE`).
44
+ - Improper request framing or missing cache control headers.
45
+ - Hardcoded secrets or unsanitized user inputs at boundaries.
46
+
66
47
  ### 2. Prioritization Matrix
67
48
 
68
- | Severity Level | Violation Type | Remediation Action |
69
- | -------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
70
- | ๐Ÿ”ด **Blocker (Level A)** | Inaccessible form inputs, un-trapped focus in modal, zero keyboard access | Add explicit `<label>`, focus trap, and keyboard handlers immediately. |
71
- | ๐ŸŸ  **Critical (Level AA)** | Low text contrast ratio ($< 4.5:1$), missing ARIA states on custom dropdowns | Adjust text colors to OKLCH contrast targets; add `aria-expanded`. |
72
- | ๐ŸŸก **Moderate (Level AA)** | Missing landmark regions (`<main>`, `<nav>`, `<header>`), heading hierarchy gaps | Wrap layout blocks in semantic HTML5 tags. |
49
+ | Severity Level | Violation Type | Remediation Action |
50
+ | -------------------------- | --------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
51
+ | ๐Ÿ”ด **Blocker (Level A)** | Inaccessible form inputs, zero keyboard access, **Auth Bypass**, **Missing CSRF** | Add explicit `<label>`, focus trap, validate JWT `aud`/`exp`, add CSRF. |
52
+ | ๐ŸŸ  **Critical (Level AA)** | Low text contrast ratio ($< 4.5:1$), **Broken Cache**, **Weak Framing** | Adjust colors to OKLCH targets; harden cache-control & framing. |
53
+ | ๐ŸŸก **Moderate (Level AA)** | Missing landmark regions (`<main>`, `<nav>`), heading hierarchy gaps | Wrap layout blocks in semantic HTML5 tags. |
73
54
 
74
55
  ### 3. Concrete Code Fix Examples
75
56
 
57
+ #### Accessibility Examples
58
+
76
59
  ```tsx
77
60
  // BEFORE (Inaccessible)
78
61
  <div onClick={submitForm} className="btn">Submit</div>
@@ -89,48 +72,29 @@ Scan component code for:
89
72
  <button onClick={openSettings} aria-label="Open settings"><SettingsIcon aria-hidden="true" /></button>
90
73
  ```
91
74
 
92
- ---
93
-
94
- ## ๐Ÿšจ Edge-Case & Failure Mode Matrix
75
+ #### Security Examples
95
76
 
96
- | Scenario | Risk | Mitigation Strategy |
97
- | :------------------------------------- | :--------------------------------------------------- | :------------------------------------------------------------------------------ |
98
- | **Empty or Null Inputs** | Unhandled exception or unexpected rendering collapse | Enforce fallback guards, optional chaining, and explicit empty state handlers |
99
- | **Network Timeout / Latency** | Hanging operations or duplicate side-effects | Implement bounded abort controllers, exponential backoff, and idempotency keys |
100
- | **Concurrency / Race Conditions** | Stale state overwrite or inconsistent data mutations | Use atomic transactions, mutex locking, or cancel-on-resubmit controls |
101
- | **Invalid Schema / Malformed Payload** | Downstream runtime errors or security injection | Validate boundary payloads with Zod/Pydantic schemas prior to execution |
102
- | **Resource / Memory Saturation** | OOM errors, frame drops, or memory leaks | Clean up listeners, cancel active timers, and enforce pagination/virtualization |
77
+ ```ts
78
+ // BEFORE (Insecure JWT Validation)
79
+ const decoded = jwt.verify(token, secret);
103
80
 
104
- ---
105
-
106
- ## ๐Ÿค– LLM-Specific Traps Table
107
-
108
- | Anti-Pattern | What AI Commonly Does Wrong | What Is Actually Correct |
109
- | :------------------------------ | :-------------------------------------------------------------------------------- | :----------------------------------------------------------------------------- |
110
- | **Hardcoded Secret Pattern** | Committing API keys, tokens, or private salts into source code | Load credentials strictly via runtime environment variables and secret stores |
111
- | **Prompt Injection Surface** | Directly concatenating untrusted user input into LLM system prompts | Wrap user content in isolated delimiters and strip injection control sequences |
112
- | **Missing Authorization Check** | Relying only on authentication token presence without checking tenant/object RBAC | Verify user permissions against the specific target record ID before mutation |
113
-
114
- ---
115
-
116
- ## ๐Ÿ›๏ธ Tribunal Verification & Guardrails
117
-
118
- **Active Reviewers:** `security-auditor` ยท `penetration-tester` ยท `backend-security-expert`
119
- **Slash Command:** `/review` or `/tribunal-full`
120
-
121
- ### โœ… Pre-Flight Self-Audit Checklist
122
-
123
- ```
124
- โœ… Are user inputs sanitized and treated as untrusted at system boundaries?
125
- โœ… Are secrets loaded strictly via environment variables with zero hardcoding?
126
- โœ… Is least-privilege enforcement active on APIs, tokens, and storage buckets?
127
- โœ… Are prompt-injection delimiters and sanitizers wrapped around LLM inputs?
128
- โœ… Did I verify encryption in transit and at rest for sensitive customer data?
81
+ // AFTER (Secure JWT Validation - Enforce Audience & Alg)
82
+ const decoded = jwt.verify(token, secret, {
83
+ algorithms: ['HS256'],
84
+ audience: 'https://api.example.com',
85
+ maxAge: '1h',
86
+ });
129
87
  ```
130
88
 
131
- ### ๐Ÿ›‘ Verification-Before-Completion (VBC) Protocol
132
-
133
- **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
134
-
135
- - โŒ **Forbidden:** Declaring a task complete because the output "looks correct."
136
- - โœ… **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing test suites, compiler success, or equivalent operational proof) that your output works as intended.
89
+ ```tsx
90
+ // BEFORE (Missing CSRF)
91
+ <form action="/api/update-profile" method="POST">
92
+ <input name="email" type="email" />
93
+ </form>
94
+
95
+ // AFTER (Secure with CSRF Token)
96
+ <form action="/api/update-profile" method="POST">
97
+ <input type="hidden" name="csrfToken" value={csrfToken} />
98
+ <input name="email" type="email" />
99
+ </form>
100
+ ```
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: authentication-best-practices
3
- description: Use when Authentication and Authorization mastery. Best practices for OAuth2, OpenID Connect, JWT (JSON Web Tokens), session management, password hashing, MFA (Multi-Factor Authentication), RBAC/ABAC, SSO, and secure credential storage. Use when auditing or implementing login flows, identity systems, or access control.
3
+ description: "Use when Authentication and Authorization mastery. Best practices for OAuth2, OpenID Connect, JWT (JSON Web Tokens), session management, password hashing, MFA (Multi-Factor Authentication), RBAC/ABAC, SSO, and secure credential storage. Use when auditing or implementing login flows, identity systems, or access control."
4
4
  version: 5.0.0
5
5
  last-updated: 2026-09-13
6
6
  skills:
@@ -15,35 +15,6 @@ scripts-binding:
15
15
 
16
16
  # Authentication & Authorization โ€” Identity Mastery
17
17
 
18
- ## Mandatory Pre-Flight Context Inspection
19
-
20
- Before generating, refactoring, or reviewing code in the `authentication-best-practices` domain, inspect these 5 critical parameters:
21
-
22
- 1. **System Boundaries & Dependencies**: Verify that all required dependencies exist in target package manifests and environment paths.
23
- 2. **Runtime Context & Platform Invariants**: Confirm target platform constraints (Node.js, Browser, Mobile OS, Edge runtime) before applying APIs.
24
- 3. **Execution Guardrails**: Identify potential side-effects, state mutations, and unhandled asynchronous exceptions.
25
- 4. **Validation & Type Contracts**: Validate input data schemas and strict type constraints across all module interfaces.
26
- 5. **Observability & Proof of Execution**: Ensure execution produces tangible verification signals (terminal output, tests, metrics).
27
-
28
- ## Activation Boundaries
29
-
30
- - **Activate when:** Use when Authentication and Authorization mastery. Best practices for OAuth2, OpenID Connect, JWT (JSON Web Tokens), session management, password hashing, MFA (Multi-Factor Authentication), RBAC/ABAC, SSO, and secure credential storage. Use when auditing or implementing login flows, identity systems, or access control.
31
- - **DO NOT activate when:** The task falls outside the `authentication-best-practices` domain or is managed by a different dedicated specialist.
32
-
33
- ## ๐Ÿ” Multi-Pass Execution Protocol
34
-
35
- Execute all non-trivial tasks through this 7-pass cognitive loop:
36
-
37
- | Pass | Phase | Core Action |
38
- | :--------- | :--------------- | :------------------------------------------------------------------------------------------- |
39
- | **Pass 1** | **Understand** | Deconstruct the user's explicit objective, implicit requirements, and platform constraints. |
40
- | **Pass 2** | **Plan** | Decompose the task into smallest logical steps; map dependencies and required tool calls. |
41
- | **Pass 3** | **Execute** | Implement the solution with production-grade craft, zero placeholders, and strict typing. |
42
- | **Pass 4** | **Verify** | Run linters, unit tests, or compiler checks to validate structural correctness. |
43
- | **Pass 5** | **Attack** | Perform an adversarial review searching for edge-case failures, race conditions, and traps. |
44
- | **Pass 6** | **Improve** | Eliminate discovered friction, optimize performance, and harden error boundaries. |
45
- | **Pass 7** | **Quality Gate** | Enforce Verification-Before-Completion (VBC) with concrete terminal proof before finalizing. |
46
-
47
18
  ---
48
19
 
49
20
  ## ๐Ÿ› ๏ธ Technical Architecture & Reference Recipes
@@ -184,49 +155,3 @@ function canEditPost(user: User, post: Post): boolean {
184
155
  return false;
185
156
  }
186
157
  ```
187
-
188
- ---
189
-
190
- ## ๐Ÿšจ Edge-Case & Failure Mode Matrix
191
-
192
- | Scenario | Risk | Mitigation Strategy |
193
- | :------------------------------------- | :--------------------------------------------------- | :------------------------------------------------------------------------------ |
194
- | **Empty or Null Inputs** | Unhandled exception or unexpected rendering collapse | Enforce fallback guards, optional chaining, and explicit empty state handlers |
195
- | **Network Timeout / Latency** | Hanging operations or duplicate side-effects | Implement bounded abort controllers, exponential backoff, and idempotency keys |
196
- | **Concurrency / Race Conditions** | Stale state overwrite or inconsistent data mutations | Use atomic transactions, mutex locking, or cancel-on-resubmit controls |
197
- | **Invalid Schema / Malformed Payload** | Downstream runtime errors or security injection | Validate boundary payloads with Zod/Pydantic schemas prior to execution |
198
- | **Resource / Memory Saturation** | OOM errors, frame drops, or memory leaks | Clean up listeners, cancel active timers, and enforce pagination/virtualization |
199
-
200
- ---
201
-
202
- ## ๐Ÿค– LLM-Specific Traps Table
203
-
204
- | Anti-Pattern | What AI Commonly Does Wrong | What Is Actually Correct |
205
- | :--------------------------------- | :------------------------------------------------------------------------ | :----------------------------------------------------------------------- |
206
- | **Hallucinated Tool Capabilities** | Assuming an external library or CLI command exists without verification | Run a verification check or verify package.json before referencing tools |
207
- | **Premature Completion Claim** | Declaring a task finished because code was generated without verification | Execute tests, linters, or terminal commands to provide concrete proof |
208
- | **Context Bloat Dumping** | Pasting entire multi-thousand-line files into prompt context | Extract targeted excerpts, symbols, and signatures to preserve tokens |
209
-
210
- ---
211
-
212
- ## ๐Ÿ›๏ธ Tribunal Verification & Guardrails
213
-
214
- **Active Reviewers:** `orchestrator` ยท `agent-organizer` ยท `logic-reviewer`
215
- **Slash Command:** `/review` or `/tribunal-full`
216
-
217
- ### โœ… Pre-Flight Self-Audit Checklist
218
-
219
- ```
220
- โœ… Did I deconstruct the root objective before proposing architecture?
221
- โœ… Did I identify dependencies, bottlenecks, and parallelizable sub-tasks?
222
- โœ… Did I avoid over-engineering and select the simplest effective pattern?
223
- โœ… Did I verify assumptions with concrete file reads instead of speculation?
224
- โœ… Did I establish measurable verification criteria before completion?
225
- ```
226
-
227
- ### ๐Ÿ›‘ Verification-Before-Completion (VBC) Protocol
228
-
229
- **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
230
-
231
- - โŒ **Forbidden:** Declaring a task complete because the output "looks correct."
232
- - โœ… **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing test suites, compiler success, or equivalent operational proof) that your output works as intended.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: backend-security-expert
3
- description: Use when Backend security auditing for modern server-side architectures. Focuses on Next.js Server Actions, Node.js/Edge APIs, JWT & Session architectures, ORM injection (Prisma/Drizzle), and RBAC implementation.
3
+ description: "Use when Backend security auditing for modern server-side architectures. Focuses on Next.js Server Actions, Node.js/Edge APIs, JWT & Session architectures, ORM injection (Prisma/Drizzle), and RBAC implementation."
4
4
  version: 5.0.0
5
5
  last-updated: 2026-09-13
6
6
  skills:
@@ -15,35 +15,6 @@ scripts-binding:
15
15
 
16
16
  # Backend Security Expert โ€” Modern Server Architectures
17
17
 
18
- ## Mandatory Pre-Flight Context Inspection
19
-
20
- Before generating, refactoring, or reviewing code in the `backend-security-expert` domain, inspect these 5 critical parameters:
21
-
22
- 1. **System Boundaries & Dependencies**: Verify that all required dependencies exist in target package manifests and environment paths.
23
- 2. **Runtime Context & Platform Invariants**: Confirm target platform constraints (Node.js, Browser, Mobile OS, Edge runtime) before applying APIs.
24
- 3. **Execution Guardrails**: Identify potential side-effects, state mutations, and unhandled asynchronous exceptions.
25
- 4. **Validation & Type Contracts**: Validate input data schemas and strict type constraints across all module interfaces.
26
- 5. **Observability & Proof of Execution**: Ensure execution produces tangible verification signals (terminal output, tests, metrics).
27
-
28
- ## Activation Boundaries
29
-
30
- - **Activate when:** Use when Backend security auditing for modern server-side architectures. Focuses on Next.js Server Actions, Node.js/Edge APIs, JWT & Session architectures, ORM injection (Prisma/Drizzle), and RBAC implementation.
31
- - **DO NOT activate when:** The task falls outside the `backend-security-expert` domain or is managed by a different dedicated specialist.
32
-
33
- ## ๐Ÿ” Multi-Pass Execution Protocol
34
-
35
- Execute all non-trivial tasks through this 7-pass cognitive loop:
36
-
37
- | Pass | Phase | Core Action |
38
- | :--------- | :--------------- | :------------------------------------------------------------------------------------------- |
39
- | **Pass 1** | **Understand** | Deconstruct the user's explicit objective, implicit requirements, and platform constraints. |
40
- | **Pass 2** | **Plan** | Decompose the task into smallest logical steps; map dependencies and required tool calls. |
41
- | **Pass 3** | **Execute** | Implement the solution with production-grade craft, zero placeholders, and strict typing. |
42
- | **Pass 4** | **Verify** | Run linters, unit tests, or compiler checks to validate structural correctness. |
43
- | **Pass 5** | **Attack** | Perform an adversarial review searching for edge-case failures, race conditions, and traps. |
44
- | **Pass 6** | **Improve** | Eliminate discovered friction, optimize performance, and harden error boundaries. |
45
- | **Pass 7** | **Quality Gate** | Enforce Verification-Before-Completion (VBC) with concrete terminal proof before finalizing. |
46
-
47
18
  ---
48
19
 
49
20
  ## ๐Ÿ› ๏ธ Technical Architecture & Reference Recipes
@@ -100,49 +71,3 @@ Server Actions create implicit API endpoints. They must be treated like raw REST
100
71
 
101
72
  - **CORS**: Never use wildcard `Access-Control-Allow-Origin: *` for authenticated routes.
102
73
  - **Security Headers**: Ensure Helmet (or equivalent Next.js headers config) is active for HSTS, X-Frame-Options, and Content-Type-Options.
103
-
104
- ---
105
-
106
- ## ๐Ÿšจ Edge-Case & Failure Mode Matrix
107
-
108
- | Scenario | Risk | Mitigation Strategy |
109
- | :------------------------------------- | :--------------------------------------------------- | :------------------------------------------------------------------------------ |
110
- | **Empty or Null Inputs** | Unhandled exception or unexpected rendering collapse | Enforce fallback guards, optional chaining, and explicit empty state handlers |
111
- | **Network Timeout / Latency** | Hanging operations or duplicate side-effects | Implement bounded abort controllers, exponential backoff, and idempotency keys |
112
- | **Concurrency / Race Conditions** | Stale state overwrite or inconsistent data mutations | Use atomic transactions, mutex locking, or cancel-on-resubmit controls |
113
- | **Invalid Schema / Malformed Payload** | Downstream runtime errors or security injection | Validate boundary payloads with Zod/Pydantic schemas prior to execution |
114
- | **Resource / Memory Saturation** | OOM errors, frame drops, or memory leaks | Clean up listeners, cancel active timers, and enforce pagination/virtualization |
115
-
116
- ---
117
-
118
- ## ๐Ÿค– LLM-Specific Traps Table
119
-
120
- | Anti-Pattern | What AI Commonly Does Wrong | What Is Actually Correct |
121
- | :-------------------------- | :--------------------------------------------------------------------------- | :------------------------------------------------------------------------ |
122
- | **Unchecked Payload Cast** | Casting request bodies to TypeScript types without runtime schema validation | Parse request payloads through Zod/Pydantic schemas before business logic |
123
- | **Silent Error Swallowing** | Catching errors with empty catch blocks or logging without rethrowing | Propagate structured errors with status codes and contextual stack traces |
124
- | **Unparameterized Query** | Concatenating user inputs into SQL/Prisma query strings | Always use parameterized bindings or type-safe ORM query builders |
125
-
126
- ---
127
-
128
- ## ๐Ÿ›๏ธ Tribunal Verification & Guardrails
129
-
130
- **Active Reviewers:** `logic-reviewer` ยท `security-auditor` ยท `api-architect` ยท `resilience-reviewer`
131
- **Slash Command:** `/review` or `/tribunal-full`
132
-
133
- ### โœ… Pre-Flight Self-Audit Checklist
134
-
135
- ```
136
- โœ… Are all inputs and boundary payloads validated against schemas (Zod/Pydantic)?
137
- โœ… Are SQL and database queries parameterized with zero string concatenation?
138
- โœ… Are error boundaries and timeout/retry policies explicitly declared?
139
- โœ… Are authentication checks performed before business logic execution?
140
- โœ… Did I verify that imported dependencies exist in package.json/requirements.txt?
141
- ```
142
-
143
- ### ๐Ÿ›‘ Verification-Before-Completion (VBC) Protocol
144
-
145
- **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
146
-
147
- - โŒ **Forbidden:** Declaring a task complete because the output "looks correct."
148
- - โœ… **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing test suites, compiler success, or equivalent operational proof) that your output works as intended.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: baseline-ui
3
- description: Use when Quickly deslop UI code by fixing spacing, hierarchy, typography, contrast, and small layout issues. Use when the interface needs a fast cleanup or polish pass.
3
+ description: "Use when Quickly deslop UI code by fixing spacing, hierarchy, typography, contrast, and small layout issues. Use when the interface needs a fast cleanup or polish pass."
4
4
  version: 5.0.0
5
5
  last-updated: 2026-09-13
6
6
  skills:
@@ -15,35 +15,6 @@ scripts-binding:
15
15
 
16
16
  # Baseline UI โ€” Fast Deslopping & Hierarchy Cleanup
17
17
 
18
- ## Mandatory Pre-Flight Context Inspection
19
-
20
- Before generating, refactoring, or reviewing code in the `baseline-ui` domain, inspect these 5 critical parameters:
21
-
22
- 1. **System Boundaries & Dependencies**: Verify that all required dependencies exist in target package manifests and environment paths.
23
- 2. **Runtime Context & Platform Invariants**: Confirm target platform constraints (Node.js, Browser, Mobile OS, Edge runtime) before applying APIs.
24
- 3. **Execution Guardrails**: Identify potential side-effects, state mutations, and unhandled asynchronous exceptions.
25
- 4. **Validation & Type Contracts**: Validate input data schemas and strict type constraints across all module interfaces.
26
- 5. **Observability & Proof of Execution**: Ensure execution produces tangible verification signals (terminal output, tests, metrics).
27
-
28
- ## Activation Boundaries
29
-
30
- - **Activate when:** Use when Quickly deslop UI code by fixing spacing, hierarchy, typography, contrast, and small layout issues. Use when the interface needs a fast cleanup or polish pass.
31
- - **DO NOT activate when:** The task falls outside the `baseline-ui` domain or is managed by a different dedicated specialist.
32
-
33
- ## ๐Ÿ” Multi-Pass Execution Protocol
34
-
35
- Execute all non-trivial tasks through this 7-pass cognitive loop:
36
-
37
- | Pass | Phase | Core Action |
38
- | :--------- | :--------------- | :------------------------------------------------------------------------------------------- |
39
- | **Pass 1** | **Understand** | Deconstruct the user's explicit objective, implicit requirements, and platform constraints. |
40
- | **Pass 2** | **Plan** | Decompose the task into smallest logical steps; map dependencies and required tool calls. |
41
- | **Pass 3** | **Execute** | Implement the solution with production-grade craft, zero placeholders, and strict typing. |
42
- | **Pass 4** | **Verify** | Run linters, unit tests, or compiler checks to validate structural correctness. |
43
- | **Pass 5** | **Attack** | Perform an adversarial review searching for edge-case failures, race conditions, and traps. |
44
- | **Pass 6** | **Improve** | Eliminate discovered friction, optimize performance, and harden error boundaries. |
45
- | **Pass 7** | **Quality Gate** | Enforce Verification-Before-Completion (VBC) with concrete terminal proof before finalizing. |
46
-
47
18
  ---
48
19
 
49
20
  ## ๐Ÿ› ๏ธ Technical Architecture & Reference Recipes
@@ -82,49 +53,3 @@ Execute all non-trivial tasks through this 7-pass cognitive loop:
82
53
  | `border: 1px solid black` | `border: 1px solid rgba(0,0,0,0.1)` | Removes harsh, distracting lines |
83
54
  | Mixed font sizes (13px, 14px, 15px) | Standardized scale (12px, 14px, 16px) | Establishes clear visual hierarchy |
84
55
  | Plain text buttons without states | Rounded button with hover/active press feedback | Indicates clickability and tactile response |
85
-
86
- ---
87
-
88
- ## ๐Ÿšจ Edge-Case & Failure Mode Matrix
89
-
90
- | Scenario | Risk | Mitigation Strategy |
91
- | :------------------------------------- | :--------------------------------------------------- | :------------------------------------------------------------------------------ |
92
- | **Empty or Null Inputs** | Unhandled exception or unexpected rendering collapse | Enforce fallback guards, optional chaining, and explicit empty state handlers |
93
- | **Network Timeout / Latency** | Hanging operations or duplicate side-effects | Implement bounded abort controllers, exponential backoff, and idempotency keys |
94
- | **Concurrency / Race Conditions** | Stale state overwrite or inconsistent data mutations | Use atomic transactions, mutex locking, or cancel-on-resubmit controls |
95
- | **Invalid Schema / Malformed Payload** | Downstream runtime errors or security injection | Validate boundary payloads with Zod/Pydantic schemas prior to execution |
96
- | **Resource / Memory Saturation** | OOM errors, frame drops, or memory leaks | Clean up listeners, cancel active timers, and enforce pagination/virtualization |
97
-
98
- ---
99
-
100
- ## ๐Ÿค– LLM-Specific Traps Table
101
-
102
- | Anti-Pattern | What AI Commonly Does Wrong | What Is Actually Correct |
103
- | :------------------------------ | :----------------------------------------------------------------- | :---------------------------------------------------------------------------- |
104
- | **Uncontrolled Re-render Loop** | Mutating state inside render bodies or omitting hook dependencies | Wrap effects with explicit deps and isolate reactive derivations in useMemo |
105
- | **Accessibility Neglect** | Interactive <div> without role="button", tabIndex, or onKeyDown | Use semantic <button> or provide ARIA role, keyboard handlers, and focus ring |
106
- | **Layout Shift Flash** | Images/dynamic content without aspect-ratio or explicit dimensions | Enforce aspect-ratio or skeleton placeholders to guarantee zero CLS |
107
-
108
- ---
109
-
110
- ## ๐Ÿ›๏ธ Tribunal Verification & Guardrails
111
-
112
- **Active Reviewers:** `frontend-reviewer` ยท `type-safety` ยท `ui-ux-auditor` ยท `complexity-reviewer`
113
- **Slash Command:** `/review` or `/tribunal-full`
114
-
115
- ### โœ… Pre-Flight Self-Audit Checklist
116
-
117
- ```
118
- โœ… Are all component props strictly typed with zero implicit "any"?
119
- โœ… Are responsive breakpoints, fluid typography, and optical balance verified?
120
- โœ… Is accessibility (ARIA labels, keyboard focus, contrast) validated?
121
- โœ… Are re-renders minimized and state lifecycles cleanly separated?
122
- โœ… Did I verify all imported UI components and icon sets actually exist?
123
- ```
124
-
125
- ### ๐Ÿ›‘ Verification-Before-Completion (VBC) Protocol
126
-
127
- **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
128
-
129
- - โŒ **Forbidden:** Declaring a task complete because the output "looks correct."
130
- - โœ… **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing test suites, compiler success, or equivalent operational proof) that your output works as intended.