CtrlK
BlogDocsLog inGet started
Tessl Logo

postgres-pro

Use when optimizing PostgreSQL queries, configuring replication, or implementing advanced database features. Invoke for EXPLAIN analysis, JSONB operations, extension usage, VACUUM tuning, performance monitoring.

98

1.02x
Quality

100%

Does it follow best practices?

Impact

97%

1.02x

Average score across 6 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

96%

Slow E-Commerce Reporting Dashboard

Query optimization with EXPLAIN and index strategy

Criteria
Without context
With context

EXPLAIN full options

66%

66%

Expression index for LOWER()

100%

100%

Partial index for status filter

100%

100%

Correct index type rationale

100%

100%

No SELECT * in rewrites

100%

100%

ANALYZE after bulk migration

100%

100%

Increased statistics target

100%

100%

Monitoring query provided

100%

100%

Performance impact comment

100%

100%

Index on join column

100%

100%

No index without analysis

100%

100%

93%

10%

Flexible Product Catalog with Search and Filtering

JSONB schema design and indexing

Criteria
Without context
With context

JSONB not JSON

100%

100%

GIN index created

100%

100%

jsonb_path_ops used

0%

100%

Generated column for status

100%

100%

Containment operator (@>) used

100%

100%

No BLOBs in database

100%

100%

No JSON type justification absent

100%

100%

Status field separate index

100%

100%

Index type comment/rationale

100%

100%

No huge arrays warning

0%

0%

No SELECT * in queries

100%

100%

100%

Database Health Dashboard for a High-Traffic SaaS Platform

Database health monitoring and maintenance

Criteria
Without context
With context

pg_stat_statements query

100%

100%

Cache hit ratio check

100%

100%

Dead tuple monitoring

100%

100%

Replication lag query

100%

100%

XID wraparound check

100%

100%

Idle-in-transaction detection

100%

100%

REINDEX CONCURRENTLY

100%

100%

Per-table autovacuum tuning

100%

100%

No global autovacuum disable

100%

100%

UUID type for api_keys

100%

100%

UUID type comment

100%

100%

98%

-2%

Setting Up a PostgreSQL High-Availability Standby

Streaming replication setup and lag monitoring

Criteria
Without context
With context

wal_level = replica

100%

100%

WAL archiving configured

100%

100%

Replication slot created

100%

80%

pg_basebackup -R flag

100%

100%

pg_basebackup -X stream

100%

100%

Slot name in pg_basebackup

100%

100%

primary_conninfo in standby config

100%

100%

pg_stat_replication lag query

100%

100%

Standby lag query

100%

100%

Lag alert threshold

100%

100%

Replication slot monitoring

100%

100%

100%

Building a Hybrid Search System for a Knowledge Base

pgvector and pg_trgm extension setup for search

Criteria
Without context
With context

pgvector extension enabled

100%

100%

HNSW index used

100%

100%

Cosine distance operator class

100%

100%

Cosine distance in search query

100%

100%

pg_trgm extension enabled

100%

100%

Trigram GIN index

100%

100%

Fuzzy similarity query

100%

100%

maintenance_work_mem before bulk import

100%

100%

ANALYZE after bulk import

100%

100%

random_page_cost for SSD

100%

100%

effective_io_concurrency for SSD

100%

100%

100%

8%

Hardening a High-Traffic Web Application Database Layer

Connection pooling, SQL injection prevention, and non-locking index creation

Criteria
Without context
With context

pgBouncer pool_mode = transaction

100%

100%

pgBouncer max_client_conn

100%

100%

pgBouncer default_pool_size

0%

100%

Parameterized customer lookup

100%

100%

Parameterized order update

100%

100%

Parameterized date range query

100%

100%

No SELECT * in safe_queries

100%

100%

CREATE INDEX CONCURRENTLY for all indexes

100%

100%

Partial index for pending transactions

100%

100%

EXPLAIN before index creation

100%

100%

EXPLAIN after index creation

100%

100%

Repository
jeffallan/claude-skills
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.