What problem does it solve?
This Skill provides a robust and secure framework for interacting with Supabase databases, ensuring data integrity and preventing common security vulnerabilities within the Hará Match application.
Core Features & Use Cases
- Service Role Client Enforcement: Guarantees all database writes are performed with the secure service role, bypassing Row Level Security (RLS) for internal operations.
- RLS Policy Enforcement: Defines strict read/write access controls for different user roles on critical tables like
professionals, leads, and pqls.
- Billing Pipeline Integrity: Protects the critical billing flow, from event tracking via attribution tokens to the automatic creation of Pay-Per-Qualified-Lead (PQL) records, preventing fraud and duplicate charges.
- Attribution Token Security: Utilizes JWTs to securely sign events, preventing tampering and ensuring accurate lead attribution.
- Rate Limiting: Implements rate limiting on public API routes to protect against abuse and ensure service availability.
Quick Start
Use the supabase-patterns skill to understand how to securely insert new professional data into the Supabase database using the service-role client.