sparq-db

Implement Supabase migrations, RLS policies, and edge functions for Sparq Connection projects.

Updated Feb 24, 2025
One-click install
npx skills add https://github.com/KrisWemet/sparq-connection-lab --skill sparq-db
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sparq-db
Source: https://github.com/KrisWemet/sparq-connection-lab/tree/main/.claude/skills/sparq-db
Command: npx skills add https://github.com/KrisWemet/sparq-connection-lab --skill sparq-db

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Sparq DB provides a comprehensive blueprint for database design, Supabase integration, and security patterns to accelerate Sparq Connection development and keep data access safe and scalable.

Core Features & Use Cases

  • Database patterns: schema organization, migrations, and versioning aligned with the Sparq architecture.
  • Security & access control: RLS policies, admin overrides, and service-role usage for safe server-side operations.
  • Operational tooling: Edge Functions, real-time subscriptions, and query patterns to enable robust data flows.
  • Use Case: When implementing a new data model or performing migrations, this skill guides best practices and quick-start patterns to maintain consistency across the codebase.

Quick Start

Apply Sparq DB patterns to your migration, API, and edge-function work by aligning with the Sparq schema, RLS, and Supabase best practices.

Frequently Asked Questions about sparq-db

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

FAQPage Schema
How do I structure Supabase migrations and schema versioning for scalable projects?

Supabase migrations require strict schema organization and versioning aligned with your architecture. Applying consistent database patterns ensures predictable query conventions and keeps data access safe across the codebase.

What is the best way to implement Row Level Security (RLS) policies with admin overrides in Supabase?

RLS policies in Supabase should enforce access control while allowing service-role usage for safe server-side operations. Implementing admin overrides ensures strict security patterns without blocking predictable data flows.

How do I set up realtime subscriptions and Edge Functions for robust data flows?

Realtime subscriptions and Edge Functions enable robust data flows by handling operational tooling at the edge. Aligning these with strict query conventions maintains safe and scalable data access across your stack.

Can I use this database pattern for data-model changes across the Sparq stack?

Yes, these database patterns apply directly to data-model changes across the Sparq stack. They guide best practices for migrations, API operations, and schema changes to maintain consistency during development.

Why do I need strict patterns for Supabase queries and access control?

Strict patterns for Supabase queries and access control solve database integration and security complexity. They ensure predictable query conventions and keep development safe and scalable as your data model evolves.

When should I use service-role usage instead of standard RLS policies for server-side operations?

Service-role usage is required for safe server-side operations when standard RLS policies restrict necessary administrative access. Applying admin overrides within strict security patterns ensures safe data flows without compromising access control.