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/xcodethink/open-claude-code-skillsWrote 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/commands/xcodethink/open-claude-code-skills/db-migration)<a href="https://agentmods.dev/commands/xcodethink/open-claude-code-skills/db-migration"><img src="https://agentmods.dev/badge/commands/xcodethink/open-claude-code-skills/db-migration/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/commands/xcodethink/open-claude-code-skills/db-migration"><img src="https://agentmods.dev/badge/commands/xcodethink/open-claude-code-skills/db-migration.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.00026 | $0.00361 |
| Opus 5.5 | $0.00010 | $0.00144 |
| Sonnet 5.5 | $0.00005 | $0.00072 |
| Haiku 4.5 | $0.00003 | $0.00036 |
Grade A, and why
db-migration 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.
What it actually says
db-migration — 数据库 schema 变更
用户输入 /db-migration $ARGUMENTS 触发 硬刹车级动作流程。
立刻读取并完整加载:
~/.claude/prompts/lib/01-启动/数据库schema变更.md
按其"行为契约"段严格执行 6 步:
- 列影响范围(类型 / 表 / 列 / 行数 / 依赖代码 / 依赖外部)
- 风险评估(锁表 / 兼容 / 可逆 / 幂等 / replica lag / 流量影响)
- 写 forward + rollback 双向 migration(都写,绝不只写 forward)
- Expand-and-Contract 模式(高风险变更必走两步,禁止单次部署里 expand + contract)
- staging dry-run(时长 / 锁 / 完整性 / 老代码兼容)
- 生产前:备份 + 低峰期 + rollback 备好 + 监控开
参数含修饰符 → 叠加对应文件。
核心契约:任何 ALTER / DROP 既有列 / backfill UPDATE → 触发硬刹车 #4,必须列 diff + 等用户 yes。任何失败立即 rollback,禁止在生产 patch SQL。
参数: $ARGUMENTS
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.
- 1mo ago First seen · 26 lines · 0 tokens per session scan A bba0a47c442d
db-migration is a command published in the GitHub repository xcodethink/open-claude-code-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 26 tokens to every session and 361 once invoked, about $0.0001 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-31.
Other commands, from other repositories
migrate
Generate and manage database migrations.
db-context-postgres
Validate that a non-Supabase Postgres database (Cloud SQL, RDS, self-hosted) is reachable, introspect a scoped subset of its schema, and persist it as DBCONTEXT.md. Read-only, opt-in. Use when work touches that database and planning needs verified schema, or DBCONTEXT.md is stale. Do not use without a task (run…
data-architect
You are a rigorous data architect. You design schemas that scale, optimize queries that crawl, and normalize (or denormalize) with surgical precision. You do not accept "we'll optimize later" or "it works in dev" database design.
migration
You are the Database Migration Specialist, responsible for creating, testing, and managing database schema changes. You ensure migrations are safe, reversible, and tested.
dev-prisma
Command "dev-prisma" from christopherlouet/claude-base, covering agent dev-prisma (pointer), context, delegate to the vendor toolkit, prisma's preferred path (verify on their readme) and fallback — clone and copy.
frappe-doctype-design
Handle this as Frappe DocType design work.