graft-sql-migration

Manage SQL migration files with unique versions and Chinese comments.

6|Updated May 11, 2026
One-click install
npx skills add https://github.com/GeWuYou/Graft --skill graft-sql-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graft-sql-migration
Source: https://github.com/GeWuYou/Graft/tree/main/.agents/skills/graft-sql-migration
Command: npx skills add https://github.com/GeWuYou/Graft --skill graft-sql-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3, scripts/validate_sql_migrations.py, and includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of creating and modifying SQL migration files in Graft, ensuring the integrity of live and legacy migrations, and providing deterministic validation.

Core Features & Use Cases

  • SQL Migration Management: Handle the creation and modification of SQL migration files with Chinese database comments.
  • Version Control: Enforce globally unique versions for live migrations and manage live/legacy boundaries.
  • Validation: Perform deterministic validation on migration SQL files to ensure consistency and compliance.
  • Use Case: When developing new database tables or modifying existing ones, use this Skill to generate and validate migration SQL files, ensuring that all comments are in Chinese and versions are unique.

Quick Start

Run the 'graft-sql-migration' skill to create a new migration file for the 'users' table.

Frequently Asked Questions about graft-sql-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I ensure SQL migration integrity when creating new database tables in Graft?

To ensure SQL migration integrity in Graft, you must enforce globally unique versions for live migrations, include Chinese database comments, and run deterministic validation scripts to verify consistency and compliance.

What is deterministic validation for SQL migration files?

Deterministic validation for SQL migration files is a process that consistently checks migration scripts to enforce global version uniqueness, verify Chinese comments, and ensure checksum compliance for live and legacy database boundaries.

Do I need Python to validate SQL migrations in the Graft admin platform?

Yes, you need Python3 installed because the deterministic validation and checksum computation for Graft SQL migrations are executed through specific Python validation scripts.

How do I manage live and legacy boundaries for SQL migrations?

Manage live and legacy boundaries by enforcing globally unique versions specifically for live migrations, while running deterministic validation across both live and legacy SQL files to maintain database integrity.

Why do my database migration files require Chinese comments in Graft?

Chinese comments are required in Graft SQL migration files to comply with platform-specific database management standards, ensuring that table creation and modification scripts pass deterministic validation.

Can I use this approach to validate existing legacy SQL migrations?

Yes, you can validate existing legacy SQL migrations by running the Python validation scripts, which compute checksums and perform deterministic checks across both live and legacy migration boundaries.