ikf-rls-policy-designer

Design Supabase schemas and Row Level Security policies with role-based access.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/heyflouai/ikf-central-dashboard --skill ikf-rls-policy-designer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ikf-rls-policy-designer
Source: https://github.com/heyflouai/ikf-central-dashboard/tree/main/.claude/skills/ikf-rls-policy-designer
Command: npx skills add https://github.com/heyflouai/ikf-central-dashboard --skill ikf-rls-policy-designer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the critical need for robust data privacy and access control within Supabase by designing secure Row Level Security (RLS) policies.

Core Features & Use Cases

  • Schema Design: Proposes essential tables for user management and data scoping (profiles, organizations, roles, forecasts).
  • RLS Policy Generation: Crafts specific RLS policies to enforce authentication, organization-level scoping, and role-based access (admin vs. employee).
  • Test Plan: Provides a concrete, step-by-step plan to validate the implemented RLS policies across different user roles.
  • Use Case: A startup needs to ensure that each of its clients can only access their own data within a shared Supabase database, while administrators have broader write access. This Skill designs the necessary schema and RLS to achieve this.

Quick Start

Design Supabase RLS policies for the IKF CENTRAL project to ensure auth-only access, org scoping, and admin write controls.

Frequently Asked Questions about ikf-rls-policy-designer

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

FAQPage Schema
How do I design Supabase RLS policies for organization-level data scoping?

To design Supabase RLS policies for organization-level data scoping, you need schema tables for profiles, organizations, and roles, coupled with RLS policy definitions that enforce authentication and restrict data access based on the user's specific organization ID.

How do I set up role-based access control in Supabase for admin and employee users?

Setting up role-based access control in Supabase involves creating RLS policies that differentiate administrative and employee users, ensuring administrators have broader write access while employees are restricted to scoped data based on defined role tables.

What is the best way to structure a Supabase schema for multi-tenant data privacy?

The best way to structure a Supabase schema for multi-tenant data privacy is to propose essential tables for user management and data scoping, such as profiles, organizations, roles, and forecasts, enabling strict data isolation across shared databases.

How do I test Supabase Row Level Security policies across different user roles?

To test Supabase Row Level Security policies, you should follow a concrete, step-by-step test plan that validates the implemented RLS policies by simulating access attempts across different user roles and organizational contexts.

Does this Supabase RLS designer include database index suggestions?

Yes, the Supabase RLS policy design includes index suggestions alongside schema recommendations and RLS policy definitions to optimize database performance when enforcing authentication and organization-specific data access controls.