db-specialist

db-specialist is an agent for Claude Code from Kanevry/session-orchestrator. It costs 166 tokens per session (1,871 once invoked), scanned A, original, MIT.

A database-focused coding agent for designing schemas, writing migrations, improving queries, and maintaining data integrity. A migration is a controlled change to a database structure that can usually be applied and reversed.

In plain words
What is it for?
It is for database schema work, SQL and ORM queries, indexes, migrations, stored functions, and row-level security.
Why use it?
It reduces errors when changing tables, relationships, indexes, constraints, or database functions.

Agent for Claude Code

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

Part of the session-orchestrator plugin — 52 skills, 30 commands, 17 agents, 11 hooks, 1 MCP server shipped together

Good fit It is for database schema work, SQL and ORM queries, indexes, migrations, stored functions, and row-level security.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kanevry/session-orchestrator/db-specialist
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/Kanevry/session-orchestrator

Made for: Claude Code.

Or install session-orchestrator, the plugin that ships this one along with the rest of its 52 skills, 30 commands, 17 agents, 11 hooks, 1 MCP server.

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 db-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/kanevry/session-orchestrator/db-specialist/github.svg)](https://agentmods.dev/agents/kanevry/session-orchestrator/db-specialist)
Your own site
<a href="https://agentmods.dev/agents/kanevry/session-orchestrator/db-specialist"><img src="https://agentmods.dev/badge/agents/kanevry/session-orchestrator/db-specialist/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 db-specialist

Your own site · 80×15
<a href="https://agentmods.dev/agents/kanevry/session-orchestrator/db-specialist"><img src="https://agentmods.dev/badge/agents/kanevry/session-orchestrator/db-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 166 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,871 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.00166 $0.01871
Opus 5.5 $0.00066 $0.00748
Sonnet 5.5 $0.00033 $0.00374
Haiku 4.5 $0.00017 $0.00187

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

Security

Grade A, and why

db-specialist 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 1mo 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/db-specialist.md · 105 lines

How it starts

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

You are a focused database agent. You design schemas, write migrations, optimize queries, and handle database architecture with a strong bias toward data integrity and reversibility.

Core Responsibilities

  1. Schema Design: Tables, relationships, constraints, and data types that reflect the domain accurately
  2. Migrations: Forward + reversible migration files using the project's migration tool (no raw SQL bypass)
  3. Query Optimization: Indexes, query plans, N+1 prevention, lock-aware DDL on large tables
  4. Database Functions: Stored procedures, triggers, RPC functions where the project's pattern uses them
  5. Data Integrity: Foreign keys, unique constraints, check constraints, RLS policies, cascade behavior

Migration Process

  1. Read existing schema: Locate the schema-of-record (schema.sql, prisma/schema.prisma, Supabase migrations dir, etc.). Understand the current data model — table names, FK chains, naming conventions — before proposing changes.
  2. Confirm migration tool: Match the project's existing migrator (Supabase CLI, Prisma migrate, Knex, Flyway). Never hand-roll SQL outside the migrator's contract.
  3. Design incrementally: Each migration is a single logical change. Combining "add column + backfill + add NOT NULL" into one file is acceptable only if all three are non-blocking on the target DB.
  4. Plan reversibility: Write the down-migration alongside the up. Pure-additive changes (new tables, new nullable columns) are trivially reversible. Destructive changes (drops, type changes) require explicit user confirmation in the wave plan.
  5. Add indexes intentionally: Cover columns used in WHERE, JOIN, and ORDER BY clauses of known query patterns. Every foreign key gets an index. Do not blanket-index everything.
  6. Verify: Run the migrator's dry-run if available (supabase db diff, prisma migrate diff), or paste the generated SQL into the report.
  7. Report: Output a structured summary (see Output Format).

Read the full file on GitHub · 105 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. 1mo ago First seen · 105 lines · 166 tokens per session scan A 5ab9fbeb275d

Subscribe to this mod's changes

db-specialist is an agent published in the GitHub repository Kanevry/session-orchestrator (53 stars, last pushed 8d ago), licensed MIT. It adds 166 tokens to every session and 1,871 once invoked, about $0.0007 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-09-03.

Related

Other agents, from other repositories

engineer

Software engineer specialist (IRC handle @dev) dispatched to write and test application code, database schema migrations, and infrastructure configuration files.

NexaDuo/mARC · 30 tokens

data-modeler

Turns requirements into a sound database schema plus a safe migration path. Use when designing tables, relationships, and constraints, or planning a schema change.

emtcmca/promptsmith · 33 tokens

data-engineer

Implements data work — schema, migrations, queries, pipelines — and models data structures. Pick for database and data-pipeline work.

tunahanaliozturk/atelier · 31 tokens

data-model-architect

Use when an orchestrator needs a Dataverse data model proposed (existing-table reuse, new tables in dependency-tier order, Mermaid ER diagram) for embedding in native-app-plan.md. Read-only — proposes, never mutates. Called by native-app-planner and /edit-app; not invoked directly by users.

microsoft/power-platform-skills · 67 tokens

arbiter

Strong-tier, different-family, adversarial, ACTING judge with FINAL veto on holistic acceptance. Unlike the lightweight phase-validator (which reads a HANDOFF and checks exit-condition prose), the arbiter re-runs the objective gates itself (typecheck, tests, lint, the phase's command conditions) and judges holistic…

SethGammon/Citadel · 132 tokens

archon

Autonomous vision agent. Decomposes vague or specific direction into campaign phases. Delegates to Marshals and specialists. Reviews output against quality standards. Maintains campaign state across invocations. Does not write code — orchestrates those who do.

SethGammon/Citadel · 52 tokens