Hainrixz

178 mods across 18 repositories, 2.6k stars between them.

db-index-hygiene

145

Hainrixz/claude-db

Skill Claude CodeCodex

Audit index bloat — exact-duplicate indexes, redundant indexes whose key is a prefix of another, and unused indexes that only cost write amplification and storage. Module M12. Feeds the Performance & Scale score.

19 2mo ago A 49 tokens original MIT

db-indexing

146

Hainrixz/claude-db

Skill Claude CodeCodex

Audit index coverage for the query workload — composite index column order (ESR), covering and partial indexes, specialized types (GIN/GiST/BRIN, FTS, geo, JSONB-GIN), and foreign keys with no covering index. Module M11. Feeds the Performance & Scale score.

19 2mo ago A 66 tokens original MIT

db-keys

147

Hainrixz/claude-db

Skill Claude CodeCodex

Audit primary-key strategy — missing PK (severity 5), surrogate vs natural keys, UUIDv4 index fragmentation vs time-ordered UUIDv7/ULID/bigint, and int4/serial exhaustion on high-volume tables. Module M2. Feeds both the Design & Integrity (Llaves) and Performance & Scale (Escala) scores.

19 2mo ago A 76 tokens original MIT

db-migration-safety

148

Hainrixz/claude-db

Skill Claude CodeCodex

Migration-safety lint (M22) — the static contract the migration-safety auditor (MSA) and db-migration-writer enforce on a candidate migration BEFORE it runs. Checks reversibility (down migration present / expand-contract), lock level (does it take ACCESS EXCLUSIVE on a hot table), table rewrite (full-table rewrites on…

19 2mo ago A 124 tokens original MIT

db-multitenancy

149

Hainrixz/claude-db

Skill Claude CodeCodex

Audit multi-tenant data isolation — tenant model fit (shared rows vs schema vs database), missing or unenforced tenant scoping, the tenantid-leading composite index/key requirement, and cross-tenant leak risk where queries or constraints omit the tenant boundary. Module M9. Feeds both the Design & Integrity…

19 2mo ago A 81 tokens original MIT

db-naming

150

Hainrixz/claude-db

Skill Claude CodeCodex

Audit naming conventions — inconsistent table/column casing and pluralization, ambiguous or reserved-word identifiers, untyped/opaque columns, inconsistent FK and boolean naming, and identifiers that fight the engine's case-folding rules. Module M7. Feeds the Design & Integrity score (Naming category, low weight).

19 2mo ago A 65 tokens original MIT

db-normalization

151

Hainrixz/claude-db

Skill Claude CodeCodex

Audit relational schema normalization — 1NF through 3NF violations, repeating groups and CSV-in-a-column, partial and transitive functional dependencies, and the inverse trap of premature or undisciplined denormalization. Module M1. Feeds the Design & Integrity score (Modelado category).

19 2mo ago A 64 tokens original MIT

db-orchestrator

152

Hainrixz/claude-db

Skill Claude CodeCodex

Orchestrates a full database audit — detects the stack(s), dispatches read-only auditor subagents in parallel by paradigm, merges and dedupes their findings, computes the two never-blended scores (Design & Integrity + Performance & Scale) via score.mjs, and renders the report. Invoked by the audit command; not usually…

19 2mo ago A 76 tokens original MIT

Hainrixz/claude-db

Skill Claude CodeCodex

Audit horizontal scaling topology — declarative partitioning fit for large/time-series tables, hot-partition / skewed partition-key risk, and premature sharding that adds complexity before it is justified. Module M16. Feeds the Performance & Scale score.

19 2mo ago A 57 tokens original MIT

db-platform-fit

154

Hainrixz/claude-db

Skill Claude CodeCodex

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 per-platform…

19 2mo ago B 121 tokens original MIT

db-query-patterns

155

Hainrixz/claude-db

Skill Claude CodeCodex

Audit query-shape anti-patterns — SELECT , structural N+1 (directional), OFFSET pagination vs keyset, and non-SARGable predicates that defeat indexes. Module M13. Feeds the Performance & Scale score.

19 2mo ago A 51 tokens original MIT

Hainrixz/claude-db

Skill Claude CodeCodex

Audit foreign-key integrity — missing FKs that allow orphan rows (financial/auth = severity 5), absent or unsafe ON DELETE/ON UPDATE actions, reference cycles, and composite-FK column/order mismatches. Module M3. Feeds both the Design & Integrity (Integridad referencial) and Performance & Scale (Query) scores.

19 2mo ago A 75 tokens original MIT

db-replicas-views

157

Hainrixz/claude-db

Skill Claude CodeCodex

Audit read-scaling correctness — read-your-writes consistency when reads are routed to replicas, and materialized-view staleness / refresh strategy. Module M17. Feeds the Performance & Scale score.

19 2mo ago A 48 tokens original MIT

db-security-access

158

Hainrixz/claude-db

Skill Claude CodeCodex

Audit access control and data protection — Row-Level Security state, PII handling, encryption at-rest and in-transit (TLS / sslmode), and SQL-injection exposure from raw concatenation. Module M10. Feeds the Design & Integrity score.

19 2mo ago A 55 tokens original MIT

db-specialized-fit

159

Hainrixz/claude-db

Skill Claude CodeCodex

Specialized-engine fitness (M20) — checks whether a vector, time-series/OLAP, graph, or search store is configured correctly for its job. M20a vector (dimensions match the embedding model, distance metric matches how the model was trained, HNSW/IVFFlat params present), M20b time-series/OLAP (hypertable/partition fit…

19 2mo ago A 134 tokens original MIT

db-storage-bloat

160

Hainrixz/claude-db

Skill Claude CodeCodex

Audit storage operability — VACUUM / autovacuum health and table-and-index bloat, transaction-ID wraparound risk (sev-5), and tombstone accumulation on wide-column stores. Module M18. Feeds the Performance & Scale score.

19 2mo ago A 56 tokens original MIT

db-temporal-history

161

Hainrixz/claude-db

Skill Claude CodeCodex

Audit temporal and lifecycle modeling — soft-delete consistency and its uniqueness/query traps, presence and integrity of an audit/history trail, and retention / GDPR right-to-erasure handling (hard delete vs anonymization, retention windows). Module M8. Feeds the Design & Integrity score (Temporal category).

19 2mo ago A 63 tokens original MIT

db-types-precision

162

Hainrixz/claude-db

Skill Claude CodeCodex

Audit column types and precision — money stored as float/double (severity 5), naive timestamp vs timestamptz/UTC, jsonb used to evade schema, enum-vs-lookup-table choice, and charset/collation (utf8mb4, case-insensitive collation). Module M4. Feeds the Design & Integrity score (Tipos category).

19 2mo ago A 79 tokens original MIT

design

163

Hainrixz/claude-db

Skill Claude CodeCodex

Greenfield database design — pick the right engine for a new project, compare it against the boring default, and hand back a starter data model with a diagram. Recommendation mode (module M0); never scored, never destructive. Use when the user is starting fresh and asks what database to use, how to model a new app…

19 2mo ago A 81 tokens original MIT

explain

164

Hainrixz/claude-db

Skill Claude CodeCodex

Explain a database schema, model, or a single finding in plain language, with a paradigm-aware diagram — what the tables/collections/keyspaces are, how they relate, and where the data lives. Read-only; teaches, does not change anything. Use when the user asks to explain, describe, walk through, draw, or diagram a…

19 2mo ago A 88 tokens original MIT

fix

165

Hainrixz/claude-db

Skill Claude CodeCodex

Opt-in writer (the /claude-db:fix command). Applies the safe, reversible schema/migration changes from an audit — adding indexes, NOT NULL/CHECK/UNIQUE constraints, missing FKs, type corrections, default/generated columns — as expand-contract migrations. Dry-run preview by default; writes only after explicit…

19 2mo ago A 93 tokens original MIT

introspect

166

Hainrixz/claude-db

Skill Claude CodeCodex

Tier-1 live read-only introspection. Connects to the running database through a DB MCP server's read-class tools (preferred) or a least-privilege read-only connection string, reads catalogs only (no table data, no writes), and upgrades affected findings to confidence established. Enforces the read-only contract; when…

19 2mo ago A 104 tokens original MIT

migrate

167

Hainrixz/claude-db

Skill Claude CodeCodex

Lint a database migration for safety before it runs — classify lock level, table rewrite, and reversibility; flag destructive/blocking operations; and propose an expand-contract rollout. Read-only analysis by default; any data-loss step requires an explicit token handshake before the writer is involved. Use when the…

19 2mo ago A 96 tokens original MIT

next

168

Hainrixz/claude-db

Skill Claude CodeCodex

Coach the user on what to fix first — rank the audit findings into a single, ordered to-do list by score impact and effort, and explain why each item is where it is. Read-only; advises, does not change anything. Use when the user asks what to do next, what to fix first, what matters most, how to prioritize, or where…

19 2mo ago A 80 tokens original MIT