about-me
Use this skill when the user wants to create a founder profile, establish their personal…
Use this skill when the user needs to choose a database, design a schema, set up Supabase or another database, write queries, handle migrations, or fix data-related issues. Covers database selection, schema design, Row Level Security, migrations, and common patterns for SaaS
$ npx -y skills add whawkinsiv/solo-founder-skills --skill database --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/databaseContext preview
The summary Claude sees to decide when to auto-load this skill.
Use this skill when the user needs to choose a database, design a schema, set up Supabase or another database, write queries, handle migrations, or fix data-related issues. Covers database selection, schema design, Row Level Security, migrations, and common patterns for SaaS
name: database description: "Use this skill when the user needs to choose a database, design a schema, set up Supabase or another database, write queries, handle migrations, or fix data-related issues. Covers database selection, schema design, Row Level Security, migrations, and common patterns for SaaS apps built by non-technical founders."
Every SaaS app needs a database, and the schema decisions you make early are expensive to change later. This skill helps you choose the right database, design a clean schema, and set up security — explained without jargon.
| Building With | Default Database | Use It? | |--------------|-----------------|---------| | Supabase | PostgreSQL (built-in) | Yes — best option for most SaaS | | Vercel + Prisma | Supabase, Neon, or PlanetScale | Yes — pick one, stick with it | | Lovable | Supabase (integrated) | Yes — don't fight the integration | | Replit | SQLite or Supabase | Supabase for production SaaS | | Railway | PostgreSQL | Yes | | Firebase | Firestore | Yes, if you're already in Google ecosystem |
**The short answer:** Use Supabase (PostgreSQL) unless you have a specific reason not to. It gives you database + auth + storage + realtime + Row Level Security in one service.
| Need | Consider | |------|---------| | Full-text search | Supabase has built-in text search. Only add Algolia/Typesense if it's not enough | | Caching | Start without it. Add Upstash Redis only when you have measurable latency issues | | File storage | Supabase Storage, Cloudflare R2, or S3 | | Analytics/reporting | Supabase views or materialized views first. Data warehouse later (post-$10k MRR) |
---
-- 1. Users (who uses the app)
create table users (
id uuid primary key default gen_random_uuid(),
email text unique not null,
full_name text,
avatar_url text,
created_at timestamptz default now(),
updated_at timestamptz default now()
);
-- 2. Organizations / Teams (multi-tenancy)
create table organizations (
id uuid primary key default gen_random_uuid(),
name text not null,
slug text unique not null,
plan text default 'free',
stripe_customer_id text,
created_at timestamptz default now(),
updated_at timestamptz default now()
);
-- 3. Memberships (who belongs to which org)
create table memberships (
id uuid primary key default gen_random_uuid(),
user_id uuid references users(id) on delete cascade,
org_id uuid references organizations(id) on delete cascade,
role text default 'member' check (role in ('owner', 'admin', 'member')),
created_at timestamptz default now(),
unique(user_id, org_id)
);Every SaaS has a "main thing" — projects, campaigns, invoices, etc. Connect it to the org:
create table [your_core_object] ( id uuid primary key default gen_random_uuid(), org_id uuid references organizations(id) on delete cascade not null, created_by uuid references users(id), -- your fields here name text not null, status text default 'active', created_at timestamptz default now(), updated_at timestamptz default now() ); -- Always index the org_id for multi-tenant queries create index idx_[object]_org_id on [your_core_object](org_id);
**Tell AI:**
Design a database schema for [describe your SaaS product]. The main objects are: [list your core objects]. Users belong to organizations. Each org has its own data. Use Supabase (PostgreSQL). Include: - Table definitions with proper types and constraints - Foreign key relationships - Indexes for common queries - Row Level Security policies
---
RLS ensures users can only see their own organization's data. This is critical for SaaS.
-- Enable RLS on every table with customer data
alter table [your_table] enable row level security;
-- Users can only see rows belonging to their org
create policy "Users see own org data"
on [your_table]
for select
using (
org_id in (
select org_id from memberships
where user_id = auth.uid()
)
);
-- Users can only insert into their own org
create policy "Users insert own org data"
on [your_table]
for insert
with check (
org_id in (
select org_id from memberships
where user_id = auth.uid()
)
);For every table that contains customer data: - [ ] RLS is enabled - [ ] SELECT policy restricts to user's org - [ ] INSERT policy restricts to user's org - [ ] UPDATE policy restricts to user's org - [ ] DELETE policy restricts to user's org (or is blocked) - [ ] Tested: User A cannot see User B's data
---
Database migrations are version-controlled changes to your schema. Like git for your database structure.
**Tell AI:**
Write a Supabase migration to [describe the change]. Current table structure: [describe or paste current schema]. Include: the SQL migration and any RLS policy updates
59 expert skills for non-technical founders building SaaS with AI tools (Claude Code, Lovable, Replit, Cursor). Covers the full lifecycle of planning, building, launching, and growing a software business — actionable guides, checklists, and copy-paste prompts.
Use this skill when the user wants to create a founder profile, establish their personal…
Use this skill when the user needs to set up bookkeeping, track revenue and expenses, prepare…
Use this skill when the user needs to run Google Ads, write ad copy, select keywords,…
Use this skill when the user needs to add AI-powered features to their SaaS product,…
Use this skill when the user needs to set up analytics, design event tracking, define key…
Use this skill when the user wants to make their app look better, says it looks like a…