Agent skill

Supabase Install Auth

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Install and configure Supabase SDK, CLI, and project authentication.

MITAuto-check: notesDevOps & Cloud

Install Supabase Install Auth

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill supabase-install-auth -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace supabase-install-auth --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/supabase-install-auth .claude/skills/supabase-install-auth && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
supabase-install-auth
GitHub stars
2.8k
Token cost
~1.8k tokens
SKILL.md length
472 words
Files
2 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Install and configure Supabase SDK, CLI, and project authentication.

  • Works in 3 steps: Install the SDK and CLI → Configure Environment Variables → Initialize the Client and Verify
  • Setting up a new Supabase project
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 4 more sections
  • Calls npm, npx and pip; needs SUPABASE_KEY and SUPABASE_SERVICE_ROLE_KEY

What it does

Supabase Install Auth is an agent skill from jeremylongshore/tons-of-skills-marketplace. Install and configure Supabase SDK, CLI, and project authentication. Use when setting up a new Supabase project, installing @supabase/supabase-js, configuring environment variables, or initializing the Supabase client. Trigger with "install supabase", "setup supabase", "supabase auth config", "configure supabase", "supabase init", "add supabase to project".

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/examples.md`). Compatibility notes: Designed for Claude Code

It sits in DevOps & Cloud, covering Secrets management. It works with Supabase, Python and TypeScript. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Setting up a new Supabase project
  • Installing @supabase/supabase-js
  • Configuring environment variables
  • Initializing the Supabase client

Example prompts

  • “install supabase”
  • “setup supabase”
  • “supabase auth config”
  • “/supabase-install-auth”

Requirements

  • Python 3
  • Node.js
  • Docker
  • A credential in SUPABASE_KEY
  • A credential in SUPABASE_SERVICE_ROLE_KEY
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(npm:*), Bash(npx:*), Bash(pnpm:*), Bash(pip:*), Bash(supabase:*), Grep, Glob

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Install the SDK and CLI
  2. Configure Environment Variables
  3. Initialize the Client and Verify

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash(npm:*)
    • Bash(npx:*)
    • Bash(pnpm:*)
    • Bash(pip:*)
    • Bash(supabase:*)
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • npx
    • pip
    • supabase

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • supabase.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • SUPABASE_KEY
    • SUPABASE_SERVICE_ROLE_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Supabase Install Auth loads about 1.8k tokens when it runs, and up to ~2.4k if it reads all its reference files. Until then it costs about 95 tokens; SKILL.md has 472 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~95
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:88
    # .env.local (or .env)
  • NoteMentions a .env fileSKILL.md:97
    .env
  • NoteMentions a .env fileSKILL.md:98
    .env.local
  • NoteMentions a .env fileSKILL.md:99
    .env.*.local
  • NoteMentions a .env fileSKILL.md:189
    - `.env.local` containing `SUPABASE_URL`, `SUPABASE_KEY`, and `SUPABASE_SERVICE_ROLE_KEY`

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 472 words, ~1,788 tokens.

Download SKILL.mdSave it as .claude/skills/supabase-install-auth/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
supabase-install-auth
description
Install and configure Supabase SDK, CLI, and project authentication. Use when setting up a new Supabase project, installing @supabase/supabase-js, configuring environment variables, or initializing the Supabase client. Trigger with "install supabase", "setup supabase", "supabase auth config", "configure supabase", "supabase init", "add supabase to project".
allowed-tools
Read, Write, Edit, Bash(npm:*), Bash(npx:*), Bash(pnpm:*), Bash(pip:*), Bash(supabase:*), Grep, Glob
compatibility
Designed for Claude Code
version
1.54.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, supabase, setup, authentication, sdk

Supabase Install & Auth

Overview

Install the Supabase SDK, CLI, and project credentials from scratch — covering package install, environment configuration, client initialization, and connection verification for both TypeScript (@supabase/supabase-js) and Python (supabase).

Key facts:

Prerequisites

  • Node.js 18+ (for JS/TS) or Python 3.8+ (for Python)
  • Package manager: npm, pnpm, or yarn (JS) / pip (Python)
  • A Supabase project created at https://supabase.com/dashboard
  • Docker Desktop (only if using local development via supabase start)

Instructions

Step 1 — Install the SDK and CLI

Install the SDK and the Supabase CLI:

JavaScript / TypeScript:

bash
# Install the SDK
npm install @supabase/supabase-js

# For SSR frameworks (Next.js, SvelteKit, Nuxt), also install:
npm install @supabase/ssr

# Install the Supabase CLI (for types, migrations, local dev)
npm install -D supabase

Python:

bash
# Install the SDK
pip install supabase

# Install the CLI (alternative: brew install supabase/tap/supabase)
npm install -g supabase

Verify the CLI is available:

bash
npx supabase --version
Step 2 — Configure Environment Variables

Retrieve project credentials from the Supabase Dashboard (Settings > API) and create the env file:

bash
# .env.local (or .env)
SUPABASE_URL=https://<project-ref>.supabase.co
SUPABASE_KEY=eyJhbGciOiJIUzI1NiIs...          # anon key — safe for client-side
SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1...  # admin key — server-side ONLY

Add env files to .gitignore immediately:

.env
.env.local
.env.*.local

Security rules:

  • The anon key (SUPABASE_KEY) is safe for client-side code. It respects Row Level Security (RLS) policies.
  • The service role key (SUPABASE_SERVICE_ROLE_KEY) bypasses RLS entirely. Use only on the server. Never bundle into client code or expose in browser.
Step 3 — Initialize the Client and Verify

Create a client singleton and verify connectivity:

TypeScript — client-side (anon key):

typescript
// lib/supabase.ts
import { createClient } from '@supabase/supabase-js'

const supabase = createClient(
  process.env.SUPABASE_URL!,
  process.env.SUPABASE_KEY!
)

export default supabase

TypeScript — server-side (service role key):

typescript
// lib/supabase-admin.ts
import { createClient } from '@supabase/supabase-js'

export const supabaseAdmin = createClient(
  process.env.SUPABASE_URL!,
  process.env.SUPABASE_SERVICE_ROLE_KEY!,
  {
    auth: {
      autoRefreshToken: false,
      persistSession: false,
    },
  }
)

Python — client initialization:

python
# lib/supabase_client.py
import os
from supabase import create_client

url = os.environ["SUPABASE_URL"]
key = os.environ["SUPABASE_KEY"]

supabase = create_client(url, key)

Verify the connection:

typescript
// Quick connectivity check
const { data, error } = await supabase.from('_health_check').select('*').limit(1)
if (error && error.code !== 'PGRST116') {
  // PGRST116 = relation does not exist (expected if table doesn't exist yet)
  throw new Error(`Supabase connection failed: ${error.message}`)
}
console.log('Supabase connected successfully')

Optional — generate TypeScript types from the database schema:

text
npx supabase login
npx supabase link --project-ref <your-project-ref>
npx supabase gen types typescript --linked > lib/database.types.ts

Then add the type parameter to the client:

typescript
import type { Database } from './database.types'
const supabase = createClient<Database>(url, key)

Output

Completing all three steps produces:

  • @supabase/supabase-js or supabase Python package installed
  • Supabase CLI available via npx supabase
  • .env.local containing SUPABASE_URL, SUPABASE_KEY, and SUPABASE_SERVICE_ROLE_KEY
  • Client singleton module (lib/supabase.ts or lib/supabase_client.py)
  • Server-side admin client (lib/supabase-admin.ts, TypeScript only)
  • Verified connectivity to the Supabase project
Show full SKILL.md (207 more words)Show less

Error Handling

ErrorCauseFix
FetchError: request failedWrong SUPABASE_URLVerify URL at Dashboard > Settings > API
Invalid API keyWrong or expired keyCopy fresh anon key from Dashboard > Settings > API
PGRST301: JWSErrorMalformed JWT in keyRemove trailing whitespace/newlines from env var
Cannot find module '@supabase/supabase-js'SDK not installedRun npm install @supabase/supabase-js
ModuleNotFoundError: No module named 'supabase'Python SDK not installedRun pip install supabase
supabase: command not foundCLI not installedRun npm install -D supabase, then use npx supabase
Error: supabase start failsDocker not runningStart Docker Desktop, then retry npx supabase start
TypeError: SupabaseClient is not a constructorWrong import patternUse createClient() — not new SupabaseClient()

Examples

Full TypeScript and Python examples with auth sign-up, sign-in, session management, SSR patterns, and type-safe queries: examples

Resources

Next Steps

After successful setup, continue with:

  • supabase-hello-world — run your first database query
  • supabase-rls-policies — secure your tables with Row Level Security
  • supabase-email-auth — set up email/password authentication flows

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/.curated/supabase-install-auth of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/examples.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Supabase Install Auth next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Supabase Install Auth compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Supabase Install Auth this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.8kAutomated safety check: NotesMIT
Audit Env Variablesqdhenry/Claude-Command-Suite1.3k—~2.8kAutomated safety check: NotesNone
Supercov Securitysupercorp-ai/supercov1521 repos~236Automated safety check: PassMIT
Git HooksProrise-cool/Claude-Code-Multi-Agent306—~3.6kAutomated safety check: NotesNone
AWS Cdk Developmentzxkane/aws-skills3672 repos~2.5kAutomated safety check: PassMIT
Env Var Conventionssgl-project/sglang37k2 repos~2.9kAutomated safety check: PassApache-2.0

Similar skills

  • Audit Env Variables

    qdhenry/Claude-Command-Suite

    Analyze environment variables in JavaScript/TypeScript projects.

    1.3k GitHub stars~2.8k tokensUpdated 7 mo ago
    DevOps & CloudAuto-check: notes
  • Supercov Security

    supercorp-ai/supercov

    Scans a repository's source for security vulnerabilities with the supercov CLI, pointing to the line of each finding and mapping it to CWE classes.

    152 GitHub starsUsed in 1 repo~236 tokens
    Testing & QAAuto-check passed
  • Git Hooks

    Prorise-cool/Claude-Code-Multi-Agent

    Central authority on git hook implementations, modern best practices, and tooling for .NET/C, JavaScript/TypeScript, Python, and polyglot repositories.

    306 GitHub stars~3.6k tokensUpdated 25 days ago
    DevelopmentAuto-check: notes
  • AWS Cdk Development

    zxkane/aws-skills

    AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python.

    367 GitHub starsUsed in 2 repos~2.5k tokens
    DevOps & CloudAuto-check passed
  • Env Var Conventions

    sgl-project/sglang

    Conventions for SGLang environment variables — where to define, how to access, how to name, and how to deprecate.

    37k GitHub starsUsed in 2 repos~2.9k tokens
    DevOps & CloudAuto-check passed
  • Liveblog Dev

    liveblog/liveblog

    Run a local Liveblog development environment. An agent skill from liveblog/liveblog.

    119 GitHub stars~1.9k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Questions about Supabase Install Auth

What does Supabase Install Auth do?

Install and configure Supabase SDK, CLI, and project authentication. Supabase Install Auth is an agent skill from jeremylongshore/tons-of-skills-marketplace. Install and configure Supabase SDK, CLI, and project authentication.

When should I use Supabase Install Auth?

Supabase Install Auth fits situations like: setting up a new Supabase project; installing @supabase/supabase-js; configuring environment variables; initializing the Supabase client.

How do I install Supabase Install Auth in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill supabase-install-auth -a claude-code`. Or copy the skill folder (skills/.curated/supabase-install-auth in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/supabase-install-auth in your project. Claude Code loads it when a task matches its description.

How do I install Supabase Install Auth in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill supabase-install-auth -a codex`. Or copy the skill folder (skills/.curated/supabase-install-auth in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/supabase-install-auth in your project. Codex loads it when a task matches its description.

Can I use Supabase Install Auth in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill supabase-install-auth -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/supabase-install-auth, .gemini/skills/supabase-install-auth, .github/skills/supabase-install-auth and .opencode/skills/supabase-install-auth in your project.

What does Supabase Install Auth need to run?

Going by SKILL.md and its folder, Supabase Install Auth needs the command-line tools its instructions call (npm, npx, pip and supabase) and credentials named SUPABASE_KEY and SUPABASE_SERVICE_ROLE_KEY. Our summary lists: Python 3; Node.js; Docker; A credential in SUPABASE_KEY; A credential in SUPABASE_SERVICE_ROLE_KEY. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(npm:*), Bash(npx:*), Bash(pnpm:*), Bash(pip:*), Bash(supabase:*), Grep, Glob. Compatibility (from SKILL.md): Designed for Claude Code.

Does Supabase Install Auth access the network?

SKILL.md names 1 domain. As links in the text: supabase.com. This is read from the text; nothing was executed.

Is Supabase Install Auth safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Supabase Install Auth use?

Supabase Install Auth is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Supabase Install Auth use?

About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 588 tokens, read only when the agent opens those files.

What are the alternatives to Supabase Install Auth?

Skills that share tags, products or a category with Supabase Install Auth: Audit Env Variables (qdhenry/Claude-Command-Suite, 1.3k stars), Supercov Security (supercorp-ai/supercov, 152 stars), Git Hooks (Prorise-cool/Claude-Code-Multi-Agent, 306 stars) and AWS Cdk Development (zxkane/aws-skills, 367 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Supabase Install Auth?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.