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 tozhax/plumbwork --skill database-migrationsgit clone --depth 1 https://github.com/tozhax/plumbworkWrote 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/tozhax/plumbwork/database-migrations)<a href="https://agentmods.dev/skills/tozhax/plumbwork/database-migrations"><img src="https://agentmods.dev/badge/skills/tozhax/plumbwork/database-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/tozhax/plumbwork/database-migrations"><img src="https://agentmods.dev/badge/skills/tozhax/plumbwork/database-migrations.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.00088 | $0.01522 |
| Opus 5.5 | $0.00035 | $0.00609 |
| Sonnet 5.5 | $0.00018 | $0.00304 |
| Haiku 4.5 | $0.00009 | $0.00152 |
Grade B, and why
database-migrations scanned grade B with 1 finding 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 2d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- Before delivering any migration that alters or drops persisted columns/tables, dispatch `contract-change-auditor` (`~/.gemini/config/agents/contract-change-auditor.md`) to verify expand-and-contract compatibility and r How it starts
The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Database Migration Patterns & Zero-Downtime Playbook
This skill enforces safe schema evolutions, rollback strategies, and zero-downtime migrations.
When to Activate
- Creating or modifying database tables, columns, indexes, or constraints
- Writing data backfill migrations
- Planning database deployments under active production traffic
- Designing rollbacks for failed or reverted deployments
- Before delivering any migration that alters or drops persisted columns/tables, dispatch
contract-change-auditor(~/.gemini/config/agents/contract-change-auditor.md) to verify expand-and-contract compatibility and rollback safety.
Core Principles
- Backward Compatibility: Every migration must be deployable before the new application code without breaking existing running instances.
- Non-Blocking Execution: Avoid long-held table locks (
ACCESS EXCLUSIVE) that cause request queues and outages. - Reversible by Design: Every schema change must have an explicit down/rollback strategy or documented forward-fix procedure.
- Idempotency: Migrations must succeed cleanly if retried or re-executed where supported (
IF EXISTS,IF NOT EXISTS).
PostgreSQL Zero-Downtime Patterns
1. Adding Columns Safely
-- PostgreSQL 11+: nullable or non-volatile default avoids a table rewrite,
-- but STILL takes an ACCESS EXCLUSIVE lock held until transaction end.
SET LOCAL lock_timeout = '2s';
ALTER TABLE users ADD COLUMN bio TEXT DEFAULT '' NOT NULL;
-- CAUTION (all PG versions, including PG 11+): volatile defaults (e.g. random(), clock_timestamp())
-- still rewrite the entire table. Adding NOT NULL without a default on a populated table fails
-- immediately with not_null_violation (SQLSTATE 23502) rather than backfilling rows.
-- Pattern: Add nullable column -> backfill -> add NOT NULL constraint (via NOT VALID + VALIDATE CONSTRAINT).
2. Creating Indexes Without Downtime
-- ALWAYS use CONCURRENTLY on production tables to prevent write-blocking locks:
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_users_email ON users (email);
-- NOTE: CONCURRENTLY cannot execute inside a transaction block.
-- Ensure ORM / migration runner executes this outside the default transaction.
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.
- 2d ago First seen · 123 lines · 88 tokens per session scan B 79007da4ba8a
database-migrations is a skill published in the GitHub repository tozhax/plumbwork (33 stars, last pushed 2d ago), licensed MIT. It adds 88 tokens to every session and 1,522 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-02.
database-migrations compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| database-migrationstozhax/plumbwork | Skill | 33 | 2d ago | MIT | B | 88 | Claude Code |
| alloydb-basicsgoogle/skills | Skill | 26k | yesterday | Apache-2.0 | A | 72 | Claude Code, Codex |
| postgresql-table-designwshobson/agents | Skill | 43k | 2d ago | MIT | A | 37 | Claude Code |
| db-repairgarrytan/gbrain | Skill | 34k | today | MIT | A | 96 | Claude Code |
| dsqlawslabs/agent-plugins | Skill | 958 | yesterday | Apache-2.0 | A | 247 | Claude Code |
| volcengine-rds-postgresqlbytedance/agentkit-samples | Skill | 496 | today | Apache-2.0 | A | 63 | Claude Code, Codex |
| postgresdbericrisco/rsc-harness | Skill | 707 | 2d ago | MIT | A | 91 | Claude Code, Codex |