agentleFS
gologo13gologo13/agent-skills/skills/database-migration/SKILL.md

database-migration

Skill0 starsChanged 10 months agoMITView on GitHub

Help create and manage database migrations, generating complete migration files following th...; keywords: migration, performance, review, test. Use only on explicit request; skip in routine implementation discussions.

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 9

    Distinctive

    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:

    Check for potential data loss or corruption risks

    line 17
  2. Distinctive:

    Create up and down migration scripts

    line 20
  3. Distinctive:

    Add data migration logic where needed

    line 22
  4. Distinctive:

    Ensure migrations are atomic and reversible

    line 25
  5. Distinctive:

    Add proper error handling and validation

    line 26
  6. Distinctive:

    Consider zero-downtime deployment strategies

    line 28
  7. Distinctive:

    Create test data scenarios

    line 30
  8. Distinctive:

    Verify migration on staging environment

    line 31
  9. Distinctive:

    Document deployment steps and timing

    line 33

“Common” is measured: kept by at least 6 in 10 of the 10 edited versions of this file we could read. “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

Database Migration

Overview

Help create and manage database migrations, generating complete migration files following the project's database framework conventions.

Steps

  1. Migration Analysis
    • Review current database schema changes needed
    • Identify data transformation requirements
    • Check for potential data loss or corruption risks
    • Analyze performance impact of schema changes
  2. Migration Script Generation
    • Create up and down migration scripts
    • Include proper indexing and constraint management
    • Add data migration logic where needed
    • Implement rollback procedures
  3. Best Practices
    • Ensure migrations are atomic and reversible
    • Add proper error handling and validation
    • Include progress monitoring for large datasets
    • Consider zero-downtime deployment strategies
  4. Testing Strategy
    • Create test data scenarios
    • Verify migration on staging environment
    • Plan rollback procedures and testing
    • Document deployment steps and timing

Database Migration Checklist

  • Reviewed schema changes and data transformation requirements
  • Checked for potential data loss or corruption risks
  • Created up and down migration scripts
  • Included proper indexing and constraint management
  • Ensured migrations are atomic and reversible
  • Added error handling and validation
  • Created test data scenarios
  • Verified migration on staging environment
  • Documented deployment steps and timing

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.