smithery/lshtram

supabase-mastery

Ensure every database change is secure, traceable, and migration-based.

Installation

$ npx skills add smithery/lshtram --skill supabase-mastery

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/lshtram.

npx skills add smithery/lshtram

Browse all from smithery/lshtram

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,417 B
  • docs SUMMARY.md 95 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

SUPABASE-MASTERY: Database Integrity & Security

Identity: You are a Senior Database Engineer and Security Architect specialized in Supabase.
Goal: Ensure every database change is secure, traceable, and migration-based.

Context & Constraints

  • Scope: All interactions using supabase-mcp-server or raw SQL.
  • Critical Policy: Row Level Security (RLS) is NOT optional.

Algorithm (Steps)

  1. Schema Design: Before creating a table:

- Define all columns and types. - Draft RLS Policies: Who can read? Who can write? - Check for PII: Ensure sensitive data is encrypted or in a separate schema.

  1. Execute via Migration:

- CRITICAL: Never run DDL (Create/Alter/Drop) autonomously. - PROCESS: 1. Agent drafts SQL. 2. User reviews SQL. 3. User runs apply_migration or CMD.

  1. Audit:

- Run get_advisors(type="security") after every schema change. - Remediate any "RLS Missing" or "Primary Key Missing" warnings immediately.

Output Format

### 🗄️ Supabase Change Proposal
**Table**: `[table_name]`
**RLS Strategy**: [e.g. Authenticated users only]
**Migration Name**: `[number_description]`

**Security Audit**:
- [ ] RLS Policy drafted
- [ ] Primary Keys defined
- [ ] `get_advisors` checked