db-whisperer

db-whisperer is a skill for Claude Code from mturac/hermes-supercode-skills. It costs 131 tokens per session (1,757 once invoked), scanned A, original, MIT.

A database troubleshooting and performance guide for Postgres, MySQL, SQLite, and MongoDB. It covers query plans, indexes, migrations, connections, replication, and maintenance tasks.

In plain words
What is it for?
Use it to inspect slow queries, detect N+1 query problems, choose indexes, write rollback steps for schema changes, configure connection pooling or replication, and run vacuum or analyze operations.
Why use it?
It helps find why application queries or database changes are slow or risky. It also encourages reversible migrations and checks evidence before changes are made.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the api-sculptor plugin — 13 skills shipped together , and of auth-architect, db-whisperer, deploy-ninja, ghost-scraper, infra-automation, mcp-conductor, obs-guardian, pipeline-architect, prediction-alpha, prompt-forge, quantum-debugger, security-sentinel

Good fit Use it to inspect slow queries, detect N+1 query problems, choose indexes, write rollback steps for schema changes, configure connection pooling or replication, and run vacuum or analyze operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mturac/hermes-supercode-skills/db-whisperer
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 mturac/hermes-supercode-skills --skill db-whisperer
Clone the repo
git clone --depth 1 https://github.com/mturac/hermes-supercode-skills

Made for: Claude Code.

Or install api-sculptor, the plugin that ships this one along with the rest of its 13 skills.

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 db-whisperer

README.md
[![agentmods](https://agentmods.dev/badge/skills/mturac/hermes-supercode-skills/db-whisperer/github.svg)](https://agentmods.dev/skills/mturac/hermes-supercode-skills/db-whisperer)
Your own site
<a href="https://agentmods.dev/skills/mturac/hermes-supercode-skills/db-whisperer"><img src="https://agentmods.dev/badge/skills/mturac/hermes-supercode-skills/db-whisperer/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 db-whisperer

Your own site · 80×15
<a href="https://agentmods.dev/skills/mturac/hermes-supercode-skills/db-whisperer"><img src="https://agentmods.dev/badge/skills/mturac/hermes-supercode-skills/db-whisperer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,757 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.00131 $0.01757
Opus 5 $0.00066 $0.00879
Sonnet 5 $0.00026 $0.00351
Haiku 4.5 $0.00013 $0.00176

Measured 8d ago against content hash c9f7aac0b74d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

db-whisperer 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 8d 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/db-whisperer/SKILL.md · 240 lines

How it starts

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

DB Whisperer

You are an application database performance specialist. You work at the boundary between application code and operational databases, keeping queries fast, migrations reversible, and production changes safe. You do not handle data warehouse ETL, analytics pipelines, or batch transformation platforms.

Core Concepts

Query Plans

  • Postgres: use EXPLAIN (ANALYZE, BUFFERS, VERBOSE) when safe
  • MySQL: use EXPLAIN ANALYZE where available, otherwise EXPLAIN
  • SQLite: use EXPLAIN QUERY PLAN
  • MongoDB: use .explain("executionStats")
  • Treat estimates, actual rows, loops, sort methods, and buffer reads as evidence, not decoration

Index Strategy

  • Index predicates used in selective WHERE clauses first
  • Add composite indexes in equality-before-range order
  • Prefer covering indexes for hot read paths when write cost is acceptable
  • Avoid duplicate indexes and low-cardinality indexes that do not filter meaningfully
  • Validate with the query plan before and after the proposed index

Migrations

  • Every migration needs an up path and a rollback down path
  • Separate expand and contract phases for high-traffic production systems
  • Backfill large tables in batches, not in one transaction
  • Avoid changing column types, primary keys, or nullability without a plan for locks, backfills, and application compatibility

Workflow

1. Recon

Collect the database engine, version, schema shape, query text, ORM code, table sizes, current indexes, and observed symptoms:

Database: postgres 16
Symptom: query times out after 30 seconds
Query: SELECT * FROM orders WHERE account_id = $1 AND created_at > $2
Tables:
  orders:
    rows: 18000000
    indexes:
      - orders_pkey(id)
      - idx_orders_created_at(created_at)
Application:
  framework: Rails
  endpoint: GET /accounts/:id/orders

For N+1 reports, inspect the application call path and query logs together. For pool exhaustion, collect pool size, worker count, request concurrency, timeout settings, and long-running transaction evidence.

Read the full file on GitHub · 240 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 240 lines · 131 tokens per session scan A c9f7aac0b74d

Subscribe to this mod's changes

db-whisperer is a skill published in the GitHub repository mturac/hermes-supercode-skills (2 stars, last pushed 3mo ago), licensed MIT. It adds 131 tokens to every session and 1,757 once invoked, about $0.0007 per session on Opus 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-31.

Related

Other skills, from other repositories

prisma-database-setup

Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.). Use when setting up a new project, changing databases, or troubleshooting connection issues. Triggers on "configure postgres", "connect to mysql", "setup mongodb", "sqlite setup".

Zephyrex21/claude-skills-vetted · 67 tokens

postgres-expert

PostgreSQL administration and advanced features including extensions, partitioning, JSONB, full-text search, replication, and performance tuning. Trigger for Postgres-specific features, configuration, connection pooling, or migration strategies.

FutureJJ/claude-skills · 46 tokens

ring:mapping-service-resources

Mapping a Go service's Service -> Module -> Resource hierarchy for dispatch-layer registration: detects modules and per-module PostgreSQL/MongoDB/RabbitMQ resources, database names, and shared databases, generates MongoDB index migration pairs (.up.json/.down.json), detects existing Postgres migrations, emits an HTML…

LerianStudio/ring · 97 tokens

database-expert

Advanced database design and administration for PostgreSQL, MongoDB, and Redis. Use when designing schemas, optimizing queries, managing database performance, or implementing data patterns.

travisjneuman/.claude · 36 tokens

mongo-migration

MongoDB schema migration safety reviewer and migration script generator. ALWAYS use when writing, reviewing, or planning MongoDB schema changes — field additions/removals, index builds, schema validator changes, document type migrations, shard key modifications, or any bulk update touching production collections.…

johnqtcg/awesome-skills · 140 tokens

pg-migration

PostgreSQL schema migration safety reviewer and DDL generator. ALWAYS use when writing, reviewing, or planning PostgreSQL schema changes — ALTER TABLE, CREATE/DROP INDEX, column type changes, constraint additions, RLS policy changes, or any DDL touching production tables. Covers lock-level analysis, CREATE INDEX…

johnqtcg/awesome-skills · 135 tokens