ClaudeCodeMod

All shelves / Mods / Safety

supabase-guard

By Szotasz

supabase-guard is a Claude Code safety mod by Szotasz.

Asks before a Supabase write aimed at another project, or a destructive call, and stops the call when you refuse.

DrawsHolds a command

Install

The marketplace name is claude-mods.

In your shell
claude plugin marketplace add Szotasz/claude-mods
claude plugin install supabase-guard@claude-mods
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.0
Repo stars
6
Last change
2026-10-07

What it can reach

  • Draws in the session
  • Holds a command
  • Sees tool calls

The popup's words are Hungarian when the system language is Hungarian, and English otherwise. The plugin's own page is the Hungarian section of the root README. It stops a Supabase call that would write somewhere other than this folder's project, and asks in a popup. The folder's project comes from supabase/.temp/project-ref, from https://<ref>.supabase.co URLs in .env files, from CLAUDE.md when it names a single project id, and from a ref you confirm as this folder's project. A write aimed at another project asks, for MCP execute_sql, apply_migration, deploy_edge_function, branch operations, and supabase db push --project-ref. The choices are Deny, Allow, or This is the folder's project. A destructive call on the folder's own project also asks: DROP, TRUNCATE, DELETE FROM, an UPDATE without WHERE, REVOKE, turning RLS off, reset_branch, delete_branch, pause_project, and supabase db reset --linked. If the folder has no known project, a write asks, and one choice is Allow for this session. A read of another project still runs, and the model is warned not to draw a conclusion about the wrong project. If the check fails, the call does not run. /supaor turns it on or off, and the toolbox can too. The warning note is added to what the model reads.

The marketplace name is claude-mods. The marketplace also holds public-repo-guard, decision-popup, and project-pane. This one installs on its own. The question before a Supabase write is why this page files it under safety. blast-radius holds a shell command such as rm -rf, a force push, a hard reset, or a migration, shows what it would touch, then asks you to proceed or cancel. guard-pack holds file tools and shell moves that leave the project's roots, asks before a production deploy, and redacts secrets in a tool result before Claude reads it. Nothing else on the shelf checks which Supabase project a call is aimed at. The source starts it on until the stored choice says otherwise. Nothing in the plugin sends the call, the SQL, or the project id to Supabase or any other service.

Demo

The supabase-guard section of the claude-mods README, in Hungarian: how the folder's project is found, the writes and destructive calls it asks about, the reads it lets run with a warning, and that it stays closed when the check fails.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/supaor
  • state.setA Claude Code event
  • tool.callAround a tool call, where it can hold oneBash

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /supaor

Files

The author's source, 3 files. They load when you open them.

Facts

Author
Szotasz
Category
Safety
Marketplace
claude-mods
Repo
Szotasz/claude-mods
Folder
plugins/supabase-guard
Version
0.1.0
Repo stars
6
Last change
2026-10-07
Language
TypeScript
Files
6

Other mods in Safety

secret-panebengousHolds a commandOpens a masked box beside the transcript when Claude needs a secret, gives Claude a placeholder, and puts the real value back only inside a Bash command.ultramodmertkayacsHolds a commandPacks ten mods: limits and context above the prompt, a guard with undo for rm -rf and git reset --hard, .env reads refused, and a receipt under each answer.envdavekissHolds a commandOpens a card when Claude needs a key, so you paste the value into a pane Claude can't read, and holds Claude's reads of .env files and commands that print them.model-allowlisterikdarlingdataHolds a commandRefuses a subagent spawn that pins a model id instead of a tier alias such as opus or sonnet, and holds spawns to model rules you write per agent type.ruflo-browserruvnetHolds a commandRefuses ruflo browser opens of file, javascript, data, or chrome URLs, credentialed or cloud-metadata hosts, unsafe Chrome flags, and cookie-reading scripts.ruflo-intelligenceruvnetHolds a commandRefuses a key, token, or password in what ruflo learns from, an email address in a public transfer, and a reset of ruflo's intelligence without confirm.ruflo-jujutsuruvnetHolds a commandRefuses a pull request ruflo creates or reviews when its title or body holds a key, token, or password, and a merge or close that does not carry confirm.ruflo-neural-traderruvnetHolds a commandRefuses a live order from ruflo's neural-trader tools unless it is confirmed, paper, or a dry run, and any trader call or memory write that holds a broker key.ruflo-loop-workersruvnetHolds a commandRefuses a ruflo background worker dispatch whose context holds a key, token, or password, and any dispatch past a per-session cap, which catches a stuck loop.ruflo-workflowsruvnetHolds a commandRefuses a ruflo workflow definition, run, or workflow memory record that holds a secret, and a workflow_delete that names no single workflow id.ruflo-federationruvnetHolds a commandRefuses ruflo federation publishes and syncs to other machines that hold a key, token, or password, or personal data such as an SSN or a card number.ruflo-agentruvnetHolds a commandRefuses text sent into a ruflo agent runtime, a local WASM sandbox or Anthropic's managed cloud agents, when it holds a key, token, or password.
All 73 in Safety