A specialized tool that parses Prisma schema files to automatically generate comprehensive Supabase Row-Level Security (RLS) policies.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install supabase-gen
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install supabase-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Supabase Gen is designed to eliminate the manual effort and potential for error when writing Row-Level Security policies. By analyzing your Prisma schema, it understands the underlying data models and relationships to create secure defaults that align with your application logic. This skill is a powerful asset for developers using Openclaw Skills who want to ensure their database is protected by robust, production-ready SQL policies without spending hours on syntax.
The tool bridges the gap between your ORM definitions and database security. It generates policies for SELECT, INSERT, UPDATE, and DELETE actions, ensuring that user-owned resources and multi-tenant data structures are correctly scoped. By integrating this into your Openclaw Skills workflow, you can maintain a high level of security while accelerating your development lifecycle.
This skill requires Node.js 18+ and an OpenAI API key to process the schema intelligently. You can run it directly using npx without a permanent installation.
# Configure your environment
export OPENAI_API_KEY=sk-your-key-here
# Generate policies from your schema
npx ai-supabase-gen prisma/schema.prisma
# Save output to a migration file
npx ai-supabase-gen prisma/schema.prisma > supabase/migrations/rls_setup.sql
| Element | Description |
|---|---|
| Input Source | Standard Prisma (.prisma) schema file |
| Output Format | SQL migration script with CREATE POLICY statements |
| Security Logic | Implements auth.uid() checks for granular row access |
| Operations | Covers SELECT, INSERT, UPDATE, and DELETE policies |
Loading
Automate the creation of comprehensive Storybook stories and documentation from React components using AI-driven analysis.

An AI-powered CLI utility that analyzes your git diffs to generate and apply descriptive names to your stashes automatically.

An AI-driven CLI tool that analyzes your code changes to automatically generate descriptive names for your git stashes.

Transform plain English descriptions into production-ready SQL queries for multiple database dialects without memorizing syntax.

An automated utility that transforms Prisma schema definitions into robust Supabase Row Level Security (RLS) policies.

A specialized developer tool that converts Prisma database schemas into production-ready Supabase Row Level Security policies.








































