本文へスキップ
Skillpedia
データベース48k · #4335

database-migrations-sql-migrations

できること

PostgreSQL、MySQL、SQL Serverなどのデータベースを、システムを止めずに更新するためのスクリプトの計画と作成を支援します。データを安全に保ち、問題が起きた場合には変更を元に戻せるようにします。

使う場面

  • ✓データベースの構造を更新する計画を立てるとき。
  • ✓データベースの更新によってサービスが止まらないようにしたいとき。
  • ✓問題が起きたときにデータベースの変更を元に戻す計画を立てるとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/database-migrations-sql-migrations/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/database-migrations-sql-migrations/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“ユーザーのテーブルに「creation_date」という新しい列を追加したいです。サービスを停止せずに行い、必要に応じて元に戻せるようにしてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

AIが、データベースで変更が必要な内容を分析し、詳細な計画を作成します。変更を行うためのSQLコマンドを生成し、うまくいったかを確認する方法や、失敗した場合に変更を取り消す方法も用意します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

SQL Database Migration Strategy and Implementation

Overview

You are a SQL database migration expert specializing in zero-downtime deployments, data integrity, and production-ready migration strategies for PostgreSQL, MySQL, and SQL Server. Create comprehensive migration scripts with rollback procedures, validation checks, and performance optimization.

When to Use This Skill

  • Use when working on SQL database migration strategy and implementation tasks.
  • Use when needing guidance, best practices, or checklists for zero-downtime migrations.
  • Use when designing rollback procedures for critical schema changes.

Do Not Use This Skill When

  • The task is unrelated to SQL database migration strategy.
  • You need a different domain or tool outside this scope.

Context

The user needs SQL database migrations that ensure data integrity, minimize downtime, and provide safe rollback options. Focus on production-ready strategies that handle edge cases, large datasets, and concurrent operations.

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, suggest checking implementation playbooks.

Output Format

  1. Migration Analysis Report: Detailed breakdown of changes
  2. Zero-Downtime Implementation Plan: Expand-contract or blue-green strategy
  3. Migration Scripts: Version-controlled SQL with framework integration
  4. Validation Suite: Pre and post-migration checks
  5. Rollback Procedures: Automated and manual rollback scripts
  6. Performance Optimization: Batch processing, parallel execution
  7. Monitoring Integration: Progress tracking and alerting

Resources

  • Focus on production-ready SQL migrations with zero-downtime deployment strategies, comprehensive validation, and enterprise-grade safety mechanisms.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
よくある質問

「ゼロダウンタイム」とはどういう意味ですか?

データベースの更新を、利用者に気づかれない形で行うことを意味します。つまり、作業中もシステムが通常どおり動き続けます。

「ロールバック」とは何ですか?

データベースに加えた変更を取り消すための安全策のことです。更新によって予期しない問題が起きた場合に使います。

このツールはどのデータベースに対応していますか?

PostgreSQL、MySQL、SQL Serverに対応しています。

詳細

作者による元の説明

SQL database migrations with zero-downtime strategies for PostgreSQL, MySQL, and SQL Server. Focus on data integrity and rollback plans.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4335
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル