@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
@@ -1,17 +1,27 @@
1
1
  ---
2
2
  name: ask-questions-if-underspecified
3
- description: Clarify requirements before implementing. Use when serious doubts arise.
3
+ description: Clarify requirements before implementing. Use when serious doubts arise about objective, scope, constraints, environment, or safety — or when the task is substantial enough that being wrong wastes significant effort.
4
4
  ---
5
5
 
6
6
  # Ask Questions If Underspecified
7
7
 
8
8
  ## When to Use
9
9
 
10
- Use this skill when a request has multiple plausible interpretations or key details (objective, scope, constraints, environment, or safety) are unclear.
10
+ Use this skill when a request has multiple plausible interpretations or key details (objective, scope, constraints, environment, or safety) are unclear — **and** when the cost of implementing the wrong interpretation is significant.
11
+
12
+ Three situations require clarification:
13
+
14
+ 1. **High branching** — Multiple plausible interpretations produce significantly different implementations
15
+ 2. **Substantial deliverable** — The task is large enough that wrong assumptions waste real time
16
+ 3. **Safety-critical** — The action is hard to reverse (data migrations, deployments, file deletions)
11
17
 
12
18
  ## When NOT to Use
13
19
 
14
- Do not use this skill when the request is already clear, or when a quick, low-risk discovery read can answer the missing details.
20
+ Do not use this skill when:
21
+
22
+ - The request is already clear and one interpretation is obviously correct
23
+ - A quick discovery read (config files, existing patterns, repo structure) can answer the missing details faster than asking
24
+ - The task is small enough that being slightly wrong is cheap and correctable
15
25
 
16
26
  ## Goal
17
27
 
@@ -22,6 +32,7 @@ Ask the minimum set of clarifying questions needed to avoid wrong work; do not s
22
32
  ### 1) Decide whether the request is underspecified
23
33
 
24
34
  Treat a request as underspecified if after exploring how to perform the work, some or all of the following are not clear:
35
+
25
36
  - Define the objective (what should change vs stay the same)
26
37
  - Define "done" (acceptance criteria, examples, edge cases)
27
38
  - Define scope (which files/components/users are in/out)
@@ -36,6 +47,7 @@ If multiple plausible interpretations exist, assume it is underspecified.
36
47
  Ask 1-5 questions in the first pass. Prefer questions that eliminate whole branches of work.
37
48
 
38
49
  Make questions easy to answer:
50
+
39
51
  - Optimize for scannability (short, numbered questions; avoid paragraphs)
40
52
  - Offer multiple-choice options when possible
41
53
  - Suggest reasonable defaults when appropriate (mark them clearly as the default/recommended choice; bold the recommended choice in the list, or if you present options in a code block, put a bold "Recommended" line immediately above the block and also tag defaults inside the block)
@@ -47,10 +59,12 @@ Make questions easy to answer:
47
59
  ### 3) Pause before acting
48
60
 
49
61
  Until must-have answers arrive:
62
+
50
63
  - Do not run commands, edit files, or produce a detailed plan that depends on unknowns
51
64
  - Do perform a clearly labeled, low-risk discovery step only if it does not commit you to a direction (e.g., inspect repo structure, read relevant config files)
52
65
 
53
66
  If the user explicitly asks you to proceed without answers:
67
+
54
68
  - State your assumptions as a short numbered list
55
69
  - Ask for confirmation; proceed only after they confirm or correct them
56
70
 
@@ -83,3 +97,37 @@ Reply with: defaults (or 1a 2a)
83
97
 
84
98
  - Don't ask questions you can answer with a quick, low-risk discovery read (e.g., configs, existing patterns, docs).
85
99
  - Don't ask open-ended questions if a tight multiple-choice or yes/no would eliminate ambiguity faster.
100
+ - Don't ask more than 5 questions at once — rank by impact and ask the top ones.
101
+ - Don't skip the fast-path — every clarification block needs `defaults` shortcut.
102
+ - Don't forget to restate interpretation before proceeding — confirms you heard correctly.
103
+ - Don't ask about reversible decisions — pick one, proceed, let them correct if wrong.
104
+
105
+ ## Three-Stage Pattern (for complex or substantial tasks)
106
+
107
+ For tasks where wrong assumptions would waste significant effort — documents, architecture decisions, multi-file features — use a three-stage approach:
108
+
109
+ ### Stage 1: Meta-context questions (3-5 questions)
110
+
111
+ Ask about the big picture before touching content:
112
+
113
+ - What _type_ of deliverable is this? (spec, code, doc, design, plan)
114
+ - Who's the audience/consumer?
115
+ - What does "done" look like?
116
+ - Existing template, format, or precedent to follow?
117
+ - Hard constraints (framework, performance, compatibility)?
118
+
119
+ ### Stage 2: Info dump + targeted follow-up
120
+
121
+ After Stage 1 answers: invite the user to brain-dump everything relevant.
122
+
123
+ > "Dump everything you know — background, prior decisions, constraints, opinions, blockers. Don't organize it. Just get it all out."
124
+
125
+ Then ask 5-10 targeted follow-up questions based on gaps. Users can answer in shorthand (`1: yes, 2: see above, 3: no`).
126
+
127
+ **Exit Stage 2 when:** You understand objective, constraints, and at least one clear definition of success.
128
+
129
+ ### Stage 3: Confirm interpretation, then proceed
130
+
131
+ Restate in 1-3 sentences before starting:
132
+
133
+ > "Here's what I understand: [objective]. [Key constraint]. [What done looks like]. Starting now — correct me if anything's off."
@@ -0,0 +1,69 @@
1
+ ````markdown
2
+ ---
3
+ inclusion: manual
4
+ name: auth-architect
5
+ description: "Use when designing or reviewing authentication and authorization for backend systems, including sessions, tokens, OAuth or OIDC, RBAC or ABAC, passkeys, service-to-service auth, and policy enforcement boundaries."
6
+ license: MIT
7
+ metadata:
8
+ author: cubis-foundry
9
+ version: "3.0"
10
+ compatibility: Claude Code, Codex, GitHub Copilot, Gemini CLI
11
+ ---
12
+
13
+ # Auth Architect
14
+
15
+ ## Purpose
16
+
17
+ Use when designing or reviewing authentication and authorization for backend systems, including sessions, tokens, OAuth or OIDC, RBAC or ABAC, passkeys, service-to-service auth, and policy enforcement boundaries.
18
+
19
+ ## When to Use
20
+
21
+ - Designing or reviewing login, session, token, and policy architecture.
22
+ - Choosing between session-based auth, JWTs, OAuth or OIDC, passkeys, or service credentials.
23
+ - Defining RBAC, ABAC, tenant isolation, or field-level authorization boundaries.
24
+ - Hardening auth flows in REST, GraphQL, NestJS, FastAPI, Node, or managed-platform backends.
25
+
26
+ ## Instructions
27
+
28
+ 1. Clarify actors, trust boundaries, clients, and the assets each flow protects.
29
+ 2. Choose the credential and session model that fits the product and operational constraints.
30
+ 3. Separate authentication, authorization, and audit responsibilities instead of blending them together.
31
+ 4. Make token, session, policy, and recovery behavior explicit at service boundaries.
32
+ 5. Verify revocation, rotation, least privilege, and failure behavior before shipping.
33
+
34
+ ### Baseline standards
35
+
36
+ - Prefer server-owned sessions when revocation simplicity matters more than statelessness.
37
+ - Treat OAuth or OIDC as delegated identity plumbing, not a substitute for local authorization rules.
38
+ - Keep authorization policy close to the resource or resolver that owns the decision.
39
+ - Design service-to-service identity and secret rotation as first-class operational concerns.
40
+ - Make account recovery, MFA, and passkey fallback behavior explicit.
41
+
42
+ ### Constraints
43
+
44
+ - Avoid mixing authentication and authorization into one vague middleware concept.
45
+ - Avoid issuing long-lived bearer tokens with no rotation or revocation story.
46
+ - Avoid duplicating policy rules across clients, gateways, and services with no clear owner.
47
+ - Avoid treating passkeys, sessions, or JWTs as universal defaults independent of product constraints.
48
+
49
+ ## Output Format
50
+
51
+ Provide implementation guidance, code examples, and configuration as appropriate to the task.
52
+
53
+ ## References
54
+
55
+ Load on demand. Do not preload all reference files.
56
+
57
+ | File | Load when |
58
+ | ---------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
59
+ | `references/session-token-policy-checklist.md` | You need a deeper checklist for session vs token choice, OAuth or OIDC, passkeys, tenant isolation, service auth, and policy enforcement boundaries. |
60
+
61
+ ## Scripts
62
+
63
+ No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
64
+
65
+ ## Examples
66
+
67
+ - "Help me with auth architect best practices in this project"
68
+ - "Review my auth architect implementation for issues"
69
+ ````
@@ -0,0 +1,66 @@
1
+ ---
2
+ name: auth-architect
3
+ description: "Use when designing or reviewing authentication and authorization for backend systems, including sessions, tokens, OAuth or OIDC, RBAC or ABAC, passkeys, service-to-service auth, and policy enforcement boundaries."
4
+ license: MIT
5
+ metadata:
6
+ author: cubis-foundry
7
+ version: "3.0"
8
+ compatibility: Claude Code, Codex, GitHub Copilot, Gemini CLI
9
+ ---
10
+
11
+ # Auth Architect
12
+
13
+ ## Purpose
14
+
15
+ Use when designing or reviewing authentication and authorization for backend systems, including sessions, tokens, OAuth or OIDC, RBAC or ABAC, passkeys, service-to-service auth, and policy enforcement boundaries.
16
+
17
+ ## When to Use
18
+
19
+ - Designing or reviewing login, session, token, and policy architecture.
20
+ - Choosing between session-based auth, JWTs, OAuth or OIDC, passkeys, or service credentials.
21
+ - Defining RBAC, ABAC, tenant isolation, or field-level authorization boundaries.
22
+ - Hardening auth flows in REST, GraphQL, NestJS, FastAPI, Node, or managed-platform backends.
23
+
24
+ ## Instructions
25
+
26
+ 1. Clarify actors, trust boundaries, clients, and the assets each flow protects.
27
+ 2. Choose the credential and session model that fits the product and operational constraints.
28
+ 3. Separate authentication, authorization, and audit responsibilities instead of blending them together.
29
+ 4. Make token, session, policy, and recovery behavior explicit at service boundaries.
30
+ 5. Verify revocation, rotation, least privilege, and failure behavior before shipping.
31
+
32
+ ### Baseline standards
33
+
34
+ - Prefer server-owned sessions when revocation simplicity matters more than statelessness.
35
+ - Treat OAuth or OIDC as delegated identity plumbing, not a substitute for local authorization rules.
36
+ - Keep authorization policy close to the resource or resolver that owns the decision.
37
+ - Design service-to-service identity and secret rotation as first-class operational concerns.
38
+ - Make account recovery, MFA, and passkey fallback behavior explicit.
39
+
40
+ ### Constraints
41
+
42
+ - Avoid mixing authentication and authorization into one vague middleware concept.
43
+ - Avoid issuing long-lived bearer tokens with no rotation or revocation story.
44
+ - Avoid duplicating policy rules across clients, gateways, and services with no clear owner.
45
+ - Avoid treating passkeys, sessions, or JWTs as universal defaults independent of product constraints.
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/session-token-policy-checklist.md` | You need a deeper checklist for session vs token choice, OAuth or OIDC, passkeys, tenant isolation, service auth, and policy enforcement boundaries. |
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 auth architect best practices in this project"
66
+ - "Review my auth architect implementation for issues"
@@ -0,0 +1,45 @@
1
+ # Session, Token, And Policy Checklist
2
+
3
+ Load this when auth work needs more depth than the root skill.
4
+
5
+ ## Boundary and threat framing
6
+
7
+ - List actors, clients, trust boundaries, and the assets each flow protects.
8
+ - Decide where authentication ends and authorization begins.
9
+ - Make audit and incident-response requirements explicit for privileged flows.
10
+
11
+ ## Session vs token choice
12
+
13
+ - Prefer server-owned sessions when revocation, rotation simplicity, or browser ergonomics matter most.
14
+ - Prefer short-lived access tokens plus refresh controls only when stateless distribution or delegated clients justify the complexity.
15
+ - Avoid bearer-token sprawl across browser, mobile, and service clients without separate threat assumptions.
16
+
17
+ ## OAuth, OIDC, and delegated identity
18
+
19
+ - Use OAuth for delegated access and OIDC for identity; do not collapse them conceptually.
20
+ - Scope tokens narrowly and document token audience, issuer, and rotation behavior.
21
+ - Keep provider callbacks, consent, and account-linking behavior explicit.
22
+
23
+ ## Authorization and policy
24
+
25
+ - Keep RBAC, ABAC, tenant boundaries, and field-level policy checks close to the owning service or resolver.
26
+ - Avoid duplicating policy logic in frontend code as the only enforcement layer.
27
+ - Make authorization failure semantics predictable and observable.
28
+
29
+ ## Passkeys, MFA, and recovery
30
+
31
+ - Treat passkeys as a primary sign-in option where product fit exists, not just a marketing add-on.
32
+ - Make MFA enrollment, recovery, device loss, and fallback channels explicit.
33
+ - Keep recovery flows at least as hardened as the primary sign-in flow.
34
+
35
+ ## Service-to-service auth
36
+
37
+ - Use dedicated service identities, narrow scopes, and explicit secret or key rotation.
38
+ - Keep human auth, machine auth, and webhook verification separate.
39
+ - Make internal trust assumptions visible instead of implied by network location.
40
+
41
+ ## Operational safety
42
+
43
+ - Log auth decisions without leaking secrets or raw tokens.
44
+ - Verify revocation, logout, secret rotation, and key rollover behavior.
45
+ - Recheck caching, GraphQL field policy, and background-job privilege boundaries before finishing.
@@ -9,6 +9,7 @@ allowed-tools: Read, Glob, Grep
9
9
  # Behavioral Modes - Adaptive AI Operating Modes
10
10
 
11
11
  ## Purpose
12
+
12
13
  This skill defines distinct behavioral modes that optimize AI performance for specific tasks. Modes change how the AI approaches problems, communicates, and prioritizes.
13
14
 
14
15
  ---
@@ -20,6 +21,7 @@ This skill defines distinct behavioral modes that optimize AI performance for sp
20
21
  **When to use:** Early project planning, feature ideation, architecture decisions
21
22
 
22
23
  **Behavior:**
24
+
23
25
  - Ask clarifying questions before assumptions
24
26
  - Offer multiple alternatives (at least 3)
25
27
  - Think divergently - explore unconventional solutions
@@ -27,6 +29,7 @@ This skill defines distinct behavioral modes that optimize AI performance for sp
27
29
  - Use visual diagrams (mermaid) to explain concepts
28
30
 
29
31
  **Output style:**
32
+
30
33
  ```
31
34
  "Let's explore this together. Here are some approaches:
32
35
 
@@ -48,6 +51,7 @@ What resonates with you? Or should we explore a different direction?"
48
51
  **When to use:** Writing code, building features, executing plans
49
52
 
50
53
  **Behavior:**
54
+
51
55
  - **CRITICAL: Use `clean-code` skill standards** - concise, direct, no verbose explanations
52
56
  - Fast execution - minimize questions
53
57
  - Use established patterns and best practices
@@ -59,6 +63,7 @@ What resonates with you? Or should we explore a different direction?"
59
63
  - **NO RUSHING** - Quality > Speed. Read ALL references before coding.
60
64
 
61
65
  **Output style:**
66
+
62
67
  ```
63
68
  [Code block]
64
69
 
@@ -66,6 +71,7 @@ What resonates with you? Or should we explore a different direction?"
66
71
  ```
67
72
 
68
73
  **NOT:**
74
+
69
75
  ```
70
76
  "Building [feature]...
71
77
 
@@ -85,6 +91,7 @@ Run `npm run dev` to test."
85
91
  **When to use:** Fixing bugs, troubleshooting errors, investigating issues
86
92
 
87
93
  **Behavior:**
94
+
88
95
  - Ask for error messages and reproduction steps
89
96
  - Think systematically - check logs, trace data flow
90
97
  - Form hypothesis → test → verify
@@ -92,6 +99,7 @@ Run `npm run dev` to test."
92
99
  - Prevent future occurrences
93
100
 
94
101
  **Output style:**
102
+
95
103
  ```
96
104
  "Investigating...
97
105
 
@@ -108,6 +116,7 @@ Run `npm run dev` to test."
108
116
  **When to use:** Code review, architecture review, security audit
109
117
 
110
118
  **Behavior:**
119
+
111
120
  - Be thorough but constructive
112
121
  - Categorize by severity (Critical/High/Medium/Low)
113
122
  - Explain the "why" behind suggestions
@@ -115,6 +124,7 @@ Run `npm run dev` to test."
115
124
  - Acknowledge what's done well
116
125
 
117
126
  **Output style:**
127
+
118
128
  ```
119
129
  ## Code Review: [file/feature]
120
130
 
@@ -135,6 +145,7 @@ Run `npm run dev` to test."
135
145
  **When to use:** Explaining concepts, documentation, onboarding
136
146
 
137
147
  **Behavior:**
148
+
138
149
  - Explain from fundamentals
139
150
  - Use analogies and examples
140
151
  - Progress from simple to complex
@@ -142,6 +153,7 @@ Run `npm run dev` to test."
142
153
  - Check understanding
143
154
 
144
155
  **Output style:**
156
+
145
157
  ```
146
158
  ## Understanding [Concept]
147
159
 
@@ -165,6 +177,7 @@ Run `npm run dev` to test."
165
177
  **When to use:** Production deployment, final polish, release preparation
166
178
 
167
179
  **Behavior:**
180
+
168
181
  - Focus on stability over features
169
182
  - Check for missing error handling
170
183
  - Verify environment configs
@@ -172,6 +185,7 @@ Run `npm run dev` to test."
172
185
  - Create deployment checklist
173
186
 
174
187
  **Output style:**
188
+
175
189
  ```
176
190
  ## Pre-Ship Checklist
177
191
 
@@ -197,35 +211,111 @@ Run `npm run dev` to test."
197
211
 
198
212
  The AI should automatically detect the appropriate mode based on:
199
213
 
200
- | Trigger | Mode |
201
- |---------|------|
202
- | "what if", "ideas", "options" | BRAINSTORM |
203
- | "build", "create", "add" | IMPLEMENT |
204
- | "not working", "error", "bug" | DEBUG |
205
- | "review", "check", "audit" | REVIEW |
206
- | "explain", "how does", "learn" | TEACH |
207
- | "deploy", "release", "production" | SHIP |
214
+ | Trigger | Mode |
215
+ | ---------------------------------------------- | ------------------- |
216
+ | "what if", "ideas", "options" | BRAINSTORM |
217
+ | "build", "create", "add" | IMPLEMENT |
218
+ | "not working", "error", "bug" | DEBUG |
219
+ | "review", "check", "audit" | REVIEW |
220
+ | "explain", "how does", "learn" | TEACH |
221
+ | "deploy", "release", "production" | SHIP |
222
+ | "iterate", "refine quality", "not good enough" | EVALUATOR-OPTIMIZER |
223
+
224
+ ---
225
+
226
+ ## Workflow Patterns
227
+
228
+ Three patterns govern how modes combine across multiple agents or steps. Use the simplest pattern that solves the problem — add complexity only when it measurably improves results.
229
+
230
+ ### 1. Sequential (default)
231
+
232
+ Use when tasks have dependencies — each step needs the previous step's output.
233
+
234
+ ```
235
+ [BRAINSTORM] → [IMPLEMENT] → [REVIEW] → [SHIP]
236
+ ```
237
+
238
+ Best for: multi-stage features, draft-review-polish cycles, data pipelines.
239
+
240
+ ### 2. Parallel
241
+
242
+ Use when tasks are independent and doing them one at a time is too slow.
243
+
244
+ ```
245
+ [security REVIEW + performance REVIEW + quality REVIEW] → synthesize
246
+ ```
247
+
248
+ Best for: code review across multiple dimensions, parallel analysis. Requires a clear aggregation strategy before starting.
249
+
250
+ ### 3. Evaluator-Optimizer (new)
251
+
252
+ Use when first-draft quality consistently falls short and quality is measurable.
253
+
254
+ ```
255
+ [IMPLEMENT] → [REVIEW with criteria] → pass? → done
256
+ ↓ fail
257
+ feedback → [IMPLEMENT again]
258
+ ```
259
+
260
+ **When to use:**
261
+
262
+ - Technical docs, customer communications, SQL queries against specific standards
263
+ - Any output where the gap between first attempt and required quality is significant
264
+ - When you have clear, checkable criteria (not just "make it better")
265
+
266
+ **When NOT to use:**
267
+
268
+ - First-attempt quality is already acceptable
269
+ - Criteria are too subjective for consistent AI evaluation
270
+ - Real-time use cases needing immediate responses
271
+ - Deterministic validators exist (linters, schema validators) — use those instead
272
+
273
+ **Implementation:**
274
+
275
+ ```
276
+ ## Generator
277
+ Task: [what to create]
278
+ Constraints: [specific, measurable requirements — these become eval criteria]
279
+
280
+ ## Evaluator
281
+ Criteria:
282
+ 1. [Criterion A] — Pass/Fail + specific failure note
283
+ 2. [Criterion B] — Pass/Fail + specific failure note
284
+
285
+ Output JSON: { "pass": bool, "failures": ["..."], "revision_note": "..." }
286
+
287
+ Max iterations: 3 ← always set a ceiling
288
+ Stop when: all criteria pass OR max iterations reached
289
+ ```
208
290
 
209
291
  ---
210
292
 
211
- ## Multi-Agent Collaboration Patterns (2025)
293
+ ## Multi-Agent Collaboration Patterns
212
294
 
213
295
  Modern architectures optimized for agent-to-agent collaboration:
214
296
 
215
297
  ### 1. 🔭 EXPLORE Mode
298
+
216
299
  **Role:** Discovery and Analysis (Explorer Agent)
217
300
  **Behavior:** Socratic questioning, deep-dive code reading, dependency mapping.
218
301
  **Output:** `discovery-report.json`, architectural visualization.
219
302
 
220
303
  ### 2. 🗺️ PLAN-EXECUTE-CRITIC (PEC)
304
+
221
305
  Cyclic mode transitions for high-complexity tasks:
306
+
222
307
  1. **Planner:** Decomposes the task into atomic steps (`task.md`).
223
308
  2. **Executor:** Performs the actual coding (`IMPLEMENT`).
224
309
  3. **Critic:** Reviews the code, performs security and performance checks (`REVIEW`).
225
310
 
226
311
  ### 3. 🧠 MENTAL MODEL SYNC
312
+
227
313
  Behavior for creating and loading "Mental Model" summaries to preserve context between sessions.
228
314
 
315
+ ### 4. 🔄 EVALUATOR-OPTIMIZER
316
+
317
+ Paired agents in an iterative quality loop: Generator produces, Evaluator scores against criteria, Generator refines. Set max iteration ceiling before starting.
318
+
229
319
  ---
230
320
 
231
321
  ## Combining Modes
@@ -241,5 +331,6 @@ Users can explicitly request a mode:
241
331
  /implement the user profile page
242
332
  /debug why login fails
243
333
  /review this pull request
334
+ /iterate [target quality bar] ← triggers evaluator-optimizer
244
335
  ```
245
336
  ````