memstack-development-migration-planner

memstack-development-migration-planner is a skill for Claude Code from cwinvestments/memstack. It costs 73 tokens per session (3,648 once invoked), scanned A, original, MIT.

A guide for changing the structure of an existing database, such as adding a column or changing a field type, while keeping the application running.

In plain words
What is it for?
Planning PostgreSQL, MySQL, or SQLite schema migrations, including data updates, validation points, rollback procedures, and version tracking.
Why use it?
Database changes can lock tables, break older application code, or leave data incomplete. It helps plan checks, rollback steps, and changes that avoid downtime.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the memstack plugin — 87 skills, 2 commands, 6 hooks shipped together

Good fit Planning PostgreSQL, MySQL, or SQLite schema migrations, including data updates, validation points, rollback procedures, and version tracking.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cwinvestments/memstack/migration-planner
Install

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.

Any agent
npx skills add cwinvestments/memstack --skill migration-planner
Clone the repo
git clone --depth 1 https://github.com/cwinvestments/memstack

Made for: Claude Code.

Or install memstack, the plugin that ships this one along with the rest of its 87 skills, 2 commands, 6 hooks.

Wrote 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.

agentmods badge for memstack-development-migration-planner

README.md
[![agentmods](https://agentmods.dev/badge/skills/cwinvestments/memstack/migration-planner/github.svg)](https://agentmods.dev/skills/cwinvestments/memstack/migration-planner)
Your own site
<a href="https://agentmods.dev/skills/cwinvestments/memstack/migration-planner"><img src="https://agentmods.dev/badge/skills/cwinvestments/memstack/migration-planner/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.

agentmods 80×15 button for memstack-development-migration-planner

Your own site · 80×15
<a href="https://agentmods.dev/skills/cwinvestments/memstack/migration-planner"><img src="https://agentmods.dev/badge/skills/cwinvestments/memstack/migration-planner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,648 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 37
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium MCP Rug Pull · line 224
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 225
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.03648
Opus 5.5 $0.00029 $0.01459
Sonnet 5.5 $0.00015 $0.00730
Haiku 4.5 $0.00007 $0.00365

Measured 1mo ago against content hash f30708216d7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

memstack-development-migration-planner 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 1mo 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.

skills/development/migration-planner/SKILL.md · 431 lines

How it starts

The opening of the file, as written. The whole thing — 431 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migration Planner: Planning database migration...

Plans safe database schema migrations with zero-downtime strategies, rollback procedures, data validation checkpoints, and version tracking for PostgreSQL, MySQL, and SQLite.

Activation

When this skill activates, output:

Migration Planner: Planning database migration...

Then execute the protocol below.

Context Guard

Context Status
User says "migration", "schema change", "database migration" ACTIVE
User says "alter table", "add column", "change type", "rollback plan" ACTIVE
User wants to evolve an existing database schema safely ACTIVE
User wants to design a new database from scratch DORMANT: use Database Architect
User wants to refactor application code DORMANT: use Refactor Planner

Common Mistakes

Mistake Why It's Wrong
"Just ALTER TABLE in production" Unplanned schema changes cause outages. Lock durations, data backfills, and app compatibility all need planning.
"No rollback plan" Migrations fail. Without a tested rollback, a failed deploy means manual emergency recovery at 3 AM.
"Rename columns directly" Renaming breaks all queries referencing the old name instantly. Use add → migrate → drop (3-phase).
"Big bang data migration" Migrating millions of rows in one transaction locks the table for minutes/hours. Batch in chunks.
"Skip validation" Assuming data migrated correctly without checking is gambling. Validate row counts, checksums, and spot checks.

Protocol

Step 1: Gather Migration Requirements

If the user hasn't provided details, ask:

  1. Database: what engine? (PostgreSQL, MySQL, SQLite, MongoDB)
  2. Current schema: what does the table/schema look like now?
  3. Target schema: what should it look like after migration?
  4. Data volume: how many rows in affected tables?
  5. Downtime tolerance: zero-downtime required, or maintenance window OK?
  6. Migration tool: what do you use? (Prisma, Knex, Flyway, Alembic, raw SQL, other)

Read the full file on GitHub · 431 lines

Changes

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.

  1. 1mo ago Changed f30708216d7c
  2. 1mo ago First seen · 431 lines · 73 tokens per session scan A e5c766d96b80

Subscribe to this mod's changes

memstack-development-migration-planner is a skill published in the GitHub repository cwinvestments/memstack (425 stars, last pushed yesterday), licensed MIT. It adds 73 tokens to every session and 3,648 once invoked, about $0.0003 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-08-30.