@cubis/foundry 0.3.70 → 0.3.72

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 (304) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cli/core.js +4 -18
  3. package/dist/cli/core.js.map +1 -1
  4. package/package.json +1 -1
  5. package/src/cli/core.ts +4 -18
  6. package/workflows/powers/accessibility/POWER.md +83 -94
  7. package/workflows/powers/accessibility/SKILL.md +82 -94
  8. package/workflows/powers/agent-design/POWER.md +201 -0
  9. package/workflows/powers/agent-design/SKILL.md +198 -0
  10. package/workflows/powers/agent-design/references/clarification-patterns.md +153 -0
  11. package/workflows/powers/agent-design/references/skill-testing.md +164 -0
  12. package/workflows/powers/agent-design/references/workflow-patterns.md +226 -0
  13. package/workflows/powers/agentic-eval/POWER.md +62 -0
  14. package/workflows/powers/agentic-eval/SKILL.md +59 -0
  15. package/workflows/powers/agentic-eval/references/rubric-and-regression-checklist.md +11 -0
  16. package/workflows/powers/api-designer/POWER.md +43 -71
  17. package/workflows/powers/api-designer/SKILL.md +43 -71
  18. package/workflows/powers/api-patterns/POWER.md +42 -56
  19. package/workflows/powers/api-patterns/SKILL.md +42 -57
  20. package/workflows/powers/architecture-designer/POWER.md +43 -60
  21. package/workflows/powers/architecture-designer/SKILL.md +43 -60
  22. package/workflows/powers/ask-questions-if-underspecified/POWER.md +51 -3
  23. package/workflows/powers/ask-questions-if-underspecified/SKILL.md +51 -3
  24. package/workflows/powers/auth-architect/POWER.md +69 -0
  25. package/workflows/powers/auth-architect/SKILL.md +66 -0
  26. package/workflows/powers/auth-architect/references/session-token-policy-checklist.md +45 -0
  27. package/workflows/powers/behavioral-modes/POWER.md +100 -9
  28. package/workflows/powers/behavioral-modes/SKILL.md +100 -9
  29. package/workflows/powers/c-pro/POWER.md +105 -0
  30. package/workflows/powers/c-pro/SKILL.md +102 -0
  31. package/workflows/powers/c-pro/references/build-systems-and-toolchains.md +148 -0
  32. package/workflows/powers/c-pro/references/common-ub-and-portability.md +166 -0
  33. package/workflows/powers/c-pro/references/debugging-with-sanitizers.md +205 -0
  34. package/workflows/powers/c-pro/references/memory-safety-and-build-checklist.md +60 -0
  35. package/workflows/powers/c-pro/references/posix-and-platform-apis.md +244 -0
  36. package/workflows/powers/changelog-generator/POWER.md +127 -63
  37. package/workflows/powers/changelog-generator/SKILL.md +126 -63
  38. package/workflows/powers/ci-cd-pipelines/POWER.md +156 -0
  39. package/workflows/powers/ci-cd-pipelines/SKILL.md +153 -0
  40. package/workflows/powers/ci-cd-pipelines/references/github-actions-patterns.md +160 -0
  41. package/workflows/powers/ci-cd-pipelines/references/pipeline-security-checklist.md +57 -0
  42. package/workflows/powers/cli-developer/POWER.md +152 -95
  43. package/workflows/powers/cli-developer/SKILL.md +152 -95
  44. package/workflows/powers/cpp-pro/POWER.md +111 -0
  45. package/workflows/powers/cpp-pro/SKILL.md +108 -0
  46. package/workflows/powers/cpp-pro/references/concurrency-primitives.md +266 -0
  47. package/workflows/powers/cpp-pro/references/move-semantics-and-value-types.md +149 -0
  48. package/workflows/powers/cpp-pro/references/performance-and-profiling.md +191 -0
  49. package/workflows/powers/cpp-pro/references/raii-and-modern-cpp-checklist.md +87 -0
  50. package/workflows/powers/cpp-pro/references/template-and-concepts-patterns.md +205 -0
  51. package/workflows/powers/csharp-pro/POWER.md +47 -22
  52. package/workflows/powers/csharp-pro/SKILL.md +47 -22
  53. package/workflows/powers/dart-pro/POWER.md +68 -0
  54. package/workflows/powers/dart-pro/SKILL.md +65 -0
  55. package/workflows/powers/dart-pro/references/isolate-and-concurrency.md +180 -0
  56. package/workflows/powers/dart-pro/references/null-safety-and-async-patterns.md +133 -0
  57. package/workflows/powers/dart-pro/references/package-structure-and-linting.md +193 -0
  58. package/workflows/powers/dart-pro/references/sealed-records-patterns.md +173 -0
  59. package/workflows/powers/dart-pro/references/testing-and-mocking.md +235 -0
  60. package/workflows/powers/database-design/POWER.md +47 -33
  61. package/workflows/powers/database-design/SKILL.md +47 -33
  62. package/workflows/powers/database-optimizer/POWER.md +43 -64
  63. package/workflows/powers/database-optimizer/SKILL.md +43 -64
  64. package/workflows/powers/database-skills/POWER.md +59 -93
  65. package/workflows/powers/database-skills/SKILL.md +59 -93
  66. package/workflows/powers/debugging-strategies/POWER.md +69 -0
  67. package/workflows/powers/debugging-strategies/SKILL.md +66 -0
  68. package/workflows/powers/debugging-strategies/references/reproduce-isolate-verify-checklist.md +42 -0
  69. package/workflows/powers/deep-research/POWER.md +67 -0
  70. package/workflows/powers/deep-research/SKILL.md +64 -0
  71. package/workflows/powers/deep-research/references/multi-round-research-loop.md +80 -0
  72. package/workflows/powers/design-system-builder/POWER.md +130 -116
  73. package/workflows/powers/design-system-builder/SKILL.md +130 -116
  74. package/workflows/powers/devops-engineer/POWER.md +120 -57
  75. package/workflows/powers/devops-engineer/SKILL.md +120 -57
  76. package/workflows/powers/docker-kubernetes/POWER.md +94 -0
  77. package/workflows/powers/docker-kubernetes/SKILL.md +91 -0
  78. package/workflows/powers/docker-kubernetes/references/dockerfile-optimization-checklist.md +35 -0
  79. package/workflows/powers/docker-kubernetes/references/kubernetes-deployment-patterns.md +59 -0
  80. package/workflows/powers/documentation-templates/POWER.md +158 -127
  81. package/workflows/powers/documentation-templates/SKILL.md +158 -127
  82. package/workflows/powers/drizzle-expert/POWER.md +66 -0
  83. package/workflows/powers/drizzle-expert/SKILL.md +63 -0
  84. package/workflows/powers/drizzle-expert/references/runtime-pairing-matrix.md +16 -0
  85. package/workflows/powers/drizzle-expert/references/schema-and-migration-playbook.md +18 -0
  86. package/workflows/powers/error-ux-observability/POWER.md +144 -131
  87. package/workflows/powers/error-ux-observability/SKILL.md +143 -131
  88. package/workflows/powers/fastapi-expert/POWER.md +46 -60
  89. package/workflows/powers/fastapi-expert/SKILL.md +46 -60
  90. package/workflows/powers/firebase/POWER.md +65 -0
  91. package/workflows/powers/firebase/SKILL.md +62 -0
  92. package/workflows/powers/firebase/references/platform-routing.md +16 -0
  93. package/workflows/powers/firebase/references/rules-and-indexes-checklist.md +11 -0
  94. package/workflows/powers/flutter-design-system/POWER.md +63 -0
  95. package/workflows/powers/flutter-design-system/SKILL.md +60 -0
  96. package/workflows/powers/flutter-design-system/references/shared-widgets.md +29 -0
  97. package/workflows/powers/flutter-design-system/references/tokens-and-theme.md +34 -0
  98. package/workflows/powers/flutter-drift/POWER.md +65 -0
  99. package/workflows/powers/flutter-drift/SKILL.md +62 -0
  100. package/workflows/powers/flutter-drift/references/migrations.md +22 -0
  101. package/workflows/powers/flutter-drift/references/query-patterns.md +26 -0
  102. package/workflows/powers/flutter-feature/POWER.md +65 -0
  103. package/workflows/powers/flutter-feature/SKILL.md +62 -0
  104. package/workflows/powers/flutter-feature/references/architecture-rules.md +85 -0
  105. package/workflows/powers/flutter-feature/references/composite-provider.md +58 -0
  106. package/workflows/powers/flutter-feature/references/outbox-pattern.md +87 -0
  107. package/workflows/powers/flutter-feature/references/testing-patterns.md +218 -0
  108. package/workflows/powers/flutter-go-router/POWER.md +64 -0
  109. package/workflows/powers/flutter-go-router/SKILL.md +61 -0
  110. package/workflows/powers/flutter-go-router/references/guards-and-deeplinks.md +20 -0
  111. package/workflows/powers/flutter-go-router/references/typed-routes.md +27 -0
  112. package/workflows/powers/flutter-offline-sync/POWER.md +62 -0
  113. package/workflows/powers/flutter-offline-sync/SKILL.md +59 -0
  114. package/workflows/powers/flutter-offline-sync/references/outbox-full.md +44 -0
  115. package/workflows/powers/flutter-repository/POWER.md +64 -0
  116. package/workflows/powers/flutter-repository/SKILL.md +61 -0
  117. package/workflows/powers/flutter-repository/references/drift-patterns.md +21 -0
  118. package/workflows/powers/flutter-repository/references/retrofit-patterns.md +20 -0
  119. package/workflows/powers/flutter-riverpod/POWER.md +70 -0
  120. package/workflows/powers/flutter-riverpod/SKILL.md +67 -0
  121. package/workflows/powers/flutter-riverpod/references/async-and-mutations.md +19 -0
  122. package/workflows/powers/flutter-riverpod/references/async-lifecycle.md +19 -0
  123. package/workflows/powers/flutter-riverpod/references/provider-selection.md +20 -0
  124. package/workflows/powers/flutter-riverpod/references/testing.md +21 -0
  125. package/workflows/powers/flutter-riverpod/references/version-matrix.md +24 -0
  126. package/workflows/powers/flutter-state-machine/POWER.md +62 -0
  127. package/workflows/powers/flutter-state-machine/SKILL.md +59 -0
  128. package/workflows/powers/flutter-state-machine/references/app-state-contract.md +23 -0
  129. package/workflows/powers/flutter-state-machine/references/ui-rendering.md +14 -0
  130. package/workflows/powers/flutter-testing/POWER.md +64 -0
  131. package/workflows/powers/flutter-testing/SKILL.md +61 -0
  132. package/workflows/powers/flutter-testing/references/offline-sync-tests.md +16 -0
  133. package/workflows/powers/flutter-testing/references/test-layers.md +33 -0
  134. package/workflows/powers/frontend-code-review/POWER.md +137 -0
  135. package/workflows/powers/frontend-code-review/SKILL.md +134 -0
  136. package/workflows/powers/frontend-code-review/references/common-antipatterns.md +86 -0
  137. package/workflows/powers/frontend-code-review/references/performance-budgets.md +56 -0
  138. package/workflows/powers/frontend-code-review/references/review-checklists.md +47 -0
  139. package/workflows/powers/frontend-design/POWER.md +163 -362
  140. package/workflows/powers/frontend-design/SKILL.md +163 -362
  141. package/workflows/powers/game-development/POWER.md +57 -140
  142. package/workflows/powers/game-development/SKILL.md +57 -140
  143. package/workflows/powers/geo-fundamentals/POWER.md +64 -126
  144. package/workflows/powers/geo-fundamentals/SKILL.md +64 -127
  145. package/workflows/powers/git-workflow/POWER.md +135 -0
  146. package/workflows/powers/git-workflow/SKILL.md +132 -0
  147. package/workflows/powers/git-workflow/references/pr-review-checklist.md +63 -0
  148. package/workflows/powers/golang-pro/POWER.md +46 -35
  149. package/workflows/powers/golang-pro/SKILL.md +46 -35
  150. package/workflows/powers/graphql-architect/POWER.md +44 -62
  151. package/workflows/powers/graphql-architect/SKILL.md +44 -62
  152. package/workflows/powers/i18n-localization/POWER.md +118 -103
  153. package/workflows/powers/i18n-localization/SKILL.md +118 -103
  154. package/workflows/powers/java-pro/POWER.md +47 -22
  155. package/workflows/powers/java-pro/SKILL.md +47 -22
  156. package/workflows/powers/javascript-pro/POWER.md +47 -34
  157. package/workflows/powers/javascript-pro/SKILL.md +47 -34
  158. package/workflows/powers/kotlin-pro/POWER.md +46 -23
  159. package/workflows/powers/kotlin-pro/SKILL.md +46 -23
  160. package/workflows/powers/legacy-modernizer/POWER.md +43 -60
  161. package/workflows/powers/legacy-modernizer/SKILL.md +43 -60
  162. package/workflows/powers/mcp-builder/POWER.md +65 -0
  163. package/workflows/powers/mcp-builder/SKILL.md +62 -0
  164. package/workflows/powers/mcp-builder/references/testing-and-evals.md +17 -0
  165. package/workflows/powers/mcp-builder/references/transport-and-tool-design.md +17 -0
  166. package/workflows/powers/microservices-architect/POWER.md +43 -70
  167. package/workflows/powers/microservices-architect/SKILL.md +43 -70
  168. package/workflows/powers/mobile-design/POWER.md +110 -345
  169. package/workflows/powers/mobile-design/SKILL.md +110 -345
  170. package/workflows/powers/mongodb/POWER.md +67 -0
  171. package/workflows/powers/mongodb/SKILL.md +64 -0
  172. package/workflows/powers/mongodb/references/mongodb-checklist.md +20 -0
  173. package/workflows/powers/mysql/POWER.md +67 -0
  174. package/workflows/powers/mysql/SKILL.md +64 -0
  175. package/workflows/powers/mysql/references/mysql-checklist.md +20 -0
  176. package/workflows/powers/neki/POWER.md +67 -0
  177. package/workflows/powers/neki/SKILL.md +64 -0
  178. package/workflows/powers/neki/references/neki-checklist.md +18 -0
  179. package/workflows/powers/nestjs-expert/POWER.md +45 -91
  180. package/workflows/powers/nestjs-expert/SKILL.md +45 -91
  181. package/workflows/powers/nextjs-developer/POWER.md +51 -44
  182. package/workflows/powers/nextjs-developer/SKILL.md +51 -44
  183. package/workflows/powers/nodejs-best-practices/POWER.md +48 -29
  184. package/workflows/powers/nodejs-best-practices/SKILL.md +48 -29
  185. package/workflows/powers/observability/POWER.md +109 -0
  186. package/workflows/powers/observability/SKILL.md +106 -0
  187. package/workflows/powers/observability/references/alerting-and-slo-checklist.md +87 -0
  188. package/workflows/powers/observability/references/opentelemetry-setup-guide.md +121 -0
  189. package/workflows/powers/openai-docs/POWER.md +61 -0
  190. package/workflows/powers/openai-docs/SKILL.md +58 -0
  191. package/workflows/powers/openai-docs/references/official-source-playbook.md +10 -0
  192. package/workflows/powers/performance-profiling/POWER.md +61 -114
  193. package/workflows/powers/performance-profiling/SKILL.md +61 -114
  194. package/workflows/powers/php-pro/POWER.md +116 -0
  195. package/workflows/powers/php-pro/SKILL.md +113 -0
  196. package/workflows/powers/php-pro/references/architecture-and-di.md +239 -0
  197. package/workflows/powers/php-pro/references/modern-php-features.md +189 -0
  198. package/workflows/powers/php-pro/references/performance-and-deployment.md +197 -0
  199. package/workflows/powers/php-pro/references/php84-strict-typing-checklist.md +161 -0
  200. package/workflows/powers/php-pro/references/testing-and-static-analysis.md +235 -0
  201. package/workflows/powers/playwright-e2e/POWER.md +85 -0
  202. package/workflows/powers/playwright-e2e/SKILL.md +82 -0
  203. package/workflows/powers/playwright-e2e/references/locator-trace-flake-checklist.md +80 -0
  204. package/workflows/powers/postgres/POWER.md +67 -0
  205. package/workflows/powers/postgres/SKILL.md +64 -0
  206. package/workflows/powers/postgres/references/postgres-checklist.md +20 -0
  207. package/workflows/powers/prompt-engineer/POWER.md +47 -30
  208. package/workflows/powers/prompt-engineer/SKILL.md +47 -30
  209. package/workflows/powers/python-pro/POWER.md +47 -36
  210. package/workflows/powers/python-pro/SKILL.md +47 -36
  211. package/workflows/powers/react-best-practices/POWER.md +56 -33
  212. package/workflows/powers/react-best-practices/SKILL.md +56 -33
  213. package/workflows/powers/react-expert/POWER.md +47 -37
  214. package/workflows/powers/react-expert/SKILL.md +47 -37
  215. package/workflows/powers/redis/POWER.md +67 -0
  216. package/workflows/powers/redis/SKILL.md +64 -0
  217. package/workflows/powers/redis/references/redis-checklist.md +19 -0
  218. package/workflows/powers/ruby-pro/POWER.md +118 -0
  219. package/workflows/powers/ruby-pro/SKILL.md +115 -0
  220. package/workflows/powers/ruby-pro/references/modern-ruby-features.md +189 -0
  221. package/workflows/powers/ruby-pro/references/object-design-patterns.md +220 -0
  222. package/workflows/powers/ruby-pro/references/performance-and-profiling.md +224 -0
  223. package/workflows/powers/ruby-pro/references/ruby-concurrency-and-testing.md +190 -0
  224. package/workflows/powers/ruby-pro/references/testing-and-rspec.md +236 -0
  225. package/workflows/powers/rust-pro/POWER.md +45 -31
  226. package/workflows/powers/rust-pro/SKILL.md +45 -31
  227. package/workflows/powers/security-engineer/POWER.md +129 -0
  228. package/workflows/powers/security-engineer/SKILL.md +126 -0
  229. package/workflows/powers/seo-fundamentals/POWER.md +59 -102
  230. package/workflows/powers/seo-fundamentals/SKILL.md +59 -102
  231. package/workflows/powers/serverless-patterns/POWER.md +171 -0
  232. package/workflows/powers/serverless-patterns/SKILL.md +168 -0
  233. package/workflows/powers/skill-creator/POWER.md +90 -0
  234. package/workflows/powers/skill-creator/SKILL.md +87 -0
  235. package/workflows/powers/skill-creator/references/platform-formats.md +181 -0
  236. package/workflows/powers/skill-creator/references/schemas.md +430 -0
  237. package/workflows/powers/spec-miner/POWER.md +49 -57
  238. package/workflows/powers/spec-miner/SKILL.md +49 -57
  239. package/workflows/powers/sqlite/POWER.md +67 -0
  240. package/workflows/powers/sqlite/SKILL.md +64 -0
  241. package/workflows/powers/sqlite/references/sqlite-checklist.md +19 -0
  242. package/workflows/powers/sre-engineer/POWER.md +123 -64
  243. package/workflows/powers/sre-engineer/SKILL.md +123 -64
  244. package/workflows/powers/static-analysis/POWER.md +121 -77
  245. package/workflows/powers/static-analysis/SKILL.md +121 -77
  246. package/workflows/powers/stripe-best-practices/POWER.md +140 -17
  247. package/workflows/powers/stripe-best-practices/SKILL.md +139 -17
  248. package/workflows/powers/supabase/POWER.md +67 -0
  249. package/workflows/powers/supabase/SKILL.md +64 -0
  250. package/workflows/powers/supabase/references/supabase-checklist.md +19 -0
  251. package/workflows/powers/swift-pro/POWER.md +118 -0
  252. package/workflows/powers/swift-pro/SKILL.md +115 -0
  253. package/workflows/powers/swift-pro/references/concurrency-patterns.md +165 -0
  254. package/workflows/powers/swift-pro/references/protocol-and-generics.md +172 -0
  255. package/workflows/powers/swift-pro/references/sendable-and-isolation.md +116 -0
  256. package/workflows/powers/swift-pro/references/swift-concurrency-and-protocols.md +260 -0
  257. package/workflows/powers/swift-pro/references/testing-and-packages.md +192 -0
  258. package/workflows/powers/tailwind-patterns/POWER.md +71 -240
  259. package/workflows/powers/tailwind-patterns/SKILL.md +71 -240
  260. package/workflows/powers/testing-patterns/POWER.md +155 -10
  261. package/workflows/powers/testing-patterns/SKILL.md +155 -10
  262. package/workflows/powers/typescript-pro/POWER.md +47 -38
  263. package/workflows/powers/typescript-pro/SKILL.md +47 -38
  264. package/workflows/powers/vitess/POWER.md +67 -0
  265. package/workflows/powers/vitess/SKILL.md +64 -0
  266. package/workflows/powers/vitess/references/vitess-checklist.md +19 -0
  267. package/workflows/powers/vulnerability-scanner/POWER.md +146 -10
  268. package/workflows/powers/vulnerability-scanner/SKILL.md +146 -10
  269. package/workflows/powers/web-perf/POWER.md +43 -170
  270. package/workflows/powers/web-perf/SKILL.md +43 -170
  271. package/workflows/powers/webapp-testing/POWER.md +43 -164
  272. package/workflows/powers/webapp-testing/SKILL.md +43 -164
  273. package/workflows/skills/agent-design/SKILL.md +198 -0
  274. package/workflows/skills/agent-design/references/clarification-patterns.md +153 -0
  275. package/workflows/skills/agent-design/references/skill-testing.md +164 -0
  276. package/workflows/skills/agent-design/references/workflow-patterns.md +226 -0
  277. package/workflows/skills/deep-research/SKILL.md +25 -20
  278. package/workflows/skills/deep-research/references/multi-round-research-loop.md +73 -8
  279. package/workflows/skills/frontend-design/SKILL.md +37 -32
  280. package/workflows/skills/frontend-design/commands/brand.md +167 -0
  281. package/workflows/skills/frontend-design/references/brand-presets.md +228 -0
  282. package/workflows/skills/generated/skill-audit.json +11 -2
  283. package/workflows/skills/generated/skill-catalog.json +37 -5
  284. package/workflows/skills/skills_index.json +1 -1
  285. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/agent-design/SKILL.md +198 -0
  286. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/agent-design/references/clarification-patterns.md +153 -0
  287. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/agent-design/references/skill-testing.md +164 -0
  288. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/agent-design/references/workflow-patterns.md +226 -0
  289. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/SKILL.md +25 -20
  290. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/references/multi-round-research-loop.md +73 -8
  291. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/frontend-design/SKILL.md +37 -32
  292. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/frontend-design/commands/brand.md +167 -0
  293. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/frontend-design/references/brand-presets.md +228 -0
  294. package/workflows/workflows/agent-environment-setup/platforms/claude/skills/skills_index.json +1 -1
  295. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/agent-design/SKILL.md +197 -0
  296. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/agent-design/references/clarification-patterns.md +153 -0
  297. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/agent-design/references/skill-testing.md +164 -0
  298. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/agent-design/references/workflow-patterns.md +226 -0
  299. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/SKILL.md +25 -20
  300. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/references/multi-round-research-loop.md +73 -8
  301. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/frontend-design/SKILL.md +37 -32
  302. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/frontend-design/commands/brand.md +167 -0
  303. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/frontend-design/references/brand-presets.md +228 -0
  304. package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/skills_index.json +1 -1
@@ -0,0 +1,67 @@
1
+ ````markdown
2
+ ---
3
+ inclusion: manual
4
+ name: mysql
5
+ description: "Use when the task is specifically MySQL or InnoDB: schema/index design, transaction behavior, replication-aware migrations, query tuning, and managed MySQL operational tradeoffs."
6
+ license: MIT
7
+ metadata:
8
+ author: cubis-foundry
9
+ version: "3.0"
10
+ compatibility: Claude Code, Codex, GitHub Copilot
11
+ ---
12
+
13
+ # MySQL
14
+
15
+ ## Purpose
16
+
17
+ Use when the task is specifically MySQL or InnoDB: schema/index design, transaction behavior, replication-aware migrations, query tuning, and managed MySQL operational tradeoffs.
18
+
19
+ ## When to Use
20
+
21
+ - The engine is MySQL, MariaDB-compatible MySQL, or a managed MySQL platform.
22
+ - The task depends on InnoDB behavior, replication, Online DDL, or MySQL-specific indexing/query behavior.
23
+ - You need MySQL-aware migration, lock, or read/write topology guidance.
24
+
25
+ ## Instructions
26
+
27
+ 1. Confirm MySQL variant, version, topology, and operational constraints.
28
+ 2. Identify the dominant query and write patterns before changing schema or indexes.
29
+ 3. Design for InnoDB realities: clustering, covering indexes, transaction scope, and lock impact.
30
+ 4. Plan migrations around Online DDL behavior, replicas, and rollback constraints.
31
+ 5. Re-check with query-plan evidence and operational safety notes.
32
+
33
+ ### Baseline standards
34
+
35
+ - Optimize for actual read/write mix, not synthetic benchmarks.
36
+ - Keep transaction boundaries tight and predictable.
37
+ - Treat index shape and row access order as first-class design concerns.
38
+ - Make replication lag, schema rollout, and failover constraints explicit.
39
+
40
+ ### Constraints
41
+
42
+ - Avoid wide indexes with no evidence.
43
+ - Avoid large DDL changes without topology-aware rollout.
44
+ - Avoid assuming MySQL and Postgres tuning rules are interchangeable.
45
+ - Avoid hiding consistency tradeoffs behind ORM defaults.
46
+
47
+ ## Output Format
48
+
49
+ Provide implementation guidance, code examples, and configuration as appropriate to the task.
50
+
51
+ ## References
52
+
53
+ Load on demand. Do not preload all reference files.
54
+
55
+ | File | Load when |
56
+ | --- | --- |
57
+ | `references/mysql-checklist.md` | You need a deeper MySQL playbook for InnoDB behavior, Online DDL, replication-aware rollout, and index tradeoffs. |
58
+
59
+ ## Scripts
60
+
61
+ No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
62
+
63
+ ## Examples
64
+
65
+ - "Help me with mysql best practices in this project"
66
+ - "Review my mysql implementation for issues"
67
+ ````
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: mysql
3
+ description: "Use when the task is specifically MySQL or InnoDB: schema/index design, transaction behavior, replication-aware migrations, query tuning, and managed MySQL operational tradeoffs."
4
+ license: MIT
5
+ metadata:
6
+ author: cubis-foundry
7
+ version: "3.0"
8
+ compatibility: Claude Code, Codex, GitHub Copilot
9
+ ---
10
+
11
+ # MySQL
12
+
13
+ ## Purpose
14
+
15
+ Use when the task is specifically MySQL or InnoDB: schema/index design, transaction behavior, replication-aware migrations, query tuning, and managed MySQL operational tradeoffs.
16
+
17
+ ## When to Use
18
+
19
+ - The engine is MySQL, MariaDB-compatible MySQL, or a managed MySQL platform.
20
+ - The task depends on InnoDB behavior, replication, Online DDL, or MySQL-specific indexing/query behavior.
21
+ - You need MySQL-aware migration, lock, or read/write topology guidance.
22
+
23
+ ## Instructions
24
+
25
+ 1. Confirm MySQL variant, version, topology, and operational constraints.
26
+ 2. Identify the dominant query and write patterns before changing schema or indexes.
27
+ 3. Design for InnoDB realities: clustering, covering indexes, transaction scope, and lock impact.
28
+ 4. Plan migrations around Online DDL behavior, replicas, and rollback constraints.
29
+ 5. Re-check with query-plan evidence and operational safety notes.
30
+
31
+ ### Baseline standards
32
+
33
+ - Optimize for actual read/write mix, not synthetic benchmarks.
34
+ - Keep transaction boundaries tight and predictable.
35
+ - Treat index shape and row access order as first-class design concerns.
36
+ - Make replication lag, schema rollout, and failover constraints explicit.
37
+
38
+ ### Constraints
39
+
40
+ - Avoid wide indexes with no evidence.
41
+ - Avoid large DDL changes without topology-aware rollout.
42
+ - Avoid assuming MySQL and Postgres tuning rules are interchangeable.
43
+ - Avoid hiding consistency tradeoffs behind ORM defaults.
44
+
45
+ ## Output Format
46
+
47
+ Provide implementation guidance, code examples, and configuration as appropriate to the task.
48
+
49
+ ## References
50
+
51
+ Load on demand. Do not preload all reference files.
52
+
53
+ | File | Load when |
54
+ | --- | --- |
55
+ | `references/mysql-checklist.md` | You need a deeper MySQL playbook for InnoDB behavior, Online DDL, replication-aware rollout, and index tradeoffs. |
56
+
57
+ ## Scripts
58
+
59
+ No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
60
+
61
+ ## Examples
62
+
63
+ - "Help me with mysql best practices in this project"
64
+ - "Review my mysql implementation for issues"
@@ -0,0 +1,20 @@
1
+ # MySQL Checklist
2
+
3
+ Load this when MySQL behavior materially affects the answer.
4
+
5
+ ## InnoDB and indexes
6
+
7
+ - Model for clustered primary-key access and covering-index opportunities.
8
+ - Keep transaction scope tight and predictable.
9
+ - Validate index tradeoffs against actual read/write mix.
10
+
11
+ ## Rollout
12
+
13
+ - Check Online DDL behavior, replicas, and rollback constraints.
14
+ - Make replication lag and topology effects explicit.
15
+ - Stage heavy schema changes when operational risk is non-trivial.
16
+
17
+ ## Evidence
18
+
19
+ - Use query-plan evidence before recommending index or query changes.
20
+ - Do not borrow Postgres assumptions blindly.
@@ -0,0 +1,67 @@
1
+ ````markdown
2
+ ---
3
+ inclusion: manual
4
+ name: neki
5
+ description: "Use when the task is specifically Neki, PlanetScale’s sharded Postgres architecture: shard-key design, distributed Postgres tradeoffs, routing constraints, and operational decisions for large-scale Postgres workloads."
6
+ license: MIT
7
+ metadata:
8
+ author: cubis-foundry
9
+ version: "3.0"
10
+ compatibility: Claude Code, Codex, GitHub Copilot
11
+ ---
12
+
13
+ # Neki
14
+
15
+ ## Purpose
16
+
17
+ Use when the task is specifically Neki, PlanetScale’s sharded Postgres architecture: shard-key design, distributed Postgres tradeoffs, routing constraints, and operational decisions for large-scale Postgres workloads.
18
+
19
+ ## When to Use
20
+
21
+ - The task is specifically about Neki or PlanetScale’s sharded Postgres posture.
22
+ - The problem depends on shard keys, distributed Postgres behavior, routing constraints, or operational scaling tradeoffs.
23
+ - You need guidance that differs from plain single-cluster Postgres assumptions.
24
+
25
+ ## Instructions
26
+
27
+ 1. Confirm what is known about the Neki deployment and which product constraints are actually available today.
28
+ 2. Separate normal Postgres reasoning from sharding-specific concerns such as routing, fan-out, and ownership.
29
+ 3. Make shard-key and entity-boundary choices explicit before proposing query or schema changes.
30
+ 4. Prefer conservative operational guidance when platform details are still evolving.
31
+ 5. Report assumptions, unknowns, and fallback plans clearly.
32
+
33
+ ### Baseline standards
34
+
35
+ - Treat Neki as sharded Postgres, not just “Postgres but bigger.”
36
+ - Keep assumptions explicit because the platform is still evolving.
37
+ - Design around ownership, routing, and predictable access paths.
38
+ - Fall back to standard Postgres guidance whenever a Neki-specific claim is not well supported.
39
+
40
+ ### Constraints
41
+
42
+ - Avoid assuming all Postgres features behave identically in a sharded environment.
43
+ - Avoid recommending cross-shard patterns without evidence.
44
+ - Avoid hiding uncertainty when product details are incomplete.
45
+ - Avoid using Neki-specific advice when plain Postgres guidance would be safer.
46
+
47
+ ## Output Format
48
+
49
+ Provide implementation guidance, code examples, and configuration as appropriate to the task.
50
+
51
+ ## References
52
+
53
+ Load on demand. Do not preload all reference files.
54
+
55
+ | File | Load when |
56
+ | --- | --- |
57
+ | `references/neki-checklist.md` | You need a sharper Neki-specific checklist for sharded Postgres assumptions, routing, uncertainty handling, and fallback to plain Postgres guidance. |
58
+
59
+ ## Scripts
60
+
61
+ No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
62
+
63
+ ## Examples
64
+
65
+ - "Help me with neki best practices in this project"
66
+ - "Review my neki implementation for issues"
67
+ ````
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: neki
3
+ description: "Use when the task is specifically Neki, PlanetScale’s sharded Postgres architecture: shard-key design, distributed Postgres tradeoffs, routing constraints, and operational decisions for large-scale Postgres workloads."
4
+ license: MIT
5
+ metadata:
6
+ author: cubis-foundry
7
+ version: "3.0"
8
+ compatibility: Claude Code, Codex, GitHub Copilot
9
+ ---
10
+
11
+ # Neki
12
+
13
+ ## Purpose
14
+
15
+ Use when the task is specifically Neki, PlanetScale’s sharded Postgres architecture: shard-key design, distributed Postgres tradeoffs, routing constraints, and operational decisions for large-scale Postgres workloads.
16
+
17
+ ## When to Use
18
+
19
+ - The task is specifically about Neki or PlanetScale’s sharded Postgres posture.
20
+ - The problem depends on shard keys, distributed Postgres behavior, routing constraints, or operational scaling tradeoffs.
21
+ - You need guidance that differs from plain single-cluster Postgres assumptions.
22
+
23
+ ## Instructions
24
+
25
+ 1. Confirm what is known about the Neki deployment and which product constraints are actually available today.
26
+ 2. Separate normal Postgres reasoning from sharding-specific concerns such as routing, fan-out, and ownership.
27
+ 3. Make shard-key and entity-boundary choices explicit before proposing query or schema changes.
28
+ 4. Prefer conservative operational guidance when platform details are still evolving.
29
+ 5. Report assumptions, unknowns, and fallback plans clearly.
30
+
31
+ ### Baseline standards
32
+
33
+ - Treat Neki as sharded Postgres, not just “Postgres but bigger.”
34
+ - Keep assumptions explicit because the platform is still evolving.
35
+ - Design around ownership, routing, and predictable access paths.
36
+ - Fall back to standard Postgres guidance whenever a Neki-specific claim is not well supported.
37
+
38
+ ### Constraints
39
+
40
+ - Avoid assuming all Postgres features behave identically in a sharded environment.
41
+ - Avoid recommending cross-shard patterns without evidence.
42
+ - Avoid hiding uncertainty when product details are incomplete.
43
+ - Avoid using Neki-specific advice when plain Postgres guidance would be safer.
44
+
45
+ ## Output Format
46
+
47
+ Provide implementation guidance, code examples, and configuration as appropriate to the task.
48
+
49
+ ## References
50
+
51
+ Load on demand. Do not preload all reference files.
52
+
53
+ | File | Load when |
54
+ | --- | --- |
55
+ | `references/neki-checklist.md` | You need a sharper Neki-specific checklist for sharded Postgres assumptions, routing, uncertainty handling, and fallback to plain Postgres guidance. |
56
+
57
+ ## Scripts
58
+
59
+ No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
60
+
61
+ ## Examples
62
+
63
+ - "Help me with neki best practices in this project"
64
+ - "Review my neki implementation for issues"
@@ -0,0 +1,18 @@
1
+ # Neki Checklist
2
+
3
+ Load this when Neki-specific sharded Postgres assumptions are in play.
4
+
5
+ ## Assumption control
6
+
7
+ - Confirm which Neki behavior is actually known versus inferred.
8
+ - Fall back to plain Postgres guidance when a Neki-specific claim is weak.
9
+
10
+ ## Architecture
11
+
12
+ - Treat shard keys, routing, and ownership as first-class concerns.
13
+ - Avoid cross-shard assumptions unless supported by the platform behavior in scope.
14
+
15
+ ## Communication
16
+
17
+ - Report uncertainty explicitly.
18
+ - Keep fallback plans and safer plain-Postgres alternatives visible.
@@ -1,117 +1,71 @@
1
1
  ````markdown
2
2
  ---
3
3
  inclusion: manual
4
- name: "nestjs-expert"
5
- description: "Use when building NestJS applications requiring modular architecture, dependency injection, or TypeScript backend development. Invoke for modules, controllers, services, DTOs, guards, interceptors, Mongoose."
4
+ name: nestjs-expert
5
+ description: "Use when building NestJS services that need strong module boundaries, dependency injection, DTO validation, guards or interceptors, auth boundaries, transport-aware module design, and production-safe TypeScript backend structure."
6
+ license: MIT
7
+ metadata:
8
+ author: cubis-foundry
9
+ version: "3.0"
10
+ compatibility: Claude Code, Codex, GitHub Copilot
6
11
  ---
7
12
 
8
-
9
13
  # NestJS Expert
10
14
 
11
- ## Overview
12
-
13
- Senior NestJS specialist with deep expertise in enterprise-grade, scalable TypeScript backend applications. Focused on session-based authentication with Fastify and MongoDB/Mongoose integration.
14
-
15
- ## Role Definition
16
-
17
- You are a senior Node.js engineer with 10+ years of backend experience. You specialize in NestJS architecture, dependency injection, and enterprise patterns. You build modular, testable applications with proper separation of concerns.
18
-
19
- ## When to Use This Power
20
-
21
- - Building NestJS REST APIs with Fastify
22
- - Implementing modules, controllers, and services
23
- - Creating DTOs with validation
24
- - Setting up session-based authentication (NOT JWT)
25
- - Implementing guards, interceptors, and pipes
26
- - Database integration with Mongoose
27
-
28
- ## Core Workflow
29
-
30
- 1. **Analyze requirements** - Identify modules, endpoints, entities
31
- 2. **Design structure** - Plan module organization and dependencies
32
- 3. **Implement** - Create modules, services, controllers with DI
33
- 4. **Secure** - Add guards, validation, authentication
34
- 5. **Test** - Write unit tests and E2E tests
35
-
36
- ## Available Steering Files
37
-
38
- Load detailed guidance on-demand:
39
-
40
- | Topic | Reference | Load When |
41
- | ----------------- | ------------------------------------ | ------------------------------------------- |
42
- | Controllers | `references/controllers-routing.md` | Creating controllers, routing, Swagger docs |
43
- | Services | `references/services-di.md` | Services, dependency injection, providers |
44
- | DTOs | `references/dtos-validation.md` | Validation, class-validator, DTOs |
45
- | Authentication | `references/authentication.md` | Session auth, guards, roles, multi-tenant |
46
- | Testing | `references/testing-patterns.md` | Unit tests, E2E tests, mocking |
47
- | Express Migration | `references/migration-from-express.md` | Migrating from Express.js to NestJS |
48
-
49
- ## Authentication Approach
15
+ ## Purpose
50
16
 
51
- **OneUp uses session-based authentication, NOT JWT.**
17
+ Use when building NestJS services that need strong module boundaries, dependency injection, DTO validation, guards or interceptors, auth boundaries, transport-aware module design, and production-safe TypeScript backend structure.
52
18
 
53
- ```typescript
54
- // Session-based auth with Fastify
55
- @Post('login')
56
- async login(@Body() dto: LoginDto, @Req() request: FastifyRequest) {
57
- const user = await this.authService.validateUser(dto.username, dto.password);
19
+ ## When to Use
58
20
 
59
- // Store user info in session
60
- request.session.set('userId', user.userId);
61
- request.session.set('organizationId', user.organizationId);
62
- request.session.set('role', user.role);
21
+ - Building or refactoring NestJS APIs and service modules.
22
+ - Designing providers, controllers, DTOs, guards, interceptors, pipes, and auth boundaries.
23
+ - Enforcing modular TypeScript backend boundaries in a Nest app or monorepo.
24
+ - Reviewing Nest code for dependency direction, transport separation, validation, and operational safety.
63
25
 
64
- return { message: 'Login successful' };
65
- }
26
+ ## Instructions
66
27
 
67
- @Post('logout')
68
- async logout(@Req() request: FastifyRequest) {
69
- request.session.delete();
70
- return { message: 'Logout successful' };
71
- }
72
- ```
28
+ 1. Define module boundaries, provider ownership, and transport boundaries before adding endpoints.
29
+ 2. Keep controllers thin and push logic into services or domain layers.
30
+ 3. Validate input with DTOs and explicit boundary rules.
31
+ 4. Apply guards, interceptors, filters, and auth wiring intentionally rather than globally by habit.
32
+ 5. Verify testability, error behavior, dependency direction, and bootstrap posture before shipping.
73
33
 
74
- See `references/authentication.md` for complete session auth implementation.
34
+ ### Baseline standards
75
35
 
76
- ## Constraints
36
+ - Use modules to express bounded context, not folder cosmetics.
37
+ - Keep DI graphs simple and acyclic.
38
+ - Treat DTOs as boundary contracts, not domain models.
39
+ - Keep transport concerns, auth policy, and domain logic separate.
40
+ - Use guards/interceptors/pipes only where their responsibility is clear.
41
+ - Keep config and infrastructure concerns explicit and testable.
77
42
 
78
- ### MUST DO
43
+ ### Constraints
79
44
 
80
- - Use dependency injection for all services
81
- - Validate all inputs with class-validator
82
- - Use DTOs for request/response bodies
83
- - Implement proper error handling with HTTP exceptions
84
- - Document APIs with Swagger decorators
85
- - Write unit tests for services
86
- - Use environment variables for configuration
45
+ - Avoid fat controllers and hidden business logic in decorators.
46
+ - Avoid circular module/provider dependencies.
47
+ - Avoid dTO reuse that leaks transport concerns across layers.
48
+ - Avoid request-scoped providers by default when singleton or explicit factory wiring is enough.
49
+ - Avoid global framework magic when local explicit behavior is safer.
87
50
 
88
- ### MUST NOT DO
51
+ ## Output Format
89
52
 
90
- - Expose passwords or secrets in responses
91
- - Trust user input without validation
92
- - Use `any` type unless absolutely necessary
93
- - Create circular dependencies between modules
94
- - Hardcode configuration values
95
- - Skip error handling
53
+ Provide implementation guidance, code examples, and configuration as appropriate to the task.
96
54
 
97
- ## Output Templates
55
+ ## References
98
56
 
99
- When implementing NestJS features, provide:
57
+ Load on demand. Do not preload all reference files.
100
58
 
101
- 1. Module definition
102
- 2. Controller with Swagger decorators
103
- 3. Service with error handling
104
- 4. DTOs with validation
105
- 5. Tests for service methods
59
+ | File | Load when |
60
+ | --- | --- |
61
+ | `references/module-dto-guard-playbook.md` | You need a more explicit Nest playbook for modules, DTOs, guards, auth, transports, config, and testable dependency graphs. |
106
62
 
107
- ## Knowledge Reference
63
+ ## Scripts
108
64
 
109
- NestJS, TypeScript, Mongoose, Fastify, @fastify/secure-session, class-validator, class-transformer, Swagger/OpenAPI, Jest, Supertest, Guards, Interceptors, Pipes, Filters
65
+ No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
110
66
 
111
- ## Related Powers
67
+ ## Examples
112
68
 
113
- - **Fastify Patterns** - Fastify adapter and session configuration
114
- - **Mongoose NestJS** - MongoDB integration patterns
115
- - **Test Master** - Comprehensive testing strategies
116
- - **Security Reviewer** - Security auditing
69
+ - "Help me with nestjs expert best practices in this project"
70
+ - "Review my nestjs expert implementation for issues"
117
71
  ````
@@ -1,114 +1,68 @@
1
1
  ---
2
- name: "nestjs-expert"
3
- description: "Use when building NestJS applications requiring modular architecture, dependency injection, or TypeScript backend development. Invoke for modules, controllers, services, DTOs, guards, interceptors, Mongoose."
2
+ name: nestjs-expert
3
+ description: "Use when building NestJS services that need strong module boundaries, dependency injection, DTO validation, guards or interceptors, auth boundaries, transport-aware module design, and production-safe TypeScript backend structure."
4
+ license: MIT
5
+ metadata:
6
+ author: cubis-foundry
7
+ version: "3.0"
8
+ compatibility: Claude Code, Codex, GitHub Copilot
4
9
  ---
5
10
 
6
-
7
11
  # NestJS Expert
8
12
 
9
- ## Overview
10
-
11
- Senior NestJS specialist with deep expertise in enterprise-grade, scalable TypeScript backend applications. Focused on session-based authentication with Fastify and MongoDB/Mongoose integration.
12
-
13
- ## Role Definition
14
-
15
- You are a senior Node.js engineer with 10+ years of backend experience. You specialize in NestJS architecture, dependency injection, and enterprise patterns. You build modular, testable applications with proper separation of concerns.
16
-
17
- ## When to Use This Power
18
-
19
- - Building NestJS REST APIs with Fastify
20
- - Implementing modules, controllers, and services
21
- - Creating DTOs with validation
22
- - Setting up session-based authentication (NOT JWT)
23
- - Implementing guards, interceptors, and pipes
24
- - Database integration with Mongoose
25
-
26
- ## Core Workflow
27
-
28
- 1. **Analyze requirements** - Identify modules, endpoints, entities
29
- 2. **Design structure** - Plan module organization and dependencies
30
- 3. **Implement** - Create modules, services, controllers with DI
31
- 4. **Secure** - Add guards, validation, authentication
32
- 5. **Test** - Write unit tests and E2E tests
33
-
34
- ## Available Steering Files
35
-
36
- Load detailed guidance on-demand:
37
-
38
- | Topic | Reference | Load When |
39
- | ----------------- | ------------------------------------ | ------------------------------------------- |
40
- | Controllers | `references/controllers-routing.md` | Creating controllers, routing, Swagger docs |
41
- | Services | `references/services-di.md` | Services, dependency injection, providers |
42
- | DTOs | `references/dtos-validation.md` | Validation, class-validator, DTOs |
43
- | Authentication | `references/authentication.md` | Session auth, guards, roles, multi-tenant |
44
- | Testing | `references/testing-patterns.md` | Unit tests, E2E tests, mocking |
45
- | Express Migration | `references/migration-from-express.md` | Migrating from Express.js to NestJS |
46
-
47
- ## Authentication Approach
13
+ ## Purpose
48
14
 
49
- **OneUp uses session-based authentication, NOT JWT.**
15
+ Use when building NestJS services that need strong module boundaries, dependency injection, DTO validation, guards or interceptors, auth boundaries, transport-aware module design, and production-safe TypeScript backend structure.
50
16
 
51
- ```typescript
52
- // Session-based auth with Fastify
53
- @Post('login')
54
- async login(@Body() dto: LoginDto, @Req() request: FastifyRequest) {
55
- const user = await this.authService.validateUser(dto.username, dto.password);
17
+ ## When to Use
56
18
 
57
- // Store user info in session
58
- request.session.set('userId', user.userId);
59
- request.session.set('organizationId', user.organizationId);
60
- request.session.set('role', user.role);
19
+ - Building or refactoring NestJS APIs and service modules.
20
+ - Designing providers, controllers, DTOs, guards, interceptors, pipes, and auth boundaries.
21
+ - Enforcing modular TypeScript backend boundaries in a Nest app or monorepo.
22
+ - Reviewing Nest code for dependency direction, transport separation, validation, and operational safety.
61
23
 
62
- return { message: 'Login successful' };
63
- }
24
+ ## Instructions
64
25
 
65
- @Post('logout')
66
- async logout(@Req() request: FastifyRequest) {
67
- request.session.delete();
68
- return { message: 'Logout successful' };
69
- }
70
- ```
26
+ 1. Define module boundaries, provider ownership, and transport boundaries before adding endpoints.
27
+ 2. Keep controllers thin and push logic into services or domain layers.
28
+ 3. Validate input with DTOs and explicit boundary rules.
29
+ 4. Apply guards, interceptors, filters, and auth wiring intentionally rather than globally by habit.
30
+ 5. Verify testability, error behavior, dependency direction, and bootstrap posture before shipping.
71
31
 
72
- See `references/authentication.md` for complete session auth implementation.
32
+ ### Baseline standards
73
33
 
74
- ## Constraints
34
+ - Use modules to express bounded context, not folder cosmetics.
35
+ - Keep DI graphs simple and acyclic.
36
+ - Treat DTOs as boundary contracts, not domain models.
37
+ - Keep transport concerns, auth policy, and domain logic separate.
38
+ - Use guards/interceptors/pipes only where their responsibility is clear.
39
+ - Keep config and infrastructure concerns explicit and testable.
75
40
 
76
- ### MUST DO
41
+ ### Constraints
77
42
 
78
- - Use dependency injection for all services
79
- - Validate all inputs with class-validator
80
- - Use DTOs for request/response bodies
81
- - Implement proper error handling with HTTP exceptions
82
- - Document APIs with Swagger decorators
83
- - Write unit tests for services
84
- - Use environment variables for configuration
43
+ - Avoid fat controllers and hidden business logic in decorators.
44
+ - Avoid circular module/provider dependencies.
45
+ - Avoid dTO reuse that leaks transport concerns across layers.
46
+ - Avoid request-scoped providers by default when singleton or explicit factory wiring is enough.
47
+ - Avoid global framework magic when local explicit behavior is safer.
85
48
 
86
- ### MUST NOT DO
49
+ ## Output Format
87
50
 
88
- - Expose passwords or secrets in responses
89
- - Trust user input without validation
90
- - Use `any` type unless absolutely necessary
91
- - Create circular dependencies between modules
92
- - Hardcode configuration values
93
- - Skip error handling
51
+ Provide implementation guidance, code examples, and configuration as appropriate to the task.
94
52
 
95
- ## Output Templates
53
+ ## References
96
54
 
97
- When implementing NestJS features, provide:
55
+ Load on demand. Do not preload all reference files.
98
56
 
99
- 1. Module definition
100
- 2. Controller with Swagger decorators
101
- 3. Service with error handling
102
- 4. DTOs with validation
103
- 5. Tests for service methods
57
+ | File | Load when |
58
+ | --- | --- |
59
+ | `references/module-dto-guard-playbook.md` | You need a more explicit Nest playbook for modules, DTOs, guards, auth, transports, config, and testable dependency graphs. |
104
60
 
105
- ## Knowledge Reference
61
+ ## Scripts
106
62
 
107
- NestJS, TypeScript, Mongoose, Fastify, @fastify/secure-session, class-validator, class-transformer, Swagger/OpenAPI, Jest, Supertest, Guards, Interceptors, Pipes, Filters
63
+ No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
108
64
 
109
- ## Related Powers
65
+ ## Examples
110
66
 
111
- - **Fastify Patterns** - Fastify adapter and session configuration
112
- - **Mongoose NestJS** - MongoDB integration patterns
113
- - **Test Master** - Comprehensive testing strategies
114
- - **Security Reviewer** - Security auditing
67
+ - "Help me with nestjs expert best practices in this project"
68
+ - "Review my nestjs expert implementation for issues"