schema-diff-analyzer

Installation
SKILL.md

Schema Diff Analyzer Protocol

This skill takes two schema definitions (Source vs Target, or Environment A vs Environment B) and calculates the correct, safe delta between them. It doesn't blindly apply changes; it evaluates risk.

Core assumption: Applying standard ORM or CLI diff outputs directly to production often creates dangerous lock conditions.


1. Diff Extraction & Categorization

Analyze the two inputs. Group identified changes into three core risk categories:

🟢 Safe (Low Risk)

  • Adding new tables.
  • Adding new nullable columns.
  • Adding non-unique indexes (with CREATE INDEX CONCURRENTLY).
  • Adding new views (if they don't break existing dependencies).

🟡 Warning (Medium Risk)

  • Modifying column types (e.g., VARCHAR(50) to VARCHAR(100)).
Related skills

More from fatih-developer/fth-skills

Installs
6
GitHub Stars
4
First Seen
Mar 3, 2026