Agent skill · Audited from source
Managing Database Migrations
skill · jeremylongshore/claude-code-plugins-plus-skillsMIT licenceAudited 8 Oct 2026 · source 4f83675ca38a
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 4f83675ca38a and found no filesystem, network or shell access and no hard-coded secrets. What it does: Process use when you need to work with database migrations.
Cite
Cite this page
ModelsAtlas. “Managing Database Migrations (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/managing-database-migrations
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 4f83675ca38a · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherjeremylongshore GitHub userOwner of the repository this skill is read from
- Source folderjeremylongshore/claude-code-plugins-plus-skills/plugins/database/database-migration-manager/skills/managing-database-migrationsThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f83675ca38aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Process use when you need to work with database migrations.
--- name: managing-database-migrations description: 'Process use when you need to work with database migrations. This skill provides schema migration management with comprehensive guidance and automation. Trigger with phrases like "create migration", "run migrations", or "manage schema versions". ' allowed-tools: Read, Write, Edit, Grep, Glob, Bash(psql:*), Bash(mysql:*), Bash(mongosh:*) version: 1.23.0 author: Jeremy Longshore <[email protected]> license: MIT tags: - database - migration - database-migrations compatibility: Designed for Claude Code --- # Database Migration Manager ## Overview Create, validate, and execute database schema migrations with full rollback support across PostgreSQL, MySQL, and MongoDB. ## Prerequisites - Database credentials with DDL permissions (CREATE, ALTER, DROP TABLE) - Migration framework installed and configured (Flyway, Alembic, Prisma, Knex, or raw SQL versioning) - Version control for migration files (Git repository) - Access to a staging database matching production schema for testing migrations - `psql` or `mysql` CLI for executing and verifying migrations - Current schema baseline documented or captured via `pg_dump --schema-only` ## Instructions 1. Capture the current schema state before making changes. Run `pg_dump --schema-only -f schema_before.sql` (PostgreSQL) or `mysqldump --no-data > schema_before.sql` (MySQL) to create a reference point. 2. Define the desired schema change clearly: specify table name, column additions/removals/modifications, constraint changes, and index updates. Document whether the change is additive (safe) or destructive (requires data migration). 3. Generate a versioned migration file following the framework's naming convention: - Flyway: `V20240115_001__add_status_column_to_orders.sql` - Alembic: `alembic revision --autogenerate -m "add status column to orders"` - Prisma: Edit `schema.prisma` then `npx prisma migrate dev --name add_status_to_orders` - Knex: `npx knex migrate:make add_status_to_orders` 4. Write the UP migration (forward change) with these safety practices: - Add new columns as nullable first, then backfill, then set NOT NULL - Use `IF NOT EXISTS` for CREATE operations to make migrations idempotent - Add explicit transaction wrapping: `BEGIN; ... COMMIT;` - Include comments explaining the business reason for each change 5. Write the DOWN migration (rollback) that exactly reverses the UP migration. For column additions, the DOWN drops the column. For table renames, the DOWN renames back. For data transformations, the DOWN must restore original data (store it in a backup column or table if needed). 6. Validate the migration on staging by running the full migration sequence: - Apply the UP migration and verify schema matches expectations - Run the application test suite against the migrated schema - Apply the DOWN migration and verify the schema returns to its original state - Re-apply the UP migration to confirm idempotency 7. For zero-downtime migrations on production, follow the expand-contract pattern: - Phase 1 (expand): Add new column/table without removing old ones. Deploy application code that writes to both old and new. - Phase 2 (migrate): Backfill new column/table from old data in batches. - Phase 3 (contract): Deploy application code that reads only from new. Drop old column/table in a future migration. 8. Handle large table migrations (>10M rows) with online DDL tools: `pg_repack` for PostgreSQL, `pt-online-schema-change` for MySQL, or `gh-ost` for MySQL. These tools create a shadow table, replicate changes, then swap atomically. 9. Update the migration history table and verify the migration version matches expectations. Run `flyway info` or `alembic current` to confirm. 10. Document the migration in a changelog with: migration version, description, tables affected, estimated execution time, rollback procedure, and any required application deployments. ## Output - **Migration files** (UP and DOWN) in the target framework's format - **Pre-flight validation script** checking prerequisites before migration execution - **Data backfill scripts** for non-nullable column additions on existing tables - **Rollback runbook** with step-by-step instructions for reverting in production - **Migration changelog entry** documenting the change for team reference ## Error Handling | Error | Cause | Solution | |-------|-------|---------| | Migration fails with lock timeout | Long-running queries blocking DDL locks on the target table | Set `lock_timeout = '5s'` to fail fast; retry during low-traffic period; use `pg_repack` for lock-free operations | | Column cannot be dropped because of dependent views | Views or materialized views reference the column being removed | Drop or recreate dependent views first; use `CASCADE` only after verifying all dependents are acceptable to drop | | NOT NULL constraint violation during migration | Existing rows have NULL values in a column being made NOT NULL | Add a backfill step: `UPDATE table SET column = default_value WHERE column IS NULL` before adding NOT NULL | | Migration version conflict | Two developers created migrations with the same version number | Use timestamp-based versioning; resolve by renaming one migration and re-running | | Rollback fails because data was inserted after UP migration | New data in added columns has no place to go in the old schema | Design rollback to handle new data (backup column, log discarded data); accept that some rollbacks are data-lossy | ## Examples **Adding a status enum column to an orders table**: Generate a migration that: (1) creates the enum type `CREATE TYPE order_status AS ENUM ('pending', 'shipped', 'delivered')`, (2) adds column `ALTER TABLE orders ADD COLUMN status order_status`, (3) backfills `UPDATE orders SET status = 'delivered' WHERE shipped_at IS NOT NULL`, (4) sets NOT NULL `ALTER TABLE orders ALTER COLUMN status SET NOT NULL`.
Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f83675
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills git -C claude-code-plugins-plus-skills checkout 4f83675ca38a
The author documents no install command, so this uses the repository directly. Our verdict covers commit 4f83675ca38a only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
4f83675ca38a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/jeremylongshore/managing-database-migrations/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
All data & analysis skills →jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Deploy and orchestrate Vertex AI ADK agents using A2A protocol. Manages
Add this badge to your README
[](https://modelsatlas.com/skills/jeremylongshore/managing-database-migrations/)
<a href="https://modelsatlas.com/skills/jeremylongshore/managing-database-migrations/"><img src="https://modelsatlas.com/skills/jeremylongshore/managing-database-migrations/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Managing Database Migrations
What does the Managing Database Migrations skill do?
Is Managing Database Migrations safe to install?
What can Managing Database Migrations access on my machine?
Which assistants does Managing Database Migrations work with?
How current is this page?
Sources
- github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/ — the audited source at commit 4f83675ca38a and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Managing Database Migrations skill do?
- Is Managing Database Migrations safe to install?
- What can Managing Database Migrations access on my machine?