supabase-setup

supabase-setup is a skill for Claude Code from kazdenc/builder-skills. It costs 70 tokens per session (2,471 once invoked), scanned A, original, MIT.

A setup guide for Supabase, a hosted backend platform providing a database, user authentication, file storage, and server-side functions. It covers project initialization, environment variables, database access, and security policies.

In plain words
What is it for?
Use it to add Supabase to a project, configure database schemas and row-level security, set up authentication or storage, and create browser and server clients or edge functions.
Why use it?
A project needs several coordinated settings before it can safely use Supabase. The guide helps create the required structure and keeps server-only credentials out of browser code.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to add Supabase to a project, configure database schemas and row-level security, set up authentication or storage, and create browser and server clients or edge functions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kazdenc/builder-skills/supabase-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kazdenc/builder-skills --skill supabase-setup
Clone the repo
git clone --depth 1 https://github.com/kazdenc/builder-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for supabase-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/kazdenc/builder-skills/supabase-setup/github.svg)](https://agentmods.dev/skills/kazdenc/builder-skills/supabase-setup)
Your own site
<a href="https://agentmods.dev/skills/kazdenc/builder-skills/supabase-setup"><img src="https://agentmods.dev/badge/skills/kazdenc/builder-skills/supabase-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for supabase-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/kazdenc/builder-skills/supabase-setup"><img src="https://agentmods.dev/badge/skills/kazdenc/builder-skills/supabase-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,471 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.02471
Opus 5.5 $0.00028 $0.00988
Sonnet 5.5 $0.00014 $0.00494
Haiku 4.5 $0.00007 $0.00247

Measured 3mo ago against content hash 97f9b2257ace, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

supabase-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/dev/setup/supabase-setup/SKILL.md · 392 lines

How it starts

The opening of the file, as written. The whole thing — 392 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Supabase Setup

Initialize and configure Supabase for a project. If target is provided, focus on that area (auth, storage, schema). Default to "all" if omitted.

Step 1: Install and Initialize

pnpm add @supabase/supabase-js
pnpm add -D supabase
npx supabase init

This creates a supabase/ directory with config and a migrations/ folder.

Link to a remote project (ask the user for their project ref if not provided):

npx supabase link --project-ref <project-ref>

Step 2: Environment Variables

Add to .env.local:

NEXT_PUBLIC_SUPABASE_URL=https://<project-ref>.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=<anon-key>
SUPABASE_SERVICE_ROLE_KEY=<service-role-key>
Variable Exposure Purpose
NEXT_PUBLIC_SUPABASE_URL Client + Server API endpoint
NEXT_PUBLIC_SUPABASE_ANON_KEY Client + Server Public key for RLS-protected access
SUPABASE_SERVICE_ROLE_KEY Server only Bypasses RLS. Never expose to client.

Step 3: Create the Supabase Client

Create src/lib/supabase/client.ts (browser client):

import { createBrowserClient } from '@supabase/ssr'

export function createClient() {
  return createBrowserClient(
    process.env.NEXT_PUBLIC_SUPABASE_URL!,
    process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
  )
}

Create src/lib/supabase/server.ts (server client):

import { createServerClient } from '@supabase/ssr'
import { cookies } from 'next/headers'

export async function createClient() {
  const cookieStore = await cookies()
  return createServerClient(
    process.env.NEXT_PUBLIC_SUPABASE_URL!,
    process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
    {
      cookies: {
        getAll() {
          return cookieStore.getAll()
        },
        setAll(cookiesToSet) {
          cookiesToSet.forEach(({ name, value, options }) =>
            cookieStore.set(name, value, options),
          )
        },
      },
    },
  )
}

Install the SSR helper:

Read the full file on GitHub · 392 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 392 lines · 70 tokens per session scan A 97f9b2257ace

Subscribe to this mod's changes

supabase-setup is a skill published in the GitHub repository kazdenc/builder-skills (46 stars, last pushed 8mo ago), licensed MIT. It adds 70 tokens to every session and 2,471 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

supabase-setup compared with skills from other repositories

supabase-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
supabase-setupkazdenc/builder-skillsSkill468mo agoMITA70Claude Code
trigger-convextriggerdotdev/trigger.devSkill17ktodayApache-2.0A93Claude Code, Codex
system-design-data-architectureHoangNguyen0403/agent-skills-standardSkill598todayMITA60Claude Code, Codex
nextjs-redis-cacheleejpsd/nextjs-cache-handlerSkill78d agoMITA119Claude Code, Codex
saas-storagekomunite/tezgahSkill938mo agoMITA115Claude Code, Codex
oma-backendfirst-fluke/fullstack-starterSkill228yesterdayMITC24Claude Code, Codex
data-accessaltmemy/claude-code-templatesSkill258mo agononeA59Claude Code