Skip to content
Claude Code

Migration minder

A Claude Code skill for database migrations that always writes the rollback first.

By Theo Marsh 2 min read 7 comments
Treats from the Context Window. May 19.

Most of the improvement came from removing things, not adding them. Each step in the skill ends with a check, so mistakes stop early. Claude reads the skill only when the task calls for it, so the description line matters most. Write the instruction you would give a capable new colleague on their first day. A clear goal turns a long answer into a useful one.

What the skill does

I keep every version, because the failures teach more than the wins. A clear goal turns a long answer into a useful one. Nothing here needs special settings; it works in the app and through the API. Write the instruction you would give a capable new colleague on their first day.

SKILL.md
---
name: migration-minder
description: A Claude Code skill for database migrations that always writes the rollback first.
---

# Migration minder

1. Read the task and restate it in one line.
2. Follow the steps in reference.md.
3. Check the result before you hand it back.

Install it

  • Download the zip and unzip it into your skills folder.
  • Restart Claude so it picks up the new skill.
  • Ask for the task in plain words; the skill loads when it fits.

Changelog

Small, checkable steps are easier to trust than one big leap. The reference file holds the boring details so the main instructions stay readable. Claude reads the skill only when the task calls for it, so the description line matters most. I learned this the slow way, so you can learn it the quick way. Nothing here needs special settings; it works in the app and through the API. Names matter: a skill called helper never gets picked; a skill called changelog-writer does.

7 comments

  1. Kim Tran

    The checklist at the end is going straight into our team wiki.

    Reply to Kim Tran
  2. Oskar Lind

    I tried this on our support macros and the replies got noticeably shorter. In a good way.

    Reply to Oskar Lind
    1. Theo Marsh Author

      Same here. Try adding “change only what I asked for” to the task itself too.

      Reply to Theo Marsh
  3. Femi A.

    I tried this on our support macros and the replies got noticeably shorter. In a good way.

    Reply to Femi A.
  4. Priya K.

    Did you test this through the API as well, or only in the app?

    Reply to Priya K.

Leave a comment

Your email is never shown. Comments are read before they appear.