migration-rule-engine

Search, apply, and manage migration rules for SQL code in Snowflake migrations.

1|1|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/Snowflake-Labs/cortex-code-migrations --skill migration-rule-engine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migration-rule-engine
Source: https://github.com/Snowflake-Labs/cortex-code-migrations/tree/main/plugin/skills/migration/migrate-objects/rule-engine
Command: npx skills add https://github.com/Snowflake-Labs/cortex-code-migrations --skill migration-rule-engine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes skills (resource) and scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables users to search, apply, and manage migration rules that encode known code fixes and patterns for Snowflake migrations, reducing manual effort and errors.

Core Features & Use Cases

  • Search applicable rules for SQL code to identify known fixes.
  • Apply rules to single or multiple SQL files, automating regex replacements and AI-guided edits.
  • Extract and deduce rules from code changes or git history to build a tailored rule library.
  • Use case: A database team can quickly find applicable fixes for a new SQL stored procedure and batch apply consistent transformations across multiple scripts.

Quick Start

Use the rule-engine to search for rules applicable to your SQL file and apply them seamlessly within your migration workflow.

Frequently Asked Questions about migration-rule-engine

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

FAQPage Schema
How do I automate SQL code migration fixes for Snowflake?

Automate SQL code migration by searching for applicable rules and batch applying them to single or multiple SQL files, encoding known regex replacements and AI-guided edits to reduce manual effort.

What is the best way to extract migration rules from existing code changes?

Extracting migration rules from code changes or git history allows you to automatically deduce patterns and build a tailored rule library for consistent code propagation across your database migration pipeline.

Can I apply regex-based replacements across multiple SQL stored procedures at once?

Yes, you can batch apply consistent regex-based transformations and AI-guided edits across multiple SQL scripts, automating common fixes and ensuring consistency throughout the migration process.

How does semantic search work for finding applicable SQL migration rules?

Semantic search integrates with regex-based searches to scan your SQL code, intelligently identifying known fixes and applicable migration rules to streamline the refinement of your database migration pipeline.

Do I need a dedicated environment to manage Snowflake code migration rules?

No dedicated environment is required to manage Snowflake migration rules. You can discover, apply, and refine code fixes directly within your migration workflow to optimize pipelines and reduce manual errors.