MCP HubMCP Hub
スキル一覧に戻る

comparing-database-schemas

jeremylongshore
更新日 Today
71 閲覧
712
74
712
GitHubで表示
メタdata

について

このスキルは、PostgreSQLまたはMySQLデータベースのスキーマを比較し、ロールバック手順を含む安全なマイグレーションスクリプトを生成します。スキーマの差分を特定したり、デプロイ対応のSQLマイグレーションを作成したり、データベース構造を同期する必要がある場合にご利用ください。「データベース差分」「スキーマ比較」といった用語や、マイグレーションスクリプト生成のリクエストによって起動されます。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/jeremylongshore/claude-code-plugins-plus
Git クローン代替
git clone https://github.com/jeremylongshore/claude-code-plugins-plus.git ~/.claude/skills/comparing-database-schemas

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

Overview

This skill empowers Claude to perform production-grade database schema comparisons, generate safe migration scripts, and create rollback procedures. It simplifies the process of keeping database schemas synchronized across different environments, ensuring data integrity and minimizing downtime during deployments.

How It Works

  1. Schema Comparison: The plugin compares the schemas of two specified databases (PostgreSQL or MySQL), identifying differences in tables, columns, indexes, constraints, and triggers.
  2. Migration Script Generation: Based on the schema differences, the plugin generates a safe migration script that can be used to update the target database schema. The script includes transaction safety to prevent data corruption.
  3. Rollback Procedure Generation: The plugin also generates a rollback procedure that can be used to revert the changes made by the migration script in case of errors.

When to Use This Skill

This skill activates when you need to:

  • Compare database schemas between different environments (e.g., development, staging, production).
  • Generate migration scripts to update a database schema to the latest version.
  • Create rollback procedures to revert database schema changes.
  • Synchronize database schemas across multiple environments to ensure consistency.

Examples

Example 1: Generating a Migration Script

User request: "Generate a migration script to update the staging database schema to match production."

The skill will:

  1. Connect to both the staging and production databases.
  2. Compare the schemas of the two databases using the database-diff-tool plugin.
  3. Generate a migration script that updates the staging database schema to match the production schema, including transaction safety and rollback procedures.

Example 2: Comparing Database Schemas

User request: "Compare the database schemas of the development and testing environments."

The skill will:

  1. Connect to both the development and testing databases.
  2. Compare the schemas of the two databases using the database-diff-tool plugin.
  3. Report the differences between the two schemas, including any missing tables, columns, indexes, or constraints.

Best Practices

  • Database Credentials: Ensure that Claude has access to the necessary database credentials to connect to the databases being compared.
  • Backup: Always back up the database before running any migration scripts.
  • Validation: Validate the generated migration script in a test environment before deploying it to production.

Integration

This skill can be integrated with other CI/CD tools to automate the database migration process. It can also be used in conjunction with other database management tools to monitor database schema changes and ensure data integrity.

GitHub リポジトリ

jeremylongshore/claude-code-plugins-plus
パス: backups/skills-batch-20251204-000554/plugins/database/database-diff-tool/skills/database-diff-tool
aiautomationclaude-codedevopsmarketplacemcp

関連スキル

content-collections

メタ

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

スキルを見る

polymarket

メタ

This skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.

スキルを見る

hybrid-cloud-networking

メタ

This skill configures secure hybrid cloud networking between on-premises infrastructure and cloud platforms like AWS, Azure, and GCP. Use it when connecting data centers to the cloud, building hybrid architectures, or implementing secure cross-premises connectivity. It supports key capabilities such as VPNs and dedicated connections like AWS Direct Connect for high-performance, reliable setups.

スキルを見る

llamaindex

メタ

LlamaIndex is a data framework for building RAG-powered LLM applications, specializing in document ingestion, indexing, and querying. It provides key features like vector indices, query engines, and agents, and supports over 300 data connectors. Use it for document Q&A, chatbots, and knowledge retrieval when building data-centric applications.

スキルを見る