6 skills · category
Databases skills for Claude Code
Skills for schema design, query plans, indexes, zero-downtime migrations, transactions and locking, row-level security, backups that restore, and the specifics of Postgres, Prisma, Drizzle, MongoDB, Redis, SQLite, ClickHouse and DuckDB.
curl -fsSL claudeskills.page/install.sh \
| sh -s -- --category databases
- connection-pooling
- postgres-indexing
- postgres-schema-design
- row-level-security
- schema-migrations
- sqlalchemy-orm
+ 17 more databases skills
Done. 23 skills ready · run /skills to confirm
6 Databases skills with a full page
Each card opens the full playbook, example prompts and install commands.
Connection Pooling
Pools sized to database cores, not request counts
Claude writes down every process that connects and sums its maximum connections against the database limit at full autoscale before touching a setting. Pools are sized from database parallelism, PgBouncer transaction mode is configured with its session-state caveats and prepared statement support, serverless platforms get a proxy, and exhaustion is diagnosed from pg_stat_activity and SHOW POOLS.
Postgres Indexing
Every index justified by a plan, every drop by data
Claude designs the narrowest index that serves a named query: equality columns before range columns, partial predicates for queue and soft-delete tables, INCLUDE columns for index-only scans, trigram GIN for ILIKE search. Builds run CONCURRENTLY with a lock timeout and an invalid-index check, and a diagnostic SQL catalog finds unused, duplicate and FK-missing indexes before any drop.
Postgres Schema Design
Tables where bad data simply cannot land
Claude designs tables from the queries they must serve, then picks a precise type for every column: timestamptz over timestamp, integer cents over floats, identity or UUIDv7 keys. Rules go into NOT NULL, CHECK, UNIQUE and foreign keys with an explicit ON DELETE, foreign keys get indexes, and JSONB is reserved for genuinely variable data. Reviews end with a blocking/should-fix note.
Postgres Row-Level Security
Tenant isolation the database enforces and tests prove
Claude sets up RLS so it cannot be bypassed by accident: a runtime role without BYPASSRLS that does not own the tables, ENABLE plus FORCE on every tenant table, and tenant context passed per transaction with set_config so poolers never leak it. It closes the side doors through views, SECURITY DEFINER functions and foreign keys, and writes SQL tests that fail when one tenant can see another.
Zero-Downtime Migrations
Change live tables without a maintenance window
Claude splits risky schema changes into expand, backfill and contract phases that each work with old and new code running side by side. Every ALTER runs with lock_timeout, constraints go in NOT VALID and get validated separately, backfills run as resumable batches outside the DDL, and drops wait for a later deploy and your sign-off. You get a phase-by-phase plan with locks and rollback per step.
SQLAlchemy ORM
Typed models, owned sessions, loads you chose on purpose
Makes Claude write SQLAlchemy 2.x the way it is meant to be used: Mapped and mapped_column models with named constraints, one Session per request or task with short transactions, select() queries with deliberate selectinload or joinedload, and lazy="raise" to catch accidental lazy loads. It also reviews Alembic autogenerate output for the renames and enum changes it misses, and sets up rollback-per-test fixtures.
17 more in the installer
These install with --category databases, the category zip or by name, but don't have a page of their own yet. Each is the same kind of complete SKILL.md playbook.
backup-restore- Backups count only after a timed restore
clickhouse-analytics- Sorting keys that skip 99% of granules
drizzle-orm- Typed SQL, reviewed migrations, zero drift
duckdb-analytics- SQL over Parquet and CSV files, no warehouse needed
dynamodb-modeling- Keys designed from queries, not from entity diagrams
elasticsearch-search- Explicit mappings, measured relevance, sane shards
mongodb-modeling- Model documents for reads, not for an ERD
mysql-tuning- Fix the top digests, keep replicas caught up
neo4j-graphs- Graph models anchored on indexes, traversals bounded
postgres-full-text-search- Real search in the database you already run
postgres-jsonb- Flexible documents without giving up indexes
prisma-orm- Read the SQL Prisma writes before it hits prod
redis-patterns- Caches, limits and locks that survive a flush
sql-query-tuning- Find the slow plan node, fix the estimate behind it
sqlite-local-first- One file, real pragmas, no more database is locked
timescale-timeseries- Hypertables, rollups and retention sized to your ingest
transactions-locking- Name the race, pick the lock, prove it under load
Choosing Databases skills
Install the skills that match requests you make every week. Each one's name and description cost about 140 tokens on every turn, and Claude Code's skill listing holds roughly 14 of them on a 200K-token model before it starts dropping descriptions.
Start with
- Zero-Downtime MigrationsChange live tables without a maintenance window
- Connection PoolingPools sized to database cores, not request counts
- Postgres IndexingEvery index justified by a plan, every drop by data
Background reading
By technology
Install
Every Databases skill in one command
Installs all 23 into ~/.claude/skills/. Add --project after -- to install into the current repository instead.
Their descriptions add about 3,240 tokens to every turn, about 1.6× Claude Code's skill listing budget on a 200K-token model, so most of them would lose their descriptions. Listing the few you use is usually better. How many skills fit
The installer is a 101-line POSIX shell script. It downloads each skill you name from claudeskills.page and unpacks it into your skills folder, nothing else: no sudo, no telemetry. Every skill page shows the full SKILL.md, so you can read what you install first. Read install.sh
All 23 Databases skills
curl -fsSL https://claudeskills.page/install.sh \
| sh -s -- --category databases Only the ones you want: list their names
curl -fsSL https://claudeskills.page/install.sh \
| sh -s -- connection-pooling postgres-indexing Databases skills FAQ
Short answers about installing and using these skills. For the details, read the install guide.
How do I install every Databases skill at once?
Run curl -fsSL https://claudeskills.page/install.sh | sh -s -- --category databases to install all 23 into ~/.claude/skills/, adding --project to install into the current repository. Or download the bundle at https://claudeskills.page/downloads/category/databases.zip and unzip it yourself. To pick a few, pass their names instead: curl -fsSL https://claudeskills.page/install.sh | sh -s -- connection-pooling postgres-indexing postgres-schema-design.
Will installing all 23 Databases skills slow Claude Code down?
It won't slow responses, but it overflows the skill listing. Their names and descriptions add about 3,240 tokens to every turn, about 1.6 times Claude Code's listing budget on a 200K-token model, which is 1% of the context window. Past the budget, Claude Code drops the descriptions of the skills you invoke least, and a skill without its description rarely triggers on its own. Install the few you will use, or set the rest to "name-only" in skillOverrides so they stay available as /name.
Which Databases skill should I start with?
Start with Zero-Downtime Migrations, Connection Pooling, Postgres Indexing. They cover the most common requests in this category; add the rest as your work calls for them.
Collections with Databases skills
Explore other categories
- Claude Code Mastery
- Engineering Workflow
- Frontend
- Backend & APIs
- Languages
- Testing
- DevOps & SRE
- Cloud Platforms
- Data Engineering
- AI Engineering
- Security
- Performance
- Mobile
- Design & UX
- Documents & Files
- Technical Writing
- Integrations
- SEO & Growth
- Game Development
- Embedded & IoT
- Product Management
- Research & Analysis
- Automation & Tooling