postgres-patterns

Diagnose PostgreSQL performance, schema, and security configuration issues.

Updated May 9, 2026
One-click install
npx skills add https://github.com/RambleRainbow/jd --skill postgres-patterns-ramblerainbow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres-patterns
Source: https://github.com/RambleRainbow/jd/tree/main/.claude/skills/postgres-patterns
Command: npx skills add https://github.com/RambleRainbow/jd --skill postgres-patterns-ramblerainbow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates common PostgreSQL performance bottlenecks, poorly designed schemas, and security misconfigurations that lead to slow queries, data inconsistencies, and unauthorized access risks.

Core Features & Use Cases

  • Query & Index Optimization: Provides index cheat sheets and anti-pattern detection queries to speed up slow database operations.
  • Schema Design Guidance: Includes data type best practices and composite index rules to build scalable, efficient database structures.
  • Security & Configuration Templates: Offers optimized Row Level Security policy templates and safe default configuration settings to protect sensitive data.
  • Use Case: When building a user-facing SaaS application, use this skill to design proper indexes for user lookup queries and implement Row Level Security to ensure users can only access their own data.

Quick Start

Use the postgres-patterns skill to review your existing users table schema and suggest optimized indexes for your most common query patterns.

Frequently Asked Questions about postgres-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize slow PostgreSQL queries?

PostgreSQL index selection cheat sheets help you choose the right indexes to speed up slow queries. This skill provides anti-pattern detection queries and reusable SQL templates to resolve database performance bottlenecks efficiently.

What are the best practices for PostgreSQL schema design?

PostgreSQL schema design best practices involve following data type guidelines and composite index rules to build scalable structures. This skill offers specific guidance to prevent data inconsistencies and ensure efficient database layouts.

How do I implement Row Level Security in PostgreSQL?

Implementing Row Level Security in PostgreSQL uses optimized policy templates to restrict unauthorized access to sensitive data. This skill provides production-ready configuration settings to enforce strict data access boundaries securely.

What is the best way to configure connection pooling for a SaaS database?

Configuring connection pooling for a SaaS database requires production-ready default settings to manage concurrent connections safely. This skill supplies optimized configuration templates to meet PostgreSQL operational best practices for multi-tenant applications.

Why does my PostgreSQL query ignore indexes and perform a sequential scan?

PostgreSQL queries ignore indexes and perform sequential scans due to anti-patterns in SQL writing or incorrect index selection. This skill helps detect these anti-patterns and provides index cheat sheets to correct query execution plans.