database-admin

database-admin is an agent for Claude Code from duc01226/EasyPlatform. It costs 63 tokens per session (5,754 once invoked), scanned A, original, MIT.

A database administration agent that diagnoses database health and performance and plans safe improvements to schemas, indexes, backups, replication, monitoring, and permissions.

In plain words
What is it for?
Use it to analyze query plans, locks, index usage, resource use, backups, replication, monitoring, and database permissions.
Why use it?
It replaces guesswork with real database measurements and protects data by requiring backups, rollback plans, testing, and least-privilege access.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

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/duc01226/easyplatform/database-admin
Clone the repo
git clone --depth 1 https://github.com/duc01226/EasyPlatform

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 database-admin

README.md
[![agentmods](https://agentmods.dev/badge/agents/duc01226/easyplatform/database-admin.svg)](https://agentmods.dev/agents/duc01226/easyplatform/database-admin)
Your own site
<a href="https://agentmods.dev/agents/duc01226/easyplatform/database-admin"><img src="https://agentmods.dev/badge/agents/duc01226/easyplatform/database-admin.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,754 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.00063 $0.05754
Opus 5 $0.00032 $0.02877
Sonnet 5 $0.00013 $0.01151
Haiku 4.5 $0.00006 $0.00575

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

Security

Grade A, and why

database-admin 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 2d 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.

.claude/agents/database-admin.md · 337 lines

How it starts

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

Quick Summary

Goal: Diagnose DB performance issues, optimize schemas/indexes, manage backups, and deliver evidence-backed health assessments across the project's multi-database infrastructure — so every recommendation ships with metrics, a rollback plan, and zero risk to data integrity.

Summary:

  • Data integrity is non-negotiable — every structural change ships with a rollback plan; no destructive op without user confirmation and a verified backup.
  • Diagnose from real metrics (query plans, index usage, lock contention) — never recommend without evidence from actual data.
  • Sequence: assess current state → diagnose bottlenecks → optimize → report prioritized fixes with expected impact and risk.
  • Test in non-production first; apply least privilege to every permission grant.

Workflow:

  1. Assess — identify DB system; review current state and configuration
  2. Diagnose — analyze query plans, index usage, lock contention, resource utilization
  3. Optimize — develop indexing strategies, schema improvements, parameter tuning
  4. Report — prioritized recommendations with rollback procedures and expected impact

Key Rules:

  • ALWAYS preserve data integrity over performance — NEVER sacrifice correctness for speed
  • NEVER drop tables or delete data without explicit user confirmation
  • NEVER run destructive operations in production without a verified backup
  • ALWAYS include a rollback strategy for every structural change
  • ALWAYS validate with metrics — NEVER recommend without evidence from actual data
  • ALWAYS apply least privilege to every user/role permission grant
  • ALWAYS test in a non-production environment before applying changes

[IMPORTANT] NEVER drop tables or delete data without explicit user confirmation. NEVER run destructive operations in production without a verified backup. ALWAYS include a rollback strategy — why: structural DB changes are often irreversible once applied. Evidence Gate: Every claim, finding, and recommendation MUST cite file:line proof or traced evidence with confidence % (>80% act, <80% verify first). NEVER fabricate paths, names, or behavior. External Memory: For complex/lengthy work, write findings incrementally to plans/reports/ — prevents context loss.

Read the full file on GitHub · 337 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. 2d ago First seen · 337 lines · 63 tokens per session scan A 5110ee92c395

Subscribe to this mod's changes

database-admin is an agent published in the GitHub repository duc01226/EasyPlatform (9 stars, last pushed 16d ago), licensed MIT. It adds 63 tokens to every session and 5,754 once invoked, about $0.0003 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-09-03.

Related

Other agents, from other repositories

MS-SQL Database Administrator

Work with Microsoft SQL Server databases using the MS SQL extension.

github/awesome-copilot · 18 tokens

core-data-auditor

Use this agent when the user mentions Core Data review, schema migration, production crashes, or data safety checking. Automatically scans Core Data code for the 5 most critical safety violations - schema migration risks, thread-confinement errors, N+1 query patterns, production data loss risks, and performance issues…

CharlesWiltgen/Axiom · 261 tokens

lens

Turns raw data into actionable decisions — dashboards, metric definitions, SQL analytics, funnel and cohort analysis across BI platforms. Use when designing a dashboard, defining KPIs, or running funnel analysis. Trigger with "design a dashboard", "analyze our funnel".

jeremylongshore/tons-of-skills-marketplace · 53 tokens

ecto-schema-designer

Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.

oliver-kriska/claude-elixir-phoenix · 30 tokens

django-migrations-specialist

Database specialist for Django, runs in the "database" extra phase after development. Finalizes model field types and Meta indexes/constraints, runs makemigrations, reviews generated SQL with sqlmigrate, runs migrate, verifies with migrate --check. Do NOT use for: application logic (django-architect), tests…

AratKruglik/claude-sdlc · 85 tokens

sql-expert

Usa este agente para cualquier tarea relacionada con base de datos en FacturaScripts: diseñar esquemas de tabla XML, optimizar consultas con DbQuery y Where, crear índices y constraints, escribir migraciones SQL, analizar rendimiento de queries, usar transacciones, trabajar con DataBaseWhere/DataBase/DbQuery, diseñar…

FacturaScripts/fs-claude-plugin · 102 tokens