PostgreSQL

Provide patterns for PostgreSQL querying, indexing, and schema migrations.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/bennie-ng/AgCel --skill postgresql-bennie-ng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: PostgreSQL
Source: https://github.com/bennie-ng/AgCel/tree/main/skills/postgresql
Command: npx skills add https://github.com/bennie-ng/AgCel --skill postgresql-bennie-ng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users manage and optimize PostgreSQL databases by providing patterns for common operations, indexing strategies, and migration techniques.

Core Features & Use Cases

  • Querying: Write efficient SQL queries for data retrieval and manipulation.
  • Indexing: Create and manage indexes to improve query performance.
  • Migrations: Implement database schema changes safely using SQL commands.
  • Optimization: Understand best practices and common pitfalls for database performance.

Quick Start

Use the PostgreSQL skill to create an index on the 'email' column of the 'users' table.

Frequently Asked Questions about PostgreSQL

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

FAQPage Schema
How do I create an index in PostgreSQL to improve query performance?

PostgreSQL indexing strategies involve creating indexes on specific table columns to accelerate data retrieval. This technique improves query performance by allowing the database engine to locate data faster without scanning entire tables.

What is the best way to write efficient SQL queries for data manipulation?

The best way to write efficient SQL queries is to follow PostgreSQL-specific best practices and avoid common pitfalls. Efficient querying requires understanding SQL syntax and applying performance optimization patterns during data retrieval and manipulation.

How do I safely implement database schema migrations in PostgreSQL?

Safely implement database schema migrations in PostgreSQL by using specific SQL commands to apply changes. This migration technique ensures schema modifications are executed properly without disrupting database operations or losing existing data.

What are common PostgreSQL performance pitfalls I should avoid?

Common PostgreSQL performance pitfalls include inefficient query structures and improper indexing. Avoiding these issues requires understanding database optimization patterns and applying best practices to ensure queries and schema migrations perform effectively.

Do I need to know advanced SQL syntax to use PostgreSQL optimization patterns?

Yes, effective implementation of PostgreSQL optimization patterns requires an existing understanding of SQL syntax. You need knowledge of PostgreSQL-specific features to properly apply indexing strategies and execute schema migrations.