aiox-data-engineer

Design Supabase and PostgreSQL schemas with RLS policies and safe migrations.

Updated May 6, 2025
One-click install
npx skills add https://github.com/rodrigo-altissimo/qiartificial --skill aiox-data-engineer-rodrigo-altissimo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aiox-data-engineer
Source: https://github.com/rodrigo-altissimo/qiartificial/tree/main/.claude/skills/AIOX/agents/data-engineer
Command: npx skills add https://github.com/rodrigo-altissimo/qiartificial --skill aiox-data-engineer-rodrigo-altissimo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the challenge of building and operating reliable databases by guiding end-to-end schema design, safe migrations, and security (RLS) so your data model stays correct, secure, and performant as your product evolves.

Core Features & Use Cases

  • Database schema architecture & data modeling: Create robust schema foundations for your domain, including relationships, constraints, and baseline operational fields.
  • Supabase/Postgres security with RLS policies: Design and validate row-level security strategies to prevent unauthorized access.
  • Safe operations & performance optimization: Plan and execute migrations with snapshots/rollback, run smoke/security checks, and analyze query performance (e.g., hot paths, query plans).
  • Use case: You’re adding a new feature that requires new tables and access rules in Supabase; use this to design the schema, produce a migration plan, implement RLS policies, verify behavior, and optimize the main queries.

Quick Start

Ask the agent to plan a safe Supabase migration for a new table and its RLS policies, then validate and optimize the key queries.

Frequently Asked Questions about aiox-data-engineer

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

FAQPage Schema
How do I design Supabase database schemas with row-level security policies?

Designing Supabase database schemas with row-level security (RLS) involves creating robust data models with constraints, then applying defense-in-depth RLS policies to prevent unauthorized access. This approach validates security rules against real access patterns to maintain data integrity.

What is the safest way to execute PostgreSQL schema migrations with rollback?

Safe PostgreSQL schema migrations require snapshot-first operations and idempotent, reversible changes. By planning rollback safety into the migration execution, you ensure that structural changes can be safely undone if errors occur, keeping operational workflows intact.

How do I optimize PostgreSQL query performance for hot paths?

Optimizing PostgreSQL query performance for hot paths requires analyzing query plans and real access patterns. By validating performance through monitoring-oriented practices and query analysis, you can identify bottlenecks and restructure queries for better operational throughput.

Can I test RLS policies against real access patterns in Supabase?

Yes, you can test RLS policies against real access patterns in Supabase. The process involves designing row-level security strategies and running security checks to validate that the constraints effectively prevent unauthorized data access across different user roles.

What are the limitations of relying on database constraints for security?

Relying solely on database constraints for security has limitations because constraints enforce data integrity but not row-level access control. You need defense-in-depth security via RLS policies to prevent unauthorized access and ensure data protection at the operational level.

Do I need Supabase to use this PostgreSQL schema design approach?

No, you do not strictly need Supabase. The schema architecture, data modeling, query optimization, and migration planning with rollback safety apply directly to PostgreSQL operations, while Supabase integration specifically adds row-level security policy design and testing.