db-health

db-health is a command for Claude Code from fmflurry/settings-opencode. It costs 36 tokens per session (433 once invoked), scanned A, a copy of db-health, MIT.

A read-only command for checking the health of a PostgreSQL database instance and its container. It examines areas such as vacuum, bloat, connections, indexes, checkpoints, archiving, and container storage.

In plain words
What is it for?
Use it to investigate database performance and reliability issues, including dead rows, transaction-age risks, connection pressure, unused indexes, checkpoint behavior, and container health.
Why use it?
It gathers the main operational signals in one report and ranks findings by severity, while keeping potentially disruptive fixes for human confirmation.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: agent in frontmatter.

Good fit Use it to investigate database performance and reliability issues, including dead rows, transaction-age risks, connection pressure, unused indexes, checkpoint behavior, and container health.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fmflurry/settings-opencode/db-health
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.

Clone the repo
git clone --depth 1 https://github.com/fmflurry/settings-opencode

Made for: Claude Code.

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-health

README.md
[![agentmods](https://agentmods.dev/badge/commands/fmflurry/settings-opencode/db-health/github.svg)](https://agentmods.dev/commands/fmflurry/settings-opencode/db-health)
Your own site
<a href="https://agentmods.dev/commands/fmflurry/settings-opencode/db-health"><img src="https://agentmods.dev/badge/commands/fmflurry/settings-opencode/db-health/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-health

Your own site · 80×15
<a href="https://agentmods.dev/commands/fmflurry/settings-opencode/db-health"><img src="https://agentmods.dev/badge/commands/fmflurry/settings-opencode/db-health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 433 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 100% copy Near-identical to another mod 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.00036 $0.00433
Opus 5.5 $0.00014 $0.00173
Sonnet 5.5 $0.00007 $0.00087
Haiku 4.5 $0.00004 $0.00043

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

Security

Grade A, and why

db-health 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 2mo 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.

Origin

This is a copy

100% identical to db-health — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/db-health.md · 32 lines

What it actually says

DB Health Check Command

Delegate to the postgres-dba agent to run a full read-only instance health battery against this repository's PostgreSQL container (gc-platform-postgres, postgres:16-alpine).

Task

Load the postgres-health-check skill and run the battery: connectivity/uptime, cache hit ratio, dead-tuple/autovacuum hotspots, XID wraparound distance, long-running & idle-in-transaction sessions, unused indexes, checkpoint stats, archiver health, connection count vs max_connections, and the container layer (docker stats, volume presence, healthcheck, shm_size).

Produce a tiered findings report (CRITICAL → HIGH → MEDIUM → LOW) with, per finding: the diagnostic query used, observed values, interpretation (with source URL), severity, and remediation. Mutations (VACUUM, REINDEX, session kills, config changes) appear ONLY as ⚠️ HUMAN CONFIRMATION REQUIRED blocks. Repo changes (compose flags, migrations) are recommended as handoffs to coder via the conductor.

Scope

  • If $ARGUMENTS is provided (e.g., /db-health vacuum): run only that focus area (vacuum/bloat, connections, wraparound, or indexes)
  • If $ARGUMENTS is empty: run the full battery

$ARGUMENTS

Output Format

Return the structured report per the postgres-dba agent specification:

  • Severity tiers: CRITICAL → HIGH → MEDIUM → LOW
  • Evidence: exact query + observed values per finding
  • Remediation: human-confirmation blocks for instance mutations; coder briefs for repo changes
  • Action plan: immediate human steps, then repo-change dispatches, then re-check instruction
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. 2mo ago First seen · 32 lines · 36 tokens per session scan A 2b7d7b553835

Subscribe to this mod's changes

db-health is a command published in the GitHub repository fmflurry/settings-opencode (170 stars, last pushed 25d ago), licensed MIT. It adds 36 tokens to every session and 433 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to db-health, differing in 0 lines, and is treated as a copy.

Related

db-health compared with commands from other repositories

db-health next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
db-healthfmflurry/settings-opencodeCommand17025d agoMITA36Claude Code
db-healthfmflurry/harness-manifestoCommand17312d agoMITA36Claude Code
trex.db.setupopenshift-online/agent-control-planeCommand15yesterdayMITA0Claude Code
psql-queryoliver-kriska/claude-elixir-phoenixCommand579todayMITA16Claude Code
splunk-observability-database-monitoring-setupchambear2809/splunk-cisco-skillsCommand403d agoApache-2.0A0Claude Code
pg-indexespgrundev/pgbotCommand1.5ktodaynoneA12Claude Code
dbtextura-agency/next16-claude-starterCommand1581mo agoUnlicenseA11Claude Code