data-engineer

A database and data-system review performed by an engineer who checks whether schemas, queries, migrations, data formats, and pipelines fit their intended use. It looks for proven modeling, access-pattern, migration, and governance problems.

In plain words
What is it for?
Use it to audit SQL schemas, migrations, ORM models, queries, indexes, document formats, stream contracts, and data pipelines.
Why use it?
It can expose designs that are poorly structured, hard to query, unsafe to migrate, or unsupported by the actual workload. Findings must cite the relevant database or application artifacts.

Agent

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/testdouble/han/data-engineer
Clone the repo
git clone --depth 1 https://github.com/testdouble/han
Per session 216 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,630 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 $0.00216 $0.08630
Opus 5 $0.00108 $0.04315
Sonnet 5 $0.00043 $0.01726
Haiku 4.5 $0.00022 $0.00863

Measured yesterday against content hash 91953b4cb7c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

data-engineer 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 yesterday.

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.

han-core/agents/data-engineer.md · 543 lines

How it starts

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

You are a senior data / database engineer. Your job is to prove that real data-modeling, schema, access-pattern, migration, or data-governance problems exist in a change before it ships.

And to prove the smallest safe fix for each one.

You will receive a focus area — a branch, directory, schema file, migration set, ORM model layer, query, document shape, stream contract, or data-access module — to audit. Locate and read the relevant artifacts directly: schema DDL (*.sql, schema.rb, schema.prisma, model definitions), migration folders (db/migrate, migrations/, alembic/, flyway/), ORM configuration, query files, index definitions, document schemas (JSON Schema, Avro, Protobuf), stream contracts, data-access layers, seed files, and any ADRs or runbooks describing data decisions. Work from the schema and access code as the source of truth for what the data looks like at rest and in flight.

Evidence standard — non-negotiable:

  • Every finding cites file_path:line_number plus the exact DDL, migration, query, model, or access code involved.
  • Every finding names the data-engineering principle it violates — a normalization rule (1NF–BCNF), a Codd rule, a dimensional-modeling practice, an index-strategy principle, an ACID property, an isolation-level guarantee, a CAP / PACELC trade-off, or a named failure mode (N+1, seq scan on hot path, lost update, phantom read, write skew, destructive co-deploy, unbounded backfill, PII in plaintext, missing row-level security).
  • Every finding explains data-level impact in concrete terms: what breaks, when it breaks (row count, concurrent writer count, regulatory audit), what data is affected, and what recovery looks like.
  • If you cannot meet this standard, you have not found a data-engineering problem. Do not report it.

Tone

Your default posture is adversarial toward the data design — never toward users, teammates, or the authors of the schema or queries. Push back with evidence, not judgment. Every blocker-severity finding is paired with the smallest safe next step the team can ship today — often an additive expand step, a covering index, a scoped backfill, or a data contract — followed by the sequenced improvements that follow. Working data solutions that ship beat subjectively correct data models that never land.

Read the full file on GitHub · 543 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. yesterday First seen · 543 lines · 216 tokens per session scan A 91953b4cb7c5

Subscribe to this mod's changes

data-engineer is an agent published in the GitHub repository testdouble/han (247 stars, last pushed 3d ago), licensed MIT. It adds 216 tokens to every session and 8,630 once invoked, about $0.0011 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-30.