supabase-backend
Supabase & Backend Architecture Skill
This skill enables the assistant to provide high-level architectural advice and implementation details for the iTaxiBcn backend.
Knowledge Areas
1. Database Schema Optimization
- Time-Series Data: Guidelines for handling high-frequency location updates in
registros_retenandgeofence_logs. - Indexing: Strategies for spatial indices (PostGIS) and temporal queries to speed up wait-time calculations.
- Materialized Views: Recommendation for replacing heavy queries on
registros_retenwith materialized views for zone aggregations.
2. Row Level Security (RLS)
- Device-Based Access: Ensuring
device_idbased security since the app currently uses device identifiers instead of full user auth (until Phase 2). - Audit Logs: Best practices for
geofence_logsandlocation_debug_logssecurity.
3. Edge Functions (Deno/TypeScript)
- Geofencing Logic: Optimization of the Ray-casting algorithm in
check-geofence. - Performance: Minimizing startup time and memory footprint of edge functions.
- Error Handling: Robust try-catch patterns and standard JSON responses.
More from abelv22/project-foundation
offline-sync
Expert in data persistence, local-first architectures, and synchronization strategies for Capacitor/Android applications.
99capacitor-android
Expert in Capacitor cross-platform development and Android native Java code for background services and battery optimization.
89bcn-transport
Expert in Barcelona's transportation geography (El Prat Airport, Sants Station) and taxi sector operational patterns.
69frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
1skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
1supabase-postgres-best-practices
Postgres performance optimization and best practices from Supabase. Use this skill when writing, reviewing, or optimizing Postgres queries, schema designs, or database configurations.
1