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 $0.00000 $0.00298
Sonnet 5 $0.00000 $0.00119
Haiku 4.5 $0.00000 $0.00060

Measured 9d ago against content hash c1b6ab53eb77, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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. 9d 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 5mo 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

solr-extending

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

griddynamics/rosetta · 23 tokens

patterns

This skill should be used when the user asks to "create an API endpoint", "add CRUD operations", "implement event handlers", "set up logging", "add configuration", or builds features involving database operations, REST/GraphQL APIs, pub/sub patterns, or service configuration. Provides implementation patterns that…

dean0x/devflow · 68 tokens

bullmq-specialist

BullMQ expert for Redis-backed job queues, background processing, and reliable async execution in Node.js/TypeScript applications. Use when: bullmq, bull queue, redis queue, background job, job queue.

Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI · 47 tokens

drizzle-orm-d1

Type-safe ORM for Cloudflare D1 using Drizzle. Use when building D1 schemas, writing type-safe queries, generating migrations with Drizzle Kit, defining relations, using db.batch, or hitting D1ERROR, BEGIN TRANSACTION failures, foreign key constraints, env.DB undefined, or schema inference issues.

samuelpatro/.claude · 69 tokens

printing-press-amend

Amend a published CLI from one of two input sources: (1) dogfood mode mines the active Claude Code session transcript for friction (missing flags, hand- rolled API payloads, silent-null returns); (2) direct-input mode accepts user-supplied asks (rename a command, add commands or feeds, fix a named bug, optionally…

mvanhorn/cli-printing-press · 222 tokens

rework-rate

Measure and interpret PR rework rate — the emerging 5th DORA metric.

bradygaster/squad · 20 tokens