db-migrator

db-migrator is an agent for Claude Code from revfactory/harness-engineering-with-cc. It costs 68 tokens per session (390 once invoked), scanned A, original, Apache-2.0.

An agent that designs database tables, indexes, constraints, and draft migration SQL for a PostgreSQL application using Drizzle ORM. A migration is a scripted change that creates or updates the database structure.

In plain words
What is it for?
Use it during the database-design phase to draft users and refresh-token tables, define rules such as unique email addresses, and prepare an initial migration for another agent to run.
Why use it?
It turns database requirements into a concrete schema draft while keeping execution separate from design.

Agent for Claude Code

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/revfactory/harness-engineering-with-cc/db-migrator
Clone the repo
git clone --depth 1 https://github.com/revfactory/harness-engineering-with-cc

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/revfactory/harness-engineering-with-cc/db-migrator.svg)](https://agentmods.dev/agents/revfactory/harness-engineering-with-cc/db-migrator)
Your own site
<a href="https://agentmods.dev/agents/revfactory/harness-engineering-with-cc/db-migrator"><img src="https://agentmods.dev/badge/agents/revfactory/harness-engineering-with-cc/db-migrator.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 390 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.00068 $0.00390
Opus 5 $0.00034 $0.00195
Sonnet 5 $0.00014 $0.00078
Haiku 4.5 $0.00007 $0.00039

Measured 5d ago against content hash 9954dbeb616f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

db-migrator 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.

ex-12-03-team-8-agents/.claude/agents/db-migrator.md · 37 lines

What it actually says

역할

  • 데이터 모델(users·refresh_tokens 등) Drizzle 스키마.
  • 인덱스 정의 (예: users.email UNIQUE).
  • 마이그레이션 SQL 초안 (실행은 backend-impl).
  • api-designer에게 컬럼 ↔ 필드 정렬 알림.

입력

  • 00_requirements.json (Phase 0).
  • api-designer로부터의 제약 요청 (예: users.email UNIQUE).

절차

  1. 요구사항의 db 카테고리 추출.
  2. users 테이블 + refresh_tokens 테이블 스키마 초안.
  3. api-designer에게 password_hash는 varchar(60) (bcrypt). refresh_tokens는 별도 테이블. SendMessage.
  4. api-designer 회신 반영 → 인덱스·제약 확정.
  5. _workspace/features/{name}/03_db_design.md 작성 + migrations/000_init.sql 초안.

출력

  • _workspace/features/{name}/03_db_design.md
  • _workspace/features/{name}/migrations/000_init.sql (초안)

에러 핸들링

  • 실 마이그레이션 실행 금지 (Edit·Bash 미보유). 실행은 Phase 2의 backend-impl 담당.
  • ui-designer와 직접 통신하지 않음 (api-designer 경유).
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 First seen · 37 lines · 68 tokens per session scan A 9954dbeb616f

Subscribe to this mod's changes

db-migrator is an agent published in the GitHub repository revfactory/harness-engineering-with-cc (103 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 68 tokens to every session and 390 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

PostgreSQL Database Administrator

Work with PostgreSQL databases using the PostgreSQL extension.

github/awesome-copilot · 17 tokens

database-performance-reviewer

Database performance and scaling reviewer for World of ClaudeCraft (Postgres via pg). Use on any change that touches SQL, a database call site, schema or indexes, query cadence or cardinality, pool or lock behavior, timeout policy, scheduled/background database work, database driver or PostgreSQL…

levy-street/world-of-claudecraft · 132 tokens

customer-onboarding

Daily fresh-session customer-onboarding agent for {{projectName}}. Reads accounts from HubSpot inside their {{onboardingwindowdays}}-day onboarding window (via {{customersinceproperty}}), checks activation milestones and product events in Postgres, flags stalled or overdue accounts, drafts a nudge email to…

kortix-ai/suna · 97 tokens

supabase-substrate-explorer

Specialist research agent for discovering creative, non-obvious applications of the Supabase SUBSTRATE dimension (Postgres Database, Storage object store, pgvector) to Thoughtbox's reasoning-persistence surfaces. Use proactively when exploring how substrate-layer primitives could become new "organs" for Thoughtbox…

Kastalien-Research/thoughtbox · 117 tokens

supabase-rag-implementer

Materializa RAG em Supabase em 3 layers - migration vector(N)+HNSW, RPC matchdocuments security invoker com RLS por tenant, Edge Function embedding server-side. Use ao implementar RAG.

luanpdd/kit-mcp · 52 tokens

supabase-roles-implementer

Gera SQL de Postgres Roles em Supabase (CREATE ROLE + GRANT matrix + BYPASSRLS) para system access — service accounts, BI, cron jobs. Recebe spec via Task(). Nao substitui RLS + Custom Claims.

luanpdd/kit-mcp · 59 tokens