postgres-patterns

Review PostgreSQL query performance, indexing, data types, and RLS configurations.

1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Michae2xl/claude-skills-michael --skill postgres-patterns-michae2xl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres-patterns
Source: https://github.com/Michae2xl/claude-skills-michael/tree/main/skills/postgres-patterns
Command: npx skills add https://github.com/Michae2xl/claude-skills-michael --skill postgres-patterns-michae2xl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a quick reference for PostgreSQL best practices to enhance your database performance, schema design, indexing, and security.

Core Features & Use Cases

  • Optimize Query Performance: Offers guidelines for indexing, query patterns, and query planning to speed up SQL operations.
  • Schema Design Best Practices: Provides guidance on choosing the right data types and structuring database schemas efficiently.
  • Security & Row Level Security (RLS): Informs on setting up and implementing RLS to protect sensitive data and enforce access control.
  • Troubleshooting & Monitoring: Helps diagnose slow queries and bloat through practical checks.

Quick Start

Utilize the 'database-reviewer' agent for in-depth guidance. Activate 'postgres-patterns' when writing SQL, designing schemas, troubleshooting slow queries, or setting up security policies.

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 query performance?

To optimize PostgreSQL query performance, you should apply indexing strategies, review query patterns, and analyze query planning. This Skill provides guidelines for these tasks to speed up SQL operations.

What's the best way to set up Row Level Security in PostgreSQL?

The best way to set up Row Level Security (RLS) in PostgreSQL is by implementing policies to protect sensitive data and enforce access control. This Skill informs on setting up RLS configurations.

How do I choose the right data types for PostgreSQL schema design?

Choosing the right data types for PostgreSQL schema design requires guidance on structuring schemas efficiently. This Skill provides best practices for selecting appropriate data types.

Do I need prior PostgreSQL experience to use these database optimization patterns?

Yes, you need familiarity with PostgreSQL and related best practices to use these database optimization patterns effectively. This Skill requires existing knowledge of the platform.

How can I troubleshoot slow queries and bloat in a PostgreSQL database?

To troubleshoot slow queries and bloat in a PostgreSQL database, you can run practical diagnostic checks. This Skill helps diagnose performance issues through monitoring guidelines.