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 agentmods add skills/shipwithai/shipwithai-plugins/db-migrationnpx skills add ShipWithAI/shipwithai-plugins --skill db-migrationgit clone --depth 1 https://github.com/ShipWithAI/shipwithai-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/shipwithai/shipwithai-plugins/db-migration)<a href="https://agentmods.dev/skills/shipwithai/shipwithai-plugins/db-migration"><img src="https://agentmods.dev/badge/skills/shipwithai/shipwithai-plugins/db-migration.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 | $0.00074 | $0.00576 |
| Opus 5 | $0.00037 | $0.00288 |
| Sonnet 5 | $0.00015 | $0.00115 |
| Haiku 4.5 | $0.00007 | $0.00058 |
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 5d 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 — Scaffold
Keeps schema and entities in lockstep: every entity/schema change ships with a
migration. Never rely on ddl-auto: update in shared environments.
Step 1 — Detect the migration tool
| Tool | Signal |
|---|---|
| Flyway | flyway-core dependency, or a src/main/resources/db/migration/ directory |
| Liquibase | liquibase-core dependency, or a src/main/resources/db/changelog/ directory |
If neither is present, ask which to set up (default Flyway — simplest for v1), and note the dependency the project must add.
Step 2 — Determine the next version
- Flyway: scan
db/migration/forV<n>__*.sql, takemax(n) + 1. Filenames:V<n>__<snake_case_description>.sql. - Liquibase: find the changelog (
db.changelog-master.*), add a new changeset with a unique incrementingidand the project's author convention.
Step 3 — Render the migration
From assets/, substitute {{VERSION}}, {{DESCRIPTION}}, {{TABLE_NAME}},
{{AUTHOR}}:
- Flyway:
flyway_migration.sql.tmpl→db/migration/V{{VERSION}}__{{DESCRIPTION}}.sql - Liquibase:
liquibase_changeset.xml.tmpl→ appended/included into the master changelog
The DDL must include the columns the guardrails imply for entities: a version
column (optimistic lock) and audit columns (created_at, updated_at) when the
entity extends the audited base.
Step 4 — Report
Show the migration path + the SQL/changeset. If invoked standalone, remind the user to keep the entity and migration in the same commit.
Failure modes — do NOT
- Do NOT reuse an existing version number (Flyway will refuse; checksums break).
- Do NOT mix Flyway and Liquibase in one project.
- Do NOT edit an already-applied migration — add a new one (immutable history).
- Do NOT forget the
version/ audit columns when the entity uses them.
What ships with it
3 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.
- 5d ago First seen · 57 lines · 74 tokens per session scan A 8cdd3ee9ef14
db-migration is a skill published in the GitHub repository ShipWithAI/shipwithai-plugins (10 stars, last pushed 22d ago), licensed MIT. It adds 74 tokens to every session and 576 once invoked, about $0.0004 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
postgres-database-migration
Use this skill for planning, testing, and safely executing PostgreSQL schema migrations — especially when working with production data or shared databases. Trigger when user asks to: Test a schema migration before applying it to production Add, remove, or rename columns safely on a live table Change a column's data…
setup-timescaledb-hypertables
Use this skill when creating database schemas or tables for Timescale, TimescaleDB, TigerData, or Tiger Cloud, especially for time-series, IoT, metrics, events, or log data. Use this to improve the performance of any insert-heavy table. Trigger when user asks to: Create or design SQL schemas/tables AND…
design-postgis-tables
Comprehensive PostGIS spatial table design reference covering geometry types, coordinate systems, spatial indexing, and performance patterns for location-based applications.
migrate-postgres-tables-to-hypertables
Use this skill to migrate identified PostgreSQL tables to Timescale/TimescaleDB hypertables with optimal configuration and validation. Trigger when user asks to: Migrate or convert PostgreSQL tables to hypertables Execute hypertable migration with minimal downtime Plan blue-green migration for large tables Validate…
pgvector-semantic-search
Use this skill for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search. Trigger when user asks to: Store or search vector embeddings in PostgreSQL Set up semantic search, similarity search, or nearest neighbor search Create HNSW or IVFFlat indexes for vectors…
find-hypertable-candidates
Use this skill to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables. Trigger when user asks to: Analyze database tables for hypertable conversion potential Identify time-series or event tables in an existing schema Evaluate if a table would…