sickn33 avatar

Postgresql Optimization

This is a structured workflow for optimizing PostgreSQL databases, walking you through performance assessment, query analysis with EXPLAIN ANALYZE, indexing strategy, and configuration tuning. It's organized into seven phases that chain together related skills like database-optimizer, sql-optimization-patterns, and postgres-best-practices. The workflow covers the usual suspects: shared_buffers, work_mem, autovacuum settings, and monitoring setup with Grafana. It's most useful if you're dealing with slow queries or need a systematic approach to database tuning rather than random tweaking. The prompts are pretty basic, so you'll need to know what you're looking for, but it keeps you from forgetting steps like scheduling VACUUM or checking table bloat.

skills.sh installs
173
GitHub stars
39.4K
last updated
Jun 3, 2026

Install

$ npx -y skills add sickn33/antigravity-awesome-skills --skill postgresql-optimization --agent claude-code

Installs into .claude/skills of the current project.

Files

PostgreSQL Optimization Workflow

Overview

Specialized workflow for PostgreSQL database optimization including query tuning, indexing strategies, performance analysis, vacuum management, and production database administration.

When to Use This Workflow

Use this workflow when:

  • Optimizing slow PostgreSQL queries
  • Designing indexing strategies
  • Analyzing database performance
  • Tuning PostgreSQL configuration
  • Managing production databases

Workflow Phases

Phase 1: Performance Assessment

Skills to Invoke
  • database-optimizer - Database optimization
  • postgres-best-practices - PostgreSQL best practices
Actions
  1. Check database version
  2. Review configuration
  3. Analyze slow queries
  4. Check resource usage
  5. Identify bottlenecks
Copy-Paste Prompts
Use @database-optimizer to assess PostgreSQL performance

Phase 2: Query Analysis

Skills to Invoke
  • sql-optimization-patterns - SQL optimization
  • postgres-best-practices - PostgreSQL patterns

Sponsors

Details

Repository
github.com/sickn33/antigravity-awesome-skills
Categories
Backend & APIs, Databases
First seen
Jun 3, 2026

More from sickn33/antigravity-awesome-skills

All 708
1him0 avatarfreee-api-skillhim0/freee-mcpfreee api skill159skills.sh installs
2kalil0321 avatarreverse-engineering-apikalil0321/reverse-api-engineerreverse engineering api152skills.sh installs
3webmaxru avatarproofreader-apiwebmaxru/agent-skillsproofreader api152skills.sh installs
4webmaxru avatarlanguage-detector-apiwebmaxru/agent-skillslanguage detector api151skills.sh installs
5webmaxru avatartranslator-apiwebmaxru/agent-skillstranslator api151skills.sh installs
6absolutelyskilled avatardatabase-engineeringabsolutelyskilled/absolutelyskilleddatabase engineering147skills.sh installs