supabase-analytics

Generate tenant-scoped Supabase analytics with RLS-aware SQL queries.

1|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/Ai-Whisperers/Vete --skill supabase-analytics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-analytics
Source: https://github.com/Ai-Whisperers/Vete/tree/main/.claude/plugins/vete-veterinary/skills/supabase-analytics
Command: npx skills add https://github.com/Ai-Whisperers/Vete --skill supabase-analytics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Supabase Analytics Patterns provide tenant-isolated analytics for dashboards, enabling secure multi-tenant data insights without cross-tenant leakage. They are designed for a multi-clinic veterinary platform to ensure each clinic can access its own metrics without exposure to others.

Core Features & Use Cases

  • RLS-aware dashboard statistics for each tenant (revenue, appointments, clients)
  • Time-series analytics for revenue and activity trends across days, weeks, and months
  • Cohort and retention analysis across clinics to measure onboarding success
  • Top-N queries for services and products to identify best performers
  • Patterns for secure data access, performance via stored procedures, and materialized views

Quick Start

Configure a tenant-scoped analytics setup by deploying the provided SQL patterns and functions for RLS-aware queries and time-series insights to power per-clinic dashboards.

Frequently Asked Questions about supabase-analytics

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

FAQPage Schema
How do I build tenant-safe analytics dashboards in Supabase with RLS?

Supabase RLS analytics dashboards use RLS-aware SQL/PLpgSQL functions to scope queries per tenant, ensuring secure multi-tenant data isolation without cross-tenant leakage for revenue and appointment metrics.

How do I write time-series queries for revenue trends in Supabase?

Time-series queries for revenue trends in Supabase use SQL patterns to aggregate activity across days, weeks, and months. These patterns provide per-clinic insights while maintaining strict row-level security access controls.

Can I perform cohort retention analysis across multiple tenants in Supabase?

Yes, cohort retention analysis across tenants is supported through SQL patterns that measure onboarding success across clinics while enforcing RLS to prevent cross-tenant data exposure.

Does Supabase RLS work with materialized views for dashboard performance?

Supabase RLS works with materialized views and stored procedures to optimize dashboard performance, securing data access while improving query speed for aggregations and Top-N product or service queries.

What is the best way to prevent cross-tenant data leakage in Supabase analytics?

The best way to prevent cross-tenant data leakage is applying RLS-aware query patterns and stored procedures, ensuring each clinic accesses only its own metrics during data aggregation.