database-schema-management

Enforces schema.migrationsha changes for Pi-ssigma-based projects via tracked migrations and validation steps.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/leandro-br-dev/charhub --skill database-schema-management
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: database-schema-management
Source: https://github.com/leandro-br-dev/charhub/tree/main/docs/agents/skills/database-schema-management
Command: npx skills add https://github.com/leandro-br-dev/charhub --skill database-schema-management

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures all database schema changes go through a Prisma migration workflow to prevent drift, reproducibility issues, and production incidents caused by manual SQL.

Core Features & Use Cases

  • Enforces that schema changes are implemented via migrations and verified against the migration history.
  • Provides a governance framework for Prisma-based teams, including PR checks and migration validation to maintain consistency across environments.
  • Use Case: When editing prisma/schema.prisma, generate a new migration, verify it exists in prisma/migrations, and deploy with confidence.

Quick Start

Modify prisma/schema.prisma, generate a migration, and verify its changes are present in prisma/migrations.

Frequently Asked Questions about database-schema-management

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

FAQPage Schema
How do I enforce Prisma migration workflows for schema changes?▼

To enforce Prisma migration workflows, you need migration-first rules that require schema.prisma modifications to generate corresponding migration files. This prevents manual SQL overrides and ensures every database schema change is auditable across multi-environment deployments.

Why do my database schema changes cause drift across environments?▼

Database schema changes cause drift when developers bypass migration workflows and apply manual SQL. Implementing migration-driven validation checks ensures schema.prisma edits are synchronized with the migration history, preventing reproducibility issues and production incidents.

What's the best way to add guardrails for Prisma schema migrations?▼

The best way to add guardrails for Prisma schema migrations is to apply automated PR checks that verify generated migrations exist in the prisma/migrations directory. This governance framework maintains consistency and blocks unaudited schema evolution.

How do I validate that a schema.prisma edit has a corresponding migration?▼

To validate a schema.prisma edit has a corresponding migration, you verify that a newly generated migration file exists in the prisma/migrations directory. This validation step ensures schema changes are reproducible and safe for production deployment.

Can I use migration-first schema management for multi-environment development?▼

Yes, migration-first schema management is designed for multi-environment development and production workflows. It ensures database schema changes are verified against migration history, maintaining consistency across all deployment environments.

When do I need a migration-driven approach for database schema changes?▼

You need a migration-driven approach for database schema changes when your project requires auditable evolution and reproducibility. It is essential for preventing drift and production incidents caused by manual SQL in Prisma-based projects.