expert-postgres

Design and optimize PostgreSQL schemas and queries using EXPLAIN ANALYZE.

Updated May 16, 2026
One-click install
npx skills add https://github.com/ricardops34/rcg-crm --skill expert-postgres
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: expert-postgres
Source: https://github.com/ricardops34/rcg-crm/tree/main/legado/.agents/skills/expert-postgres
Command: npx skills add https://github.com/ricardops34/rcg-crm --skill expert-postgres

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you design and optimize PostgreSQL databases when performance, concurrency, and advanced data modeling requirements make plain SQL insufficient.

Core Features & Use Cases

  • Advanced PostgreSQL modeling: Leverages PostgreSQL capabilities such as CTEs, Window Functions, Partial Indexes, and JSONB to model complex domains accurately.
  • Query and performance tuning: Uses EXPLAIN ANALYZE to pinpoint bottlenecks and guide indexing or query rewrites for better read/write efficiency.
  • Production-grade DBA guidance: Recommends correct concurrency considerations with MVCC and practical maintenance like VACUUM and ANALYZE, using PL/pgSQL only when persistence/performance demands it.

Quick Start

Ask an AI to review your PostgreSQL schema and queries for advanced modeling and performance improvements, including suggested indexes and MVCC-aware design changes.

Frequently Asked Questions about expert-postgres

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

FAQPage Schema
How do I optimize slow PostgreSQL queries using EXPLAIN ANALYZE?

PostgreSQL query performance tuning uses EXPLAIN ANALYZE to pinpoint bottlenecks and guide indexing or query rewrites for better read and write efficiency. This evidence-based approach targets complex analytic query development directly.

What is the best way to model complex data using PostgreSQL JSONB storage patterns?

PostgreSQL JSONB storage patterns leverage advanced schema modeling to accurately represent complex domains. This approach solves advanced data modeling requirements when plain SQL structures are insufficient for production workloads.

When do I need MVCC-aware recommendations for PostgreSQL concurrency?

You need MVCC-aware recommendations for PostgreSQL concurrency when bottlenecks arise from concurrent transactions. It provides correct concurrency considerations for production-grade database design and safe maintenance guidance.

Does PL/pgSQL work well for performance-heavy PostgreSQL database tasks?

PL/pgSQL works well for performance-heavy PostgreSQL tasks when persistence or performance demands it. It is recommended only when necessary for complex PL/pgSQL decision-making across production database workloads.

How do I use partial indexes and window functions for PostgreSQL schema design?

Use partial indexes and window functions for PostgreSQL schema design to leverage advanced database constructs. This approach models complex domains accurately and improves read and write efficiency across production workloads.