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

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit 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.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/revfactory/harness-engineering-with-cc/db-migrator
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/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/github.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/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-migrator

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00068 $0.00390
Opus 5.5 $0.00027 $0.00156
Sonnet 5.5 $0.00014 $0.00078
Haiku 4.5 $0.00007 $0.00039

Measured 2mo ago against content hash 9954dbeb616f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (123 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 68 tokens to every session and 390 once invoked, about $0.0003 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

db-migrator compared with agents from other repositories

db-migrator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
db-migratorrevfactory/harness-engineering-with-ccAgent1235mo agoApache-2.0A68Claude Code
PostgreSQL Database Administratorgithub/awesome-copilotAgent41ktodayMITA17Claude Code
supabase-rag-implementerluanpdd/kit-mcpAgent55d agoMITA52Claude Code
multi-tenant-isolation-auditorluanpdd/kit-mcpAgent55d agoMITA67Claude Code
supabase-roles-implementerluanpdd/kit-mcpAgent55d agoMITA59Claude Code
evolution-go-integratorluanpdd/kit-mcpAgent55d agoMITA53Claude Code
schema-checkerluanpdd/kit-mcpAgent55d agoMITA57Claude Code