db-env-switch

Community

Safely toggle DB environments.

Authorenbyaugust
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill automates switching between local and production database configurations, reducing manual steps and risk whenever you change environments.

Core Features & Use Cases

  • Environment detection: Reads the current environment from .env.local to determine LOCAL vs PRODUCTION.
  • Safety and approvals: Enforces production-switch confirmation prompts to prevent accidental data exposure.
  • Environment updates: Updates .env.local to flip between LOCAL and PRODUCTION settings.
  • Process management: Terminates active Vite/dev and worker processes to ensure fresh environment loading.
  • Restart guidance: Provides clear instructions to restart services after a switch.
  • Use Case: When moving from local development to staging/production, switch safely with automatic checks and rollback-ready steps.

Quick Start

  • Tell the skill to switch to LOCAL or PRODUCTION.
  • It will verify prerequisites, update configuration, kill processes, and present restart commands.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: db-env-switch
Download link: https://github.com/enbyaugust/zacs-claude-skills/archive/main.zip#db-env-switch

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.