aiox-data-engineer

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

Updated May 8, 2026
One-click install
npx skills add https://github.com/Elevaria-bia/elevaria-bia.github.io --skill aiox-data-engineer-elevaria-bia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aiox-data-engineer
Source: https://github.com/Elevaria-bia/elevaria-bia.github.io/tree/main/meu-projeto/.claude/skills/AIOX/agents/data-engineer
Command: npx skills add https://github.com/Elevaria-bia/elevaria-bia.github.io --skill aiox-data-engineer-elevaria-bia

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps teams design robust database schemas and operating procedures while preventing security mistakes, broken access control (RLS), and risky migrations that can corrupt production data or degrade performance.

Core Features & Use Cases

  • Schema architecture & data modeling: translate business requirements into normalized schemas with consistent audit fields, constraints, and relationships.
  • Supabase/PostgreSQL security with RLS: design and apply RLS policies, validate coverage, and test access rules using realistic user contexts.
  • Safe migrations & operations: plan, snapshot, apply, rollback, seed, and run smoke tests with idempotency and reversibility as defaults.
  • Query performance optimization: analyze slow queries and hot paths, then recommend indexing and query improvements to reduce full scans and inefficient joins.

Quick Start

Tell the agent: "Design a Supabase/PostgreSQL schema for my business domain, including the required tables, RLS policies, and a safe migration plan with snapshot and rollback."

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 a Supabase schema with RLS policies for secure data access?

Designing a secure Supabase schema involves translating domain requirements into normalized tables with audit fields, then applying defense-in-depth RLS policies validated through positive and negative access-control test cases to enforce data security.

What is the safest way to execute PostgreSQL schema migrations in production?

The safest way to execute PostgreSQL schema migrations is using snapshot-first operations that are idempotent and reversible, ensuring you can rollback changes safely while preventing production data corruption during schema refactors.

How do I optimize slow PostgreSQL queries and reduce full table scans?

To optimize slow PostgreSQL queries, you analyze hot paths and query execution plans, then implement indexing strategies and query refactoring to eliminate inefficient joins and reduce full table scans for real workloads.

Why does my Supabase RLS policy allow unauthorized data access despite being enabled?

RLS policies may allow unauthorized access if they lack defense-in-depth validation, which requires testing access rules against both positive and negative realistic user contexts to verify proper access-control enforcement across all tables.

Can I use this approach for domain-to-schema modeling without manual SQL writing?

Yes, domain-to-schema modeling translates business requirements directly into normalized schemas with consistent audit fields, constraints, and relationships, generating the necessary database architecture without starting from manual SQL scripts.

What are the limitations of relying solely on database-level security without observability?

Without observability-oriented outcomes across design-to-deploy workflows, you cannot effectively monitor schema refactors, migration execution safety, or RLS validation, limiting your ability to detect and prevent performance degradation or access control failures.