unified-database-migrator

Refactor TypeScript database access to strict Supabase types.

2|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/stackconsult/RE-Engine --skill unified-database-migrator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unified-database-migrator
Source: https://github.com/stackconsult/RE-Engine/tree/main/.agent/skills/unified-database-migrator
Command: npx skills add https://github.com/stackconsult/RE-Engine --skill unified-database-migrator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Refactors UnifiedDatabaseManager to align with strict Supabase types, increasing type safety and reducing runtime errors in database access.

Core Features & Use Cases

  • Generate strict TypeScript signatures using Database[...] types.
  • Replace manual interfaces with generated Supabase types and safe casts.
  • Use in migration workflows to modernize existing database access layers.

Quick Start

Run the unified-database-migrator tool to convert your database access code to strict Supabase types.

Frequently Asked Questions about unified-database-migrator

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

FAQPage Schema
How do I enforce strict Supabase types in TypeScript database migrations?

To enforce strict Supabase types in TypeScript database migrations, you refactor your database access code to use Database[...] types. This replaces manual interfaces with generated Supabase types and applies safe casts for compile-time safety.

What is the best way to migrate a UnifiedDatabaseManager to TypeScript type safety?

Migrating a UnifiedDatabaseManager to TypeScript type safety involves refactoring existing data access layers to align with strict Supabase types. This enforces type-safe signatures and includes guarded casts to ensure runtime stability across leads and contacts tables.

Does this Supabase migration approach work without external dependencies?

Yes, this Supabase migration approach works without external dependencies. It operates directly on your TypeScript project to replace manual interfaces with generated Supabase types, requiring no additional installation steps to enforce end-to-end type safety.

Why does my Supabase database access layer lack compile-time safety in TypeScript?

Your Supabase database access layer lacks compile-time safety in TypeScript if it relies on manual interfaces instead of generated Database[...] types. Refactoring to use strict Supabase types with guarded casts resolves this and reduces runtime errors.

Can I use generated Supabase types to replace manual interfaces in existing database access code?

Yes, you can use generated Supabase types to replace manual interfaces in existing database access code. This migration process refactors your data access layers to use type-safe signatures and improved error logging for better consistency.

When do I need to refactor database access code for Supabase type safety?

You need to refactor database access code for Supabase type safety when modernizing existing workflows to reduce runtime errors. If your TypeScript project uses a UnifiedDatabaseManager and lacks end-to-end type safety, migrating to strict Supabase types ensures compile-time validation.