supabase

supabase is a skill for Claude Code, Codex from Plazmodium/odin-workflow. It costs 22 tokens per session (2,932 once invoked), scanned A, original, MIT.

Guidance for using Supabase, a service built around PostgreSQL that provides a database, user authentication, file storage, real-time updates, APIs, and edge functions. It includes JavaScript and TypeScript client setup.

In plain words
What is it for?
Use it to set up database clients, generate TypeScript types, manage authentication, store files, subscribe to live changes, and write edge functions.
Why use it?
It helps connect an application to common backend services without building each one from scratch. It also covers typed database access and safer separation between public and administrator credentials.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to set up database clients, generate TypeScript types, manage authentication, store files, subscribe to live changes, and write edge functions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/plazmodium/odin-workflow/supabase
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 Plazmodium/odin-workflow --skill supabase
Clone the repo
git clone --depth 1 https://github.com/Plazmodium/odin-workflow

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/plazmodium/odin-workflow/supabase/github.svg)](https://agentmods.dev/skills/plazmodium/odin-workflow/supabase)
Your own site
<a href="https://agentmods.dev/skills/plazmodium/odin-workflow/supabase"><img src="https://agentmods.dev/badge/skills/plazmodium/odin-workflow/supabase/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/plazmodium/odin-workflow/supabase"><img src="https://agentmods.dev/badge/skills/plazmodium/odin-workflow/supabase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,932 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00022 $0.02932
Opus 5.5 $0.00009 $0.01173
Sonnet 5.5 $0.00004 $0.00586
Haiku 4.5 $0.00002 $0.00293

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

Security

Grade A, and why

supabase scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

fetch(input, { ...init, cache: 'no-store' }),
agents/skills/database/supabase/SKILL.md · 417 lines

How it starts

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

Supabase Development

Overview

Supabase is an open-source Firebase alternative providing PostgreSQL database, authentication, instant APIs, real-time subscriptions, storage, and edge functions.

Client Setup

JavaScript/TypeScript

// src/lib/supabase.ts
import { createClient } from '@supabase/supabase-js';
import type { Database } from '@/types/supabase';

const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL!;
const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!;

export const supabase = createClient<Database>(supabaseUrl, supabaseAnonKey);

// For server-side with secret key (admin access, bypasses RLS)
// Find in: Supabase Dashboard → Settings → API → Secret keys
export const supabaseAdmin = createClient<Database>(
  supabaseUrl,
  process.env.SUPABASE_SECRET_KEY!,
  {
    auth: { persistSession: false },
    global: {
      // CRITICAL for Next.js 14: Bypass fetch cache to prevent stale data.
      // Next.js patches global fetch with cache: 'force-cache' by default.
      fetch: (input, init) =>
        fetch(input, { ...init, cache: 'no-store' }),
    },
  }
);

Generate Types

npx supabase gen types typescript --project-id YOUR_PROJECT_ID > types/supabase.ts

Database Queries

Basic CRUD

// Select
const { data, error } = await supabase
  .from('users')
  .select('id, email, name')
  .eq('is_archived', false);

// Select with relations
const { data, error } = await supabase
  .from('posts')
  .select(`
    id,
    title,
    content,
    author:users(id, name, email)
  `)
  .eq('published', true);

// Insert
const { data, error } = await supabase
  .from('users')
  .insert({ email: '[email protected]', name: 'John' })
  .select()
  .single();

// Update
const { data, error } = await supabase
  .from('users')
  .update({ name: 'Jane' })
  .eq('id', userId)
  .select()
  .single();

// Archive (not delete!)
const { error } = await supabase
  .from('users')
  .update({ is_archived: true, archived_at: new Date().toISOString() })
  .eq('id', userId);

// Actual delete (use sparingly)
const { error } = await supabase
  .from('users')
  .delete()
  .eq('id', userId);

Read the full file on GitHub · 417 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 · 417 lines · 22 tokens per session scan A 5dca1ba3327e

Subscribe to this mod's changes

supabase is a skill published in the GitHub repository Plazmodium/odin-workflow (0 stars, last pushed 6mo ago), licensed MIT. It adds 22 tokens to every session and 2,932 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

supabase compared with skills from other repositories

supabase next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
supabasePlazmodium/odin-workflowSkill06mo agoMITA22Claude Code, Codex
multitenantTheBeardedBearSAS/claude-craftSkill10817d agoMITA46Claude Code
prisma-knowledge-patchNevaberry/nevaberry-pluginsSkill253d agoMITA9Claude Code
api-baas-neonagents-inc/skillsSkill281mo agoMITA20Claude Code, Codex
api-database-postgresqlagents-inc/skillsSkill281mo agoMITA37Claude Code, Codex
vector-backend-operationsKnuckles-Team/vector-mcpSkill16todayMITA89Claude Code, Codex
api-mirrorcyanheads/pubmed-mcp-serverSkill173todayApache-2.0A68Claude Code