Db platform fit

From Hainrixz/claude-db · View interactive version

Db platform fit is an AI agent skill from the GitHub repository Hainrixz/claude-db. Managed-platform fitness (M21) — checks the project against the realities of its hosting platform (Supabase, Neon, PlanetScale, Turso, Cloudflare D1, CockroachDB, Yugabyte, DynamoDB, RDS/Aurora). Engine version currency (without fabricating EOL dates), honest pricing / vendor lock-in trade-offs, and

How to use this skill

Skill file

<!-- Copyright (c) 2026 Enrique Rocha (@soyenriquerocha) · tododeia.com · id er-f37b7121 -->

db-platform-fit (M21) — version · pricing/lock-in · per-platform feature support

M21 audits the project against constraints imposed by the managed platform, not the raw engine.

The same Postgres schema behaves differently on Neon (serverless, scale-to-zero, branching) vs RDS vs

Supabase (RLS-centric, PostgREST). Findings feed both axes: feature gaps (FK support, RLS) are design;

connection/cold-start/version issues are performance.

What it checks

  1. Version currency — the declared/introspected engine version vs the platform's current supported

range. Flag clearly-old majors. Never fabricate an EOL date or a "supported until" date. If the

exact EOL is not known from a citable source, say "older major, confirm support window with the

platform" and mark confidence: directional. With WebFetch you MAY cite the vendor's published

version page; quote it, don't paraphrase a number you can't source.

  1. Pricing / lock-in honesty — name the lock-in trade-off (proprietary features: Supabase Auth/RLS

coupling, PlanetScale Vitess sharding, D1's SQLite dialect, DynamoDB single-table design, Aurora

storage format). Never invent a price, a per-GB cost, or a row/request quota. State the

category of cost (egress, branching compute, read/write units) and that exact figures must be

confirmed on the vendor's current pricing page. Magnitude banded only.

  1. Per-platform feature support — FK support is the headline check:

restricted); a schema relying on DB-enforced FKs needs app-level integrity or FOREIGN_KEY_CHECKS

awareness. → design + performance, sev 4 when FKs are declared but unenforceable.

DB size ceilings.

serverless/edge are an anti-pattern → cross-checks db-connection-pooling (M15).

db-security-access (M10); RLS-off on an exposed table is sev 5 (design).

certain PG extensions, different isolation defaults.

Tier-0 static checks

Detect the platform from references/detection-signals.md signals (supabase/ dir,

@planetscale/database, @neondatabase/serverless, wrangler.toml [[d1_databases]],

@libsql/client, cockroach/yugabyte in connection string/deps). Parse declared engine version from

config/migrations. Cross-reference declared FK constraints against the platform's FK-support reality.

Detect direct-PG drivers (pg, Pool) used in a serverless/edge entrypoint.

Tier-1 verification query

FKs actually exist: SELECT * FROM information_schema.table_constraints WHERE constraint_type='FOREIGN KEY';

false pass.

Findings

Emit per schema/finding.schema.json. Example ids:

them (fail, severity 4, axis both, confidence directional static / established with Tier-1).

axis design, confidence established with Tier-1).

confidence directional; no fabricated EOL date — cite vendor page or defer).

severity 4, axis performance; cross-ref M15).

Each finding: evidence.observed quotes the real config/DDL/version string verbatim (secrets redacted);

verification.reproduce is a runnable command above using $DATABASE_URL; verification.method is

connection_introspect, schema_introspect, or manual_review; expected_impact carries

{axis, confidence, magnitude, rationale} — banded, never a naked %.

Honesty

current page via WebFetch (quote it) or defer with directional and a "confirm on vendor page" note.

(not 5) unless it directly enables orphan financial/auth rows. Unreachable platform → needs_api.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.