@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
@@ -1,82 +1,74 @@
1
1
  ---
2
2
  name: spec-miner
3
- description: Use when understanding legacy or undocumented systems, creating documentation for existing code, or extracting specifications from implementations. Invoke for legacy analysis, code archaeology, undocumented features.
3
+ description: "Use when reverse-engineering legacy or undocumented systems into structured specifications with code-grounded evidence and EARS-format requirements."
4
4
  license: MIT
5
- allowed-tools: Read, Grep, Glob, Bash
6
5
  metadata:
7
- author: https://github.com/Jeffallan
8
- version: "1.0.0"
9
- domain: workflow
10
- triggers: reverse engineer, legacy code, code analysis, undocumented, understand codebase, existing system
11
- role: specialist
12
- scope: review
13
- output-format: document
14
- related-skills: feature-forge, fullstack-guardian, architecture-designer
6
+ author: cubis-foundry
7
+ version: "1.0"
8
+ compatibility: Claude Code, Codex, GitHub Copilot
15
9
  ---
16
10
 
17
11
  # Spec Miner
18
12
 
19
- Reverse-engineering specialist who extracts specifications from existing codebases.
13
+ ## Purpose
20
14
 
21
- ## Role Definition
15
+ Use when reverse-engineering legacy or undocumented systems into structured specifications with code-grounded evidence and EARS-format requirements.
22
16
 
23
- You are a senior software archaeologist with 10+ years of experience. You operate with two perspectives: **Arch Hat** for system architecture and data flows, and **QA Hat** for observable behaviors and edge cases.
17
+ ## When to Use
24
18
 
25
- ## When to Use This Skill
19
+ - Understanding legacy or undocumented systems by extracting behavior from code.
20
+ - Creating documentation for existing codebases that lack specifications.
21
+ - Onboarding onto unfamiliar projects by mapping structure, data flows, and business logic.
22
+ - Planning enhancements or migrations that require understanding current behavior first.
23
+ - Extracting implicit requirements from implementations for formal specification.
26
24
 
27
- - Understanding legacy or undocumented systems
28
- - Creating documentation for existing code
29
- - Onboarding to a new codebase
30
- - Planning enhancements to existing features
31
- - Extracting requirements from implementation
25
+ ## Instructions
32
26
 
33
- ## Core Workflow
27
+ 1. Scope the analysis — identify target modules, boundaries, and what the spec should cover.
28
+ 2. Explore structure — map directory layout, entry points, and dependency graph using file discovery.
29
+ 3. Trace data flows — follow request paths, state transformations, and external integrations.
30
+ 4. Extract behaviors — document observed requirements in EARS format (Ubiquitous, Event-Driven, State-Driven, Conditional, Optional).
31
+ 5. Flag uncertainties — mark areas where behavior is ambiguous or requires human clarification.
32
+ 6. Produce specification — structured document with technology stack, architecture, modules, requirements, acceptance criteria, and open questions.
34
33
 
35
- 1. **Scope** - Identify analysis boundaries (full system or specific feature)
36
- 2. **Explore** - Map structure using Glob, Grep, Read tools
37
- 3. **Trace** - Follow data flows and request paths
38
- 4. **Document** - Write observed requirements in EARS format
39
- 5. **Flag** - Mark areas needing clarification
34
+ ### Baseline standards
40
35
 
41
- ## Reference Guide
36
+ - Ground every finding in code evidence with file paths and line references.
37
+ - Distinguish facts (observed in code) from inferences (reasonable assumptions).
38
+ - Operate with dual mindset: Architecture Hat (structure, data flows) and QA Hat (behaviors, edge cases).
39
+ - Document security, authentication, and error handling patterns explicitly.
40
+ - Include external integrations, configuration, and environment dependencies.
42
41
 
43
- Load detailed guidance based on context:
42
+ ### Constraints
44
43
 
45
- | Topic | Reference | Load When |
46
- |-------|-----------|-----------|
47
- | Analysis Process | `references/analysis-process.md` | Starting exploration, Glob/Grep patterns |
48
- | EARS Format | `references/ears-format.md` | Writing observed requirements |
49
- | Specification Template | `references/specification-template.md` | Creating final specification document |
50
- | Analysis Checklist | `references/analysis-checklist.md` | Ensuring thorough analysis |
44
+ - Never assume behavior without code evidence.
45
+ - Never skip security or error handling paths during analysis.
46
+ - Never generate a specification without thorough codebase exploration.
47
+ - Always include code locations for every documented behavior.
48
+ - Always mark uncertainties and questions separately from confirmed findings.
51
49
 
52
- ## Constraints
50
+ ## Output Format
53
51
 
54
- ### MUST DO
55
- - Ground all observations in actual code evidence
56
- - Use Read, Grep, Glob extensively to explore
57
- - Distinguish between observed facts and inferences
58
- - Document uncertainties in dedicated section
59
- - Include code locations for each observation
52
+ Save as `specs/{project_name}_reverse_spec.md`:
60
53
 
61
- ### MUST NOT DO
62
- - Make assumptions without code evidence
63
- - Skip security pattern analysis
64
- - Ignore error handling patterns
65
- - Generate spec without thorough exploration
54
+ 1. Technology stack and architecture overview
55
+ 2. Module and directory structure
56
+ 3. Observed requirements in EARS format
57
+ 4. Non-functional observations (performance, security, scalability)
58
+ 5. Inferred acceptance criteria
59
+ 6. Uncertainties and questions
60
+ 7. Recommendations for improvement
66
61
 
67
- ## Output Templates
62
+ ## References
68
63
 
69
- Save specification as: `specs/{project_name}_reverse_spec.md`
64
+ No additional reference files.
70
65
 
71
- Include:
72
- 1. Technology stack and architecture
73
- 2. Module/directory structure
74
- 3. Observed requirements (EARS format)
75
- 4. Non-functional observations
76
- 5. Inferred acceptance criteria
77
- 6. Uncertainties and questions
78
- 7. Recommendations
66
+ ## Scripts
67
+
68
+ No helper scripts are required for this skill right now.
79
69
 
80
- ## Knowledge Reference
70
+ ## Examples
81
71
 
82
- Code archaeology, static analysis, design patterns, architectural patterns, EARS syntax, API documentation inference
72
+ - "Reverse-engineer the authentication flow in this legacy codebase"
73
+ - "Create a specification document for this undocumented API service"
74
+ - "Map the data flows and business logic in this module for onboarding"
@@ -0,0 +1,67 @@
1
+ ````markdown
2
+ ---
3
+ inclusion: manual
4
+ name: sqlite
5
+ description: "Use when the task is specifically SQLite or libSQL/Turso-style SQLite: local-first schema design, WAL/concurrency tradeoffs, embedded deployments, and lightweight migration strategy."
6
+ license: MIT
7
+ metadata:
8
+ author: cubis-foundry
9
+ version: "3.0"
10
+ compatibility: Claude Code, Codex, GitHub Copilot
11
+ ---
12
+
13
+ # SQLite
14
+
15
+ ## Purpose
16
+
17
+ Use when the task is specifically SQLite or libSQL/Turso-style SQLite: local-first schema design, WAL/concurrency tradeoffs, embedded deployments, and lightweight migration strategy.
18
+
19
+ ## When to Use
20
+
21
+ - The engine is SQLite, libSQL, Turso, or another SQLite-derived deployment.
22
+ - The task depends on embedded/local-first behavior, WAL mode, file-level concurrency, or sync constraints.
23
+ - You need SQLite-aware schema, migration, or indexing guidance.
24
+
25
+ ## Instructions
26
+
27
+ 1. Confirm whether the workload is embedded, mobile, edge, or remotely replicated SQLite.
28
+ 2. Model data and indexes around the read paths while keeping writes and locking behavior visible.
29
+ 3. Decide WAL, foreign key, sync, and migration posture explicitly.
30
+ 4. Validate whether single-writer and file-level concurrency constraints remain acceptable.
31
+ 5. Report operational caveats such as replication, backup, and schema rollout behavior.
32
+
33
+ ### Baseline standards
34
+
35
+ - Prefer simple relational design and predictable transactions.
36
+ - Keep migrations small and reversible.
37
+ - Treat write concurrency and sync semantics as product constraints, not implementation details.
38
+ - Use SQLite because the workload fits it, not because setup is easy.
39
+
40
+ ### Constraints
41
+
42
+ - Avoid assuming server-database scaling behavior.
43
+ - Avoid ignoring WAL, checkpointing, or file-lock realities.
44
+ - Avoid large migration steps with no rollback or recovery plan.
45
+ - Avoid using SQLite past the point where product constraints clearly demand a different engine.
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/sqlite-checklist.md` | You need a deeper SQLite playbook for WAL, concurrency, local-first deployment, sync constraints, and lightweight migration posture. |
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 sqlite best practices in this project"
66
+ - "Review my sqlite implementation for issues"
67
+ ````
@@ -0,0 +1,64 @@
1
+ ---
2
+ name: sqlite
3
+ description: "Use when the task is specifically SQLite or libSQL/Turso-style SQLite: local-first schema design, WAL/concurrency tradeoffs, embedded deployments, and lightweight migration strategy."
4
+ license: MIT
5
+ metadata:
6
+ author: cubis-foundry
7
+ version: "3.0"
8
+ compatibility: Claude Code, Codex, GitHub Copilot
9
+ ---
10
+
11
+ # SQLite
12
+
13
+ ## Purpose
14
+
15
+ Use when the task is specifically SQLite or libSQL/Turso-style SQLite: local-first schema design, WAL/concurrency tradeoffs, embedded deployments, and lightweight migration strategy.
16
+
17
+ ## When to Use
18
+
19
+ - The engine is SQLite, libSQL, Turso, or another SQLite-derived deployment.
20
+ - The task depends on embedded/local-first behavior, WAL mode, file-level concurrency, or sync constraints.
21
+ - You need SQLite-aware schema, migration, or indexing guidance.
22
+
23
+ ## Instructions
24
+
25
+ 1. Confirm whether the workload is embedded, mobile, edge, or remotely replicated SQLite.
26
+ 2. Model data and indexes around the read paths while keeping writes and locking behavior visible.
27
+ 3. Decide WAL, foreign key, sync, and migration posture explicitly.
28
+ 4. Validate whether single-writer and file-level concurrency constraints remain acceptable.
29
+ 5. Report operational caveats such as replication, backup, and schema rollout behavior.
30
+
31
+ ### Baseline standards
32
+
33
+ - Prefer simple relational design and predictable transactions.
34
+ - Keep migrations small and reversible.
35
+ - Treat write concurrency and sync semantics as product constraints, not implementation details.
36
+ - Use SQLite because the workload fits it, not because setup is easy.
37
+
38
+ ### Constraints
39
+
40
+ - Avoid assuming server-database scaling behavior.
41
+ - Avoid ignoring WAL, checkpointing, or file-lock realities.
42
+ - Avoid large migration steps with no rollback or recovery plan.
43
+ - Avoid using SQLite past the point where product constraints clearly demand a different engine.
44
+
45
+ ## Output Format
46
+
47
+ Provide implementation guidance, code examples, and configuration as appropriate to the task.
48
+
49
+ ## References
50
+
51
+ Load on demand. Do not preload all reference files.
52
+
53
+ | File | Load when |
54
+ | --- | --- |
55
+ | `references/sqlite-checklist.md` | You need a deeper SQLite playbook for WAL, concurrency, local-first deployment, sync constraints, and lightweight migration posture. |
56
+
57
+ ## Scripts
58
+
59
+ No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
60
+
61
+ ## Examples
62
+
63
+ - "Help me with sqlite best practices in this project"
64
+ - "Review my sqlite implementation for issues"
@@ -0,0 +1,19 @@
1
+ # SQLite Checklist
2
+
3
+ Load this when SQLite or libSQL-specific behavior matters.
4
+
5
+ ## Workload fit
6
+
7
+ - Confirm the workload fits embedded or local-first constraints.
8
+ - Keep single-writer and file-level concurrency visible.
9
+
10
+ ## Operational choices
11
+
12
+ - Decide WAL posture explicitly.
13
+ - Check checkpoint, backup, and sync behavior when the product depends on them.
14
+ - Keep migrations small and recovery-friendly.
15
+
16
+ ## Design
17
+
18
+ - Model around actual read paths.
19
+ - Do not assume server-database scaling or operational patterns.
@@ -2,89 +2,148 @@
2
2
  ---
3
3
  inclusion: manual
4
4
  name: sre-engineer
5
- description: Use when defining SLIs/SLOs, managing error budgets, or building reliable systems at scale. Invoke for incident management, chaos engineering, toil reduction, capacity planning.
6
- license: MIT
5
+ description: Apply site reliability engineering practices including SLOs, error budgets, capacity planning, chaos engineering, and incident management for production systems.
6
+ license: Apache-2.0
7
7
  metadata:
8
- author: https://github.com/Jeffallan
9
- version: "1.0.0"
10
- domain: devops
11
- triggers: SRE, site reliability, SLO, SLI, error budget, incident management, chaos engineering, toil reduction, on-call, MTTR
12
- role: specialist
13
- scope: implementation
14
- output-format: code
15
- related-skills: devops-engineer, cloud-architect, kubernetes-specialist
8
+ author: cubis-foundry
9
+ version: "3.0"
10
+ compatibility: Claude Code, Codex, GitHub Copilot, Gemini CLI
16
11
  ---
17
12
 
18
13
  # SRE Engineer
19
14
 
20
- Senior Site Reliability Engineer with expertise in building highly reliable, scalable systems through SLI/SLO management, error budgets, capacity planning, and automation.
15
+ ## Purpose
21
16
 
22
- ## Role Definition
17
+ Apply Site Reliability Engineering practices to build and maintain reliable production systems. Define service level objectives, manage error budgets, plan capacity, and establish operational excellence.
23
18
 
24
- You are a senior SRE with 10+ years of experience building and maintaining production systems at scale. You specialize in defining meaningful SLOs, managing error budgets, reducing toil through automation, and building resilient systems. Your focus is on sustainable reliability that enables feature velocity.
19
+ ## When to Use
25
20
 
26
- ## When to Use This Skill
21
+ - Defining SLOs, SLIs, and SLAs for a new or existing service
22
+ - Managing error budgets and reliability trade-offs
23
+ - Capacity planning and scaling decisions
24
+ - Designing for graceful degradation and resilience
25
+ - Conducting chaos engineering experiments
26
+ - Building on-call procedures and runbooks
27
+ - Postmortem analysis and reliability improvements
27
28
 
28
- - Defining SLIs/SLOs and error budgets
29
- - Implementing reliability monitoring and alerting
30
- - Reducing operational toil through automation
31
- - Designing chaos engineering experiments
32
- - Managing incidents and postmortems
33
- - Building capacity planning models
34
- - Establishing on-call practices
29
+ ## Instructions
35
30
 
36
- ## Core Workflow
31
+ ### Step 1 — Define Service Level Indicators (SLIs)
37
32
 
38
- 1. **Assess reliability** - Review architecture, SLOs, incidents, toil levels
39
- 2. **Define SLOs** - Identify meaningful SLIs and set appropriate targets
40
- 3. **Implement monitoring** - Build golden signal dashboards and alerting
41
- 4. **Automate toil** - Identify repetitive tasks and build automation
42
- 5. **Test resilience** - Design and execute chaos experiments
33
+ SLIs are the metrics that matter to users:
43
34
 
44
- ## Reference Guide
35
+ | SLI Category | Measures | Example |
36
+ | ------------ | ------------------------------- | ---------------------------------------- |
37
+ | Availability | System is accepting requests | Successful requests / total requests |
38
+ | Latency | Response time for good requests | p99 < 300ms |
39
+ | Throughput | System handles expected load | Requests/sec at peak without degradation |
40
+ | Correctness | Responses are accurate | Successful data validations / total |
41
+ | Freshness | Data is up to date | Time since last successful sync < 1 min |
45
42
 
46
- Load detailed guidance based on context:
43
+ **Choose 3–5 SLIs per service** — too many dilutes focus.
47
44
 
48
- | Topic | Reference | Load When |
49
- |-------|-----------|-----------|
50
- | SLO/SLI | `references/slo-sli-management.md` | Defining SLOs, calculating error budgets |
51
- | Error Budgets | `references/error-budget-policy.md` | Managing budgets, burn rates, policies |
52
- | Monitoring | `references/monitoring-alerting.md` | Golden signals, alert design, dashboards |
53
- | Automation | `references/automation-toil.md` | Toil reduction, automation patterns |
54
- | Incidents | `references/incident-chaos.md` | Incident response, chaos engineering |
45
+ ### Step 2 Set Service Level Objectives (SLOs)
55
46
 
56
- ## Constraints
47
+ SLOs are targets for SLIs:
57
48
 
58
- ### MUST DO
59
- - Define quantitative SLOs (e.g., 99.9% availability)
60
- - Calculate error budgets from SLO targets
61
- - Monitor golden signals (latency, traffic, errors, saturation)
62
- - Write blameless postmortems for all incidents
63
- - Measure toil and track reduction progress
64
- - Automate repetitive operational tasks
65
- - Test failure scenarios with chaos engineering
66
- - Balance reliability with feature velocity
49
+ ```
50
+ Availability SLO: 99.9% of requests succeed (43.8 min downtime/month)
51
+ Latency SLO: 99% of requests complete in < 200ms
52
+ ```
67
53
 
68
- ### MUST NOT DO
69
- - Set SLOs without user impact justification
70
- - Alert on symptoms without actionable runbooks
71
- - Tolerate >50% toil without automation plan
72
- - Skip postmortems or assign blame
73
- - Implement manual processes for recurring tasks
74
- - Deploy without capacity planning
75
- - Ignore error budget exhaustion
76
- - Build systems that can't degrade gracefully
54
+ **SLO calibration**:
55
+ | Target | Monthly Downtime | Error Budget |
56
+ |--------|-----------------|--------------|
57
+ | 99.0% | 7.3 hours | 1% of requests can fail |
58
+ | 99.9% | 43.8 minutes | 0.1% of requests can fail |
59
+ | 99.95% | 21.9 minutes | 0.05% of requests can fail |
60
+ | 99.99% | 4.3 minutes | 0.01% of requests can fail |
77
61
 
78
- ## Output Templates
62
+ **Rules**:
79
63
 
80
- When implementing SRE practices, provide:
81
- 1. SLO definitions with SLI measurements and targets
82
- 2. Monitoring/alerting configuration (Prometheus, etc.)
83
- 3. Automation scripts (Python, Go, Terraform)
84
- 4. Runbooks with clear remediation steps
85
- 5. Brief explanation of reliability impact
64
+ - SLO must be achievable with current architecture
65
+ - SLO must be measurable with existing instrumentation
66
+ - SLO should be tighter than the SLA (contract with users)
67
+ - Start conservative, tighten as reliability improves
86
68
 
87
- ## Knowledge Reference
69
+ ### Step 3 — Manage Error Budgets
88
70
 
89
- SLO/SLI design, error budgets, golden signals (latency/traffic/errors/saturation), Prometheus/Grafana, chaos engineering (Chaos Monkey, Gremlin), toil reduction, incident management, blameless postmortems, capacity planning, on-call best practices
71
+ Error budget = 100% SLO target
72
+
73
+ **When budget is healthy** (> 50% remaining):
74
+
75
+ - Ship features aggressively
76
+ - Run chaos experiments
77
+ - Take on technical debt reduction
78
+
79
+ **When budget is burning** (< 25% remaining):
80
+
81
+ - Slow down feature releases
82
+ - Prioritize reliability work
83
+ - Increase review rigor
84
+
85
+ **When budget is exhausted** (0%):
86
+
87
+ - Freeze non-critical changes
88
+ - All engineering effort on reliability
89
+ - Root cause analysis on budget-burning incidents
90
+
91
+ ### Step 4 — Design for Resilience
92
+
93
+ **Failure modes and mitigations**:
94
+
95
+ | Failure | Mitigation |
96
+ | --------------------- | ------------------------------------------------------- |
97
+ | Single instance crash | Multiple replicas, health checks, auto-restart |
98
+ | Dependency timeout | Circuit breakers, timeouts, fallback responses |
99
+ | Traffic spike | Auto-scaling, rate limiting, load shedding |
100
+ | Data center outage | Multi-region deployment, DNS failover |
101
+ | Data corruption | Immutable audit logs, point-in-time recovery, checksums |
102
+ | Cascading failure | Bulkheads, retry budgets, backpressure |
103
+
104
+ **Graceful degradation**:
105
+
106
+ - Serve cached/stale data when the database is slow
107
+ - Disable non-critical features under load
108
+ - Return partial results instead of failing completely
109
+ - Queue work for later processing when at capacity
110
+
111
+ ### Step 5 — Operational Readiness
112
+
113
+ **Production readiness checklist**:
114
+
115
+ - [ ] SLOs defined and dashboarded
116
+ - [ ] Alerting on SLO burn rate (not just raw metrics)
117
+ - [ ] Runbooks for every alert
118
+ - [ ] On-call rotation established
119
+ - [ ] Rollback procedure documented and tested
120
+ - [ ] Disaster recovery plan tested within last quarter
121
+ - [ ] Dependency failures handled (circuit breakers, timeouts)
122
+ - [ ] Load testing performed at 2x expected peak
123
+
124
+ ## Output Format
125
+
126
+ ```
127
+ ## Reliability Assessment
128
+ [current state and risk level]
129
+
130
+ ## SLO Definitions
131
+ [SLI → SLO mappings with error budgets]
132
+
133
+ ## Recommendations
134
+ [priority-ordered reliability improvements]
135
+
136
+ ## Operational Procedures
137
+ [runbooks, on-call procedures, escalation paths]
138
+ ```
139
+
140
+ ## Examples
141
+
142
+ **User**: "Define SLOs for our payment processing API"
143
+
144
+ **Response approach**: High-reliability target (99.99% availability for financial operations). SLIs: availability, latency (p99 < 500ms), correctness (transaction accuracy). Error budget: 4.3 min/month. Alerting on 1-hour burn rate. Circuit breaker on downstream payment provider.
145
+
146
+ **User**: "Our service keeps going down during traffic spikes"
147
+
148
+ **Response approach**: Analyze the failure mode (OOM? connection pool exhaustion? cold starts?). Recommend auto-scaling with pre-warming, rate limiting per client, load shedding for non-critical endpoints. Define SLO for acceptable degradation under load.
90
149
  ````