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 PrabhdeepSingh/claude-plugins --skill safe-migrationsgit clone --depth 1 https://github.com/PrabhdeepSingh/claude-pluginsWrote 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/prabhdeepsingh/claude-plugins/safe-migrations)<a href="https://agentmods.dev/skills/prabhdeepsingh/claude-plugins/safe-migrations"><img src="https://agentmods.dev/badge/skills/prabhdeepsingh/claude-plugins/safe-migrations.svg" alt="Measured on agentmods" 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.00100 | $0.02251 |
| Opus 5 | $0.00050 | $0.01125 |
| Sonnet 5 | $0.00020 | $0.00450 |
| Haiku 4.5 | $0.00010 | $0.00225 |
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 6d 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 — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Safe migrations — the schema change and the safe path to it are different artifacts
The single most expensive junior mistake in backend work: writing the migration for the final state instead of the safe path to it. ALTER TABLE users RENAME COLUMN email TO email_address looks correct — and it is correct, for a world where the deploy is instantaneous. Real deploys are rolling: for minutes (or hours, or days if the deploy fails), old code and new schema run against each other. The rename ships, old pods still SELECT email, and production is down before the deploy finishes. Every rule below exists because the database outlives and overlaps every version of the code that touches it.
How to apply this
Before writing any migration, answer one question: "will the previous release's code still work against the schema this migration produces?" If no, the migration must be split into stages. Then walk the change through the expand → migrate → contract sequence, and run the self-check before shipping.
1. The core law: every migration is compatible one release in each direction
During a rolling deploy, blue/green switch, or a failed-deploy rollback, the schema meets both the old and the new code. So:
- The schema after the migration must work with the previous release's code (deploy in progress, or rolled back).
- The current code must work with the pre-migration schema only if your platform runs code before migrations — know your ordering; most run migrations first.
This is the invariant everything else derives from. A migration that requires the new code to already be everywhere is a migration that requires downtime — and nobody scheduled any.
2. Expand → migrate → contract
Any breaking change (rename, drop, type change, moving data) decomposes into three phases across separate releases:
- Expand — add the new thing alongside the old: a new nullable column, a new table, a new index. Purely additive; old code doesn't notice.
- Migrate — teach the code to write to both old and new (dual-write), backfill existing rows (section 4), then switch reads to the new location. Each of these can be its own deploy; each is individually reversible.
- Contract — only after a full release cycle where nothing reads or writes the old location: drop it. The drop ships alone, in a release that changes nothing else about that data.
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.
- 6d ago First seen · 116 lines · 100 tokens per session scan A 8f8759eea3cc
safe-migrations is a skill published in the GitHub repository PrabhdeepSingh/claude-plugins (3 stars, last pushed today), licensed MIT. It adds 100 tokens to every session and 2,251 once invoked, about $0.0005 per session on Opus 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 skills, from other repositories
java-cache
Use when the user asks to add caching, configure Redis or Caffeine cache, use @Cacheable/@CacheEvict/@CachePut, optimize repeated database or API calls, or review existing Spring Boot cache configuration.
java-jpa
Reviews Spring Data JPA for N+1 queries, fetch strategies, projections, and Specifications. Use when user asks to "review JPA", "check for N+1", "JPA performance", "review my entities", "check fetch strategy", or "review my repositories".
ddia-systems
Design data systems by understanding storage engines, replication, partitioning, transactions, and consistency models. Use when the user mentions "database choice", "which database should I use", "SQL or NoSQL", "replication lag", "partitioning strategy", "consistency vs availability", "stream processing", "ACID…
symfony:doctrine-events
React to Doctrine entity lifecycle in Symfony with attribute listeners (#[AsDoctrineListener]/#[AsEntityListener], ORM 3) and lifecycle callbacks.
symfony:doctrine-batch-processing
Process large datasets with Doctrine (ORM 3 toIterable, flush+clear, bulk DQL) and memory management.
symfony:doctrine-fetch-modes
Optimize Doctrine fetching with DTO hydration (SELECT NEW; partial removed in ORM 3), lazy loading, query hints, and DBAL 4 access.