pg-performance-baseline

pg-performance-baseline is a skill for Claude Code, Codex from isdaniel/pgtuner_mcp. It costs 46 tokens per session (2,983 once invoked), scanned A, original, Apache-2.0.

A tool for recording a detailed snapshot of PostgreSQL database health and performance. PostgreSQL is a database system used to store and query application data.

In plain words
What is it for?
Use it to capture health checks, query patterns, table and index statistics, configuration values, and disk activity before a migration or performance change.
Why use it?
It creates a before-and-after reference when changing database settings, schemas, indexes, or infrastructure.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to capture health checks, query patterns, table and index statistics, configuration values, and disk activity before a migration or performance change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/isdaniel/pgtuner_mcp/pg-performance-baseline
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add isdaniel/pgtuner_mcp --skill pg-performance-baseline
Clone the repo
git clone --depth 1 https://github.com/isdaniel/pgtuner_mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pg-performance-baseline

README.md
[![agentmods](https://agentmods.dev/badge/skills/isdaniel/pgtuner_mcp/pg-performance-baseline/github.svg)](https://agentmods.dev/skills/isdaniel/pgtuner_mcp/pg-performance-baseline)
Your own site
<a href="https://agentmods.dev/skills/isdaniel/pgtuner_mcp/pg-performance-baseline"><img src="https://agentmods.dev/badge/skills/isdaniel/pgtuner_mcp/pg-performance-baseline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pg-performance-baseline

Your own site · 80×15
<a href="https://agentmods.dev/skills/isdaniel/pgtuner_mcp/pg-performance-baseline"><img src="https://agentmods.dev/badge/skills/isdaniel/pgtuner_mcp/pg-performance-baseline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,983 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.02983
Opus 5.5 $0.00018 $0.01193
Sonnet 5.5 $0.00009 $0.00597
Haiku 4.5 $0.00005 $0.00298

Measured 1mo ago against content hash 4546c6faa1bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pg-performance-baseline scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pg-performance-baseline/SKILL.md · 429 lines

How it starts

The opening of the file, as written. The whole thing — 429 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PostgreSQL Performance Baseline

This skill guides creation of a comprehensive performance baseline report for a PostgreSQL database, intended for comparison before and after making configuration changes, schema modifications, or infrastructure upgrades.

When to Use This Skill

Use this skill when the user:

  • Is about to make database configuration changes and wants a "before" snapshot
  • Wants to document current database performance for reference
  • Needs to compare performance across time periods
  • Asks "how is my database performing?" or "give me a performance report"
  • Is planning a migration and needs to capture current metrics
  • Wants to establish SLAs or performance targets based on current state

MCP Resources Available

  • pgtuner://docs/tools -- Tool reference for parameter details
  • pgtuner://docs/prompts -- Available prompt templates
  • pgtuner://settings/{category} -- Settings by category (use for structured capture: memory, checkpoint, wal, autovacuum, connections)
  • pgtuner://health/{check_type} -- Targeted health metrics by type
  • pgtuner://table/{schema}/{table_name}/stats -- Quick per-table stats

This skill corresponds to the performance_baseline MCP Prompt. If the user triggers that prompt, follow this skill's workflow.

Prerequisites

  • The pgtuner-mcp server must be connected with a valid DATABASE_URI
  • Required: pg_stat_statements extension (for query workload data)
  • Recommended: pgstattuple extension (for bloat measurements)
  • Recommended: Sufficient uptime since last pg_stat_statements reset for meaningful workload data

Agent Decision Logic

Before starting:
  |
  +--> Is this a "before" baseline (pre-change)?
  |    --> Collect all 8 steps, save results systematically
  |    --> Tell user: "Baseline collected. After making changes, ask me to
  |        collect another baseline and I will generate a comparison."
  |
  +--> Is this an "after" baseline (post-change)?
  |    --> Collect all 8 steps with identical parameters
  |    --> Generate the Comparison Template with before/after diff
  |
  +--> Is this a standalone performance report?
       --> Collect all 8 steps
       --> Include recommendations inline (not just metrics)

Read the full file on GitHub · 429 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 429 lines · 46 tokens per session scan A 4546c6faa1bc

Subscribe to this mod's changes

pg-performance-baseline is a skill published in the GitHub repository isdaniel/pgtuner_mcp (30 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 46 tokens to every session and 2,983 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

amazon aurora dsql

Deprecated compatibility redirect for Aurora DSQL guidance. Use when a request concerns DSQL, Aurora DSQL, distributed SQL, DSQL schemas, migrations, queries, authentication, performance, or application development.

awslabs/mcp · 46 tokens

db-sculptor

Design database schemas with Prisma/Drizzle, PostgreSQL index strategy (B-tree, GIN, GiST, BRIN, Hash), query optimization (EXPLAIN ANALYZE), migration safety (expand/contract, zero-downtime), and sharding/partitioning. Use when user asks to design schema, create migrations, optimize slow queries, add indexes, choose…

EliasOulkadi/shokunin · 123 tokens

neon-postgres

Guides and best practices for working with Neon Serverless Postgres. Covers getting started, local development with Neon, choosing a connection method, Neon features, authentication (@neondatabase/auth), PostgREST-style data API (@neondatabase/neon-js), Neon CLI, and Neon's Platform API/SDKs. Use for any Neon-related…

EliasOulkadi/shokunin · 76 tokens

db-admin

PostgreSQL database administration — backup/restore (pgdump, PITR, WAL archiving), health monitoring (connections, bloat, cache hit ratio, dead tuples), connection pooling (PgBouncer), replication (streaming, logical), vacuum/autovacuum tuning, and scheduled backups with retention. Use when user asks to backup a…

EliasOulkadi/shokunin · 122 tokens

exasol-table-design

Exasol table design for performance: DISTRIBUTE BY, PARTITION BY, zone maps, data types, replication, surrogate keys, and CREATE TABLE syntax.

exasol/mcp-server · 36 tokens

exasol-system-tables

Exasol system and statistics tables: what they contain, visibility prefixes (EXAALL, EXADBA, EXAUSER), and when to query them directly vs using MCP tools.

exasol/mcp-server · 47 tokens