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.
npx skills add slbug/claude-ruby-grape-rails --skill safe-migrationsgit clone --depth 1 https://github.com/slbug/claude-ruby-grape-railsWrote 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/skills/slbug/claude-ruby-grape-rails/safe-migrations)<a href="https://agentmods.dev/skills/slbug/claude-ruby-grape-rails/safe-migrations"><img src="https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/safe-migrations/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/skills/slbug/claude-ruby-grape-rails/safe-migrations"><img src="https://agentmods.dev/badge/skills/slbug/claude-ruby-grape-rails/safe-migrations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00055 | $0.02026 |
| Opus 5.5 | $0.00022 | $0.00810 |
| Sonnet 5.5 | $0.00011 | $0.00405 |
| Haiku 4.5 | $0.00006 | $0.00203 |
Grade A, and why
safe-migrations 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.
How it starts
The opening of the file, as written. The whole thing — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Safe Migrations
Scope Check First
This skill is Active Record-first unless the touched package clearly uses Sequel.
Before giving migration advice, identify which migration system owns the file:
class ... < ActiveRecord::Migration[...]→ Active Record migrationSequel.migration do→ Sequel migration- mixed repos may contain both
If the repo is modular or mixed-ORM:
- identify the owning package first
- do not generate Rails migration templates for Sequel packages
- do not assume one global migration strategy for the whole repository
Iron Laws
- Never drop columns/tables while code references them
- Never add column with default on large tables (PG < 11, MySQL)
- Never add index non-concurrently on large tables
- Never change column type on large tables
- Never rename without multi-step process
- Always backfill in batches
The Three-Step Deployment Process
Deploy 1: Add new structure (nullable, no default)
Deploy 2: Update code; backfill data; switch reads
Deploy 3: Remove old structure; add constraints
Locking Behavior Note
Warnings like "locks table" are generalizations — actual locking behavior varies by database:
| Database | Concurrent Indexes | DDL Transaction Safety | Notes |
|---|---|---|---|
| PostgreSQL 11+ | CONCURRENTLY supported |
disable_ddl_transaction! required |
Best for zero-downtime |
| PostgreSQL < 11 | CONCURRENTLY supported |
Same as above | Adding column with default locks table |
| MySQL 8.0+ | No concurrent option | pt-online-schema-change for large tables |
InnoDB has different locking model |
| MySQL 5.7 | No concurrent option | Use percona toolkit | More locking on DDL |
| SQLite | N/A (file-based) | Locks entire database | Development/test only |
Always consult your database documentation for exact locking behavior. See references/database-specific.md for detailed guidance.
Safe Patterns
Adding a Column
What ships with it
4 files 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.
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.
- 2mo ago First seen · 271 lines · 55 tokens per session scan A 9dafb2ca9974
safe-migrations is a skill published in the GitHub repository slbug/claude-ruby-grape-rails (7 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 2,026 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-09-03.
safe-migrations compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| safe-migrationsslbug/claude-ruby-grape-rails | Skill | 7 | yesterday | MIT | A | 55 | Claude Code |
| omh-relational-dbrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 22 | Claude Code |
| api-canvascyanheads/obsidian-mcp-server | Skill | 722 | 20d ago | Apache-2.0 | A | 85 | Claude Code |
| data-governanceWrongStack/WrongStack | Skill | 446 | today | MIT | A | 92 | Claude Code, Codex |
| api-mirrorcyanheads/obsidian-mcp-server | Skill | 722 | 20d ago | Apache-2.0 | A | 68 | Claude Code |
| redteam-sqli-detail-packNetw0rkNoob/VulnClaw | Skill | 4.0k | 1mo ago | MIT | A | 59 | Claude Code, Codex |
| backup-recoveryWrongStack/WrongStack | Skill | 446 | today | MIT | A | 87 | Claude Code, Codex |