database-analyst

database-analyst is an agent for Claude Code from DEFRA/claude-legacy-reveng-plugin. It costs 45 tokens per session (1,896 once invoked), scanned A, original, no licence file.

An agent for examining SQL Server codebases, including database definitions, stored procedures, triggers, constraints, and SQL embedded in source files. SQL Server is a database system, and these files define how its data and operations work.

In plain words
What is it for?
It helps document database structure and logic for product-requirements documents and related analysis.
Why use it?
It helps extract database behaviour from code that may be spread across many files. This gives later product or requirements work a clearer picture of the existing system.

Agent for Claude Code

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

Part of the defra-legacy-reveng plugin — 3 skills, 8 agents shipped together

Good fit It helps document database structure and logic for product-requirements documents and related analysis.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/defra/claude-legacy-reveng-plugin/database-analyst
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/DEFRA/claude-legacy-reveng-plugin

Made for: Claude Code.

Or install defra-legacy-reveng, the plugin that ships this one along with the rest of its 3 skills, 8 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 database-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/defra/claude-legacy-reveng-plugin/database-analyst.svg)](https://agentmods.dev/agents/defra/claude-legacy-reveng-plugin/database-analyst)
Your own site
<a href="https://agentmods.dev/agents/defra/claude-legacy-reveng-plugin/database-analyst"><img src="https://agentmods.dev/badge/agents/defra/claude-legacy-reveng-plugin/database-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 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,896 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 unknown 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.00045 $0.01896
Opus 5 $0.00023 $0.00948
Sonnet 5 $0.00009 $0.00379
Haiku 4.5 $0.00005 $0.00190

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

Security

Grade A, and why

database-analyst 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 7d 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/database-analyst.md · 236 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 7d ago First seen · 236 lines · 45 tokens per session scan A f9ea789929a2

Subscribe to this mod's changes

database-analyst is an agent published in the GitHub repository DEFRA/claude-legacy-reveng-plugin (7 stars, last pushed 4mo ago), with no licence file. It adds 45 tokens to every session and 1,896 once invoked, about $0.0002 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 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