agentleFS
alanalvestechalanalvestech/hitank/skills/supabase/SKILL.md

supabase

Skill38 starsChanged 9 months agoMITView on GitHub

Manage Supabase projects, edge functions, secrets and API keys via Management API

32 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use tailwind and testing.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nth5693Skill

    tailwind

    Also in 4 projects that use this

  • NVIDIASkill

    testing

    Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the output is OK, proceed to the Flow section.

    line 35
  2. Very specific:

    If the output is SETUP_NEEDED, guide the user step by step.

    line 37
  3. Distinctive:

    If the script outputs an error, the token is invalid.

    line 54

“Common” is measured: kept by at least 6 in 10 of the 29 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/supabase

Connect to the Supabase Management API to manage projects, edge functions, secrets, API keys and more. Pure Ruby, zero gems — stdlib only.

Structure

scripts/
├── auth.rb          # Bearer token + supabase_request helper (required by all scripts)
├── check_setup.rb   # Check if token exists (outputs OK or SETUP_NEEDED)
├── save_token.rb    # Save and validate an API token
├── projects.rb      # List all projects
├── project.rb       # Get project details
├── functions.rb     # List edge functions for a project
├── function.rb      # Get edge function details
├── secrets.rb       # List secrets (masked)
├── api_keys.rb      # List API keys for a project
├── pause.rb         # Pause a project
└── restore.rb       # Restore a paused project

Setup (check before using)

ruby ~/.claude/skills/supabase/scripts/check_setup.rb

If the output is OK, proceed to the Flow section.

If the output is SETUP_NEEDED, guide the user step by step. Present ONE step at a time, wait for the user to confirm before moving to the next.

Step 1 — Ask the user to create an access token:

You need a Supabase access token. Go to Account Settings > Access Tokens on the Supabase Dashboard: https://supabase.com/dashboard/account/tokens

Click Generate new token, give it a name (e.g. "hitank"), and copy the token.

Paste the token here.

Step 2 — When the user pastes the token, save it:

ruby ~/.claude/skills/supabase/scripts/save_token.rb 'PASTED_TOKEN'

If the script outputs an error, the token is invalid. Ask the user to double-check and try again.

If setup is not complete, DO NOT proceed to the Flow. Complete all steps first.

Flow

The argument $ARGUMENTS may contain a project ref or name.

Step 1: List projects

ruby ~/.claude/skills/supabase/scripts/projects.rb

Present the projects to the user. If $ARGUMENTS matches a project ref or name, use that project. Otherwise ask which project to work with.

Step 2: Show project details

ruby ~/.claude/skills/supabase/scripts/project.rb PROJECT_REF

Present the project info and ask what the user wants to do.

Step 3: Actions

List edge functions:

ruby ~/.claude/skills/supabase/scripts/functions.rb PROJECT_REF

Get edge function details:

ruby ~/.claude/skills/supabase/scripts/function.rb PROJECT_REF FUNCTION_SLUG

List secrets (masked):

ruby ~/.claude/skills/supabase/scripts/secrets.rb PROJECT_REF

List API keys:

ruby ~/.claude/skills/supabase/scripts/api_keys.rb PROJECT_REF

Pause project (requires user confirmation):

Show project status first, then ask: "Do you want to pause this project?" Only execute after a "yes".

ruby ~/.claude/skills/supabase/scripts/pause.rb PROJECT_REF

Restore project (requires user confirmation):

Show project status first, then ask: "Do you want to restore this project?" Only execute after a "yes".

ruby ~/.claude/skills/supabase/scripts/restore.rb PROJECT_REF

Notes

  • Pure Ruby, zero gems — stdlib only (json, net/http, uri, fileutils)
  • Auth via Bearer token in Authorization header
  • Token file: ~/.config/supabase/token (outside the repo, never commit)
  • Pausing and restoring projects require explicit user confirmation
  • Base URL: https://api.supabase.com/v1
  • Project ref is the unique identifier for each Supabase project (e.g. abcdefghijklmnop)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.