@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.
- package/CHANGELOG.md +15 -0
- package/dist/cli/core.js +4 -18
- package/dist/cli/core.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/core.ts +4 -18
- package/workflows/powers/accessibility/POWER.md +83 -94
- package/workflows/powers/accessibility/SKILL.md +82 -94
- package/workflows/powers/agent-design/POWER.md +201 -0
- package/workflows/powers/agent-design/SKILL.md +198 -0
- package/workflows/powers/agent-design/references/clarification-patterns.md +153 -0
- package/workflows/powers/agent-design/references/skill-testing.md +164 -0
- package/workflows/powers/agent-design/references/workflow-patterns.md +226 -0
- package/workflows/powers/agentic-eval/POWER.md +62 -0
- package/workflows/powers/agentic-eval/SKILL.md +59 -0
- package/workflows/powers/agentic-eval/references/rubric-and-regression-checklist.md +11 -0
- package/workflows/powers/api-designer/POWER.md +43 -71
- package/workflows/powers/api-designer/SKILL.md +43 -71
- package/workflows/powers/api-patterns/POWER.md +42 -56
- package/workflows/powers/api-patterns/SKILL.md +42 -57
- package/workflows/powers/architecture-designer/POWER.md +43 -60
- package/workflows/powers/architecture-designer/SKILL.md +43 -60
- package/workflows/powers/ask-questions-if-underspecified/POWER.md +51 -3
- package/workflows/powers/auth-architect/POWER.md +69 -0
- package/workflows/powers/auth-architect/SKILL.md +66 -0
- package/workflows/powers/auth-architect/references/session-token-policy-checklist.md +45 -0
- package/workflows/powers/behavioral-modes/POWER.md +100 -9
- package/workflows/powers/c-pro/POWER.md +105 -0
- package/workflows/powers/c-pro/SKILL.md +102 -0
- package/workflows/powers/c-pro/references/build-systems-and-toolchains.md +148 -0
- package/workflows/powers/c-pro/references/common-ub-and-portability.md +166 -0
- package/workflows/powers/c-pro/references/debugging-with-sanitizers.md +205 -0
- package/workflows/powers/c-pro/references/memory-safety-and-build-checklist.md +60 -0
- package/workflows/powers/c-pro/references/posix-and-platform-apis.md +244 -0
- package/workflows/powers/changelog-generator/POWER.md +127 -63
- package/workflows/powers/changelog-generator/SKILL.md +126 -63
- package/workflows/powers/ci-cd-pipelines/POWER.md +156 -0
- package/workflows/powers/ci-cd-pipelines/SKILL.md +153 -0
- package/workflows/powers/ci-cd-pipelines/references/github-actions-patterns.md +160 -0
- package/workflows/powers/ci-cd-pipelines/references/pipeline-security-checklist.md +57 -0
- package/workflows/powers/cli-developer/POWER.md +152 -95
- package/workflows/powers/cli-developer/SKILL.md +152 -95
- package/workflows/powers/cpp-pro/POWER.md +111 -0
- package/workflows/powers/cpp-pro/SKILL.md +108 -0
- package/workflows/powers/cpp-pro/references/concurrency-primitives.md +266 -0
- package/workflows/powers/cpp-pro/references/move-semantics-and-value-types.md +149 -0
- package/workflows/powers/cpp-pro/references/performance-and-profiling.md +191 -0
- package/workflows/powers/cpp-pro/references/raii-and-modern-cpp-checklist.md +87 -0
- package/workflows/powers/cpp-pro/references/template-and-concepts-patterns.md +205 -0
- package/workflows/powers/csharp-pro/POWER.md +47 -22
- package/workflows/powers/csharp-pro/SKILL.md +47 -22
- package/workflows/powers/dart-pro/POWER.md +68 -0
- package/workflows/powers/dart-pro/SKILL.md +65 -0
- package/workflows/powers/dart-pro/references/isolate-and-concurrency.md +180 -0
- package/workflows/powers/dart-pro/references/null-safety-and-async-patterns.md +133 -0
- package/workflows/powers/dart-pro/references/package-structure-and-linting.md +193 -0
- package/workflows/powers/dart-pro/references/sealed-records-patterns.md +173 -0
- package/workflows/powers/dart-pro/references/testing-and-mocking.md +235 -0
- package/workflows/powers/database-design/POWER.md +47 -33
- package/workflows/powers/database-design/SKILL.md +47 -33
- package/workflows/powers/database-optimizer/POWER.md +43 -64
- package/workflows/powers/database-optimizer/SKILL.md +43 -64
- package/workflows/powers/database-skills/POWER.md +59 -93
- package/workflows/powers/database-skills/SKILL.md +59 -93
- package/workflows/powers/debugging-strategies/POWER.md +69 -0
- package/workflows/powers/debugging-strategies/SKILL.md +66 -0
- package/workflows/powers/debugging-strategies/references/reproduce-isolate-verify-checklist.md +42 -0
- package/workflows/powers/deep-research/POWER.md +67 -0
- package/workflows/powers/deep-research/SKILL.md +64 -0
- package/workflows/powers/deep-research/references/multi-round-research-loop.md +80 -0
- package/workflows/powers/design-system-builder/POWER.md +130 -116
- package/workflows/powers/design-system-builder/SKILL.md +130 -116
- package/workflows/powers/devops-engineer/POWER.md +120 -57
- package/workflows/powers/devops-engineer/SKILL.md +120 -57
- package/workflows/powers/docker-kubernetes/POWER.md +94 -0
- package/workflows/powers/docker-kubernetes/SKILL.md +91 -0
- package/workflows/powers/docker-kubernetes/references/dockerfile-optimization-checklist.md +35 -0
- package/workflows/powers/docker-kubernetes/references/kubernetes-deployment-patterns.md +59 -0
- package/workflows/powers/documentation-templates/POWER.md +158 -127
- package/workflows/powers/documentation-templates/SKILL.md +158 -127
- package/workflows/powers/drizzle-expert/POWER.md +66 -0
- package/workflows/powers/drizzle-expert/SKILL.md +63 -0
- package/workflows/powers/drizzle-expert/references/runtime-pairing-matrix.md +16 -0
- package/workflows/powers/drizzle-expert/references/schema-and-migration-playbook.md +18 -0
- package/workflows/powers/error-ux-observability/POWER.md +144 -131
- package/workflows/powers/error-ux-observability/SKILL.md +143 -131
- package/workflows/powers/fastapi-expert/POWER.md +46 -60
- package/workflows/powers/fastapi-expert/SKILL.md +46 -60
- package/workflows/powers/firebase/POWER.md +65 -0
- package/workflows/powers/firebase/SKILL.md +62 -0
- package/workflows/powers/firebase/references/platform-routing.md +16 -0
- package/workflows/powers/firebase/references/rules-and-indexes-checklist.md +11 -0
- package/workflows/powers/flutter-design-system/POWER.md +63 -0
- package/workflows/powers/flutter-design-system/SKILL.md +60 -0
- package/workflows/powers/flutter-design-system/references/shared-widgets.md +29 -0
- package/workflows/powers/flutter-design-system/references/tokens-and-theme.md +34 -0
- package/workflows/powers/flutter-drift/POWER.md +65 -0
- package/workflows/powers/flutter-drift/SKILL.md +62 -0
- package/workflows/powers/flutter-drift/references/migrations.md +22 -0
- package/workflows/powers/flutter-drift/references/query-patterns.md +26 -0
- package/workflows/powers/flutter-feature/POWER.md +65 -0
- package/workflows/powers/flutter-feature/SKILL.md +62 -0
- package/workflows/powers/flutter-feature/references/architecture-rules.md +85 -0
- package/workflows/powers/flutter-feature/references/composite-provider.md +58 -0
- package/workflows/powers/flutter-feature/references/outbox-pattern.md +87 -0
- package/workflows/powers/flutter-feature/references/testing-patterns.md +218 -0
- package/workflows/powers/flutter-go-router/POWER.md +64 -0
- package/workflows/powers/flutter-go-router/SKILL.md +61 -0
- package/workflows/powers/flutter-go-router/references/guards-and-deeplinks.md +20 -0
- package/workflows/powers/flutter-go-router/references/typed-routes.md +27 -0
- package/workflows/powers/flutter-offline-sync/POWER.md +62 -0
- package/workflows/powers/flutter-offline-sync/SKILL.md +59 -0
- package/workflows/powers/flutter-offline-sync/references/outbox-full.md +44 -0
- package/workflows/powers/flutter-repository/POWER.md +64 -0
- package/workflows/powers/flutter-repository/SKILL.md +61 -0
- package/workflows/powers/flutter-repository/references/drift-patterns.md +21 -0
- package/workflows/powers/flutter-repository/references/retrofit-patterns.md +20 -0
- package/workflows/powers/flutter-riverpod/POWER.md +70 -0
- package/workflows/powers/flutter-riverpod/SKILL.md +67 -0
- package/workflows/powers/flutter-riverpod/references/async-and-mutations.md +19 -0
- package/workflows/powers/flutter-riverpod/references/async-lifecycle.md +19 -0
- package/workflows/powers/flutter-riverpod/references/provider-selection.md +20 -0
- package/workflows/powers/flutter-riverpod/references/testing.md +21 -0
- package/workflows/powers/flutter-riverpod/references/version-matrix.md +24 -0
- package/workflows/powers/flutter-state-machine/POWER.md +62 -0
- package/workflows/powers/flutter-state-machine/SKILL.md +59 -0
- package/workflows/powers/flutter-state-machine/references/app-state-contract.md +23 -0
- package/workflows/powers/flutter-state-machine/references/ui-rendering.md +14 -0
- package/workflows/powers/flutter-testing/POWER.md +64 -0
- package/workflows/powers/flutter-testing/SKILL.md +61 -0
- package/workflows/powers/flutter-testing/references/offline-sync-tests.md +16 -0
- package/workflows/powers/flutter-testing/references/test-layers.md +33 -0
- package/workflows/powers/frontend-code-review/POWER.md +137 -0
- package/workflows/powers/frontend-code-review/SKILL.md +134 -0
- package/workflows/powers/frontend-code-review/references/common-antipatterns.md +86 -0
- package/workflows/powers/frontend-code-review/references/performance-budgets.md +56 -0
- package/workflows/powers/frontend-code-review/references/review-checklists.md +47 -0
- package/workflows/powers/frontend-design/POWER.md +163 -362
- package/workflows/powers/frontend-design/SKILL.md +163 -362
- package/workflows/powers/game-development/POWER.md +57 -140
- package/workflows/powers/game-development/SKILL.md +57 -140
- package/workflows/powers/geo-fundamentals/POWER.md +64 -126
- package/workflows/powers/geo-fundamentals/SKILL.md +64 -127
- package/workflows/powers/git-workflow/POWER.md +135 -0
- package/workflows/powers/git-workflow/SKILL.md +132 -0
- package/workflows/powers/git-workflow/references/pr-review-checklist.md +63 -0
- package/workflows/powers/golang-pro/POWER.md +46 -35
- package/workflows/powers/golang-pro/SKILL.md +46 -35
- package/workflows/powers/graphql-architect/POWER.md +44 -62
- package/workflows/powers/graphql-architect/SKILL.md +44 -62
- package/workflows/powers/i18n-localization/POWER.md +118 -103
- package/workflows/powers/i18n-localization/SKILL.md +118 -103
- package/workflows/powers/java-pro/POWER.md +47 -22
- package/workflows/powers/java-pro/SKILL.md +47 -22
- package/workflows/powers/javascript-pro/POWER.md +47 -34
- package/workflows/powers/javascript-pro/SKILL.md +47 -34
- package/workflows/powers/kotlin-pro/POWER.md +46 -23
- package/workflows/powers/kotlin-pro/SKILL.md +46 -23
- package/workflows/powers/legacy-modernizer/POWER.md +43 -60
- package/workflows/powers/legacy-modernizer/SKILL.md +43 -60
- package/workflows/powers/mcp-builder/POWER.md +65 -0
- package/workflows/powers/mcp-builder/SKILL.md +62 -0
- package/workflows/powers/mcp-builder/references/testing-and-evals.md +17 -0
- package/workflows/powers/mcp-builder/references/transport-and-tool-design.md +17 -0
- package/workflows/powers/microservices-architect/POWER.md +43 -70
- package/workflows/powers/microservices-architect/SKILL.md +43 -70
- package/workflows/powers/mobile-design/POWER.md +110 -345
- package/workflows/powers/mobile-design/SKILL.md +110 -345
- package/workflows/powers/mongodb/POWER.md +67 -0
- package/workflows/powers/mongodb/SKILL.md +64 -0
- package/workflows/powers/mongodb/references/mongodb-checklist.md +20 -0
- package/workflows/powers/mysql/POWER.md +67 -0
- package/workflows/powers/mysql/SKILL.md +64 -0
- package/workflows/powers/mysql/references/mysql-checklist.md +20 -0
- package/workflows/powers/neki/POWER.md +67 -0
- package/workflows/powers/neki/SKILL.md +64 -0
- package/workflows/powers/neki/references/neki-checklist.md +18 -0
- package/workflows/powers/nestjs-expert/POWER.md +45 -91
- package/workflows/powers/nestjs-expert/SKILL.md +45 -91
- package/workflows/powers/nextjs-developer/POWER.md +51 -44
- package/workflows/powers/nextjs-developer/SKILL.md +51 -44
- package/workflows/powers/nodejs-best-practices/POWER.md +48 -29
- package/workflows/powers/nodejs-best-practices/SKILL.md +48 -29
- package/workflows/powers/observability/POWER.md +109 -0
- package/workflows/powers/observability/SKILL.md +106 -0
- package/workflows/powers/observability/references/alerting-and-slo-checklist.md +87 -0
- package/workflows/powers/observability/references/opentelemetry-setup-guide.md +121 -0
- package/workflows/powers/openai-docs/POWER.md +61 -0
- package/workflows/powers/openai-docs/SKILL.md +58 -0
- package/workflows/powers/openai-docs/references/official-source-playbook.md +10 -0
- package/workflows/powers/performance-profiling/POWER.md +61 -114
- package/workflows/powers/performance-profiling/SKILL.md +61 -114
- package/workflows/powers/php-pro/POWER.md +116 -0
- package/workflows/powers/php-pro/SKILL.md +113 -0
- package/workflows/powers/php-pro/references/architecture-and-di.md +239 -0
- package/workflows/powers/php-pro/references/modern-php-features.md +189 -0
- package/workflows/powers/php-pro/references/performance-and-deployment.md +197 -0
- package/workflows/powers/php-pro/references/php84-strict-typing-checklist.md +161 -0
- package/workflows/powers/php-pro/references/testing-and-static-analysis.md +235 -0
- package/workflows/powers/playwright-e2e/POWER.md +85 -0
- package/workflows/powers/playwright-e2e/SKILL.md +82 -0
- package/workflows/powers/playwright-e2e/references/locator-trace-flake-checklist.md +80 -0
- package/workflows/powers/postgres/POWER.md +67 -0
- package/workflows/powers/postgres/SKILL.md +64 -0
- package/workflows/powers/postgres/references/postgres-checklist.md +20 -0
- package/workflows/powers/prompt-engineer/POWER.md +47 -30
- package/workflows/powers/prompt-engineer/SKILL.md +47 -30
- package/workflows/powers/python-pro/POWER.md +47 -36
- package/workflows/powers/python-pro/SKILL.md +47 -36
- package/workflows/powers/react-best-practices/POWER.md +56 -33
- package/workflows/powers/react-best-practices/SKILL.md +56 -33
- package/workflows/powers/react-expert/POWER.md +47 -37
- package/workflows/powers/react-expert/SKILL.md +47 -37
- package/workflows/powers/redis/POWER.md +67 -0
- package/workflows/powers/redis/SKILL.md +64 -0
- package/workflows/powers/redis/references/redis-checklist.md +19 -0
- package/workflows/powers/ruby-pro/POWER.md +118 -0
- package/workflows/powers/ruby-pro/SKILL.md +115 -0
- package/workflows/powers/ruby-pro/references/modern-ruby-features.md +189 -0
- package/workflows/powers/ruby-pro/references/object-design-patterns.md +220 -0
- package/workflows/powers/ruby-pro/references/performance-and-profiling.md +224 -0
- package/workflows/powers/ruby-pro/references/ruby-concurrency-and-testing.md +190 -0
- package/workflows/powers/ruby-pro/references/testing-and-rspec.md +236 -0
- package/workflows/powers/rust-pro/POWER.md +45 -31
- package/workflows/powers/rust-pro/SKILL.md +45 -31
- package/workflows/powers/security-engineer/POWER.md +129 -0
- package/workflows/powers/security-engineer/SKILL.md +126 -0
- package/workflows/powers/seo-fundamentals/POWER.md +59 -102
- package/workflows/powers/seo-fundamentals/SKILL.md +59 -102
- package/workflows/powers/serverless-patterns/POWER.md +171 -0
- package/workflows/powers/serverless-patterns/SKILL.md +168 -0
- package/workflows/powers/skill-creator/POWER.md +90 -0
- package/workflows/powers/skill-creator/SKILL.md +87 -0
- package/workflows/powers/skill-creator/references/platform-formats.md +181 -0
- package/workflows/powers/skill-creator/references/schemas.md +430 -0
- package/workflows/powers/spec-miner/POWER.md +49 -57
- package/workflows/powers/spec-miner/SKILL.md +49 -57
- package/workflows/powers/sqlite/POWER.md +67 -0
- package/workflows/powers/sqlite/SKILL.md +64 -0
- package/workflows/powers/sqlite/references/sqlite-checklist.md +19 -0
- package/workflows/powers/sre-engineer/POWER.md +123 -64
- package/workflows/powers/sre-engineer/SKILL.md +123 -64
- package/workflows/powers/static-analysis/POWER.md +121 -77
- package/workflows/powers/static-analysis/SKILL.md +121 -77
- package/workflows/powers/stripe-best-practices/POWER.md +140 -17
- package/workflows/powers/stripe-best-practices/SKILL.md +139 -17
- package/workflows/powers/supabase/POWER.md +67 -0
- package/workflows/powers/supabase/SKILL.md +64 -0
- package/workflows/powers/supabase/references/supabase-checklist.md +19 -0
- package/workflows/powers/swift-pro/POWER.md +118 -0
- package/workflows/powers/swift-pro/SKILL.md +115 -0
- package/workflows/powers/swift-pro/references/concurrency-patterns.md +165 -0
- package/workflows/powers/swift-pro/references/protocol-and-generics.md +172 -0
- package/workflows/powers/swift-pro/references/sendable-and-isolation.md +116 -0
- package/workflows/powers/swift-pro/references/swift-concurrency-and-protocols.md +260 -0
- package/workflows/powers/swift-pro/references/testing-and-packages.md +192 -0
- package/workflows/powers/tailwind-patterns/POWER.md +71 -240
- package/workflows/powers/tailwind-patterns/SKILL.md +71 -240
- package/workflows/powers/testing-patterns/POWER.md +155 -10
- package/workflows/powers/testing-patterns/SKILL.md +155 -10
- package/workflows/powers/typescript-pro/POWER.md +47 -38
- package/workflows/powers/typescript-pro/SKILL.md +47 -38
- package/workflows/powers/vitess/POWER.md +67 -0
- package/workflows/powers/vitess/SKILL.md +64 -0
- package/workflows/powers/vitess/references/vitess-checklist.md +19 -0
- package/workflows/powers/vulnerability-scanner/POWER.md +146 -10
- package/workflows/powers/vulnerability-scanner/SKILL.md +146 -10
- package/workflows/powers/web-perf/POWER.md +43 -170
- package/workflows/powers/web-perf/SKILL.md +43 -170
- package/workflows/powers/webapp-testing/POWER.md +43 -164
- package/workflows/powers/webapp-testing/SKILL.md +43 -164
|
@@ -1,82 +1,74 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: spec-miner
|
|
3
|
-
description: Use when
|
|
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:
|
|
8
|
-
version: "1.0
|
|
9
|
-
|
|
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
|
-
|
|
13
|
+
## Purpose
|
|
20
14
|
|
|
21
|
-
|
|
15
|
+
Use when reverse-engineering legacy or undocumented systems into structured specifications with code-grounded evidence and EARS-format requirements.
|
|
22
16
|
|
|
23
|
-
|
|
17
|
+
## When to Use
|
|
24
18
|
|
|
25
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
42
|
+
### Constraints
|
|
44
43
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
##
|
|
50
|
+
## Output Format
|
|
53
51
|
|
|
54
|
-
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
-
|
|
65
|
-
|
|
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
|
-
##
|
|
62
|
+
## References
|
|
68
63
|
|
|
69
|
-
|
|
64
|
+
No additional reference files.
|
|
70
65
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
##
|
|
70
|
+
## Examples
|
|
81
71
|
|
|
82
|
-
|
|
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:
|
|
6
|
-
license:
|
|
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:
|
|
9
|
-
version: "
|
|
10
|
-
|
|
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
|
-
|
|
15
|
+
## Purpose
|
|
21
16
|
|
|
22
|
-
|
|
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
|
-
|
|
19
|
+
## When to Use
|
|
25
20
|
|
|
26
|
-
|
|
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
|
-
|
|
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
|
-
|
|
31
|
+
### Step 1 — Define Service Level Indicators (SLIs)
|
|
37
32
|
|
|
38
|
-
|
|
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
|
-
|
|
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
|
-
|
|
43
|
+
**Choose 3–5 SLIs per service** — too many dilutes focus.
|
|
47
44
|
|
|
48
|
-
|
|
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
|
-
|
|
47
|
+
SLOs are targets for SLIs:
|
|
57
48
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
62
|
+
**Rules**:
|
|
79
63
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
69
|
+
### Step 3 — Manage Error Budgets
|
|
88
70
|
|
|
89
|
-
|
|
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
|
````
|