sync-db-schema-from-code

Community

Sync DB schema from code to DB.

Authorwillyu1007
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the process of applying database schema changes defined in the codebase to a target database, ensuring consistency and reducing manual errors.

Core Features & Use Cases

  • Schema Synchronization: Applies schema changes from prisma/schema.prisma to a target database.
  • Migration Management: Utilizes Prisma migrations for controlled database updates.
  • Diff Preview: Provides a preview of schema differences before applying changes.
  • Approval Gate: Includes a step for manual approval before execution.
  • Context Refresh: Updates LLM context with the latest database schema information.
  • Use Case: Developers can ensure their local development database schema accurately reflects the production schema by running this skill after code changes that affect the database.

Quick Start

Apply the latest database schema changes from the code to the development database.

Dependency Matrix

Required Modules

None required

Components

referencesscripts

💻 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: sync-db-schema-from-code
Download link: https://github.com/willyu1007/Template-Skill-Basic/archive/main.zip#sync-db-schema-from-code

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

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.