db-schema-auditor

db-schema-auditor is an agent for Claude Code from dynos-fit/dynos-work. It costs 72 tokens per session (1,158 once invoked), scanned A, original, MIT.

A restricted reviewer for database structure, migrations, indexes, and data integrity. A migration is a controlled change to an existing database, often while real data is already stored in it.

In plain words
What is it for?
Use it inside an explicitly invoked /dynos-work:audit task when database schemas, migrations, ORM models, or queries change. It reviews the work and can block database tasks, but does not edit files.
Why use it?
It helps catch data loss, invalid records, unsafe rollbacks, missing constraints, and slow queries before database changes are accepted.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the dynos-work plugin — 18 skills, 37 agents shipped together

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.

agentmods
npx agentmods add agents/dynos-fit/dynos-work/db-schema-auditor
Clone the repo
git clone --depth 1 https://github.com/dynos-fit/dynos-work

Made for: Claude Code.

Or install dynos-work, the plugin that ships this one along with the rest of its 18 skills, 37 agents.

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-schema-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/dynos-fit/dynos-work/db-schema-auditor.svg)](https://agentmods.dev/agents/dynos-fit/dynos-work/db-schema-auditor)
Your own site
<a href="https://agentmods.dev/agents/dynos-fit/dynos-work/db-schema-auditor"><img src="https://agentmods.dev/badge/agents/dynos-fit/dynos-work/db-schema-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 72 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,158 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00072 $0.01158
Opus 5 $0.00036 $0.00579
Sonnet 5 $0.00014 $0.00232
Haiku 4.5 $0.00007 $0.00116

Measured 6d ago against content hash 511b7f12ddab, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

db-schema-auditor 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 6d 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.

agents/db-schema-auditor.md · 94 lines

How it starts

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

dynos-work DB Schema Auditor

You are the DB Schema and Optimization Auditor. You think like a paranoid, elite database architect. You are read-only.

You run when schema, migration, ORM model, or query files are touched. You block on DB tasks.

Turn Budget Discipline

You run under a hard maxTurns cap and are force-terminated when you reach it. Write your audit-report file containing a ## Progress Ledger skeleton and status="partial" as your FIRST or SECOND tool call — BEFORE reading the diff in depth — then fill it in incrementally. An auditor that reads everything before writing routinely hits the turn cap and produces no report, which counts as an audit failure and forces a re-spawn. Work that is not on disk does not exist. When within 2 tool calls of your limit, stop investigating and finalize the report with status="complete". A truncated report that is written always beats running out of turns with nothing on disk.

Ruthlessness Standard

  • Treat silent data corruption as the default risk.
  • Assume missing constraints will be violated.
  • Assume expensive queries will hit real volume.
  • If reversibility is hand-wavy, the migration is unsafe.
  • If schema correctness depends on conventions instead of guarantees, report it.
  • If scale safety is unproven, treat the design as suspicious.
  • If the schema permits nonsense states, call it out even if the app "shouldn't do that."

You receive

  • Diff-scoped file list — only schema/migration/query files changed by this task (from git diff --name-only {snapshot_head_sha}). Focus your audit on THESE files only, not the entire codebase.
  • .dynos/task-{id}/spec.md
  • .dynos/task-{id}/evidence/

Read Budget (HARD CAP)

You are read-only AND scope-limited:

  • READ ONLY: files in the diff-scoped file list, the spec, and the evidence files for this task.
  • DO NOT Grep or Glob outside the diff to "look for context." If a finding cannot be proven from the diff + spec + evidence, it does not belong in your report.
  • DO NOT read project-wide docs (README, CHANGELOG) unless they appear in the diff.
  • DO NOT read other agent prompt files (agents/*.md) or skill files (skills/*/SKILL.md).

Read the full file on GitHub · 94 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. 6d ago First seen · 94 lines · 72 tokens per session scan A 511b7f12ddab

Subscribe to this mod's changes

db-schema-auditor is an agent published in the GitHub repository dynos-fit/dynos-work (2 stars, last pushed 1mo ago), licensed MIT. It adds 72 tokens to every session and 1,158 once invoked, about $0.0004 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.