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

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.

agentmods
npx agentmods add skills/plazmodium/odin-workflow/supabase
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.

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. Scan, not verified.
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 $0.00022 $0.02932
Opus 5 $0.00011 $0.01466
Sonnet 5 $0.00004 $0.00586
Haiku 4.5 $0.00002 $0.00293

Measured 2d ago against content hash 5dca1ba3327e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 3mo ago), licensed MIT. It adds 22 tokens to every session and 2,932 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

api-canvas

DataCanvas primitive reference — a Tier 3 SQL/analytical workspace for tabular MCP servers, backed by DuckDB. Use when registering tables from upstream APIs, running ad-hoc SQL across them, and exporting results. Covers the acquire → register → query → export flow, per-table TTL, the token-sharing pattern for…

cyanheads/pubmed-mcp-server · 85 tokens

api-mirror

Stand up a persistent, self-refreshing local mirror of a bulk upstream dataset with the MirrorService (@cyanheads/mcp-ts-core/mirror). Use when a server wraps a large or slow API and should query a synced local index (embedded SQLite + FTS5) instead of paginating the live API per request.

cyanheads/pubmed-mcp-server · 68 tokens

openclaw-database-toolkit

Database operations MCP server with 5 tools for D1, PostgreSQL, and MongoDB. Use when: (1) 'query my D1 database' or 'run this SQL', (2) 'insert these records' or 'add rows to table', (3) 'update records where X' or 'bulk update', (4) 'show me the table schema' or 'what columns exist', (5) 'migrate this schema' or…

yedanyagamiai-cmd/openclaw-mcp-servers · 128 tokens

mvr-architecture-development

Architecture-first development workflow for the MVR self-hosted AI-video reference library. Use when designing, implementing, reviewing, testing, debugging, or evolving the TypeScript MCP server, REST API, dashboard, SQLite vault, or local/S3 asset storage.

dannyhoang249-hub/Self-host-MCP-server-for-AI-video-reference-library · 57 tokens

api-canvas

DataCanvas primitive reference — a Tier 3 SQL/analytical workspace for tabular MCP servers, backed by DuckDB. Use when registering tables from upstream APIs, running ad-hoc SQL across them, and exporting results. Covers the acquire → register → query → export flow, per-table TTL, the token-sharing pattern for…

cyanheads/sports-mcp-server · 85 tokens

api-canvas

DataCanvas primitive reference — a Tier 3 SQL/analytical workspace for tabular MCP servers, backed by DuckDB. Use when registering tables from upstream APIs, running ad-hoc SQL across them, and exporting results. Covers the acquire → register → query → export flow, per-table TTL, the token-sharing pattern for…

cyanheads/internet-archive-mcp-server · 85 tokens