schema-guardian

Categorize schema.prisma modifications and generate migration and rollback plans.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/mouayadakel/flixCamFinal --skill schema-guardian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: schema-guardian
Source: https://github.com/mouayadakel/flixCamFinal/tree/main/.cursor/skills/schema-guardian
Command: npx skills add https://github.com/mouayadakel/flixCamFinal --skill schema-guardian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents accidental data loss and system instability by analyzing database schema changes before they are applied.

Core Features & Use Cases

  • Change Categorization: Classifies schema modifications as Safe, Caution, or Breaking.
  • Data Impact Assessment: Evaluates the potential consequences of changes on existing data.
  • Migration Planning: Generates a clear plan for applying schema changes and a rollback strategy.
  • Use Case: Before committing a change to schema.prisma that involves removing a field, this Skill will warn you about potential data loss and provide steps to mitigate it.

Quick Start

Use the schema-guardian skill to analyze changes in schema.prisma.

Frequently Asked Questions about schema-guardian

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

FAQPage Schema
How do I prevent data loss when modifying a Prisma database schema?

To prevent data loss when modifying a Prisma database schema, you can analyze schema.prisma changes to categorize modifications as Safe, Caution, or Breaking, assessing potential data impact before applying migrations.

What is the best way to plan a database migration rollback for breaking schema changes?

The best way to plan a database migration rollback for breaking schema changes is to generate a clear rollback strategy alongside your migration plan by evaluating the data impact of removing fields or altering models in schema.prisma.

How does data impact assessment work for Prisma schema migrations?

Data impact assessment for Prisma schema migrations works by evaluating the potential consequences of schema modifications on existing data, categorizing changes to warn you about potential data loss before you execute prisma migrate commands.

Can I check if a schema.prisma modification is safe before running prisma migrate?

Yes, you can check if a schema.prisma modification is safe before running prisma migrate by analyzing the file to classify modifications as Safe, Caution, or Breaking and assessing the potential consequences on existing data.

When do I need to assess data integrity before applying database schema changes?

You need to assess data integrity before applying database schema changes whenever you modify schema.prisma, mention database model updates, or plan to execute prisma migrate commands to prevent accidental system instability.

What are the limitations of categorizing schema migrations as Safe or Breaking?

Categorizing schema migrations as Safe or Breaking requires a thorough analysis of the schema.prisma file and accurate data impact assessment, as it primarily prevents accidental data loss but cannot automatically execute the rollback strategy.