postgresql

Design and validate PostgreSQL 18 schemas and SQL for production workloads.

15|2|Updated May 23, 2026
One-click install
npx skills add https://github.com/VKirill/antigravity-for-claude-code --skill postgresql-vkirill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgresql
Source: https://github.com/VKirill/antigravity-for-claude-code/tree/main/skills/postgresql
Command: npx skills add https://github.com/VKirill/antigravity-for-claude-code --skill postgresql-vkirill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents slow, fragile, or insecure PostgreSQL designs by guiding you to use PostgreSQL 18 best practices for schema, SQL, performance, and production safety.

Core Features & Use Cases

  • Production-grade schema & SQL: Model data with correct types (e.g., timestamptz, jsonb, numeric), constraints, and safe defaults while staying ORM-agnostic for raw SQL workflows.
  • Performance diagnostics & indexing: Interpret EXPLAIN ANALYZE plans and choose correct indexes (B-tree, partial, expression, GIN/GiST/BRIN), including PG18 skip-scan behavior.
  • High-stakes production hardening: Apply reliable transaction/locking patterns, RLS-based multi-tenancy, pooling/timeouts, and verified troubleshooting flows for common failure modes.

Quick Start

Ask the Skill to generate a PostgreSQL 18 schema and the matching indexes and RLS policies for a multi-tenant SaaS, then verify the slow-query plan with EXPLAIN ANALYZE.

Frequently Asked Questions about postgresql

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

FAQPage Schema
How do I design a PostgreSQL 18 schema with RLS for multi-tenant SaaS?

To design a PostgreSQL 18 schema with RLS for multi-tenant SaaS, model data with correct types and constraints, then apply row-level security policies to isolate tenant data. This ensures production systems remain correct and secure under real workloads.

What is the best way to tune indexes and interpret EXPLAIN ANALYZE plans in PostgreSQL?

The best way to tune indexes in PostgreSQL is to interpret EXPLAIN ANALYZE plans and select correct indexes like B-tree, partial, expression, or GIN/GiST/BRIN. This includes leveraging PostgreSQL 18 skip-scan B-tree behavior for performance troubleshooting.

Does PostgreSQL 18 support uuidv7 and virtual generated columns?

PostgreSQL 18 supports uuidv7 and virtual generated columns for schema modeling. Using these features during raw SQL authoring ensures production systems remain correct and performant under real workloads.

How do I apply transaction and locking patterns for high-stakes PostgreSQL production hardening?

To apply transaction and locking patterns for PostgreSQL production hardening, use reliable transaction flows, configure pooling and timeouts, and follow verified troubleshooting guardrails. This prevents slow or fragile production database designs.

When do I need temporal constraints and async I/O in PostgreSQL 18?

You need temporal constraints and async I/O in PostgreSQL 18 when optimizing schema correctness and performance under real workloads. These features maintain correct, secure, and performant production systems.

Why does my PostgreSQL 18 slow-query plan need troubleshooting guardrails?

Your PostgreSQL 18 slow-query plan needs troubleshooting guardrails because high-stakes production environments require verified flows to prevent fragile designs. Interpreting EXPLAIN ANALYZE ensures performance issues are reliably resolved.