/db-architect-skills:postgres-best-practicesfrom db-architect-skills
Postgres and Supabase performance rules: missing or wrong indexes, connection pooling, RLS performance, locking, pagination, N+1, vacuum. Read when a Postgres query is slow or when reviewing queries and schema for performance.
Ships in db-architect-skills. 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.
Thirty rule files, each with a wrong and a right SQL example. Read only the files that match the problem.
| Problem area | Prefix | Start with |
|---|---|---|
| Slow queries, index choice | rules/query-* | query-missing-indexes.md, query-composite-indexes.md |
| Too many connections, serverless | rules/conn-* | conn-pooling.md, conn-limits.md |
| Row-Level Security, privileges | rules/security-* | security-rls-performance.md |
| Types, keys, FK indexes, partitioning | rules/schema-* | schema-foreign-key-indexes.md |
| Deadlocks, long transactions, queues | rules/lock-* | lock-short-transactions.md, lock-skip-locked.md |
| Pagination, upsert, batch insert, N+1 | rules/data-* | data-pagination.md, data-n-plus-one.md |
| Diagnosing | rules/monitor-* | monitor-explain-analyze.md, monitor-pg-stat-statements.md |
| JSONB, full-text | rules/advanced-* |
rules/_sections.md lists every rule with a one-line summary.
EXPLAIN (ANALYZE, BUFFERS) on the slow query. Do not guess from the SQL alone.pg_stat_statements for the top queries by total time if available.README.md (opens in a new tab)metadata.json (opens in a new tab)rules/_contributing.md (opens in a new tab)rules/_sections.md (opens in a new tab)rules/_template.md (opens in a new tab)rules/advanced-full-text-search.md (opens in a new tab)rules/advanced-jsonb-indexing.md (opens in a new tab)rules/conn-idle-timeout.md (opens in a new tab)rules/conn-limits.md (opens in a new tab)rules/conn-pooling.md (opens in a new tab)rules/conn-prepared-statements.md (opens in a new tab)rules/data-batch-inserts.md (opens in a new tab)rules/data-n-plus-one.md (opens in a new tab)rules/data-pagination.md (opens in a new tab)rules/data-upsert.md (opens in a new tab)rules/lock-advisory.md (opens in a new tab)rules/lock-deadlock-prevention.md (opens in a new tab)rules/lock-short-transactions.md (opens in a new tab)rules/lock-skip-locked.md (opens in a new tab)rules/monitor-explain-analyze.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/database-adminDatabase operations: backups and restore testing, roles and privileges, destructive commands, maintenance. Read when the task touches a running database rather than its schema design./database-architectChoosing a database and ORM, planning scaling, sharding, caching or replication. Entry point for greenfield data-layer design and for architecture-level audits of an existing system./database-designSchema modeling and schema review: tables, keys, relationships, constraints, indexes, normalization. Use when designing a new schema or auditing an existing one for integrity and performance problems./database-migrationChanging a live database schema safely: zero-downtime column renames and type changes, backfills, rollbacks, moving between databases or ORMs. Read before writing any migration against a database that has data./drizzle-orm-expertDrizzle ORM: schema.ts review, drizzle-kit migration workflow, relational queries, serverless drivers. Read when the project contains drizzle.config.ts./nosql-expertDynamoDB, Cassandra/ScyllaDB and MongoDB data modeling: access-pattern-first design, partition keys, single-table design. Read when designing or auditing a NoSQL schema, or when deciding whether NoSQL fits at all.Other plugins' skills for the same job
Generated from the plugin's indexed repository (mulosbron/db-architecture-skills) — no native marketplace selected
npx claudepluginhub p/mulosbron-db-architect-skills