DB Schema Surgeon

Community

Auto-heal PostgreSQL schemas & hybrid RAG sync

Authoradriangmrraa
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Prevents schema drift and broken RAG metadata by automatically creating missing tables, running idempotent migration steps, and keeping PostgreSQL metadata synchronized with remote vector stores so the platform stays consistent across startups.

Core Features & Use Cases

  • Auto-Healing Startup: Runs create_all for new models and executes safe ALTER/INDEX statements to add missing columns or indexes without complex migration history.
  • Idempotent Migrations: Provides SQL migration steps using IF NOT EXISTS patterns to safely evolve production schemas and avoid destructive operations.
  • Hybrid RAG Management: Stores metadata locally in PostgreSQL while keeping embeddings in Supabase/pgvector and enforces a dual-delete protocol to maintain consistency.
  • Multitenancy & Identity Safety: Enforces tenant resolution patterns (UUID→INT) and recommends indexed foreign keys and performance-oriented indices.

Quick Start

Restart the orchestrator so it runs create_all and the idempotent migration steps to create missing tables and apply safe ALTER statements.

Dependency Matrix

Required Modules

None required

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: DB Schema Surgeon
Download link: https://github.com/adriangmrraa/MultiAgents-Platform-ROI/archive/main.zip#db-schema-surgeon

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.