Schema comparator

From a5c-ai/babysitter · View interactive version

Schema comparator is an AI agent skill from the GitHub repository a5c-ai/babysitter. Compare database schemas between source and target environments for migration planning

How to use this skill

Skill file

Schema Comparator Skill

Compares database schemas between source and target environments to identify differences and generate migration scripts.

Purpose

Enable database migration planning for:

Capabilities

1. Schema Diff Generation

2. Data Type Mapping

3. Constraint Comparison

4. Index Analysis

5. Stored Procedure Comparison

6. Migration Script Generation

Tool Integrations

| Tool | Databases | Integration Method |

|------|-----------|-------------------|

| Flyway | Multi | CLI |

| Liquibase | Multi | CLI |

| Redgate SQL Compare | SQL Server | CLI |

| SchemaHero | Kubernetes | CLI |

| pgdiff | PostgreSQL | CLI |

| mysqldiff | MySQL | CLI |

Output Schema

{
  "comparisonId": "string",
  "timestamp": "ISO8601",
  "source": {
    "type": "string",
    "connection": "string"
  },
  "target": {
    "type": "string",
    "connection": "string"
  },
  "differences": {
    "tables": {
      "added": [],
      "removed": [],
      "modified": []
    },
    "columns": [],
    "constraints": [],
    "indexes": [],
    "procedures": []
  },
  "migration": {
    "scripts": [],
    "order": [],
    "rollback": []
  }
}

Integration with Migration Processes

Related Skills

Related Agents

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.