supabase

supabase is a skill for Claude Code, Codex from andresquirogadev/skillsense. It costs 0 tokens per session (596 once invoked), scanned A, original, MIT.

A set of conventions for using Supabase, a hosted service that provides databases, user sign-in, and related backend features. It focuses on setting up clients and securely handling authentication in server-rendered applications.

In plain words
What is it for?
Use it when adding Supabase to Next.js, SvelteKit, or Nuxt applications, especially for server-side database access, login flows, protected routes, and session validation.
Why use it?
It helps avoid mixing browser and server database clients, trusting unverified login cookies, or mishandling authentication data.

Skill for Claude CodeCodex

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

Good fit Use it when adding Supabase to Next.js, SvelteKit, or Nuxt applications, especially for server-side database access, login flows, protected routes, and session validation.

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

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/andresquirogadev/skillsense/supabase/github.svg)](https://agentmods.dev/skills/andresquirogadev/skillsense/supabase)
Your own site
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/supabase"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/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/andresquirogadev/skillsense/supabase"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/supabase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 596 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.00000 $0.00596
Opus 5.5 $0.00000 $0.00238
Sonnet 5.5 $0.00000 $0.00119
Haiku 4.5 $0.00000 $0.00060

Measured 1mo ago against content hash c1b6ab53eb77, 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 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 1mo 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.

packages/catalog/skills/supabase/SKILL.md · 53 lines

How it starts

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

Supabase Skill

You are working with Supabase. Apply these conventions.

Client Setup

  • Use @supabase/ssr for Next.js / SvelteKit / Nuxt — it handles cookies for SSR auth automatically.
  • Create a server client in Server Components / Route Handlers. Next.js 15+ / 16: cookies() is async — always await it:
    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: () => cookieStore.getAll(),
          setAll: (cs) => cs.forEach(({ name, value, options }) => cookieStore.set(name, value, options)),
        },
      });
    }
    
  • Never import the browser client in Server Components — always use the server client.

Authentication

  • Use supabase.auth.signInWithOAuth(), signInWithPassword(), or signInWithOTP().
  • Protect routes with middleware: check supabase.auth.getUser() in middleware.ts. Never trust cookies alone.
  • Always call supabase.auth.getUser() (not getSession()) on the server — getUser() revalidates the JWT with the Auth server.

Row Level Security (RLS)

  • Always enable RLS on tables: ALTER TABLE posts ENABLE ROW LEVEL SECURITY;
  • Write explicit policies for each operation (SELECT, INSERT, UPDATE, DELETE).
  • Use auth.uid() inside policies to scope rows to the current user.
  • Test policies with the Supabase Dashboard SQL editor using SET LOCAL role = authenticated; SET LOCAL request.jwt.claims.sub = 'uuid';.

Database Operations

  • Use the Supabase client for simple CRUD from the client: supabase.from('posts').select('*').eq('user_id', userId).
  • For complex queries, call Postgres functions via RPC: supabase.rpc('my_function', { param: value }).
  • Use the generated TypeScript types: supabase gen types typescript --project-id <id> > types/database.ts.

Read the full file on GitHub · 53 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. 1mo ago First seen · 53 lines · 0 tokens per session scan A c1b6ab53eb77

Subscribe to this mod's changes

supabase is a skill published in the GitHub repository andresquirogadev/skillsense (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 596 tokens. 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-31.

Related

Other skills, from other repositories

ship-safe-scan

Quick scan for leaked secrets — API keys, passwords, tokens, database URLs. Use when the user wants to check for hardcoded secrets or exposed credentials.

asamassekou10/ship-safe · 36 tokens

solr-extending

To build Solr plugins: SearchComponent, QParser, URP, DocTransformer.

griddynamics/rosetta · 23 tokens

firebase

Use when building on Firebase — Firestore data modeling, Security Rules, Auth and custom claims, Cloud Functions, Storage, modular Web/Admin SDK imports — including symptoms like a database open to the internet, a query rejected by rules, or a doc stuck at 1 write/sec. NOT managed-Postgres BaaS with SQL and RLS (that…

ericrisco/rsc-harness · 77 tokens

notion-connector

Use when wiring server code or a cron job to Notion as an ops backend over its HTTP API: pushing or mirroring database rows, two-way sync without duplicates, page blocks, or an integration broken by the 2025-09-03 data-source split. NOT generic REST wiring (that is api-connector-builder), NOT inbound Notion webhook…

ericrisco/rsc-harness · 86 tokens

backend-development

Backend API design, database architecture, microservices patterns, and test-driven development. Use for designing APIs, database schemas, or backend system architecture.

MoizIbnYousaf/Ai-Agent-Skills · 32 tokens

cmux-backend

Backend TypeScript and Cloud VM development rules for cmux. Use when editing web/app/api, web/services, backend scripts, Cloud VM lifecycle, provider integrations, Postgres, Stack Auth pricing gates, migrations, or provider image build scripts.

manaflow-ai/cmux · 53 tokens