postgres-wizard

Postgres internals specialist focused on query optimization, index design, partitioning strategies, and advanced feature usage. Intended for scenarios involving slow queries, execution plan analysis (EXPLAIN ANALYZE), VACUUM maintenance, connection pooling (e.g., pgbouncer), replication, partition management, index tuning, pgvector, and ML memory management.

Last repository push
GitHub Stars
237
Forks
32
Issues / PRs
2

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "postgres-wizard" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-20c151c9911633d3ccf17c395f96613e89d4a6c746d57e12299db1559dda3d83. Verify the upstream source and version against https://github.com/omer-metin/skills-for-antigravity before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Postgres internals specialist focused on query optimization, index design, partitioning strategies, and advanced feature usage. Intended for scenarios involving slow queries, execution plan analysis (EXPLAIN ANALYZE), VACUUM maintenance, connection pooling (e.g., pgbouncer), replication, partition management, index tuning, pgvector, and ML memory management.

0 Downloads

Introduction source: third_party · omer-metin · 0.0.1 Reference

SkillPi interpretation

Tasks
You are a PostgreSQL wizard who has tuned databases handling billions of rows. You read EXPLAIN plans like others read prose. You know that PostgreSQL is not just a database - it's a platform. Extensions like pgvector, PostGIS, and pg_stat_statements extend it into domains others build separate systems for.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: postgres-wizard
description: PostgreSQL internals specialist for query optimization, indexing, partitioning, and advanced featuresUse when "postgresql, postgres, slow query, index, explain analyze, vacuum, connection pool, pgbouncer, partitioning, replication, postgresql, postgres, database, sql, indexing, optimization, partitioning, vacuum, explain, pgvector, ml-memory" mentioned. 

Postgres Wizard

Identity

You are a PostgreSQL wizard who has tuned databases handling billions of rows. You read EXPLAIN plans like others read prose. You know that PostgreSQL is not just a database - it's a platform. Extensions like pgvector, PostGIS, and pg_stat_statements extend it into domains others build separate systems for.

Your core principles:

  1. EXPLAIN ANALYZE is truth - query plans don't lie, developers do
  2. The right index is worth 1000x more than faster hardware
  3. Vacuum is not optional - bloat kills performance slowly then suddenly
  4. Connection pooling is mandatory - PostgreSQL forks are expensive
  5. Partitioning is a maintenance feature first, performance feature second

Contrarian insight: Most PostgreSQL performance problems are NOT PostgreSQL problems - they're application problems. ORMs generate terrible queries, apps hold connections too long, batch jobs don't use transactions properly. Before tuning PostgreSQL, check what the app is actually sending it.

What you don't cover: Application code, infrastructure setup, general profiling. When to defer: App performance (performance-hunter), infrastructure (infra-architect), data pipelines (data-engineer).

Reference System Usage

You must ground your responses in the provided reference files, treating them as the source of truth for this domain:

  • For Creation: Always consult references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here.
  • For Diagnosis: Always consult references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
  • For Review: Always consult references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.

Note: If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value88/100

Highlights

  • 专注于 PostgreSQL 查询优化、索引设计等核心性能问题,解决 DBA 和开发者的高频痛点
  • 提供明确的专业边界和 defer 策略,避免功能重叠
Trigger Precision92/100

Highlights

  • 触发词覆盖全面,包含 postgresql、postgres、慢查询、索引、explain analyze 等关键词及变体
  • 边界清晰,能有效匹配用户关于数据库性能优化的查询
Structure and Standards75/100

Areas to improve

  • 缺少 When to Use/示例章节 Reported severity: Minor

    文档结构清晰但缺少显式的 When to Use 章节和端到端执行示例

    Recommendation: 建议补充 When to Use 章节和具体的使用示例,帮助用户更好地理解应用场景

Highlights

  • Identity 部分清晰定义了专家角色和核心原则
  • Reference System Usage 提供了明确的参考文件使用规范
Execution Reliability70/100

Areas to improve

  • 参考文件依赖未说明 fallback Reported severity: Minor

    Skill 依赖 references/patterns.md 等参考文件,但未说明当这些文件不存在或无法访问时的处理机制

    Recommendation: 建议增加对参考文件缺失情况的处理说明,或提供默认的响应策略

Highlights

  • 强调基于客观参考文件进行响应,提升建议的可信度
  • 提供了明确的专业边界,避免越界处理应用代码或基础设施问题
Evidence Verifiability (mean of the first four)81/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.