database-backup

Community

Safeguard your database, migrate with confidence.

AuthorHieubkav
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Database migrations are critical but risky operations that can lead to data loss if not handled carefully. This skill enforces a mandatory pre-migration backup workflow, ensuring your data is always protected and providing a clear path to restore in case of errors.

Core Features & Use Cases

  • Mandatory Pre-Migration Backup: Automates database backups using Spatie Laravel Backup before any schema changes.
  • Restore Workflow: Provides clear instructions for restoring your database from a backup if a migration fails.
  • Schema Documentation: Guides you to update mermaid.rb to keep your database schema documentation in sync with changes.
  • Use Case: Before running php artisan migrate to deploy a new feature, activate this skill to automatically perform a database backup, ensuring you can easily revert if the migration introduces unexpected issues.

Quick Start

I'm about to run a database migration. Perform a database-only backup for me.

Dependency Matrix

Required Modules

spatie/laravel-backup

Components

Standard package

💻 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: database-backup
Download link: https://github.com/Hieubkav/wincellarCloneBackend/archive/main.zip#database-backup

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository