Chuyển đến nội dung
Skillpedia
Cơ sở dữ liệu48k · #4335

database-migrations-sql-migrations

Skill này làm gì

Hỗ trợ lên kế hoạch và tạo script để cập nhật cơ sở dữ liệu SQL (như PostgreSQL, MySQL, SQL Server) mà không cần dừng hệ thống. Nó đảm bảo dữ liệu được giữ an toàn và các thay đổi có thể hoàn tác nếu có sự cố.

Khi nào nên dùng

  • ✓Khi lên kế hoạch cập nhật cấu trúc cơ sở dữ liệu.
  • ✓Khi cần đảm bảo việc cập nhật cơ sở dữ liệu không làm gián đoạn dịch vụ.
  • ✓Khi lập kế hoạch hoàn tác thay đổi cơ sở dữ liệu nếu xảy ra vấn đề.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/database-migrations-sql-migrations/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi cần cập nhật bảng users trong cơ sở dữ liệu để thêm cột 'creation_date' mới, đảm bảo không có thời gian ngừng hoạt động và có thể hoàn tác nếu cần.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI phân tích những gì bạn cần thay đổi trong cơ sở dữ liệu và tạo một kế hoạch chi tiết. Nó sinh ra các lệnh SQL cần thiết để thực hiện thay đổi, bao gồm cách kiểm tra xem mọi thứ đã thành công chưa và cách hoàn tác nếu có lỗi.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.
Câu hỏi thường gặp

Không gián đoạn (zero-downtime) nghĩa là gì?

Nghĩa là việc cập nhật cơ sở dữ liệu được thực hiện mà người dùng không nhận thấy, tức là hệ thống vẫn hoạt động bình thường trong suốt quá trình.

Rollback là gì?

Đó là kế hoạch dự phòng để hoàn tác các thay đổi đã thực hiện trên cơ sở dữ liệu, phòng khi cập nhật gây ra vấn đề không mong muốn.

Công cụ này hỗ trợ những cơ sở dữ liệu nào?

Nó hoạt động với PostgreSQL, MySQL và SQL Server.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#4335
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự