database-architecture

Documents Supabase/PostgreSQL schema, RLS policies, and PostGIS spatial data for mosquito control.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/thebigthing313/simmer-mosquito --skill database-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-architecture
Source: https://github.com/thebigthing313/simmer-mosquito/tree/main/.agents/skills/database-architecture
Command: npx skills add https://github.com/thebigthing313/simmer-mosquito --skill database-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps agents understand and work with the complex Supabase/PostgreSQL database structure for the SIMMER mosquito control management system, simplifying data access and management.

Core Features & Use Cases

  • Database Schema Exploration: Provides detailed insights into tables, columns, relationships, and data types.
  • Security & Access Control: Explains Row Level Security (RLS) policies and role-based access.
  • Data Patterns: Details standard patterns like audit fields, soft deletes, and spatial data handling.
  • Use Case: An agent needs to find out how to query for all adult mosquito collections made by a specific technician in a given region. This Skill can guide them to the relevant tables (collections, profiles, regions) and explain the necessary joins and RLS considerations.

Quick Start

Explain the purpose of the simmer.deleted_data table.

Frequently Asked Questions about database-architecture

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

FAQPage Schema
How do I navigate a Supabase PostgreSQL database schema with multi-tenant architecture?

To navigate a Supabase PostgreSQL database schema with multi-tenant architecture, you need detailed documentation of table structures, relationships, and custom data types. This Skill provides comprehensive schema details for the SIMMER mosquito control management system, simplifying complex data access.

How does Row Level Security (RLS) work in a Supabase PostgreSQL database?

Row Level Security (RLS) in a Supabase PostgreSQL database works by enforcing role-based access policies on tables. This Skill explains specific RLS policies and access control mechanisms, guiding agents on security considerations when querying data across multi-tenant operational environments.

How do I handle spatial data with PostGIS in a PostgreSQL database schema?

Handling spatial data with PostGIS in a PostgreSQL database schema involves understanding specific table structures and custom data types for geographic information. This Skill details spatial data handling patterns used for mosquito control management, facilitating efficient geographic queries and data architecture.

What are standard data patterns for audit trails and soft deletes in PostgreSQL?

Standard data patterns for audit trails and soft deletes in PostgreSQL involve using specific audit fields and dedicated tables like a deleted_data table. This Skill outlines these patterns, explaining how the database tracks changes and manages soft deletes for operational efficiency.

How do I query collections by a specific technician across regions in a PostgreSQL database?

Querying collections by a specific technician across regions in a PostgreSQL database requires joining the collections, profiles, and regions tables. This Skill guides agents through these necessary joins while explaining relevant Row Level Security considerations for accurate data retrieval.

Does this database schema documentation cover custom data types in Supabase?

Yes, this database schema documentation covers custom data types in Supabase for operational efficiency. It details specific table structures, relationships, and spatial data handling with PostGIS, providing comprehensive insights into the custom types used within the multi-tenant architecture.