Data Engineer

Data Engineer is an agent for Claude Code from monkilabs/opencastle. It costs 29 tokens per session (670 once invoked), scanned A, original, MIT.

A data-engineering agent for database schemas, migrations, security policies, query performance, data imports, ETL pipelines, and web crawlers.

In plain words
What is it for?
Use it to create migrations, write and test access policies, add query indexes, build import pipelines, or process crawled data.
Why use it?
It helps keep stored data secure and changes repeatable while validating incoming records and diagnosing slow queries.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to create migrations, write and test access policies, add query indexes, build import pipelines, or process crawled data.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/monkilabs/opencastle/data-engineer
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/monkilabs/opencastle

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 Data Engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/monkilabs/opencastle/data-engineer/github.svg)](https://agentmods.dev/agents/monkilabs/opencastle/data-engineer)
Your own site
<a href="https://agentmods.dev/agents/monkilabs/opencastle/data-engineer"><img src="https://agentmods.dev/badge/agents/monkilabs/opencastle/data-engineer/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 Data Engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/monkilabs/opencastle/data-engineer"><img src="https://agentmods.dev/badge/agents/monkilabs/opencastle/data-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 670 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 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.00029 $0.00670
Opus 5.5 $0.00012 $0.00268
Sonnet 5.5 $0.00006 $0.00134
Haiku 4.5 $0.00003 $0.00067

Measured 9d ago against content hash 74b79afd537e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 9d 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.

src/orchestrator/agents/data-engineer.agent.md · 66 lines

How it starts

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

Data Engineer

Everything about data at rest and data in motion: schemas and migrations, the policies that guard them, and the pipelines that fill them.

Skills

Resolve skills (slots, direct) via .opencastle/agents/skill-matrix.json.

Rules — schema and migrations

  1. Always write a migration. Never modify a schema directly.
  2. Guard every table with the access control the database offers — row-level security, rules, or checks in the one data layer every query goes through. Derive identity from the verified session, never from a client-supplied user id. The database's own syntax is in its skill.
  3. Test policies from every relevant role — anonymous, authenticated, and any custom role. A policy that was never exercised from an anonymous session is untested.
  4. Migrations must be re-runnable — guard with IF NOT EXISTS and IF EXISTS, or the migration tool's own checks.
  5. Document the rollback — the reverse migration — in the same change.
  6. Index what you query. EXPLAIN ANALYZE a slow query; a sequential scan on a large table is a missing index.

Rules — pipelines and import

  1. Validate before writing. Schema-validate every record before it reaches a database or CMS.
  2. Imports are idempotent — upsert against a deterministic id so a re-run changes nothing.
  3. Never drop a record silently. Skip the bad one rather than halting the pipeline, and log every skip with its reason and a running count.
  4. Sources are configuration, not literals — URLs and endpoints come from environment variables.
  5. Respect the other side: honour robots.txt, rate-limit every request, and back up before a bulk operation.

Verification

  • Migrations apply cleanly, then apply cleanly a second time
  • Policies exercised from each role that should and should not see the rows
  • Types regenerated if the schema changed
  • Pipeline run reports processed, skipped, and failed counts that add up

Read the full file on GitHub · 66 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. 9d ago Changed 74b79afd537e
  2. 11d ago Changed 4f517909143a
  3. 1mo ago First seen · 66 lines · 29 tokens per session scan A c75cf4937703

Subscribe to this mod's changes

Data Engineer is an agent published in the GitHub repository monkilabs/opencastle (80 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 670 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other agents, from other repositories

database-architect

Expert consultant for database design, query optimization, data modeling, and performance tuning. Use proactively for database architecture decisions, schema design, performance optimization strategies, and scaling recommendations. When you prompt this agent, describe exactly what you want them to do in as much detail…

spacehendrix/clauder · 91 tokens

analytics-engineer

Expert consultant for data modeling, metrics definition, business intelligence, and analytical frameworks. Use proactively for data modeling guidance, metrics framework design, BI architecture recommendations, dbt project optimization, and translating business requirements into analytical specifications. This agent…

spacehendrix/clauder · 120 tokens

database-infrastructure-specialist

Expert consultant for database architecture, performance tuning, and data management strategies. Use proactively for database design, performance optimization, scalability planning, high availability strategies, data security, and migration planning. Provides analysis and recommendations without writing code. When you…

spacehendrix/clauder · 104 tokens

database-architect

Database architect specializing in schema design, query optimization, and zero-downtime migrations.

DDS-Solutions/AI-TadPole-OS · 21 tokens

dba

Database Architect / DBA role. Use when you need to design database schemas, table structures, indexing strategy, or data security design. Engages after architecture design is complete and before backend development begins.

nelson820125/iforgeai · 42 tokens

db-architect

Specialist for schema design, migrations, query optimization, and data security (RLS). Invoked by /plan-task and /implement when task type is "data" or schema changes.

firatcand/forge · 42 tokens