calendarbackup-db

Manage database schema, migrations, RLS, SQL functions, and TypeScript types for Supabase.

Updated May 4, 2026
One-click install
npx skills add https://github.com/Matteo-Exp-Transformer/CALENDARIO-V2 --skill calendarbackup-db
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: calendarbackup-db
Source: https://github.com/Matteo-Exp-Transformer/CALENDARIO-V2/tree/main/.cursor/skills/calendarbackup-db
Command: npx skills add https://github.com/Matteo-Exp-Transformer/CALENDARIO-V2 --skill calendarbackup-db

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the complexity of managing the CalendarBackup-v2 database, including schema, migrations, RLS, SQL functions/triggers, and TypeScript types.

Core Features & Use Cases

  • Database Schema and Migrations: Manages schema changes and numbered migrations.
  • Multi-Tenant RLS: Implements and manages multi-tenant row-level security.
  • SQL Functions and Triggers: Handles SQL function creation and trigger management.
  • Generated TypeScript Types: Generates TypeScript types for the database schema.
  • Supabase Safety: Ensures security between Supabase TEST and PROD environments.

Quick Start

Run 'get_project_url docnnernvp' to ensure you are working in the TEST environment before proceeding with any database modifications.

Frequently Asked Questions about calendarbackup-db

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

FAQPage Schema
How do I manage database schema and migrations for a Supabase backend?

Database schema and migrations for a Supabase backend are managed through numbered migration scripts. This approach handles schema changes systematically, ensuring database structures remain synchronized across different deployment environments.

How do I set up multi-tenant row-level security in Supabase?

Multi-tenant row-level security in Supabase is set up by implementing specific RLS policies. This Skill manages these policies to isolate tenant data, enforcing strict access controls directly at the database level for backend workflows.

How do I automate SQL function and trigger creation in Supabase?

SQL function and trigger creation in Supabase is automated by executing dedicated database scripts. This automation handles setup and management of triggers, streamlining backend database operations and reducing manual SQL execution.

How do I generate TypeScript types from a Supabase database schema?

TypeScript types are generated from a Supabase database schema using built-in generation scripts. This process automatically produces type definitions, ensuring frontend or backend code matches the current database structure accurately.

How do I separate Supabase TEST and PROD environments during database migrations?

Supabase TEST and PROD environments are separated by verifying the project URL before applying migrations. Running a project URL check ensures database modifications target the correct environment, maintaining safety between test and production data.

What is the best way to handle database migrations for a multi-tenant application?

The best way to handle database migrations for a multi-tenant application is using a structured schema management process. This approach combines numbered migrations with row-level security to maintain data isolation and schema integrity.