Sandbox
@supabase/agent-skills

Supabase skill packs for AI coding agents

This repository provides Agent Skills that agents can discover and use when you work with Supabase. The skills cover general Supabase development and Postgres performance guidance, and they are packaged for Agent Skills–compatible editors and CLIs.

2,592 stars204 forksTypeScriptUpdated 1mo ago
Who it's for

Builders who use AI agents to work with Supabase apps, schemas, auth, and Postgres tuning.

What it delivers

You can give your agent Supabase-specific guidance without re-explaining the same product details every session.

What it does

General Supabase skill

Covers Supabase products, client libraries, SSR integrations, auth troubleshooting, migrations, security audits, and CLI or MCP use.

Postgres best-practices skill

Provides prioritized guidance for query performance, connection management, schema design, locking, RLS, monitoring, and advanced Postgres features.

Agent Skills packaging

Uses the Agent Skills folder format with `SKILL.md` manifests and optional reference files so agents can discover the content.

Claude Code plugin support

Includes `.claude-plugin/marketplace.json` and plugin install steps for installing the skills as Claude Code plugins.

Release and discovery pipeline

Builds release artifacts with `scripts/build-release.ts` and publishes the `.well-known` skills index used by Supabase.

How to get it

  1. 1Run
    npx skills add supabase/agent-skills
  2. 2Run
    npx skills add supabase/agent-skills --skill supabase
    npx skills add supabase/agent-skills --skill supabase-postgres-best-practices
  3. 3You can also install the skills as Claude Code plugins
    # 1. Install supabase/agent-skill marketplace
    claude plugin marketplace add supabase/agent-skills
    
    # 2. Install the plugin that you want 
    claude plugin install supabase@supabase-agent-skills
    claude plugin install postgres-best-practices@supabase-agent-skills
  4. 4Examples
    Optimize this Postgres query
  5. 5Run
    Review my schema for performance issues
  6. 6Run
    Help me set up Supabase Auth with Next.js

README

Supabase Agent Skills

Supabase Agent Skills

Agent Skills to help developers using AI agents with Supabase. Agent Skills are folders of instructions, scripts, and resources that agents can discover and use to do things more accurately and efficiently. Compatible with 18+ AI agents including Claude Code, GitHub Copilot, Cursor, Cline, and many others.

The skills in this repo follow the Agent Skills format.

Installation

See the Supabase AI Skills documentation for detailed installation instructions.

Install all skills

npx skills add supabase/agent-skills

Install a specific skill

npx skills add supabase/agent-skills --skill supabase
npx skills add supabase/agent-skills --skill supabase-postgres-best-practices

Claude Code Plugin

You can also install the skills as Claude Code plugins:

# 1. Install supabase/agent-skill marketplace
claude plugin marketplace add supabase/agent-skills

# 2. Install the plugin that you want 
claude plugin install supabase@supabase-agent-skills
claude plugin install postgres-best-practices@supabase-agent-skills

Available Skills

supabase

Comprehensive Supabase development skill covering all Supabase products and integrations.

Use when:

  • Working with any Supabase product (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues)
  • Using client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix
  • Troubleshooting auth issues (login, logout, sessions, JWT, cookies, getSession, getUser, getClaims, RLS)
  • Using the Supabase CLI or MCP server
  • Working with schema changes, migrations, security audits, or Postgres extensions (pg_graphql, pg_cron, pg_vector)
supabase-postgres-best-practices

Postgres performance optimization guidelines from Supabase. Contains references across 8 categories, prioritized by impact.

Use when:

  • Writing SQL queries or designing schemas
  • Implementing indexes or query optimization
  • Reviewing database performance issues
  • Configuring connection pooling or scaling
  • Working with Row-Level Security (RLS)

Categories covered:

  • Query Performance (Critical)
  • Connection Management (Critical)
  • Schema Design (High)
  • Concurrency & Locking (Medium-High)
  • Security & RLS (Critical)
  • Data Access Patterns (Medium)
  • Monitoring & Diagnostics (Low-Medium)
  • Advanced Features (Low)

Usage

Skills are automatically available once installed. The agent will use them when relevant tasks are detected.

Examples:

Optimize this Postgres query
Review my schema for performance issues
Help me set up Supabase Auth with Next.js
Help me add proper indexes to this table

Skill Structure

Each skill follows the Agent Skills Open Standard:

  • SKILL.md - Required skill manifest with frontmatter (name, description, metadata)
  • references/ - (Optional) Reference files for detailed documentation

.well-known discovery

Each release uploads a dist/index.json alongside the skill tarballs. This index conforms to the agent-skills .well-known URI spec (schema v0.2.0) and is consumed by supabase.com to serve skills at https://supabase.com/.well-known/agent-skills/.

The release artifacts are built by scripts/build-release.ts and triggered by Release Please on every semver release.

Migrating to the official GitHub Action

jonathanhefner/agentskills-build-for-well-known is intended to be transferred to the agentskills org and published to the GitHub Marketplace. When that happens, scripts/build-release.ts and the pnpm build:release step in release-please.yml can be replaced with the Action directly:

- name: Build release artifacts
  uses: agentskills/build-for-well-known@v1   # replaces pnpm build:release
  with:
    skills-dir: skills
    output-dir: dist

Everything else — the Release Please trigger, the upload step, the supabase-plugin dispatch — stays exactly the same. The script and the Action produce identical output, so it is a drop-in swap.

Files in the repo

Repository payload20 top-level entries
  • .claude-plugin
  • .github
  • assets
  • scripts
  • skills
  • test
  • .gitignore
  • .mcp.json
  • .node-version
  • .release-please-manifest.json
  • AGENTS.md
  • CHANGELOG.md
  • CLAUDE.md
  • CONTRIBUTING.md
  • LICENSE
  • package.json
  • pnpm-lock.yaml
  • README.md
  • release-please-config.json
  • vitest.config.ts

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k