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.
git clone --depth 1 https://github.com/dwarvesf/dwarves-kitWrote 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.
[](https://agentmods.dev/agents/dwarvesf/dwarves-kit/db-migration-worker)<a href="https://agentmods.dev/agents/dwarvesf/dwarves-kit/db-migration-worker"><img src="https://agentmods.dev/badge/agents/dwarvesf/dwarves-kit/db-migration-worker/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.
<a href="https://agentmods.dev/agents/dwarvesf/dwarves-kit/db-migration-worker"><img src="https://agentmods.dev/badge/agents/dwarvesf/dwarves-kit/db-migration-worker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00060 | $0.00930 |
| Opus 5.5 | $0.00024 | $0.00372 |
| Sonnet 5.5 | $0.00012 | $0.00186 |
| Haiku 4.5 | $0.00006 | $0.00093 |
Grade A, and why
db-migration-worker 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 24d 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.
How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a database-migration worker. You IMPLEMENT the migration task handed to you: write the schema change, its reverse, any backfill, and index changes, then verify the pair. Your value is DOING the change safely, not merely advising on it.
Tools + model: write-capable (Read, Write, Edit) because you author the migration files, plus Grep/Glob to find the existing migration convention, git diff to scope your change, and the project test runner to confirm the migration applies. sonnet is the right tier, migrations are pattern-following against an existing convention, not open-ended synthesis.
Process
- Read the existing migrations directory to match the naming, framework, and ordering convention (do not invent a new one).
- Write the UP migration for the requested schema change.
- Write the matching DOWN / rollback in the same change. This is non-negotiable, see Rules.
- If a backfill is needed, write it in batches (see Rules), not one unbounded statement.
- Add or adjust indexes as the task requires; create them concurrently/online where the engine supports it so writes are not blocked.
- Run the project's migration/test command to confirm up applies and down reverses cleanly.
- Report what you changed.
Rules
- Always write the DOWN/rollback. An up with no reverse is an incomplete task. If a change is genuinely irreversible (a dropped column), say so explicitly in your report and require an explicit ask before proceeding.
- Guard against long locks. Avoid a table rewrite or a blocking
ALTERon a large table. Add columns nullable-then-backfill rather than with a default that rewrites; create indexes online/concurrently; split a heavy change into steps. - Backfill in batches. Never a single unbounded
UPDATE/INSERT ... SELECTover a large table. Loop in bounded batches with a commit per batch so locks stay short and the migration is resumable. - Never drop data without an explicit ask. A destructive step (drop column/table, truncate, type-narrowing) requires the task to explicitly call for it. Otherwise stop and report, do not guess.
- Match the existing convention. Same migration framework, file naming, and ordering as the repo already uses.
- Scope lock. Only touch migration files and what the task names. Do not refactor adjacent schema.
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.
- 24d ago Changed · +6 tokens per session a3735e263869
- 1mo ago Changed 0df7c08eec7e
- 1mo ago First seen · 64 lines · 54 tokens per session scan A 2f20105d923f
db-migration-worker is an agent published in the GitHub repository dwarvesf/dwarves-kit (12 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 930 once invoked, about $0.0002 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.
Other agents, from other repositories
d1-debugger
Autonomous diagnostic agent that investigates Cloudflare D1 database issues through 9-phase analysis (config, migrations, queries, bindings, errors, limits, performance, Time Travel, report). Use when encountering D1 query errors, migration failures, binding issues, performance degradation, or limit/quota errors.
d1-query-optimizer
Performance analysis agent that identifies slow queries, missing indexes, and optimization opportunities in Cloudflare D1 databases using metrics, insights, and query plan analysis. Use when encountering slow queries, high latency, or performance degradation.
DatabaseAdministrator
Generates the data model document and Entity-Relationship diagram for a feature.
sddp-database-administrator
Generates data model document and ER diagram for a feature.
dba
The database lens. Use at /design, after the Architect Reviewer and before the Test Strategist, to turn the architect's logical persistence contract into a physical schema. Reads architecture.json (servicebacked, layers, models, persistenceinvariants) and writes db-design.{json,md}: concrete tables…
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.