supabase-ops
Manages Supabase migrations, types generation, RLS policies, and edge functions
Why use this skill?
Manage Supabase migrations, RLS policies, and TypeScript types safely with this automated developer tool. Ensure data integrity and schema consistency for your Next.js project.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/guifav/supabase-opsWhat This Skill Does
The supabase-ops skill transforms your AI agent into a senior database engineer specialized in the Supabase ecosystem. It provides a robust, safety-first framework for managing PostgreSQL databases, RLS policies, migrations, and edge functions. By integrating directly with the Supabase CLI, it ensures that your database evolution is version-controlled, reproducible, and aligned with industry best practices.
This skill enforces a mandatory Planning Protocol, requiring the agent to audit existing migrations and current schema types before proposing changes. This prevents common pitfalls like migration drift or unintended data loss, making it an essential tool for professional-grade Next.js development.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/guifav/supabase-ops
Use Cases
- Database Schema Evolution: Easily add, modify, or deprecate tables and columns while ensuring TypeScript types remain perfectly synced.
- Security Hardening: Automatically generate and apply Row Level Security (RLS) policies based on the context of your application.
- Production Deployment Strategy: Safely manage complex migrations using dry-run capabilities to visualize schema impacts before committing to production environments.
- Edge Function Management: Simplify the creation, testing, and deployment of Supabase Edge Functions with integrated service-role credential handling.
Example Prompts
- "I need to add a 'status' column to the 'orders' table. Please check the current migrations, generate the migration file, update the types, and write an RLS policy that only allows owners to update their orders."
- "Can you help me migrate the user profile table to a new schema version? Please show me a plan, perform a dry-run first, and highlight any potential data loss risks."
- "Deploy a new edge function called 'process-payment' that handles stripe webhooks. Make sure to include the necessary environment variable references and error handling."
Tips & Limitations
- Always verify the Plan: The agent is trained to be cautious, but you are the final authority. Review the generated SQL before confirming the execution.
- Credential Security: This skill operates via the CLI; ensure your environment variables are configured in your local environment for seamless CLI authentication.
- Timestamps: The skill strictly enforces
timestamptz. Using standardtimestampwill trigger a warning from the agent. - Non-Destructive First: When in doubt, request a backup migration or a dry-run execution plan.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-guifav-supabase-ops": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution, external-api
Related Skills
interop-forge
Integration architect for multi-app monorepos — shared contracts, API-first design with OpenAPI, cross-app auth, auto-generated SDKs, and full MCP server scaffolding per app
cloudflare-guard
Configures and manages Cloudflare DNS, caching, security rules, rate limiting, and Workers
stack-scaffold
Scaffolds a full-stack project with Next.js App Router, Supabase, Firebase Auth, Vercel, and Cloudflare
firebase-auth-setup
Configures Firebase Authentication — providers, security rules, custom claims, and React auth hooks
gcp-fullstack
Full-stack super agent for projects on Google Cloud Platform with GitHub and Cloudflare — covers scaffolding, compute, database, auth, deploy, CDN, and security