Writes and reviews PostgreSQL schemas, queries, migrations, and Drizzle ORM code. Covers relations, indexing, pooling, and query performance.
Ships in ccheney-robust-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.
Match database work to the project's installed API and deployment context. The user's explicit instructions take precedence over this skill's guidelines.
Use the relevant schema/query, migration history, and requested behavior as input. For Drizzle code, inspect installed drizzle-orm/drizzle-kit versions and the driver; for SQL, establish the PostgreSQL version when a version-specific feature matters.
The references cover PostgreSQL 17/18 and distinguish Drizzle's 0.x relations() API from the v1 defineRelations() API. Do not mix them or infer the installed API from an npm dist-tag. When the version is unknown, use imports/lockfiles or ask for the missing version before giving version-dependent code.
push. Authoring or reviewing SQL does not itself require executing it against a database. Continue execution when the user has already authorized that target and action.EXPLAIN ANALYZE as query execution, including writes. Use a suitable test target or non-executing plan when execution is outside the task.Deliver the requested SQL/code, migration, or diagnosis, with compatibility assumptions and relevant verification. If execution is requested but the target is missing, prepare the change and ask only for that missing target.
Read the topic required for the current operation.
| Task | Reference |
|---|---|
| Tables, types, constraints, indexes, generated columns | SCHEMA.md |
| Reads, writes, joins, transactions, prepared queries | QUERIES.md |
| Relationships and version-specific relational query APIs | RELATIONS.md |
| drizzle-kit configuration, migration generation and rollout | MIGRATIONS.md |
| PostgreSQL features, RLS, partitioning, JSONB, full-text search | POSTGRES.md |
| Query plans, indexing, pooling, pagination, bulk work | PERFORMANCE.md |
| Compact syntax or connection setup lookup | CHEATSHEET.md |
For APIs or support not established by the installed project and references, consult version-matched Drizzle and PostgreSQL documentation.
references/CHEATSHEET.md (opens in a new tab)references/MIGRATIONS.md (opens in a new tab)references/PERFORMANCE.md (opens in a new tab)references/POSTGRES.md (opens in a new tab)references/QUERIES.md (opens in a new tab)references/RELATIONS.md (opens in a new tab)references/SCHEMA.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
postgresql, drizzle-orm, database-schema, migrations, query-performance
/ccheney-robust-skills:postgres-drizzlefrom ccheney-robust-skills
ccheney-robust-skills@cascade-code-general-misc-1 is listed by joshuarweaver/cascade-code-general-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-1 --plugin ccheney-robust-skills11 skills in this plugin
/bazelConfigure and troubleshoot Bazel builds. Use when editing BUILD or MODULE.bazel files, writing Starlark, diagnosing target, cache, or CI failures, or adopting or upgrading Bazel./clean-ddd-hexagonalDesign or review backend domain and dependency boundaries using DDD, Clean Architecture, and ports/adapters. Use for aggregate modeling, bounded contexts, use-case isolation, or architecture refactoring; not routine CRUD changes./feature-slicingOrganize frontend code with Feature-Sliced Design (FSD). Use when adopting FSD, placing code in an existing FSD project, or fixing slice imports and public APIs; not for every new component or page./mermaid-diagramsCreate or fix Mermaid diagrams in Markdown. Use for requested flowcharts, sequence diagrams, ER diagrams, state machines, or system diagrams when Mermaid is the output format; not every visualization or explanation./modern-cssImplement or debug CSS layouts, responsive styles, themes, and motion. Use when choosing native CSS features or replacing legacy styling with browser-compatible CSS; not for unrelated frontend logic./modern-javascriptImplement or debug JavaScript language behavior, including promise completion, async iteration, mutation, and runtime compatibility. Use for ECMAScript semantics or polyfill/transform choices; not unrelated framework or TypeScript type design.Other plugins' skills for the same job