@cubis/foundry 0.3.71 → 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 (270) 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/auth-architect/POWER.md +69 -0
  24. package/workflows/powers/auth-architect/SKILL.md +66 -0
  25. package/workflows/powers/auth-architect/references/session-token-policy-checklist.md +45 -0
  26. package/workflows/powers/behavioral-modes/POWER.md +100 -9
  27. package/workflows/powers/c-pro/POWER.md +105 -0
  28. package/workflows/powers/c-pro/SKILL.md +102 -0
  29. package/workflows/powers/c-pro/references/build-systems-and-toolchains.md +148 -0
  30. package/workflows/powers/c-pro/references/common-ub-and-portability.md +166 -0
  31. package/workflows/powers/c-pro/references/debugging-with-sanitizers.md +205 -0
  32. package/workflows/powers/c-pro/references/memory-safety-and-build-checklist.md +60 -0
  33. package/workflows/powers/c-pro/references/posix-and-platform-apis.md +244 -0
  34. package/workflows/powers/changelog-generator/POWER.md +127 -63
  35. package/workflows/powers/changelog-generator/SKILL.md +126 -63
  36. package/workflows/powers/ci-cd-pipelines/POWER.md +156 -0
  37. package/workflows/powers/ci-cd-pipelines/SKILL.md +153 -0
  38. package/workflows/powers/ci-cd-pipelines/references/github-actions-patterns.md +160 -0
  39. package/workflows/powers/ci-cd-pipelines/references/pipeline-security-checklist.md +57 -0
  40. package/workflows/powers/cli-developer/POWER.md +152 -95
  41. package/workflows/powers/cli-developer/SKILL.md +152 -95
  42. package/workflows/powers/cpp-pro/POWER.md +111 -0
  43. package/workflows/powers/cpp-pro/SKILL.md +108 -0
  44. package/workflows/powers/cpp-pro/references/concurrency-primitives.md +266 -0
  45. package/workflows/powers/cpp-pro/references/move-semantics-and-value-types.md +149 -0
  46. package/workflows/powers/cpp-pro/references/performance-and-profiling.md +191 -0
  47. package/workflows/powers/cpp-pro/references/raii-and-modern-cpp-checklist.md +87 -0
  48. package/workflows/powers/cpp-pro/references/template-and-concepts-patterns.md +205 -0
  49. package/workflows/powers/csharp-pro/POWER.md +47 -22
  50. package/workflows/powers/csharp-pro/SKILL.md +47 -22
  51. package/workflows/powers/dart-pro/POWER.md +68 -0
  52. package/workflows/powers/dart-pro/SKILL.md +65 -0
  53. package/workflows/powers/dart-pro/references/isolate-and-concurrency.md +180 -0
  54. package/workflows/powers/dart-pro/references/null-safety-and-async-patterns.md +133 -0
  55. package/workflows/powers/dart-pro/references/package-structure-and-linting.md +193 -0
  56. package/workflows/powers/dart-pro/references/sealed-records-patterns.md +173 -0
  57. package/workflows/powers/dart-pro/references/testing-and-mocking.md +235 -0
  58. package/workflows/powers/database-design/POWER.md +47 -33
  59. package/workflows/powers/database-design/SKILL.md +47 -33
  60. package/workflows/powers/database-optimizer/POWER.md +43 -64
  61. package/workflows/powers/database-optimizer/SKILL.md +43 -64
  62. package/workflows/powers/database-skills/POWER.md +59 -93
  63. package/workflows/powers/database-skills/SKILL.md +59 -93
  64. package/workflows/powers/debugging-strategies/POWER.md +69 -0
  65. package/workflows/powers/debugging-strategies/SKILL.md +66 -0
  66. package/workflows/powers/debugging-strategies/references/reproduce-isolate-verify-checklist.md +42 -0
  67. package/workflows/powers/deep-research/POWER.md +67 -0
  68. package/workflows/powers/deep-research/SKILL.md +64 -0
  69. package/workflows/powers/deep-research/references/multi-round-research-loop.md +80 -0
  70. package/workflows/powers/design-system-builder/POWER.md +130 -116
  71. package/workflows/powers/design-system-builder/SKILL.md +130 -116
  72. package/workflows/powers/devops-engineer/POWER.md +120 -57
  73. package/workflows/powers/devops-engineer/SKILL.md +120 -57
  74. package/workflows/powers/docker-kubernetes/POWER.md +94 -0
  75. package/workflows/powers/docker-kubernetes/SKILL.md +91 -0
  76. package/workflows/powers/docker-kubernetes/references/dockerfile-optimization-checklist.md +35 -0
  77. package/workflows/powers/docker-kubernetes/references/kubernetes-deployment-patterns.md +59 -0
  78. package/workflows/powers/documentation-templates/POWER.md +158 -127
  79. package/workflows/powers/documentation-templates/SKILL.md +158 -127
  80. package/workflows/powers/drizzle-expert/POWER.md +66 -0
  81. package/workflows/powers/drizzle-expert/SKILL.md +63 -0
  82. package/workflows/powers/drizzle-expert/references/runtime-pairing-matrix.md +16 -0
  83. package/workflows/powers/drizzle-expert/references/schema-and-migration-playbook.md +18 -0
  84. package/workflows/powers/error-ux-observability/POWER.md +144 -131
  85. package/workflows/powers/error-ux-observability/SKILL.md +143 -131
  86. package/workflows/powers/fastapi-expert/POWER.md +46 -60
  87. package/workflows/powers/fastapi-expert/SKILL.md +46 -60
  88. package/workflows/powers/firebase/POWER.md +65 -0
  89. package/workflows/powers/firebase/SKILL.md +62 -0
  90. package/workflows/powers/firebase/references/platform-routing.md +16 -0
  91. package/workflows/powers/firebase/references/rules-and-indexes-checklist.md +11 -0
  92. package/workflows/powers/flutter-design-system/POWER.md +63 -0
  93. package/workflows/powers/flutter-design-system/SKILL.md +60 -0
  94. package/workflows/powers/flutter-design-system/references/shared-widgets.md +29 -0
  95. package/workflows/powers/flutter-design-system/references/tokens-and-theme.md +34 -0
  96. package/workflows/powers/flutter-drift/POWER.md +65 -0
  97. package/workflows/powers/flutter-drift/SKILL.md +62 -0
  98. package/workflows/powers/flutter-drift/references/migrations.md +22 -0
  99. package/workflows/powers/flutter-drift/references/query-patterns.md +26 -0
  100. package/workflows/powers/flutter-feature/POWER.md +65 -0
  101. package/workflows/powers/flutter-feature/SKILL.md +62 -0
  102. package/workflows/powers/flutter-feature/references/architecture-rules.md +85 -0
  103. package/workflows/powers/flutter-feature/references/composite-provider.md +58 -0
  104. package/workflows/powers/flutter-feature/references/outbox-pattern.md +87 -0
  105. package/workflows/powers/flutter-feature/references/testing-patterns.md +218 -0
  106. package/workflows/powers/flutter-go-router/POWER.md +64 -0
  107. package/workflows/powers/flutter-go-router/SKILL.md +61 -0
  108. package/workflows/powers/flutter-go-router/references/guards-and-deeplinks.md +20 -0
  109. package/workflows/powers/flutter-go-router/references/typed-routes.md +27 -0
  110. package/workflows/powers/flutter-offline-sync/POWER.md +62 -0
  111. package/workflows/powers/flutter-offline-sync/SKILL.md +59 -0
  112. package/workflows/powers/flutter-offline-sync/references/outbox-full.md +44 -0
  113. package/workflows/powers/flutter-repository/POWER.md +64 -0
  114. package/workflows/powers/flutter-repository/SKILL.md +61 -0
  115. package/workflows/powers/flutter-repository/references/drift-patterns.md +21 -0
  116. package/workflows/powers/flutter-repository/references/retrofit-patterns.md +20 -0
  117. package/workflows/powers/flutter-riverpod/POWER.md +70 -0
  118. package/workflows/powers/flutter-riverpod/SKILL.md +67 -0
  119. package/workflows/powers/flutter-riverpod/references/async-and-mutations.md +19 -0
  120. package/workflows/powers/flutter-riverpod/references/async-lifecycle.md +19 -0
  121. package/workflows/powers/flutter-riverpod/references/provider-selection.md +20 -0
  122. package/workflows/powers/flutter-riverpod/references/testing.md +21 -0
  123. package/workflows/powers/flutter-riverpod/references/version-matrix.md +24 -0
  124. package/workflows/powers/flutter-state-machine/POWER.md +62 -0
  125. package/workflows/powers/flutter-state-machine/SKILL.md +59 -0
  126. package/workflows/powers/flutter-state-machine/references/app-state-contract.md +23 -0
  127. package/workflows/powers/flutter-state-machine/references/ui-rendering.md +14 -0
  128. package/workflows/powers/flutter-testing/POWER.md +64 -0
  129. package/workflows/powers/flutter-testing/SKILL.md +61 -0
  130. package/workflows/powers/flutter-testing/references/offline-sync-tests.md +16 -0
  131. package/workflows/powers/flutter-testing/references/test-layers.md +33 -0
  132. package/workflows/powers/frontend-code-review/POWER.md +137 -0
  133. package/workflows/powers/frontend-code-review/SKILL.md +134 -0
  134. package/workflows/powers/frontend-code-review/references/common-antipatterns.md +86 -0
  135. package/workflows/powers/frontend-code-review/references/performance-budgets.md +56 -0
  136. package/workflows/powers/frontend-code-review/references/review-checklists.md +47 -0
  137. package/workflows/powers/frontend-design/POWER.md +163 -362
  138. package/workflows/powers/frontend-design/SKILL.md +163 -362
  139. package/workflows/powers/game-development/POWER.md +57 -140
  140. package/workflows/powers/game-development/SKILL.md +57 -140
  141. package/workflows/powers/geo-fundamentals/POWER.md +64 -126
  142. package/workflows/powers/geo-fundamentals/SKILL.md +64 -127
  143. package/workflows/powers/git-workflow/POWER.md +135 -0
  144. package/workflows/powers/git-workflow/SKILL.md +132 -0
  145. package/workflows/powers/git-workflow/references/pr-review-checklist.md +63 -0
  146. package/workflows/powers/golang-pro/POWER.md +46 -35
  147. package/workflows/powers/golang-pro/SKILL.md +46 -35
  148. package/workflows/powers/graphql-architect/POWER.md +44 -62
  149. package/workflows/powers/graphql-architect/SKILL.md +44 -62
  150. package/workflows/powers/i18n-localization/POWER.md +118 -103
  151. package/workflows/powers/i18n-localization/SKILL.md +118 -103
  152. package/workflows/powers/java-pro/POWER.md +47 -22
  153. package/workflows/powers/java-pro/SKILL.md +47 -22
  154. package/workflows/powers/javascript-pro/POWER.md +47 -34
  155. package/workflows/powers/javascript-pro/SKILL.md +47 -34
  156. package/workflows/powers/kotlin-pro/POWER.md +46 -23
  157. package/workflows/powers/kotlin-pro/SKILL.md +46 -23
  158. package/workflows/powers/legacy-modernizer/POWER.md +43 -60
  159. package/workflows/powers/legacy-modernizer/SKILL.md +43 -60
  160. package/workflows/powers/mcp-builder/POWER.md +65 -0
  161. package/workflows/powers/mcp-builder/SKILL.md +62 -0
  162. package/workflows/powers/mcp-builder/references/testing-and-evals.md +17 -0
  163. package/workflows/powers/mcp-builder/references/transport-and-tool-design.md +17 -0
  164. package/workflows/powers/microservices-architect/POWER.md +43 -70
  165. package/workflows/powers/microservices-architect/SKILL.md +43 -70
  166. package/workflows/powers/mobile-design/POWER.md +110 -345
  167. package/workflows/powers/mobile-design/SKILL.md +110 -345
  168. package/workflows/powers/mongodb/POWER.md +67 -0
  169. package/workflows/powers/mongodb/SKILL.md +64 -0
  170. package/workflows/powers/mongodb/references/mongodb-checklist.md +20 -0
  171. package/workflows/powers/mysql/POWER.md +67 -0
  172. package/workflows/powers/mysql/SKILL.md +64 -0
  173. package/workflows/powers/mysql/references/mysql-checklist.md +20 -0
  174. package/workflows/powers/neki/POWER.md +67 -0
  175. package/workflows/powers/neki/SKILL.md +64 -0
  176. package/workflows/powers/neki/references/neki-checklist.md +18 -0
  177. package/workflows/powers/nestjs-expert/POWER.md +45 -91
  178. package/workflows/powers/nestjs-expert/SKILL.md +45 -91
  179. package/workflows/powers/nextjs-developer/POWER.md +51 -44
  180. package/workflows/powers/nextjs-developer/SKILL.md +51 -44
  181. package/workflows/powers/nodejs-best-practices/POWER.md +48 -29
  182. package/workflows/powers/nodejs-best-practices/SKILL.md +48 -29
  183. package/workflows/powers/observability/POWER.md +109 -0
  184. package/workflows/powers/observability/SKILL.md +106 -0
  185. package/workflows/powers/observability/references/alerting-and-slo-checklist.md +87 -0
  186. package/workflows/powers/observability/references/opentelemetry-setup-guide.md +121 -0
  187. package/workflows/powers/openai-docs/POWER.md +61 -0
  188. package/workflows/powers/openai-docs/SKILL.md +58 -0
  189. package/workflows/powers/openai-docs/references/official-source-playbook.md +10 -0
  190. package/workflows/powers/performance-profiling/POWER.md +61 -114
  191. package/workflows/powers/performance-profiling/SKILL.md +61 -114
  192. package/workflows/powers/php-pro/POWER.md +116 -0
  193. package/workflows/powers/php-pro/SKILL.md +113 -0
  194. package/workflows/powers/php-pro/references/architecture-and-di.md +239 -0
  195. package/workflows/powers/php-pro/references/modern-php-features.md +189 -0
  196. package/workflows/powers/php-pro/references/performance-and-deployment.md +197 -0
  197. package/workflows/powers/php-pro/references/php84-strict-typing-checklist.md +161 -0
  198. package/workflows/powers/php-pro/references/testing-and-static-analysis.md +235 -0
  199. package/workflows/powers/playwright-e2e/POWER.md +85 -0
  200. package/workflows/powers/playwright-e2e/SKILL.md +82 -0
  201. package/workflows/powers/playwright-e2e/references/locator-trace-flake-checklist.md +80 -0
  202. package/workflows/powers/postgres/POWER.md +67 -0
  203. package/workflows/powers/postgres/SKILL.md +64 -0
  204. package/workflows/powers/postgres/references/postgres-checklist.md +20 -0
  205. package/workflows/powers/prompt-engineer/POWER.md +47 -30
  206. package/workflows/powers/prompt-engineer/SKILL.md +47 -30
  207. package/workflows/powers/python-pro/POWER.md +47 -36
  208. package/workflows/powers/python-pro/SKILL.md +47 -36
  209. package/workflows/powers/react-best-practices/POWER.md +56 -33
  210. package/workflows/powers/react-best-practices/SKILL.md +56 -33
  211. package/workflows/powers/react-expert/POWER.md +47 -37
  212. package/workflows/powers/react-expert/SKILL.md +47 -37
  213. package/workflows/powers/redis/POWER.md +67 -0
  214. package/workflows/powers/redis/SKILL.md +64 -0
  215. package/workflows/powers/redis/references/redis-checklist.md +19 -0
  216. package/workflows/powers/ruby-pro/POWER.md +118 -0
  217. package/workflows/powers/ruby-pro/SKILL.md +115 -0
  218. package/workflows/powers/ruby-pro/references/modern-ruby-features.md +189 -0
  219. package/workflows/powers/ruby-pro/references/object-design-patterns.md +220 -0
  220. package/workflows/powers/ruby-pro/references/performance-and-profiling.md +224 -0
  221. package/workflows/powers/ruby-pro/references/ruby-concurrency-and-testing.md +190 -0
  222. package/workflows/powers/ruby-pro/references/testing-and-rspec.md +236 -0
  223. package/workflows/powers/rust-pro/POWER.md +45 -31
  224. package/workflows/powers/rust-pro/SKILL.md +45 -31
  225. package/workflows/powers/security-engineer/POWER.md +129 -0
  226. package/workflows/powers/security-engineer/SKILL.md +126 -0
  227. package/workflows/powers/seo-fundamentals/POWER.md +59 -102
  228. package/workflows/powers/seo-fundamentals/SKILL.md +59 -102
  229. package/workflows/powers/serverless-patterns/POWER.md +171 -0
  230. package/workflows/powers/serverless-patterns/SKILL.md +168 -0
  231. package/workflows/powers/skill-creator/POWER.md +90 -0
  232. package/workflows/powers/skill-creator/SKILL.md +87 -0
  233. package/workflows/powers/skill-creator/references/platform-formats.md +181 -0
  234. package/workflows/powers/skill-creator/references/schemas.md +430 -0
  235. package/workflows/powers/spec-miner/POWER.md +49 -57
  236. package/workflows/powers/spec-miner/SKILL.md +49 -57
  237. package/workflows/powers/sqlite/POWER.md +67 -0
  238. package/workflows/powers/sqlite/SKILL.md +64 -0
  239. package/workflows/powers/sqlite/references/sqlite-checklist.md +19 -0
  240. package/workflows/powers/sre-engineer/POWER.md +123 -64
  241. package/workflows/powers/sre-engineer/SKILL.md +123 -64
  242. package/workflows/powers/static-analysis/POWER.md +121 -77
  243. package/workflows/powers/static-analysis/SKILL.md +121 -77
  244. package/workflows/powers/stripe-best-practices/POWER.md +140 -17
  245. package/workflows/powers/stripe-best-practices/SKILL.md +139 -17
  246. package/workflows/powers/supabase/POWER.md +67 -0
  247. package/workflows/powers/supabase/SKILL.md +64 -0
  248. package/workflows/powers/supabase/references/supabase-checklist.md +19 -0
  249. package/workflows/powers/swift-pro/POWER.md +118 -0
  250. package/workflows/powers/swift-pro/SKILL.md +115 -0
  251. package/workflows/powers/swift-pro/references/concurrency-patterns.md +165 -0
  252. package/workflows/powers/swift-pro/references/protocol-and-generics.md +172 -0
  253. package/workflows/powers/swift-pro/references/sendable-and-isolation.md +116 -0
  254. package/workflows/powers/swift-pro/references/swift-concurrency-and-protocols.md +260 -0
  255. package/workflows/powers/swift-pro/references/testing-and-packages.md +192 -0
  256. package/workflows/powers/tailwind-patterns/POWER.md +71 -240
  257. package/workflows/powers/tailwind-patterns/SKILL.md +71 -240
  258. package/workflows/powers/testing-patterns/POWER.md +155 -10
  259. package/workflows/powers/testing-patterns/SKILL.md +155 -10
  260. package/workflows/powers/typescript-pro/POWER.md +47 -38
  261. package/workflows/powers/typescript-pro/SKILL.md +47 -38
  262. package/workflows/powers/vitess/POWER.md +67 -0
  263. package/workflows/powers/vitess/SKILL.md +64 -0
  264. package/workflows/powers/vitess/references/vitess-checklist.md +19 -0
  265. package/workflows/powers/vulnerability-scanner/POWER.md +146 -10
  266. package/workflows/powers/vulnerability-scanner/SKILL.md +146 -10
  267. package/workflows/powers/web-perf/POWER.md +43 -170
  268. package/workflows/powers/web-perf/SKILL.md +43 -170
  269. package/workflows/powers/webapp-testing/POWER.md +43 -164
  270. package/workflows/powers/webapp-testing/SKILL.md +43 -164
@@ -2,82 +2,68 @@
2
2
  ---
3
3
  inclusion: manual
4
4
  name: api-patterns
5
- description: API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.
6
- allowed-tools: Read, Write, Edit, Glob, Grep
5
+ description: "Use when choosing between REST, GraphQL, and type-safe RPC patterns, or when standardizing response envelopes, versioning, pagination, auth shape, and API protection strategy."
6
+ license: MIT
7
+ metadata:
8
+ author: cubis-foundry
9
+ version: "3.0"
10
+ compatibility: Claude Code, Codex, GitHub Copilot
7
11
  ---
8
12
 
9
13
  # API Patterns
10
14
 
11
- > API design principles and decision-making for 2025.
12
- > **Learn to THINK, not copy fixed patterns.**
15
+ ## Purpose
13
16
 
14
- ## 🎯 Selective Reading Rule
17
+ Use when choosing between REST, GraphQL, and type-safe RPC patterns, or when standardizing response envelopes, versioning, pagination, auth shape, and API protection strategy.
15
18
 
16
- **Read ONLY files relevant to the request!** Check the content map, find what you need.
19
+ ## When to Use
17
20
 
18
- ---
21
+ - Choosing REST vs GraphQL vs type-safe RPC for a new surface.
22
+ - Standardizing response envelopes, pagination, filtering, and error format.
23
+ - Planning auth, rate limits, and evolution strategy for an API surface.
24
+ - Reviewing whether an API design matches client and organizational constraints.
19
25
 
20
- ## 📑 Content Map
21
-
22
- | File | Description | When to Read |
23
- |------|-------------|--------------|
24
- | `api-style.md` | REST vs GraphQL vs tRPC decision tree | Choosing API type |
25
- | `rest.md` | Resource naming, HTTP methods, status codes | Designing REST API |
26
- | `response.md` | Envelope pattern, error format, pagination | Response structure |
27
- | `graphql.md` | Schema design, when to use, security | Considering GraphQL |
28
- | `trpc.md` | TypeScript monorepo, type safety | TS fullstack projects |
29
- | `versioning.md` | URI/Header/Query versioning | API evolution planning |
30
- | `auth.md` | JWT, OAuth, Passkey, API Keys | Auth pattern selection |
31
- | `rate-limiting.md` | Token bucket, sliding window | API protection |
32
- | `documentation.md` | OpenAPI/Swagger best practices | Documentation |
33
- | `security-testing.md` | OWASP API Top 10, auth/authz testing | Security audits |
26
+ ## Instructions
34
27
 
35
- ---
28
+ 1. Clarify clients, latency needs, ownership model, and compatibility constraints.
29
+ 2. Choose transport shape based on product and team context, not habit.
30
+ 3. Standardize response and error patterns before implementation fans out.
31
+ 4. Define pagination, filtering, and auth strategy explicitly.
32
+ 5. Make versioning and operational protections part of the design, not an afterthought.
36
33
 
37
- ## 🔗 Related Skills
34
+ ### Baseline standards
38
35
 
39
- | Need | Skill |
40
- |------|-------|
41
- | API implementation | `@[skills/backend-development]` |
42
- | Data structure | `@[skills/database-design]` |
43
- | Security details | `@[skills/security-hardening]` |
36
+ - Use one consistent response and error vocabulary per API surface.
37
+ - Prefer explicit evolution strategy over “we will figure it out later.”
38
+ - Match the pattern to client needs and team capability.
39
+ - Treat rate limiting and abuse controls as part of API design.
40
+ - Keep auth semantics visible and documented.
44
41
 
45
- ---
42
+ ### Constraints
46
43
 
47
- ## Decision Checklist
44
+ - Avoid defaulting to REST, GraphQL, or RPC by trend alone.
45
+ - Avoid inconsistent envelopes across related endpoints.
46
+ - Avoid mixing public and internal conventions into one confused surface.
47
+ - Avoid delaying versioning and pagination decisions until after rollout.
48
48
 
49
- Before designing an API:
49
+ ## Output Format
50
50
 
51
- - [ ] **Asked user about API consumers?**
52
- - [ ] **Chosen API style for THIS context?** (REST/GraphQL/tRPC)
53
- - [ ] **Defined consistent response format?**
54
- - [ ] **Planned versioning strategy?**
55
- - [ ] **Considered authentication needs?**
56
- - [ ] **Planned rate limiting?**
57
- - [ ] **Documentation approach defined?**
51
+ Provide implementation guidance, code examples, and configuration as appropriate to the task.
58
52
 
59
- ---
53
+ ## References
60
54
 
61
- ## Anti-Patterns
55
+ Load on demand. Do not preload all reference files.
62
56
 
63
- **DON'T:**
64
- - Default to REST for everything
65
- - Use verbs in REST endpoints (/getUsers)
66
- - Return inconsistent response formats
67
- - Expose internal errors to clients
68
- - Skip rate limiting
57
+ | File | Load when |
58
+ | --- | --- |
59
+ | `references/pattern-selection-checklist.md` | You need a sharper decision aid for REST vs GraphQL vs RPC, response envelopes, auth shape, and versioning tradeoffs. |
69
60
 
70
- **DO:**
71
- - Choose API style based on context
72
- - Ask about client requirements
73
- - Document thoroughly
74
- - Use appropriate status codes
61
+ ## Scripts
75
62
 
76
- ---
63
+ No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
77
64
 
78
- ## Script
65
+ ## Examples
79
66
 
80
- | Script | Purpose | Command |
81
- |--------|---------|---------|
82
- | `scripts/api_validator.py` | API endpoint validation | `python scripts/api_validator.py <project_path>` |
67
+ - "Help me with api patterns best practices in this project"
68
+ - "Review my api patterns implementation for issues"
83
69
  ````
@@ -1,81 +1,66 @@
1
1
  ---
2
2
  name: api-patterns
3
- description: API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.
4
- allowed-tools: Read, Write, Edit, Glob, Grep
3
+ description: "Use when choosing between REST, GraphQL, and type-safe RPC patterns, or when standardizing response envelopes, versioning, pagination, auth shape, and API protection strategy."
4
+ license: MIT
5
+ metadata:
6
+ author: cubis-foundry
7
+ version: "3.0"
8
+ compatibility: Claude Code, Codex, GitHub Copilot
5
9
  ---
6
10
 
7
11
  # API Patterns
8
12
 
9
- > API design principles and decision-making for 2025.
10
- > **Learn to THINK, not copy fixed patterns.**
13
+ ## Purpose
11
14
 
12
- ## 🎯 Selective Reading Rule
15
+ Use when choosing between REST, GraphQL, and type-safe RPC patterns, or when standardizing response envelopes, versioning, pagination, auth shape, and API protection strategy.
13
16
 
14
- **Read ONLY files relevant to the request!** Check the content map, find what you need.
17
+ ## When to Use
15
18
 
16
- ---
17
-
18
- ## 📑 Content Map
19
-
20
- | File | Description | When to Read |
21
- |------|-------------|--------------|
22
- | `api-style.md` | REST vs GraphQL vs tRPC decision tree | Choosing API type |
23
- | `rest.md` | Resource naming, HTTP methods, status codes | Designing REST API |
24
- | `response.md` | Envelope pattern, error format, pagination | Response structure |
25
- | `graphql.md` | Schema design, when to use, security | Considering GraphQL |
26
- | `trpc.md` | TypeScript monorepo, type safety | TS fullstack projects |
27
- | `versioning.md` | URI/Header/Query versioning | API evolution planning |
28
- | `auth.md` | JWT, OAuth, Passkey, API Keys | Auth pattern selection |
29
- | `rate-limiting.md` | Token bucket, sliding window | API protection |
30
- | `documentation.md` | OpenAPI/Swagger best practices | Documentation |
31
- | `security-testing.md` | OWASP API Top 10, auth/authz testing | Security audits |
19
+ - Choosing REST vs GraphQL vs type-safe RPC for a new surface.
20
+ - Standardizing response envelopes, pagination, filtering, and error format.
21
+ - Planning auth, rate limits, and evolution strategy for an API surface.
22
+ - Reviewing whether an API design matches client and organizational constraints.
32
23
 
33
- ---
24
+ ## Instructions
34
25
 
35
- ## 🔗 Related Skills
26
+ 1. Clarify clients, latency needs, ownership model, and compatibility constraints.
27
+ 2. Choose transport shape based on product and team context, not habit.
28
+ 3. Standardize response and error patterns before implementation fans out.
29
+ 4. Define pagination, filtering, and auth strategy explicitly.
30
+ 5. Make versioning and operational protections part of the design, not an afterthought.
36
31
 
37
- | Need | Skill |
38
- |------|-------|
39
- | API implementation | `@[skills/backend-development]` |
40
- | Data structure | `@[skills/database-design]` |
41
- | Security details | `@[skills/security-hardening]` |
32
+ ### Baseline standards
42
33
 
43
- ---
34
+ - Use one consistent response and error vocabulary per API surface.
35
+ - Prefer explicit evolution strategy over “we will figure it out later.”
36
+ - Match the pattern to client needs and team capability.
37
+ - Treat rate limiting and abuse controls as part of API design.
38
+ - Keep auth semantics visible and documented.
44
39
 
45
- ## ✅ Decision Checklist
40
+ ### Constraints
46
41
 
47
- Before designing an API:
42
+ - Avoid defaulting to REST, GraphQL, or RPC by trend alone.
43
+ - Avoid inconsistent envelopes across related endpoints.
44
+ - Avoid mixing public and internal conventions into one confused surface.
45
+ - Avoid delaying versioning and pagination decisions until after rollout.
48
46
 
49
- - [ ] **Asked user about API consumers?**
50
- - [ ] **Chosen API style for THIS context?** (REST/GraphQL/tRPC)
51
- - [ ] **Defined consistent response format?**
52
- - [ ] **Planned versioning strategy?**
53
- - [ ] **Considered authentication needs?**
54
- - [ ] **Planned rate limiting?**
55
- - [ ] **Documentation approach defined?**
47
+ ## Output Format
56
48
 
57
- ---
49
+ Provide implementation guidance, code examples, and configuration as appropriate to the task.
58
50
 
59
- ## ❌ Anti-Patterns
51
+ ## References
60
52
 
61
- **DON'T:**
62
- - Default to REST for everything
63
- - Use verbs in REST endpoints (/getUsers)
64
- - Return inconsistent response formats
65
- - Expose internal errors to clients
66
- - Skip rate limiting
53
+ Load on demand. Do not preload all reference files.
67
54
 
68
- **DO:**
69
- - Choose API style based on context
70
- - Ask about client requirements
71
- - Document thoroughly
72
- - Use appropriate status codes
55
+ | File | Load when |
56
+ | --- | --- |
57
+ | `references/pattern-selection-checklist.md` | You need a sharper decision aid for REST vs GraphQL vs RPC, response envelopes, auth shape, and versioning tradeoffs. |
73
58
 
74
- ---
59
+ ## Scripts
75
60
 
76
- ## Script
61
+ No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
77
62
 
78
- | Script | Purpose | Command |
79
- |--------|---------|---------|
80
- | `scripts/api_validator.py` | API endpoint validation | `python scripts/api_validator.py <project_path>` |
63
+ ## Examples
81
64
 
65
+ - "Help me with api patterns best practices in this project"
66
+ - "Review my api patterns implementation for issues"
@@ -1,86 +1,69 @@
1
1
  ````markdown
2
2
  ---
3
3
  inclusion: manual
4
- name: "architecture-designer"
5
- description: "Use when designing new system architecture, reviewing existing designs, or making architectural decisions. Invoke for system design, architecture review, design patterns, ADRs, scalability planning."
4
+ name: architecture-designer
5
+ description: "Use when designing or reviewing system architecture, interface boundaries, tradeoffs, ADRs, scalability posture, and the smallest durable target shape for a product or platform."
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
  # Architecture Designer
10
14
 
11
- ## Overview
12
-
13
- Senior software architect specializing in system design, design patterns, and architectural decision-making.
14
-
15
- ## Role Definition
16
-
17
- You are a principal architect with 15+ years of experience designing scalable systems. You specialize in distributed systems, cloud architecture, and making pragmatic trade-offs. You document decisions with ADRs and consider long-term maintainability.
18
-
19
- ## When to Use This Skill
15
+ ## Purpose
20
16
 
21
- - Designing new system architecture
22
- - Choosing between architectural patterns
23
- - Reviewing existing architecture
24
- - Creating Architecture Decision Records (ADRs)
25
- - Planning for scalability
26
- - Evaluating technology choices
17
+ Use when designing or reviewing system architecture, interface boundaries, tradeoffs, ADRs, scalability posture, and the smallest durable target shape for a product or platform.
27
18
 
28
- ## Core Workflow
19
+ ## When to Use
29
20
 
30
- 1. **Understand requirements** - Functional, non-functional, constraints
31
- 2. **Identify patterns** - Match requirements to architectural patterns
32
- 3. **Design** - Create architecture with trade-offs documented
33
- 4. **Document** - Write ADRs for key decisions
34
- 5. **Review** - Validate with stakeholders
21
+ - Designing a new system or reshaping an existing one.
22
+ - Making boundary, ownership, integration, or deployment tradeoffs explicit.
23
+ - Writing or reviewing architectural decisions and ADR-style reasoning.
24
+ - Deciding how much architecture is actually justified for the product stage.
35
25
 
36
- ## Available Steering Files
26
+ ## Instructions
37
27
 
38
- Load detailed guidance on-demand:
28
+ 1. Clarify product goals, constraints, and failure tolerance.
29
+ 2. Identify the few architectural decisions that materially change risk or cost.
30
+ 3. Compare viable shapes and document tradeoffs, not just the favorite option.
31
+ 4. Choose the smallest architecture that safely supports the current target.
32
+ 5. Hand off explicit boundaries, risks, and follow-up validation points.
39
33
 
40
- | Topic | Reference | Load When |
41
- | --------------------- | ----------------------------------- | ------------------------------------- |
42
- | Architecture Patterns | `references/architecture-patterns.md` | Choosing monolith vs microservices |
43
- | ADR Template | `references/adr-template.md` | Documenting decisions |
44
- | System Design | `references/system-design.md` | Full system design template |
45
- | Database Selection | `references/database-selection.md` | Choosing database technology |
46
- | NFR Checklist | `references/nfr-checklist.md` | Gathering non-functional requirements |
34
+ ### Baseline standards
47
35
 
48
- ## Constraints
36
+ - Start from product outcomes, not architecture fashion.
37
+ - Make ownership and interfaces explicit.
38
+ - Consider security, observability, and operations as part of the design.
39
+ - Prefer reversible decisions when uncertainty is high.
40
+ - Keep ADR-style reasoning concrete and testable.
49
41
 
50
- ### MUST DO
42
+ ### Constraints
51
43
 
52
- - Document all significant decisions with ADRs
53
- - Consider non-functional requirements explicitly
54
- - Evaluate trade-offs, not just benefits
55
- - Plan for failure modes
56
- - Consider operational complexity
57
- - Review with stakeholders before finalizing
44
+ - Avoid over-engineering for hypothetical future scale.
45
+ - Avoid treating diagrams as a substitute for boundary decisions.
46
+ - Avoid choosing technology before identifying the real constraints.
47
+ - Avoid hiding unresolved risk behind vague architectural language.
58
48
 
59
- ### MUST NOT DO
49
+ ## Output Format
60
50
 
61
- - Over-engineer for hypothetical scale
62
- - Choose technology without evaluating alternatives
63
- - Ignore operational costs
64
- - Design without understanding requirements
65
- - Skip security considerations
51
+ Provide implementation guidance, code examples, and configuration as appropriate to the task.
66
52
 
67
- ## Output Templates
53
+ ## References
68
54
 
69
- When designing architecture, provide:
55
+ Load on demand. Do not preload all reference files.
70
56
 
71
- 1. Requirements summary (functional + non-functional)
72
- 2. High-level architecture diagram
73
- 3. Key decisions with trade-offs (ADR format)
74
- 4. Technology recommendations with rationale
75
- 5. Risks and mitigation strategies
57
+ | File | Load when |
58
+ | --- | --- |
59
+ | `references/system-tradeoff-checklist.md` | You need a sharper system-design checklist for boundaries, ADRs, integration shape, resilience, and rollout risk. |
76
60
 
77
- ## Knowledge Reference
61
+ ## Scripts
78
62
 
79
- Distributed systems, microservices, event-driven architecture, CQRS, DDD, CAP theorem, cloud platforms (AWS, GCP, Azure), containers, Kubernetes, message queues, caching, database design
63
+ No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
80
64
 
81
- ## Related Powers
65
+ ## Examples
82
66
 
83
- - **Fullstack Guardian** - Implementing designs
84
- - **DevOps Engineer** - Infrastructure implementation
85
- - **Secure Code Guardian** - Security architecture
67
+ - "Help me with architecture designer best practices in this project"
68
+ - "Review my architecture designer implementation for issues"
86
69
  ````
@@ -1,83 +1,66 @@
1
1
  ---
2
- name: "architecture-designer"
3
- description: "Use when designing new system architecture, reviewing existing designs, or making architectural decisions. Invoke for system design, architecture review, design patterns, ADRs, scalability planning."
2
+ name: architecture-designer
3
+ description: "Use when designing or reviewing system architecture, interface boundaries, tradeoffs, ADRs, scalability posture, and the smallest durable target shape for a product or platform."
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
  # Architecture Designer
8
12
 
9
- ## Overview
10
-
11
- Senior software architect specializing in system design, design patterns, and architectural decision-making.
12
-
13
- ## Role Definition
14
-
15
- You are a principal architect with 15+ years of experience designing scalable systems. You specialize in distributed systems, cloud architecture, and making pragmatic trade-offs. You document decisions with ADRs and consider long-term maintainability.
16
-
17
- ## When to Use This Skill
13
+ ## Purpose
18
14
 
19
- - Designing new system architecture
20
- - Choosing between architectural patterns
21
- - Reviewing existing architecture
22
- - Creating Architecture Decision Records (ADRs)
23
- - Planning for scalability
24
- - Evaluating technology choices
15
+ Use when designing or reviewing system architecture, interface boundaries, tradeoffs, ADRs, scalability posture, and the smallest durable target shape for a product or platform.
25
16
 
26
- ## Core Workflow
17
+ ## When to Use
27
18
 
28
- 1. **Understand requirements** - Functional, non-functional, constraints
29
- 2. **Identify patterns** - Match requirements to architectural patterns
30
- 3. **Design** - Create architecture with trade-offs documented
31
- 4. **Document** - Write ADRs for key decisions
32
- 5. **Review** - Validate with stakeholders
19
+ - Designing a new system or reshaping an existing one.
20
+ - Making boundary, ownership, integration, or deployment tradeoffs explicit.
21
+ - Writing or reviewing architectural decisions and ADR-style reasoning.
22
+ - Deciding how much architecture is actually justified for the product stage.
33
23
 
34
- ## Available Steering Files
24
+ ## Instructions
35
25
 
36
- Load detailed guidance on-demand:
26
+ 1. Clarify product goals, constraints, and failure tolerance.
27
+ 2. Identify the few architectural decisions that materially change risk or cost.
28
+ 3. Compare viable shapes and document tradeoffs, not just the favorite option.
29
+ 4. Choose the smallest architecture that safely supports the current target.
30
+ 5. Hand off explicit boundaries, risks, and follow-up validation points.
37
31
 
38
- | Topic | Reference | Load When |
39
- | --------------------- | ----------------------------------- | ------------------------------------- |
40
- | Architecture Patterns | `references/architecture-patterns.md` | Choosing monolith vs microservices |
41
- | ADR Template | `references/adr-template.md` | Documenting decisions |
42
- | System Design | `references/system-design.md` | Full system design template |
43
- | Database Selection | `references/database-selection.md` | Choosing database technology |
44
- | NFR Checklist | `references/nfr-checklist.md` | Gathering non-functional requirements |
32
+ ### Baseline standards
45
33
 
46
- ## Constraints
34
+ - Start from product outcomes, not architecture fashion.
35
+ - Make ownership and interfaces explicit.
36
+ - Consider security, observability, and operations as part of the design.
37
+ - Prefer reversible decisions when uncertainty is high.
38
+ - Keep ADR-style reasoning concrete and testable.
47
39
 
48
- ### MUST DO
40
+ ### Constraints
49
41
 
50
- - Document all significant decisions with ADRs
51
- - Consider non-functional requirements explicitly
52
- - Evaluate trade-offs, not just benefits
53
- - Plan for failure modes
54
- - Consider operational complexity
55
- - Review with stakeholders before finalizing
42
+ - Avoid over-engineering for hypothetical future scale.
43
+ - Avoid treating diagrams as a substitute for boundary decisions.
44
+ - Avoid choosing technology before identifying the real constraints.
45
+ - Avoid hiding unresolved risk behind vague architectural language.
56
46
 
57
- ### MUST NOT DO
47
+ ## Output Format
58
48
 
59
- - Over-engineer for hypothetical scale
60
- - Choose technology without evaluating alternatives
61
- - Ignore operational costs
62
- - Design without understanding requirements
63
- - Skip security considerations
49
+ Provide implementation guidance, code examples, and configuration as appropriate to the task.
64
50
 
65
- ## Output Templates
51
+ ## References
66
52
 
67
- When designing architecture, provide:
53
+ Load on demand. Do not preload all reference files.
68
54
 
69
- 1. Requirements summary (functional + non-functional)
70
- 2. High-level architecture diagram
71
- 3. Key decisions with trade-offs (ADR format)
72
- 4. Technology recommendations with rationale
73
- 5. Risks and mitigation strategies
55
+ | File | Load when |
56
+ | --- | --- |
57
+ | `references/system-tradeoff-checklist.md` | You need a sharper system-design checklist for boundaries, ADRs, integration shape, resilience, and rollout risk. |
74
58
 
75
- ## Knowledge Reference
59
+ ## Scripts
76
60
 
77
- Distributed systems, microservices, event-driven architecture, CQRS, DDD, CAP theorem, cloud platforms (AWS, GCP, Azure), containers, Kubernetes, message queues, caching, database design
61
+ No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
78
62
 
79
- ## Related Powers
63
+ ## Examples
80
64
 
81
- - **Fullstack Guardian** - Implementing designs
82
- - **DevOps Engineer** - Infrastructure implementation
83
- - **Secure Code Guardian** - Security architecture
65
+ - "Help me with architecture designer best practices in this project"
66
+ - "Review my architecture designer implementation for issues"
@@ -2,18 +2,28 @@
2
2
  ---
3
3
  inclusion: manual
4
4
  name: ask-questions-if-underspecified
5
- description: Clarify requirements before implementing. Use when serious doubts arise.
5
+ 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.
6
6
  ---
7
7
 
8
8
  # Ask Questions If Underspecified
9
9
 
10
10
  ## When to Use
11
11
 
12
- Use this skill when a request has multiple plausible interpretations or key details (objective, scope, constraints, environment, or safety) are unclear.
12
+ 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.
13
+
14
+ Three situations require clarification:
15
+
16
+ 1. **High branching** — Multiple plausible interpretations produce significantly different implementations
17
+ 2. **Substantial deliverable** — The task is large enough that wrong assumptions waste real time
18
+ 3. **Safety-critical** — The action is hard to reverse (data migrations, deployments, file deletions)
13
19
 
14
20
  ## When NOT to Use
15
21
 
16
- Do not use this skill when the request is already clear, or when a quick, low-risk discovery read can answer the missing details.
22
+ Do not use this skill when:
23
+
24
+ - The request is already clear and one interpretation is obviously correct
25
+ - A quick discovery read (config files, existing patterns, repo structure) can answer the missing details faster than asking
26
+ - The task is small enough that being slightly wrong is cheap and correctable
17
27
 
18
28
  ## Goal
19
29
 
@@ -24,6 +34,7 @@ Ask the minimum set of clarifying questions needed to avoid wrong work; do not s
24
34
  ### 1) Decide whether the request is underspecified
25
35
 
26
36
  Treat a request as underspecified if after exploring how to perform the work, some or all of the following are not clear:
37
+
27
38
  - Define the objective (what should change vs stay the same)
28
39
  - Define "done" (acceptance criteria, examples, edge cases)
29
40
  - Define scope (which files/components/users are in/out)
@@ -38,6 +49,7 @@ If multiple plausible interpretations exist, assume it is underspecified.
38
49
  Ask 1-5 questions in the first pass. Prefer questions that eliminate whole branches of work.
39
50
 
40
51
  Make questions easy to answer:
52
+
41
53
  - Optimize for scannability (short, numbered questions; avoid paragraphs)
42
54
  - Offer multiple-choice options when possible
43
55
  - 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)
@@ -49,10 +61,12 @@ Make questions easy to answer:
49
61
  ### 3) Pause before acting
50
62
 
51
63
  Until must-have answers arrive:
64
+
52
65
  - Do not run commands, edit files, or produce a detailed plan that depends on unknowns
53
66
  - 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)
54
67
 
55
68
  If the user explicitly asks you to proceed without answers:
69
+
56
70
  - State your assumptions as a short numbered list
57
71
  - Ask for confirmation; proceed only after they confirm or correct them
58
72
 
@@ -85,4 +99,38 @@ Reply with: defaults (or 1a 2a)
85
99
 
86
100
  - Don't ask questions you can answer with a quick, low-risk discovery read (e.g., configs, existing patterns, docs).
87
101
  - Don't ask open-ended questions if a tight multiple-choice or yes/no would eliminate ambiguity faster.
102
+ - Don't ask more than 5 questions at once — rank by impact and ask the top ones.
103
+ - Don't skip the fast-path — every clarification block needs `defaults` shortcut.
104
+ - Don't forget to restate interpretation before proceeding — confirms you heard correctly.
105
+ - Don't ask about reversible decisions — pick one, proceed, let them correct if wrong.
106
+
107
+ ## Three-Stage Pattern (for complex or substantial tasks)
108
+
109
+ For tasks where wrong assumptions would waste significant effort — documents, architecture decisions, multi-file features — use a three-stage approach:
110
+
111
+ ### Stage 1: Meta-context questions (3-5 questions)
112
+
113
+ Ask about the big picture before touching content:
114
+
115
+ - What _type_ of deliverable is this? (spec, code, doc, design, plan)
116
+ - Who's the audience/consumer?
117
+ - What does "done" look like?
118
+ - Existing template, format, or precedent to follow?
119
+ - Hard constraints (framework, performance, compatibility)?
120
+
121
+ ### Stage 2: Info dump + targeted follow-up
122
+
123
+ After Stage 1 answers: invite the user to brain-dump everything relevant.
124
+
125
+ > "Dump everything you know — background, prior decisions, constraints, opinions, blockers. Don't organize it. Just get it all out."
126
+
127
+ Then ask 5-10 targeted follow-up questions based on gaps. Users can answer in shorthand (`1: yes, 2: see above, 3: no`).
128
+
129
+ **Exit Stage 2 when:** You understand objective, constraints, and at least one clear definition of success.
130
+
131
+ ### Stage 3: Confirm interpretation, then proceed
132
+
133
+ Restate in 1-3 sentences before starting:
134
+
135
+ > "Here's what I understand: [objective]. [Key constraint]. [What done looks like]. Starting now — correct me if anything's off."
88
136
  ````