agentleFS
rpraharajrpraharaj/ai-sdlc/skills/plan-data-migration/SKILL.md

plan-data-migration

Skill0 starsChanged 16 days agoMITView on GitHub

Plan expand-then-contract data migration slices. Use when the user asks for a migration plan, expand/contract, dual-write plan, or /plan-data-migration. Do not expand and contract in the same change. Do not run the migration.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not implement. Do not put expand and contract in one slice.

    line 19
  2. Distinctive:

    If you cannot name the current stored shape, stop.

    line 34
  3. Distinctive:

    Read AGENTS.md if present.

    line 43

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Plan data migration

Order the safe slices. This is not data-change (that applies one slice) and not write-integration-contract.

Do not implement. Do not put expand and contract in one slice.

Is this the right skill?

SignalDo this instead
The contract/shape itselfwrite-integration-contract
Apply one expand or one contractdata-change
Examples onlywrite-api-examples

Required inputs

  • Current shape and desired shape (design, contract, or schema path)
  • AGENTS.md

If you cannot name the current stored shape, stop.

Human decisions (do not invent)

  • Downtime window (default: none — expand/contract online)
  • Backfill ownership

Procedure

  1. Read AGENTS.md if present. Read the current schema/contract and the desired one.
  2. Find the home: docs/data/migration-<slug>.md.
  3. Open references/migration-template.md. Copy every heading. Write n/a when unused.
  4. Slices in order: expand (add) → dual-write/read if needed → backfill → switch readers → contract (remove). Each slice separately reviewable.
  5. Each slice names the later data-change (or sibling skill) and a rollback sentence.
  6. No secret values.

Output

  • Path: docs/data/migration-<slug>.md
  • Template: references/migration-template.md

Quality bar

  • Current and desired shapes are named
  • Expand and contract are different slices
  • Each slice has a rollback sentence
  • Unused headings are n/a

Done

  1. Path
  2. Slice count
  3. Next skill: data-change on slice 1

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.