PostgreSQL Development Standards

•
45
•

Enforces strict transaction safety, type-safe schema designs, and robust PostgreSQL naming conventions for reliable database architecture.

This skill provides a comprehensive set of development patterns for PostgreSQL designed to prevent data corruption and runtime errors. It introduces the 'TX_' prefix naming convention to strictly manage transaction boundaries, mandates the use of ULIDs for secure and sortable primary keys, and ensures financial precision using exact decimal types. By enforcing read-write separation and typed JSONB columns, it helps Claude maintain high-integrity codebases, particularly when working with TypeScript and the Drizzle ORM.

Características Principales

01ULID primary key standards for time-sortable, secure identification
02Proactive indexing rules for foreign keys and common query filters
03TX_ prefix enforcement to distinguish transaction-starting methods from participants
04Strict numeric/decimal typing for financial data to prevent rounding errors
0545 GitHub stars
06Mandatory type-safe JSONB definitions to avoid undefined property access

Casos de Uso

01Refactoring legacy database access code to ensure proper transaction wrapping
02Designing new database schemas that require high concurrency and data integrity
03Implementing type-safe PostgreSQL interactions within TypeScript/Drizzle environments