database-reset-production

Drop production schemas and rebuild them via migrations with health checks.

1|1|Updated Jun 28, 2025
One-click install
npx skills add https://github.com/DarkMonkDev/WitchCityRope --skill database-reset-production
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-reset-production
Source: https://github.com/DarkMonkDev/WitchCityRope/tree/main/.claude/skills/database-reset-production
Command: npx skills add https://github.com/DarkMonkDev/WitchCityRope --skill database-reset-production

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ssh, psql, bash.

What problem does it solve?

Performs a destructive reset of the production database, dropping public, cms, and hangfire schemas, followed by migrations and health checks.

Core Features & Use Cases

  • Extreme caution: DOUBLE and TRIPLE confirmations before proceeding.
  • Full schema drop: Drops public, cms, and hangfire schemas on production.
  • Migrations & health: Rebuilds schema, restarts containers, and validates health endpoints.

Quick Start

From project root, run:

  • bash .claude/skills/database-reset-production/execute.sh To skip confirmation:
  • SKIP_CONFIRMATION=true bash .claude/skills/database-reset-production/execute.sh

Frequently Asked Questions about database-reset-production

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

FAQPage Schema
How do I safely reset a production database with migrations?

Production database reset drops all schemas (public, cms, hangfire) and rebuilds them via migrations. This Skill provides extreme caution through triple confirmations, backup verification, and post-reset health checks to ensure safety during critical maintenance.

When should I perform a full production database reset?

A full production database reset is necessary when database corruption occurs, critical schema changes cannot be migrated incrementally, or explicit stakeholder approval exists for complete schema reconstruction. This approach rebuilds the entire schema from scratch rather than applying incremental migrations.

What safeguards does a production database reset include?

This reset process enforces double and triple confirmation prompts, verifies backups exist, retrieves credentials securely, handles service disruption, executes migrations, restarts containers, and validates health endpoints post-completion to catch failures immediately.

Can I skip confirmation steps when resetting production databases?

Yes, the SKIP_CONFIRMATION environment variable bypasses confirmation prompts, but this should only be used in automated pipelines with prior approval. Standard practice requires manual confirmation for all production database resets to prevent accidental data loss.

What database schemas does this reset drop?

This reset drops the public, cms, and hangfire schemas entirely from the production database. After schemas are dropped, migrations rebuild them automatically, restoring full functionality through schema recreation and health verification.

Do I need SSH and psql access to run a production database reset?

Yes, this reset requires both SSH access to the production environment and psql for database operations. Credentials are retrieved securely during execution, and bash handles orchestration across service disruption, schema drops, migrations, and health checks.