pluginagentmarketplace/custom-plugin-postgresql · Archived

postgresql-performance

Optimize PostgreSQL performance - EXPLAIN ANALYZE, indexing, query tuning

First seen Feb 10, 2026

Installation

$ npx skills add pluginagentmarketplace/custom-plugin-postgresql --skill postgresql-performance

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from pluginagentmarketplace/custom-plugin-postgresql · top by installs.

npx skills add pluginagentmarketplace/custom-plugin-postgresql

Browse all from pluginagentmarketplace/custom-plugin-postgresql

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version3.0.0

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,900 B
  • docs SUMMARY.md 103 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

PostgreSQL Performance Skill

Atomic skill for query optimization

Overview

Production-ready patterns for EXPLAIN analysis, index design, and configuration tuning.

Prerequisites

  • PostgreSQL 16+
  • pgstatstatements extension

Parameters

parameters:
  operation:
    type: string
    required: true
    enum: [analyze_query, create_index, tune_config, diagnose]
  target_time_ms:
    type: integer
    default: 100

Quick Reference

EXPLAIN Commands

EXPLAIN (ANALYZE, BUFFERS) SELECT * FROM users WHERE email = '[email protected]';

Index Types

Use Case Type Example
Equality B-tree CREATE INDEX idx ON t(col)
JSONB GIN USING GIN(data jsonbpathops)
Time-series BRIN USING BRIN(created_at)

Key Metrics

Metric Healthy Warning
Seq Scan rows < 10K > 100K
Buffer hit > 99% < 95%
Planning time < 10ms > 100ms

Diagnostic Queries

-- Slow queries
SELECT query, mean_exec_time FROM pg_stat_statements ORDER BY mean_exec_time DESC LIMIT 10;

-- Unused indexes
SELECT indexrelname, idx_scan FROM pg_stat_user_indexes WHERE idx_scan = 0;

-- Table bloat
SELECT tablename, n_dead_tup FROM pg_stat_user_tables WHERE n_dead_tup > 10000;

Troubleshooting

Problem Cause Solution
Seq Scan Missing index Create index
High buffer reads Cold cache Increase shared_buffers
Wrong estimates Stale stats Run ANALYZE

Usage

Skill("postgresql-performance")