postgres-core-api-surface

Navigate PostgreSQL SQL surface with deterministic schema and query guidance.

Updated May 19, 2026
One-click install
npx skills add https://github.com/Impertio-Studio/PostgreSQL-Claude-Skill-Package --skill postgres-core-api-surface
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: postgres-core-api-surface
Source: https://github.com/Impertio-Studio/PostgreSQL-Claude-Skill-Package/tree/main/skills/source/postgres-core/postgres-core-api-surface
Command: npx skills add https://github.com/Impertio-Studio/PostgreSQL-Claude-Skill-Package --skill postgres-core-api-surface

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides deterministic guidance for navigating PostgreSQL's SQL surface, ensuring accurate schema design, indexing, and query execution.

Core Features & Use Cases

  • SQL Surface Navigation: Efficiently choose between pg_catalog and information_schema for database introspection.
  • Upsert Patterns: Correctly apply INSERT ... ON CONFLICT and MERGE for upsert operations.
  • Transaction Control: Utilize SAVEPOINT for nested transactions and manage isolation levels.
  • psql Meta-commands: Translate psql meta-commands into equivalent SQL queries.
  • Use Case: When writing a complex SQL script, this Skill helps you correctly identify the system catalogs to use, apply upsert patterns for efficient data insertion, and manage transactions to maintain data integrity.

Quick Start

Run the postgres-core-api-surface skill to get insights into PostgreSQL's SQL surface and upsert patterns.

Frequently Asked Questions about postgres-core-api-surface

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

FAQPage Schema
What's the best way to handle upsert operations in PostgreSQL?

PostgreSQL upsert operations are best handled using INSERT ... ON CONFLICT or MERGE patterns. This Skill provides deterministic guidance to correctly implement these statements for efficient data insertion and conflict resolution.

How do I manage nested transactions and isolation levels in PostgreSQL?

Manage PostgreSQL nested transactions by utilizing SAVEPOINT and configuring isolation levels. This Skill delivers deterministic transaction control patterns to maintain data integrity during complex SQL script execution.

When do I need pg_catalog versus information_schema for PostgreSQL introspection?

Choose pg_catalog or information_schema for PostgreSQL introspection based on your metadata querying needs. This Skill navigates the SQL surface to help you efficiently identify the correct system catalog.

Does this PostgreSQL SQL surface guidance support PostGIS and pgvector?

Yes, this PostgreSQL SQL surface guidance supports PostGIS and pgvector. It provides deterministic patterns for schema design, indexing, and query execution across extensions including JSON/JSONB, RLS, and partitioning.

Can I translate psql meta-commands into equivalent SQL queries?

Yes, you can translate psql meta-commands into equivalent SQL queries. This Skill helps convert psql meta-commands into standard SQL statements for database introspection and scripting.

Do I need a specific PostgreSQL version for zero-downtime migrations and RLS patterns?

Yes, you need PostgreSQL 15, 16, or 17. This Skill requires these specific versions to provide deterministic guidance for zero-downtime migrations, RLS, MVCC, and query performance tuning.