Supabase
by Acurioustractor
Navigate Supabase database tables, relationships, and query patterns. Schema reference for Empathy Ledger.
Skill Details
Repository Files
3 files in this skill directory
name: supabase description: Navigate Supabase database tables, relationships, and query patterns. Schema reference for Empathy Ledger.
Supabase Database
Navigate and query the Empathy Ledger Supabase database.
When to Use
- Understanding table relationships
- Writing database queries
- Finding the right data source
- Checking schema structure
Quick Relationship Map
tenants
└── profiles → storytellers → stories → transcripts
↓
transcript_analysis_results
↓
narrative_themes + extracted_quotes
Core Tables
Storytelling
| Table | Purpose |
|---|---|
storytellers |
Storyteller personas (canonical) |
stories |
Core content |
transcripts |
Audio/text transcriptions |
Analysis
| Table | Purpose |
|---|---|
transcript_analysis_results |
Versioned AI analysis |
narrative_themes |
AI-extracted themes |
knowledge_chunks |
RAG embeddings (22k+) |
Multi-Tenant
| Table | Purpose |
|---|---|
tenants |
Top-level isolation |
profiles |
User accounts |
organisations |
Community groups |
Common Queries
-- Storyteller with story count
SELECT st.*, COUNT(s.id) as story_count
FROM storytellers st
LEFT JOIN stories s ON s.storyteller_id = st.id
GROUP BY st.id;
-- Stories by theme
SELECT * FROM stories
WHERE 'healing' = ANY(cultural_themes);
-- Theme frequency
SELECT unnest(cultural_themes) as theme, COUNT(*)
FROM stories WHERE status = 'published'
GROUP BY theme ORDER BY count DESC;
Reference Files
| Topic | File |
|---|---|
| Full table list | refs/tables.md |
| Relationship diagram | refs/relationship-diagram.md |
Related Skills
supabase-connection- Database clientssupabase-deployment- Migrationsdatabase-navigator- Schema exploration
Related Skills
Xlsx
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
Clickhouse Io
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
Clickhouse Io
ClickHouse database patterns, query optimization, analytics, and data engineering best practices for high-performance analytical workloads.
Analyzing Financial Statements
This skill calculates key financial ratios and metrics from financial statement data for investment analysis
Data Storytelling
Transform data into compelling narratives using visualization, context, and persuasive structure. Use when presenting analytics to stakeholders, creating data reports, or building executive presentations.
Kpi Dashboard Design
Design effective KPI dashboards with metrics selection, visualization best practices, and real-time monitoring patterns. Use when building business dashboards, selecting metrics, or designing data visualization layouts.
Dbt Transformation Patterns
Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.
Sql Optimization Patterns
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.
Anndata
This skill should be used when working with annotated data matrices in Python, particularly for single-cell genomics analysis, managing experimental measurements with metadata, or handling large-scale biological datasets. Use when tasks involve AnnData objects, h5ad files, single-cell RNA-seq data, or integration with scanpy/scverse tools.
Xlsx
Spreadsheet toolkit (.xlsx/.csv). Create/edit with formulas/formatting, analyze data, visualization, recalculate formulas, for spreadsheet processing and analysis.
