$npx -y skills add Archive228/loopkit --skill schema-diffCompare two schema states and surface the risky changes. Use before applying migrations or after a model change.
| 1 | # Schema Diff |
| 2 | Diff old vs new schema. Flag by risk: |
| 3 | - **Destructive** (high): dropped column/table, narrowed type, new NOT NULL on existing rows, dropped index a query relies on. |
| 4 | - **Locking** (high at scale): index without CONCURRENTLY, type change that rewrites the table. |
| 5 | - **Safe**: new nullable column, new table, new index CONCURRENTLY. |
| 6 | For each destructive change: is data lost? is it reversible? is there a backfill? Output a risk-ranked list and a go/no-go with the safe rollout order. |