devops-database

Automate PostgreSQL migrations, backups, and pgvector management with Alembic.

Updated Nov 11, 2025
One-click install
npx skills add https://github.com/shredbx/demo-3d-model --skill devops-database
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: devops-database
Source: https://github.com/shredbx/demo-3d-model/tree/main/.claude/skills/devops-database
Command: npx skills add https://github.com/shredbx/demo-3d-model --skill devops-database

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill centralizes and automates PostgreSQL database management, including schema migrations, reliable backups, and restoration procedures, ensuring data integrity and simplifying database operations for both development and production.

Core Features & Use Cases

  • Alembic Migrations: Create, apply, and roll back database schema changes with version control.
  • Backup & Restoration: Implement robust backup strategies and restore databases from SQL dumps.
  • Use Case: A new feature requires adding a column to the users table. Use this Skill to auto-generate an Alembic migration, review it, apply it to the development database, and then perform a backup before deploying to production.

Quick Start

Use the devops-database skill to create a new Alembic migration script for adding a 'last_login' column to the 'users' table.

Frequently Asked Questions about devops-database

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

FAQPage Schema
How do I automate PostgreSQL schema migrations with version control?

Alembic migrations automate schema changes with version control by generating migration scripts that track database revisions. Create migrations with `alembic revision`, review the generated SQL, and apply them with `alembic upgrade` to manage schema changes reliably across environments.

Can I back up and restore a PostgreSQL database safely?

Yes. This Skill implements backup and restoration procedures using SQL dumps to ensure data integrity. Back up your database before deployments, then restore from dumps when needed, protecting against data loss and enabling quick recovery.

Does this work with pgvector for vector data management?

Yes. The Skill manages the pgvector extension alongside standard PostgreSQL operations, enabling you to version-control vector columns and back up vector data as part of your migration and recovery workflows.

How do I roll back database schema changes?

Use Alembic's `downgrade` command to roll back schema changes to a previous revision. Migrations are reversible, allowing you to undo changes safely when needed during development or troubleshooting.

Can I run PostgreSQL migrations in both development and production?

Yes. The Skill supports environment-specific configuration and Docker/host integration, letting you apply the same migration workflows consistently across development, staging, and production with secure connection handling.

What do I do if a migration fails or causes schema issues?

Use shell access to query the database, diagnose connection or schema problems, and troubleshoot migration errors. Rollback with `alembic downgrade` if needed, then refine the migration before reapplying it.