postgresql-data-layer

Community

Production-ready PostgreSQL patterns for Node.js

AuthorAndreaCadonna
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Provides production-focused guidance to design, operate, and evolve PostgreSQL schemas for Node.js/TypeScript backends, reducing data integrity issues, downtime during migrations, and query performance bottlenecks.

Core Features & Use Cases

  • Schema Design & Naming Conventions: Recommended table, column, key, and index naming to keep schema consistent and maintainable.
  • Migrations & Backward Compatibility: Patterns for forward-only, idempotent, and rolling-deploy-safe migrations to enable zero-downtime schema changes.
  • Connection Pooling & Monitoring: Pool sizing guidance, timeouts, and monitoring hooks to avoid exhausting database connections.
  • Query Patterns & Safety: Repository pattern, parameterized queries, and transaction handling examples to prevent injection and ensure atomic updates.
  • Indexing & JSONB Guidance: When to add indexes, partial and concurrent index strategies, and appropriate uses of JSONB versus relational columns.
  • Dual-store Planning: Decision framework for what belongs in PostgreSQL versus Redis (durability vs ephemeral state).

Quick Start

Design a normalized games and game_actions schema, produce migration steps that are backward-compatible, and recommend connection pool and indexing settings for a Node.js/TypeScript backend.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: postgresql-data-layer
Download link: https://github.com/AndreaCadonna/sbobuz-web-game-app/archive/main.zip#postgresql-data-layer

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.