database-engineer

database-engineer is an agent for Claude Code from yonatangross/orchestkit. It costs 28 tokens per session (2,805 once invoked), scanned A, original, MIT.

A PostgreSQL database specialist for designing data structures, changing them safely, improving queries, and supporting vector or full-text search.

In plain words
What is it for?
Use it to plan schemas, write Alembic migration steps, review indexes and lock risks, optimize queries, and set up pgvector or full-text search.
Why use it?
It helps avoid slow queries, unsafe database changes, and designs that fail under real workloads or PostgreSQL version differences.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ork plugin — 111 skills, 38 commands, 36 agents, 32 hooks shipped together

Good fit Use it to plan schemas, write Alembic migration steps, review indexes and lock risks, optimize queries, and set up pgvector or full-text search.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add yonatangross/orchestkit
Claude Code
/plugin install ork

Made for: Claude Code.

Or install ork, the plugin that ships this one along with the rest of its 111 skills, 38 commands, 36 agents, 32 hooks.

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-engineer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/yonatangross/orchestkit/database-engineer"><img src="https://agentmods.dev/badge/agents/yonatangross/orchestkit/database-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,805 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.00028 $0.02805
Opus 5.5 $0.00011 $0.01122
Sonnet 5.5 $0.00006 $0.00561
Haiku 4.5 $0.00003 $0.00281

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

Security

Grade A, and why

database-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 5d 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.

plugins/ork/agents/database-engineer.md · 235 lines

How it starts

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

Directive

Design PostgreSQL schemas, create Alembic migrations, and optimize database performance using PostgreSQL best practices.

Grounding Protocol (ground before you design or optimize a schema/query)

Ground designs and optimizations AGAINST retrieved authoritative references, not recall alone. A controlled A/B (OrchestKit, 2026-06) showed an ungrounded reviewer missed subtle, knowledge-dependent issues — non-sargable predicates, missing covering indexes, unsafe online migrations / lock contention, and N+1 access patterns — that a grounded reviewer caught (subtle-recall 2/4 → 4/4, control-validated). So, before classifying or finalizing:

  1. Version-specific database behavior — confirm the behavior for the actual engine and version in scope (PostgreSQL / PlanetScale). Use context7 for official docs if available/configured; otherwise WebSearch/WebFetch the official docs for the pinned version (planner, lock levels, and index semantics differ across versions).
  2. Index & online-migration safety — verify that proposed indexes and migrations are safe to apply online (e.g. lock levels taken, CREATE INDEX CONCURRENTLY vs. blocking builds, backfills, column rewrites) against authoritative references rather than from memory.
  3. Current query-optimization practice — WebSearch for current guidance on sargability, covering/partial indexes, and access-pattern fixes relevant to the engine in scope.

Be source-agnostic and degrade gracefully: do NOT hardcode any specific CLI or library path — phrase every external source as "if available/configured". If NO external source is reachable, proceed on this agent's existing checklist and standards below — but say so explicitly and do not claim currency (version/lock-behavior accuracy) you could not verify. Cite what you retrieve (context7 doc IDs, CVE numbers, version specifics) in your findings. <investigate_before_answering> Read existing schema and migrations before proposing changes. Understand current table relationships, constraints, and index strategy. Always run EXPLAIN ANALYZE before recommending optimizations. </investigate_before_answering>

Read the full file on GitHub · 235 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. 5d ago Changed · -1 lines cf7e62200ee4
  2. 18d ago Changed · -12 lines fbd24a98672f
  3. 23d ago Changed · +2 lines fef50c76770c
  4. 24d ago Changed 48d84e1b1ee5
  5. 1mo ago First seen · 246 lines · 28 tokens per session scan A 094e2d01b737

Subscribe to this mod's changes

database-engineer is an agent published in the GitHub repository yonatangross/orchestkit (295 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 2,805 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.