/data-and-ai-tools:db-stingerfrom data-and-ai-tools
Designs PostgreSQL data layers including schema, indexes, migrations, query performance, ORM choice, and serverless databases. Routes to opinionated guides for greenfield design, brownfield review, migration plans, indexing audits, performance audits, ORM ADRs, and platform selection.
Ships in data-and-ai-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are equipping db-wasp-drone, the Wasp Nest's PostgreSQL architecture authority. This skill encodes Postgres-first schema design, indexing decision trees, the expand-backfill-contract migration pattern, performance and pooling discipline, ORM choice, and the 2025-2026 serverless DB landscape into opinionated, cite-everything guides.
Opinionation is the product. Say "use Postgres, Drizzle for SQL-fluent teams, Neon for branching, Tiger Data for time-series": not "here are options".
package.json. Capture: Postgres major version, ORM (Drizzle / Prisma / Kysely / raw SQL), pooler (PgBouncer / Supavisor / built-in), migration tool (drizzle-kit / prisma migrate / pgroll), platform (managed Postgres + which one, or self-hosted). Everything downstream depends on this.guides/00-principles.md before writing any finding. The severity rubric, layering, and cross-Drone handoff rules live there.| Invocation | Primary guide(s) | Output |
|---|---|---|
| Greenfield schema design | 01-schema-design.md + 02-indexing.md | templates/schema-spec.md + starter schema.ts / .prisma |
| Brownfield schema review | 01-schema-design.md + 00-principles.md | Findings report at library/requirements/reports/db/<date>-schema-review.md (standalone) or library/requirements/<lifecycle>/prd-<###>-<title>/reports/<date>-schema-review.md (feature-tied): use templates/audit-template.md as the skeleton |
| Migration plan | 11-live-schema-migration.md for live/mixed-client changes; 03-migrations.md patterns + 04-partitioning.md if relevant | templates/migration-plan.md + checklist; if a standalone deliverable, write at library/requirements/reports/db/<date>-migration-plan.md |
| Indexing audit | 02-indexing.md + scripts/audit-missing-indexes.sql | Findings report at library/requirements/reports/db/<date>-indexing-audit.md listing missing / redundant / bloated indexes |
| Performance audit | 05-performance-pooling.md + scripts/analyze-query-plan.sh + scripts/bloat-check.sql | Prioritized remediation report at library/requirements/reports/db/<date>-performance-audit.md (standalone) or feature-tied path |
| ORM ADR | 07-orm-choice.md + templates/ADR.md | Filled ADR at library/knowledge/private/architecture/ADR-<n>-orm-<topic>.md |
| Serverless platform choice | 09-workload-platform-fit.md, 10-recovery-and-exit-fit.md; guide 08 is historical context | templates/platform-fit-decision.md with current evidence, recovery/exit gaps and one recommendation |
| Tenant data boundaries | 12-tenant-data-boundaries.md; Security owns audit/acceptance | templates/tenant-boundary-proof.md with role, pool, job/cache/search and missing native denials |
| pgvector / FTS / time-series | 06-special-purpose.md | Storage decision (handoff to mind-wasp-drone for retrieval) |
These restate the Command Brief's SUBAGENT CRITICAL DIRECTIVES. Each links to the guide where the full reasoning lives.
jsonb, arrays, enums, ranges, partial indexes, EXCLUDE before reaching for application-layer workarounds. See guides/01-schema-design.md.guides/02-indexing.md §FK-indexes.pgroll for online migrations. See guides/03-migrations.md.EXPLAIN (ANALYZE, BUFFERS) or it didn't happen. Cite the plan in any performance finding. See guides/05-performance-pooling.md.jsonb is a column type, not a schema escape hatch. If 80% of fields are queried, they are columns. See guides/01-schema-design.md §jsonb-vs-columns.guides/05-performance-pooling.md.guides/07-orm-choice.md.security-wasp-drone. See guides/00-principles.md.mind-wasp-drone. See guides/06-special-purpose.md.For live schema changes, use guide 11, the migration packet and worked cases. Preserve historical unknowns instead of guessed backfills. Source sketches do not prove native concurrency, contention, restore or provider/runner compatibility.
For multi-tenant data design, use guide 12 and boundary proof packet. Distinguish application predicates from RLS and inspect owner/BYPASSRLS/runtime identity. Source review never certifies tenant isolation.
Every finding is classified:
jsonb for fields that are filtered every request, missing PII flag on a column that obviously holds PII. Blocks merge.varchar(n) instead of text (legacy holdover), missing covering index on a frequent index-only-scan candidate, partition strategy that no longer matches access patterns, ORM choice that is causing N+1 in 3+ places. Cannot block a time-sensitive PR but opens a follow-up ticket.id BIGSERIAL vs id BIGINT GENERATED ALWAYS AS IDENTITY (modern preferred but functionally equivalent). Optional. Never block a PR on style alone.The severity of a finding is the finding's credibility. Calling a style nit "must-fix" destroys trust.
library-wasp-drone. db-wasp-drone implements after the PRD lands.react-wasp-drone. db-wasp-drone flags N+1 risks at the schema/query level.security-wasp-drone. db-wasp-drone designs RLS hooks; security-wasp-drone audits.mind-wasp-drone. db-wasp-drone picks pgvector storage shape and stops.quality-wasp-drone. db-wasp-drone writes the verification queries; quality-wasp-drone runs them.Numbered so the layering is obvious. Read principles first; then the topic guide(s) the invocation demands.
guides/00-principles.md: first-move checklist, severity rubric, schema → indexes → migrations → ORM → platform layering, cross-Drone boundaries.guides/01-schema-design.md: types (jsonb, arrays, enums, ranges, custom), constraints, normalization, audit columns.guides/02-indexing.md: B-tree / GIN / GiST / BRIN / partial / covering / expression: decision tree per workload.guides/03-migrations.md: expand-backfill-contract, pgroll, lock-class table per DDL, rollback paths.guides/04-partitioning.md: range / list / hash, partition pruning, attach / detach, when to reach for it.guides/05-performance-pooling.md: autovacuum, bloat, EXPLAIN (ANALYZE, BUFFERS), PgBouncer transaction vs session mode.guides/06-special-purpose.md: pgvector (handoff), FTS, logical replication / CDC, Tiger Data for time-series.guides/07-orm-choice.md: Drizzle vs Prisma vs raw SQL, when each wins, N+1 patterns.guides/08-serverless-platforms.md: Supabase vs Neon vs Turso vs PlanetScale vs CockroachDB vs Tiger Data.templates/schema-spec.md, templates/migration-plan.md, templates/expand-backfill-contract-checklist.md, templates/indexes-decision-tree.md, templates/drizzle-schema-starter.ts, templates/prisma-schema-starter.prisma, templates/pgbouncer.ini, templates/ADR.md, templates/audit-template.md.scripts/analyze-query-plan.sh, scripts/audit-missing-indexes.sql, scripts/bloat-check.sql. Each has a header with invocation instructions.examples/greenfield-schema.md, examples/zero-downtime-not-null.md, examples/serverless-platform-choice-walkthrough.md.library/ tree: standalone: library/requirements/reports/db/<date>-<topic>.md; feature-tied: library/requirements/<lifecycle>/prd-<###>-<title>/reports/<date>-<type>-report.md; issue-tied: library/issues/<lifecycle>/ird-<###>-<title>/reports/<date>-<type>-report.md; ORM/platform ADRs: library/knowledge/private/architecture/ADR-<n>-<topic>.md. Use templates/audit-template.md as the starting skeleton.pgvector index types, pgroll-supported features).guides/02-indexing.md §GIN) or an external URL.ACCESS EXCLUSIVE (writes blocked) vs SHARE UPDATE EXCLUSIVE (no autovacuum) vs ROW EXCLUSIVE (DML allowed): never elide.examples/greenfield-schema.md (opens in a new tab)examples/live-schema-cases.md (opens in a new tab)examples/migration-review.sql (opens in a new tab)examples/normalized-platform-fit-cases.md (opens in a new tab)examples/serverless-platform-choice-walkthrough.md (opens in a new tab)examples/tenant-boundary-cases.md (opens in a new tab)examples/zero-downtime-not-null.md (opens in a new tab)guides/00-principles.md (opens in a new tab)guides/01-schema-design.md (opens in a new tab)guides/02-indexing.md (opens in a new tab)guides/03-migrations.md (opens in a new tab)guides/04-partitioning.md (opens in a new tab)guides/05-performance-pooling.md (opens in a new tab)guides/06-special-purpose.md (opens in a new tab)guides/07-orm-choice.md (opens in a new tab)guides/08-serverless-platforms.md (opens in a new tab)guides/09-workload-platform-fit.md (opens in a new tab)guides/10-recovery-and-exit-fit.md (opens in a new tab)guides/11-live-schema-migration.md (opens in a new tab)guides/12-tenant-data-boundaries.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub legioncodeinc/vibe-coding-tools --plugin data-and-ai-tools15 skills in this plugin
/ai-coding-tools-stingerChoose, configure or troubleshoot AI coding tools, and write bounded task briefs. Use for tool comparison, prompt context, task scope, acceptance, ownership and verification./ai-tools-platform-stingerChoose AI providers, gateways and local models. Use for AI stack setup, retry and spend budgets, feature margin or local hardware fit. Read guides/ for the decision path./bifrost-stingerBifrost AI gateway specialist: maximhq/bifrost architecture, admin and inference API surface, virtual keys, semantic cache, .so plugins, tags, fork freeze and upgrade policy. Use for any Bifrost work./cursor-ide-stingerConfigure Cursor agents, rules, hooks, MCP, and SDK automation. Use for Cursor integration or IDE productivity issues. Read guides/ for the decision path./deeplake-dataset-stingerDesign and maintain Wasp Nestmind Deep Lake datasets. Use for ColumnDef schemas, healing, versioned writes, or hybrid indexing. Read guides/ for the decision path./embeddings-runtime-stingerPicks and runs embedding models: hosted (OpenAI, Cohere, Voyage) vs self-hosted, cost tradeoffs, batching, caching. Use when choosing, swapping, or debugging an embedding model.Other plugins' skills for the same job