safe-migration
CommunitySecure Prisma migrations
Authormyoshi2891
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill ensures that Prisma database migrations are performed safely and systematically, preventing accidental data loss or corruption by enforcing best practices and user confirmation.
Core Features & Use Cases
- Enforced
migrate dev: Strictly prohibitsdb pushand mandatesmigrate devfor all schema changes. - Mandatory Backups & Confirmation: Requires explicit user confirmation after verifying database backups.
- Destructive Operation Warnings: Identifies and warns about potentially destructive SQL operations (DROP, DELETE, ALTER DROP) before execution.
- Spec Compliance Check: Validates schema changes against project specifications (
specs/multi-vendor-ecommerce/03-data-model.md). - Code & Spec Update Suggestions: Recommends necessary updates to server actions, types, schemas, and documentation.
- Use Case: When you need to add a new field to your
Productmodel, this Skill will guide you through creating a safe migration, ensuring your database remains consistent and your codebase is updated accordingly.
Quick Start
Use the safe-migration skill to execute a Prisma migration for adding a new field to the product model.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: safe-migration Download link: https://github.com/myoshi2891/Multi-Vendor-E-Commerce/archive/main.zip#safe-migration Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.