db

db is a skill for Claude Code from Rune-kit/rune. It costs 43 tokens per session (2,377 once invoked), scanned A, original, MIT.

A database workflow tool for schema changes, migrations, and raw queries. It creates migration files with both forward and rollback steps and checks for breaking changes and unsafe query construction.

In plain words
What is it for?
Use it when changing a database schema, writing migrations, reviewing raw SQL, or preparing database changes for release.
Why use it?
Database changes can cause production failures or leave no safe way to undo a migration. The tool checks these risks before deployment.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the rune plugin — 66 skills, 1 command, 66 agents, 6 hooks shipped together

Good fit Use it when changing a database schema, writing migrations, reviewing raw SQL, or preparing database changes for release.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rune-kit/rune/db
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.

Any agent
npx skills add Rune-kit/rune --skill db
Clone the repo
git clone --depth 1 https://github.com/Rune-kit/rune

Made for: Claude Code.

Or install rune, the plugin that ships this one along with the rest of its 66 skills, 1 command, 66 agents, 6 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 db

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rune-kit/rune/db"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/db.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,377 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.00043 $0.02377
Opus 5.5 $0.00017 $0.00951
Sonnet 5.5 $0.00009 $0.00475
Haiku 4.5 $0.00004 $0.00238

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

Security

Grade A, and why

db 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 8d 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.

skills/db/SKILL.md · 274 lines

How it starts

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

db

Purpose

Database workflow specialist. Handles the parts of database work that cause production incidents — breaking schema changes, migrations without rollback, raw SQL injection vectors, and missing indexes on growing tables. Acts as a pre-deploy gate for any schema change, and generates correct migration files (up + down) for common ORMs.

Triggers

  • /rune db — manual invocation when schema changes are planned
  • Called by cook (L1): schema change detected in diff
  • Called by deploy (L2): pre-deploy migration safety check
  • Called by audit (L2): database health dimension

Calls (outbound)

  • scout (L2): find schema files, migration files, ORM config
  • verification (L3): run migration in test environment if configured
  • hallucination-guard (L3): verify SQL syntax and ORM method names

Called By (inbound)

  • cook (L1): schema change detected in diff
  • deploy (L2): pre-deploy migration safety check
  • audit (L2): database health dimension

References

  • references/scaling-reference.md — Index strategies, query optimization, N+1 prevention, connection pooling, read replicas, partitioning, sharding, denormalization. Load when scaling, performance, or indexing context detected.

Executable Steps

Step 1 — Discovery

Invoke scout to locate:

  • Schema definition files: *.sql, schema.prisma, models.py, *.migration.ts, db/migrate/*.rb
  • Migration directory and existing migration files (to determine next migration number)
  • ORM in use: Prisma | TypeORM | SQLAlchemy/Alembic | Django ORM | ActiveRecord | raw SQL | unknown
  • Database type: PostgreSQL | MySQL | SQLite | MongoDB | unknown

If ORM cannot be determined with confidence, fall back to generic SQL migration format.

Step 2 — Diff Analysis

Read current schema and compare against previous version (git diff if available):

  • List all added columns, tables, indexes, constraints
  • List all removed columns, tables, indexes
  • List all modified columns (type changes, nullability changes, default changes)
  • List all renamed columns or tables

Read the full file on GitHub · 274 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 274 lines · 43 tokens per session scan A 25334b3e0662

Subscribe to this mod's changes

db is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed 2d ago), licensed MIT. It adds 43 tokens to every session and 2,377 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-11-22.

Related

db compared with skills from other repositories

db next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dbRune-kit/runeSkill962d agoMITA43Claude Code
tddsentimony/skillsSkill8todayMITA43Claude Code
using-agent-skillsvanja-emichi/a0_agent_skillsSkill63mo agoMITA95Claude Code, Codex
binder-design-tool-selectionzongtingwei/Bioclaw_Skills_HubSkill277mo agoMITA91Claude Code, Codex
end-to-end-protein-design-workflowzongtingwei/Bioclaw_Skills_HubSkill277mo agoMITA98Claude Code, Codex
agent-orchestratorlingxling/awesome-skills-cnSkill3411mo agoMITA41Claude Code
poc-spec-loopfabiandistler/agentsSkill2todaynoneA55Claude Code, Codex