@cubis/foundry 0.3.70 → 0.3.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/ask-questions-if-underspecified/SKILL.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/behavioral-modes/SKILL.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
- package/workflows/skills/agent-design/SKILL.md +198 -0
- package/workflows/skills/agent-design/references/clarification-patterns.md +153 -0
- package/workflows/skills/agent-design/references/skill-testing.md +164 -0
- package/workflows/skills/agent-design/references/workflow-patterns.md +226 -0
- package/workflows/skills/deep-research/SKILL.md +25 -20
- package/workflows/skills/deep-research/references/multi-round-research-loop.md +73 -8
- package/workflows/skills/frontend-design/SKILL.md +37 -32
- package/workflows/skills/frontend-design/commands/brand.md +167 -0
- package/workflows/skills/frontend-design/references/brand-presets.md +228 -0
- package/workflows/skills/generated/skill-audit.json +11 -2
- package/workflows/skills/generated/skill-catalog.json +37 -5
- package/workflows/skills/skills_index.json +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/agent-design/SKILL.md +198 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/agent-design/references/clarification-patterns.md +153 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/agent-design/references/skill-testing.md +164 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/agent-design/references/workflow-patterns.md +226 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/SKILL.md +25 -20
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/deep-research/references/multi-round-research-loop.md +73 -8
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/frontend-design/SKILL.md +37 -32
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/frontend-design/commands/brand.md +167 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/frontend-design/references/brand-presets.md +228 -0
- package/workflows/workflows/agent-environment-setup/platforms/claude/skills/skills_index.json +1 -1
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/agent-design/SKILL.md +197 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/agent-design/references/clarification-patterns.md +153 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/agent-design/references/skill-testing.md +164 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/agent-design/references/workflow-patterns.md +226 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/SKILL.md +25 -20
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/deep-research/references/multi-round-research-loop.md +73 -8
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/frontend-design/SKILL.md +37 -32
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/frontend-design/commands/brand.md +167 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/frontend-design/references/brand-presets.md +228 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/skills_index.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
````markdown
|
|
2
|
+
---
|
|
3
|
+
inclusion: manual
|
|
4
|
+
name: mysql
|
|
5
|
+
description: "Use when the task is specifically MySQL or InnoDB: schema/index design, transaction behavior, replication-aware migrations, query tuning, and managed MySQL operational tradeoffs."
|
|
6
|
+
license: MIT
|
|
7
|
+
metadata:
|
|
8
|
+
author: cubis-foundry
|
|
9
|
+
version: "3.0"
|
|
10
|
+
compatibility: Claude Code, Codex, GitHub Copilot
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# MySQL
|
|
14
|
+
|
|
15
|
+
## Purpose
|
|
16
|
+
|
|
17
|
+
Use when the task is specifically MySQL or InnoDB: schema/index design, transaction behavior, replication-aware migrations, query tuning, and managed MySQL operational tradeoffs.
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- The engine is MySQL, MariaDB-compatible MySQL, or a managed MySQL platform.
|
|
22
|
+
- The task depends on InnoDB behavior, replication, Online DDL, or MySQL-specific indexing/query behavior.
|
|
23
|
+
- You need MySQL-aware migration, lock, or read/write topology guidance.
|
|
24
|
+
|
|
25
|
+
## Instructions
|
|
26
|
+
|
|
27
|
+
1. Confirm MySQL variant, version, topology, and operational constraints.
|
|
28
|
+
2. Identify the dominant query and write patterns before changing schema or indexes.
|
|
29
|
+
3. Design for InnoDB realities: clustering, covering indexes, transaction scope, and lock impact.
|
|
30
|
+
4. Plan migrations around Online DDL behavior, replicas, and rollback constraints.
|
|
31
|
+
5. Re-check with query-plan evidence and operational safety notes.
|
|
32
|
+
|
|
33
|
+
### Baseline standards
|
|
34
|
+
|
|
35
|
+
- Optimize for actual read/write mix, not synthetic benchmarks.
|
|
36
|
+
- Keep transaction boundaries tight and predictable.
|
|
37
|
+
- Treat index shape and row access order as first-class design concerns.
|
|
38
|
+
- Make replication lag, schema rollout, and failover constraints explicit.
|
|
39
|
+
|
|
40
|
+
### Constraints
|
|
41
|
+
|
|
42
|
+
- Avoid wide indexes with no evidence.
|
|
43
|
+
- Avoid large DDL changes without topology-aware rollout.
|
|
44
|
+
- Avoid assuming MySQL and Postgres tuning rules are interchangeable.
|
|
45
|
+
- Avoid hiding consistency tradeoffs behind ORM defaults.
|
|
46
|
+
|
|
47
|
+
## Output Format
|
|
48
|
+
|
|
49
|
+
Provide implementation guidance, code examples, and configuration as appropriate to the task.
|
|
50
|
+
|
|
51
|
+
## References
|
|
52
|
+
|
|
53
|
+
Load on demand. Do not preload all reference files.
|
|
54
|
+
|
|
55
|
+
| File | Load when |
|
|
56
|
+
| --- | --- |
|
|
57
|
+
| `references/mysql-checklist.md` | You need a deeper MySQL playbook for InnoDB behavior, Online DDL, replication-aware rollout, and index tradeoffs. |
|
|
58
|
+
|
|
59
|
+
## Scripts
|
|
60
|
+
|
|
61
|
+
No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
|
|
62
|
+
|
|
63
|
+
## Examples
|
|
64
|
+
|
|
65
|
+
- "Help me with mysql best practices in this project"
|
|
66
|
+
- "Review my mysql implementation for issues"
|
|
67
|
+
````
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mysql
|
|
3
|
+
description: "Use when the task is specifically MySQL or InnoDB: schema/index design, transaction behavior, replication-aware migrations, query tuning, and managed MySQL operational tradeoffs."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: cubis-foundry
|
|
7
|
+
version: "3.0"
|
|
8
|
+
compatibility: Claude Code, Codex, GitHub Copilot
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# MySQL
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Use when the task is specifically MySQL or InnoDB: schema/index design, transaction behavior, replication-aware migrations, query tuning, and managed MySQL operational tradeoffs.
|
|
16
|
+
|
|
17
|
+
## When to Use
|
|
18
|
+
|
|
19
|
+
- The engine is MySQL, MariaDB-compatible MySQL, or a managed MySQL platform.
|
|
20
|
+
- The task depends on InnoDB behavior, replication, Online DDL, or MySQL-specific indexing/query behavior.
|
|
21
|
+
- You need MySQL-aware migration, lock, or read/write topology guidance.
|
|
22
|
+
|
|
23
|
+
## Instructions
|
|
24
|
+
|
|
25
|
+
1. Confirm MySQL variant, version, topology, and operational constraints.
|
|
26
|
+
2. Identify the dominant query and write patterns before changing schema or indexes.
|
|
27
|
+
3. Design for InnoDB realities: clustering, covering indexes, transaction scope, and lock impact.
|
|
28
|
+
4. Plan migrations around Online DDL behavior, replicas, and rollback constraints.
|
|
29
|
+
5. Re-check with query-plan evidence and operational safety notes.
|
|
30
|
+
|
|
31
|
+
### Baseline standards
|
|
32
|
+
|
|
33
|
+
- Optimize for actual read/write mix, not synthetic benchmarks.
|
|
34
|
+
- Keep transaction boundaries tight and predictable.
|
|
35
|
+
- Treat index shape and row access order as first-class design concerns.
|
|
36
|
+
- Make replication lag, schema rollout, and failover constraints explicit.
|
|
37
|
+
|
|
38
|
+
### Constraints
|
|
39
|
+
|
|
40
|
+
- Avoid wide indexes with no evidence.
|
|
41
|
+
- Avoid large DDL changes without topology-aware rollout.
|
|
42
|
+
- Avoid assuming MySQL and Postgres tuning rules are interchangeable.
|
|
43
|
+
- Avoid hiding consistency tradeoffs behind ORM defaults.
|
|
44
|
+
|
|
45
|
+
## Output Format
|
|
46
|
+
|
|
47
|
+
Provide implementation guidance, code examples, and configuration as appropriate to the task.
|
|
48
|
+
|
|
49
|
+
## References
|
|
50
|
+
|
|
51
|
+
Load on demand. Do not preload all reference files.
|
|
52
|
+
|
|
53
|
+
| File | Load when |
|
|
54
|
+
| --- | --- |
|
|
55
|
+
| `references/mysql-checklist.md` | You need a deeper MySQL playbook for InnoDB behavior, Online DDL, replication-aware rollout, and index tradeoffs. |
|
|
56
|
+
|
|
57
|
+
## Scripts
|
|
58
|
+
|
|
59
|
+
No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
|
|
60
|
+
|
|
61
|
+
## Examples
|
|
62
|
+
|
|
63
|
+
- "Help me with mysql best practices in this project"
|
|
64
|
+
- "Review my mysql implementation for issues"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# MySQL Checklist
|
|
2
|
+
|
|
3
|
+
Load this when MySQL behavior materially affects the answer.
|
|
4
|
+
|
|
5
|
+
## InnoDB and indexes
|
|
6
|
+
|
|
7
|
+
- Model for clustered primary-key access and covering-index opportunities.
|
|
8
|
+
- Keep transaction scope tight and predictable.
|
|
9
|
+
- Validate index tradeoffs against actual read/write mix.
|
|
10
|
+
|
|
11
|
+
## Rollout
|
|
12
|
+
|
|
13
|
+
- Check Online DDL behavior, replicas, and rollback constraints.
|
|
14
|
+
- Make replication lag and topology effects explicit.
|
|
15
|
+
- Stage heavy schema changes when operational risk is non-trivial.
|
|
16
|
+
|
|
17
|
+
## Evidence
|
|
18
|
+
|
|
19
|
+
- Use query-plan evidence before recommending index or query changes.
|
|
20
|
+
- Do not borrow Postgres assumptions blindly.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
````markdown
|
|
2
|
+
---
|
|
3
|
+
inclusion: manual
|
|
4
|
+
name: neki
|
|
5
|
+
description: "Use when the task is specifically Neki, PlanetScale’s sharded Postgres architecture: shard-key design, distributed Postgres tradeoffs, routing constraints, and operational decisions for large-scale Postgres workloads."
|
|
6
|
+
license: MIT
|
|
7
|
+
metadata:
|
|
8
|
+
author: cubis-foundry
|
|
9
|
+
version: "3.0"
|
|
10
|
+
compatibility: Claude Code, Codex, GitHub Copilot
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Neki
|
|
14
|
+
|
|
15
|
+
## Purpose
|
|
16
|
+
|
|
17
|
+
Use when the task is specifically Neki, PlanetScale’s sharded Postgres architecture: shard-key design, distributed Postgres tradeoffs, routing constraints, and operational decisions for large-scale Postgres workloads.
|
|
18
|
+
|
|
19
|
+
## When to Use
|
|
20
|
+
|
|
21
|
+
- The task is specifically about Neki or PlanetScale’s sharded Postgres posture.
|
|
22
|
+
- The problem depends on shard keys, distributed Postgres behavior, routing constraints, or operational scaling tradeoffs.
|
|
23
|
+
- You need guidance that differs from plain single-cluster Postgres assumptions.
|
|
24
|
+
|
|
25
|
+
## Instructions
|
|
26
|
+
|
|
27
|
+
1. Confirm what is known about the Neki deployment and which product constraints are actually available today.
|
|
28
|
+
2. Separate normal Postgres reasoning from sharding-specific concerns such as routing, fan-out, and ownership.
|
|
29
|
+
3. Make shard-key and entity-boundary choices explicit before proposing query or schema changes.
|
|
30
|
+
4. Prefer conservative operational guidance when platform details are still evolving.
|
|
31
|
+
5. Report assumptions, unknowns, and fallback plans clearly.
|
|
32
|
+
|
|
33
|
+
### Baseline standards
|
|
34
|
+
|
|
35
|
+
- Treat Neki as sharded Postgres, not just “Postgres but bigger.”
|
|
36
|
+
- Keep assumptions explicit because the platform is still evolving.
|
|
37
|
+
- Design around ownership, routing, and predictable access paths.
|
|
38
|
+
- Fall back to standard Postgres guidance whenever a Neki-specific claim is not well supported.
|
|
39
|
+
|
|
40
|
+
### Constraints
|
|
41
|
+
|
|
42
|
+
- Avoid assuming all Postgres features behave identically in a sharded environment.
|
|
43
|
+
- Avoid recommending cross-shard patterns without evidence.
|
|
44
|
+
- Avoid hiding uncertainty when product details are incomplete.
|
|
45
|
+
- Avoid using Neki-specific advice when plain Postgres guidance would be safer.
|
|
46
|
+
|
|
47
|
+
## Output Format
|
|
48
|
+
|
|
49
|
+
Provide implementation guidance, code examples, and configuration as appropriate to the task.
|
|
50
|
+
|
|
51
|
+
## References
|
|
52
|
+
|
|
53
|
+
Load on demand. Do not preload all reference files.
|
|
54
|
+
|
|
55
|
+
| File | Load when |
|
|
56
|
+
| --- | --- |
|
|
57
|
+
| `references/neki-checklist.md` | You need a sharper Neki-specific checklist for sharded Postgres assumptions, routing, uncertainty handling, and fallback to plain Postgres guidance. |
|
|
58
|
+
|
|
59
|
+
## Scripts
|
|
60
|
+
|
|
61
|
+
No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
|
|
62
|
+
|
|
63
|
+
## Examples
|
|
64
|
+
|
|
65
|
+
- "Help me with neki best practices in this project"
|
|
66
|
+
- "Review my neki implementation for issues"
|
|
67
|
+
````
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: neki
|
|
3
|
+
description: "Use when the task is specifically Neki, PlanetScale’s sharded Postgres architecture: shard-key design, distributed Postgres tradeoffs, routing constraints, and operational decisions for large-scale Postgres workloads."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: cubis-foundry
|
|
7
|
+
version: "3.0"
|
|
8
|
+
compatibility: Claude Code, Codex, GitHub Copilot
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Neki
|
|
12
|
+
|
|
13
|
+
## Purpose
|
|
14
|
+
|
|
15
|
+
Use when the task is specifically Neki, PlanetScale’s sharded Postgres architecture: shard-key design, distributed Postgres tradeoffs, routing constraints, and operational decisions for large-scale Postgres workloads.
|
|
16
|
+
|
|
17
|
+
## When to Use
|
|
18
|
+
|
|
19
|
+
- The task is specifically about Neki or PlanetScale’s sharded Postgres posture.
|
|
20
|
+
- The problem depends on shard keys, distributed Postgres behavior, routing constraints, or operational scaling tradeoffs.
|
|
21
|
+
- You need guidance that differs from plain single-cluster Postgres assumptions.
|
|
22
|
+
|
|
23
|
+
## Instructions
|
|
24
|
+
|
|
25
|
+
1. Confirm what is known about the Neki deployment and which product constraints are actually available today.
|
|
26
|
+
2. Separate normal Postgres reasoning from sharding-specific concerns such as routing, fan-out, and ownership.
|
|
27
|
+
3. Make shard-key and entity-boundary choices explicit before proposing query or schema changes.
|
|
28
|
+
4. Prefer conservative operational guidance when platform details are still evolving.
|
|
29
|
+
5. Report assumptions, unknowns, and fallback plans clearly.
|
|
30
|
+
|
|
31
|
+
### Baseline standards
|
|
32
|
+
|
|
33
|
+
- Treat Neki as sharded Postgres, not just “Postgres but bigger.”
|
|
34
|
+
- Keep assumptions explicit because the platform is still evolving.
|
|
35
|
+
- Design around ownership, routing, and predictable access paths.
|
|
36
|
+
- Fall back to standard Postgres guidance whenever a Neki-specific claim is not well supported.
|
|
37
|
+
|
|
38
|
+
### Constraints
|
|
39
|
+
|
|
40
|
+
- Avoid assuming all Postgres features behave identically in a sharded environment.
|
|
41
|
+
- Avoid recommending cross-shard patterns without evidence.
|
|
42
|
+
- Avoid hiding uncertainty when product details are incomplete.
|
|
43
|
+
- Avoid using Neki-specific advice when plain Postgres guidance would be safer.
|
|
44
|
+
|
|
45
|
+
## Output Format
|
|
46
|
+
|
|
47
|
+
Provide implementation guidance, code examples, and configuration as appropriate to the task.
|
|
48
|
+
|
|
49
|
+
## References
|
|
50
|
+
|
|
51
|
+
Load on demand. Do not preload all reference files.
|
|
52
|
+
|
|
53
|
+
| File | Load when |
|
|
54
|
+
| --- | --- |
|
|
55
|
+
| `references/neki-checklist.md` | You need a sharper Neki-specific checklist for sharded Postgres assumptions, routing, uncertainty handling, and fallback to plain Postgres guidance. |
|
|
56
|
+
|
|
57
|
+
## Scripts
|
|
58
|
+
|
|
59
|
+
No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
|
|
60
|
+
|
|
61
|
+
## Examples
|
|
62
|
+
|
|
63
|
+
- "Help me with neki best practices in this project"
|
|
64
|
+
- "Review my neki implementation for issues"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Neki Checklist
|
|
2
|
+
|
|
3
|
+
Load this when Neki-specific sharded Postgres assumptions are in play.
|
|
4
|
+
|
|
5
|
+
## Assumption control
|
|
6
|
+
|
|
7
|
+
- Confirm which Neki behavior is actually known versus inferred.
|
|
8
|
+
- Fall back to plain Postgres guidance when a Neki-specific claim is weak.
|
|
9
|
+
|
|
10
|
+
## Architecture
|
|
11
|
+
|
|
12
|
+
- Treat shard keys, routing, and ownership as first-class concerns.
|
|
13
|
+
- Avoid cross-shard assumptions unless supported by the platform behavior in scope.
|
|
14
|
+
|
|
15
|
+
## Communication
|
|
16
|
+
|
|
17
|
+
- Report uncertainty explicitly.
|
|
18
|
+
- Keep fallback plans and safer plain-Postgres alternatives visible.
|
|
@@ -1,117 +1,71 @@
|
|
|
1
1
|
````markdown
|
|
2
2
|
---
|
|
3
3
|
inclusion: manual
|
|
4
|
-
name:
|
|
5
|
-
description: "Use when building NestJS
|
|
4
|
+
name: nestjs-expert
|
|
5
|
+
description: "Use when building NestJS services that need strong module boundaries, dependency injection, DTO validation, guards or interceptors, auth boundaries, transport-aware module design, and production-safe TypeScript backend structure."
|
|
6
|
+
license: MIT
|
|
7
|
+
metadata:
|
|
8
|
+
author: cubis-foundry
|
|
9
|
+
version: "3.0"
|
|
10
|
+
compatibility: Claude Code, Codex, GitHub Copilot
|
|
6
11
|
---
|
|
7
12
|
|
|
8
|
-
|
|
9
13
|
# NestJS Expert
|
|
10
14
|
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
Senior NestJS specialist with deep expertise in enterprise-grade, scalable TypeScript backend applications. Focused on session-based authentication with Fastify and MongoDB/Mongoose integration.
|
|
14
|
-
|
|
15
|
-
## Role Definition
|
|
16
|
-
|
|
17
|
-
You are a senior Node.js engineer with 10+ years of backend experience. You specialize in NestJS architecture, dependency injection, and enterprise patterns. You build modular, testable applications with proper separation of concerns.
|
|
18
|
-
|
|
19
|
-
## When to Use This Power
|
|
20
|
-
|
|
21
|
-
- Building NestJS REST APIs with Fastify
|
|
22
|
-
- Implementing modules, controllers, and services
|
|
23
|
-
- Creating DTOs with validation
|
|
24
|
-
- Setting up session-based authentication (NOT JWT)
|
|
25
|
-
- Implementing guards, interceptors, and pipes
|
|
26
|
-
- Database integration with Mongoose
|
|
27
|
-
|
|
28
|
-
## Core Workflow
|
|
29
|
-
|
|
30
|
-
1. **Analyze requirements** - Identify modules, endpoints, entities
|
|
31
|
-
2. **Design structure** - Plan module organization and dependencies
|
|
32
|
-
3. **Implement** - Create modules, services, controllers with DI
|
|
33
|
-
4. **Secure** - Add guards, validation, authentication
|
|
34
|
-
5. **Test** - Write unit tests and E2E tests
|
|
35
|
-
|
|
36
|
-
## Available Steering Files
|
|
37
|
-
|
|
38
|
-
Load detailed guidance on-demand:
|
|
39
|
-
|
|
40
|
-
| Topic | Reference | Load When |
|
|
41
|
-
| ----------------- | ------------------------------------ | ------------------------------------------- |
|
|
42
|
-
| Controllers | `references/controllers-routing.md` | Creating controllers, routing, Swagger docs |
|
|
43
|
-
| Services | `references/services-di.md` | Services, dependency injection, providers |
|
|
44
|
-
| DTOs | `references/dtos-validation.md` | Validation, class-validator, DTOs |
|
|
45
|
-
| Authentication | `references/authentication.md` | Session auth, guards, roles, multi-tenant |
|
|
46
|
-
| Testing | `references/testing-patterns.md` | Unit tests, E2E tests, mocking |
|
|
47
|
-
| Express Migration | `references/migration-from-express.md` | Migrating from Express.js to NestJS |
|
|
48
|
-
|
|
49
|
-
## Authentication Approach
|
|
15
|
+
## Purpose
|
|
50
16
|
|
|
51
|
-
|
|
17
|
+
Use when building NestJS services that need strong module boundaries, dependency injection, DTO validation, guards or interceptors, auth boundaries, transport-aware module design, and production-safe TypeScript backend structure.
|
|
52
18
|
|
|
53
|
-
|
|
54
|
-
// Session-based auth with Fastify
|
|
55
|
-
@Post('login')
|
|
56
|
-
async login(@Body() dto: LoginDto, @Req() request: FastifyRequest) {
|
|
57
|
-
const user = await this.authService.validateUser(dto.username, dto.password);
|
|
19
|
+
## When to Use
|
|
58
20
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
21
|
+
- Building or refactoring NestJS APIs and service modules.
|
|
22
|
+
- Designing providers, controllers, DTOs, guards, interceptors, pipes, and auth boundaries.
|
|
23
|
+
- Enforcing modular TypeScript backend boundaries in a Nest app or monorepo.
|
|
24
|
+
- Reviewing Nest code for dependency direction, transport separation, validation, and operational safety.
|
|
63
25
|
|
|
64
|
-
|
|
65
|
-
}
|
|
26
|
+
## Instructions
|
|
66
27
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
```
|
|
28
|
+
1. Define module boundaries, provider ownership, and transport boundaries before adding endpoints.
|
|
29
|
+
2. Keep controllers thin and push logic into services or domain layers.
|
|
30
|
+
3. Validate input with DTOs and explicit boundary rules.
|
|
31
|
+
4. Apply guards, interceptors, filters, and auth wiring intentionally rather than globally by habit.
|
|
32
|
+
5. Verify testability, error behavior, dependency direction, and bootstrap posture before shipping.
|
|
73
33
|
|
|
74
|
-
|
|
34
|
+
### Baseline standards
|
|
75
35
|
|
|
76
|
-
|
|
36
|
+
- Use modules to express bounded context, not folder cosmetics.
|
|
37
|
+
- Keep DI graphs simple and acyclic.
|
|
38
|
+
- Treat DTOs as boundary contracts, not domain models.
|
|
39
|
+
- Keep transport concerns, auth policy, and domain logic separate.
|
|
40
|
+
- Use guards/interceptors/pipes only where their responsibility is clear.
|
|
41
|
+
- Keep config and infrastructure concerns explicit and testable.
|
|
77
42
|
|
|
78
|
-
###
|
|
43
|
+
### Constraints
|
|
79
44
|
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
- Write unit tests for services
|
|
86
|
-
- Use environment variables for configuration
|
|
45
|
+
- Avoid fat controllers and hidden business logic in decorators.
|
|
46
|
+
- Avoid circular module/provider dependencies.
|
|
47
|
+
- Avoid dTO reuse that leaks transport concerns across layers.
|
|
48
|
+
- Avoid request-scoped providers by default when singleton or explicit factory wiring is enough.
|
|
49
|
+
- Avoid global framework magic when local explicit behavior is safer.
|
|
87
50
|
|
|
88
|
-
|
|
51
|
+
## Output Format
|
|
89
52
|
|
|
90
|
-
|
|
91
|
-
- Trust user input without validation
|
|
92
|
-
- Use `any` type unless absolutely necessary
|
|
93
|
-
- Create circular dependencies between modules
|
|
94
|
-
- Hardcode configuration values
|
|
95
|
-
- Skip error handling
|
|
53
|
+
Provide implementation guidance, code examples, and configuration as appropriate to the task.
|
|
96
54
|
|
|
97
|
-
##
|
|
55
|
+
## References
|
|
98
56
|
|
|
99
|
-
|
|
57
|
+
Load on demand. Do not preload all reference files.
|
|
100
58
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
4. DTOs with validation
|
|
105
|
-
5. Tests for service methods
|
|
59
|
+
| File | Load when |
|
|
60
|
+
| --- | --- |
|
|
61
|
+
| `references/module-dto-guard-playbook.md` | You need a more explicit Nest playbook for modules, DTOs, guards, auth, transports, config, and testable dependency graphs. |
|
|
106
62
|
|
|
107
|
-
##
|
|
63
|
+
## Scripts
|
|
108
64
|
|
|
109
|
-
|
|
65
|
+
No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
|
|
110
66
|
|
|
111
|
-
##
|
|
67
|
+
## Examples
|
|
112
68
|
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
- **Test Master** - Comprehensive testing strategies
|
|
116
|
-
- **Security Reviewer** - Security auditing
|
|
69
|
+
- "Help me with nestjs expert best practices in this project"
|
|
70
|
+
- "Review my nestjs expert implementation for issues"
|
|
117
71
|
````
|
|
@@ -1,114 +1,68 @@
|
|
|
1
1
|
---
|
|
2
|
-
name:
|
|
3
|
-
description: "Use when building NestJS
|
|
2
|
+
name: nestjs-expert
|
|
3
|
+
description: "Use when building NestJS services that need strong module boundaries, dependency injection, DTO validation, guards or interceptors, auth boundaries, transport-aware module design, and production-safe TypeScript backend structure."
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: cubis-foundry
|
|
7
|
+
version: "3.0"
|
|
8
|
+
compatibility: Claude Code, Codex, GitHub Copilot
|
|
4
9
|
---
|
|
5
10
|
|
|
6
|
-
|
|
7
11
|
# NestJS Expert
|
|
8
12
|
|
|
9
|
-
##
|
|
10
|
-
|
|
11
|
-
Senior NestJS specialist with deep expertise in enterprise-grade, scalable TypeScript backend applications. Focused on session-based authentication with Fastify and MongoDB/Mongoose integration.
|
|
12
|
-
|
|
13
|
-
## Role Definition
|
|
14
|
-
|
|
15
|
-
You are a senior Node.js engineer with 10+ years of backend experience. You specialize in NestJS architecture, dependency injection, and enterprise patterns. You build modular, testable applications with proper separation of concerns.
|
|
16
|
-
|
|
17
|
-
## When to Use This Power
|
|
18
|
-
|
|
19
|
-
- Building NestJS REST APIs with Fastify
|
|
20
|
-
- Implementing modules, controllers, and services
|
|
21
|
-
- Creating DTOs with validation
|
|
22
|
-
- Setting up session-based authentication (NOT JWT)
|
|
23
|
-
- Implementing guards, interceptors, and pipes
|
|
24
|
-
- Database integration with Mongoose
|
|
25
|
-
|
|
26
|
-
## Core Workflow
|
|
27
|
-
|
|
28
|
-
1. **Analyze requirements** - Identify modules, endpoints, entities
|
|
29
|
-
2. **Design structure** - Plan module organization and dependencies
|
|
30
|
-
3. **Implement** - Create modules, services, controllers with DI
|
|
31
|
-
4. **Secure** - Add guards, validation, authentication
|
|
32
|
-
5. **Test** - Write unit tests and E2E tests
|
|
33
|
-
|
|
34
|
-
## Available Steering Files
|
|
35
|
-
|
|
36
|
-
Load detailed guidance on-demand:
|
|
37
|
-
|
|
38
|
-
| Topic | Reference | Load When |
|
|
39
|
-
| ----------------- | ------------------------------------ | ------------------------------------------- |
|
|
40
|
-
| Controllers | `references/controllers-routing.md` | Creating controllers, routing, Swagger docs |
|
|
41
|
-
| Services | `references/services-di.md` | Services, dependency injection, providers |
|
|
42
|
-
| DTOs | `references/dtos-validation.md` | Validation, class-validator, DTOs |
|
|
43
|
-
| Authentication | `references/authentication.md` | Session auth, guards, roles, multi-tenant |
|
|
44
|
-
| Testing | `references/testing-patterns.md` | Unit tests, E2E tests, mocking |
|
|
45
|
-
| Express Migration | `references/migration-from-express.md` | Migrating from Express.js to NestJS |
|
|
46
|
-
|
|
47
|
-
## Authentication Approach
|
|
13
|
+
## Purpose
|
|
48
14
|
|
|
49
|
-
|
|
15
|
+
Use when building NestJS services that need strong module boundaries, dependency injection, DTO validation, guards or interceptors, auth boundaries, transport-aware module design, and production-safe TypeScript backend structure.
|
|
50
16
|
|
|
51
|
-
|
|
52
|
-
// Session-based auth with Fastify
|
|
53
|
-
@Post('login')
|
|
54
|
-
async login(@Body() dto: LoginDto, @Req() request: FastifyRequest) {
|
|
55
|
-
const user = await this.authService.validateUser(dto.username, dto.password);
|
|
17
|
+
## When to Use
|
|
56
18
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
19
|
+
- Building or refactoring NestJS APIs and service modules.
|
|
20
|
+
- Designing providers, controllers, DTOs, guards, interceptors, pipes, and auth boundaries.
|
|
21
|
+
- Enforcing modular TypeScript backend boundaries in a Nest app or monorepo.
|
|
22
|
+
- Reviewing Nest code for dependency direction, transport separation, validation, and operational safety.
|
|
61
23
|
|
|
62
|
-
|
|
63
|
-
}
|
|
24
|
+
## Instructions
|
|
64
25
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
```
|
|
26
|
+
1. Define module boundaries, provider ownership, and transport boundaries before adding endpoints.
|
|
27
|
+
2. Keep controllers thin and push logic into services or domain layers.
|
|
28
|
+
3. Validate input with DTOs and explicit boundary rules.
|
|
29
|
+
4. Apply guards, interceptors, filters, and auth wiring intentionally rather than globally by habit.
|
|
30
|
+
5. Verify testability, error behavior, dependency direction, and bootstrap posture before shipping.
|
|
71
31
|
|
|
72
|
-
|
|
32
|
+
### Baseline standards
|
|
73
33
|
|
|
74
|
-
|
|
34
|
+
- Use modules to express bounded context, not folder cosmetics.
|
|
35
|
+
- Keep DI graphs simple and acyclic.
|
|
36
|
+
- Treat DTOs as boundary contracts, not domain models.
|
|
37
|
+
- Keep transport concerns, auth policy, and domain logic separate.
|
|
38
|
+
- Use guards/interceptors/pipes only where their responsibility is clear.
|
|
39
|
+
- Keep config and infrastructure concerns explicit and testable.
|
|
75
40
|
|
|
76
|
-
###
|
|
41
|
+
### Constraints
|
|
77
42
|
|
|
78
|
-
-
|
|
79
|
-
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
- Write unit tests for services
|
|
84
|
-
- Use environment variables for configuration
|
|
43
|
+
- Avoid fat controllers and hidden business logic in decorators.
|
|
44
|
+
- Avoid circular module/provider dependencies.
|
|
45
|
+
- Avoid dTO reuse that leaks transport concerns across layers.
|
|
46
|
+
- Avoid request-scoped providers by default when singleton or explicit factory wiring is enough.
|
|
47
|
+
- Avoid global framework magic when local explicit behavior is safer.
|
|
85
48
|
|
|
86
|
-
|
|
49
|
+
## Output Format
|
|
87
50
|
|
|
88
|
-
|
|
89
|
-
- Trust user input without validation
|
|
90
|
-
- Use `any` type unless absolutely necessary
|
|
91
|
-
- Create circular dependencies between modules
|
|
92
|
-
- Hardcode configuration values
|
|
93
|
-
- Skip error handling
|
|
51
|
+
Provide implementation guidance, code examples, and configuration as appropriate to the task.
|
|
94
52
|
|
|
95
|
-
##
|
|
53
|
+
## References
|
|
96
54
|
|
|
97
|
-
|
|
55
|
+
Load on demand. Do not preload all reference files.
|
|
98
56
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
4. DTOs with validation
|
|
103
|
-
5. Tests for service methods
|
|
57
|
+
| File | Load when |
|
|
58
|
+
| --- | --- |
|
|
59
|
+
| `references/module-dto-guard-playbook.md` | You need a more explicit Nest playbook for modules, DTOs, guards, auth, transports, config, and testable dependency graphs. |
|
|
104
60
|
|
|
105
|
-
##
|
|
61
|
+
## Scripts
|
|
106
62
|
|
|
107
|
-
|
|
63
|
+
No helper scripts are required for this skill right now. Keep execution in `SKILL.md` and `references/` unless repeated automation becomes necessary.
|
|
108
64
|
|
|
109
|
-
##
|
|
65
|
+
## Examples
|
|
110
66
|
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
- **Test Master** - Comprehensive testing strategies
|
|
114
|
-
- **Security Reviewer** - Security auditing
|
|
67
|
+
- "Help me with nestjs expert best practices in this project"
|
|
68
|
+
- "Review my nestjs expert implementation for issues"
|