supabase-sicuro

supabase-sicuro is a skill for Claude Code from ayalaphiscan/web-security-guard. It costs 183 tokens per session (4,037 once invoked), scanned A, original, MIT.

A security guide for Supabase projects, covering the hosted Postgres database, login system, file storage, and live updates. It explains database row-level security, which controls who can read or change each row.

In plain words
What is it for?
It helps add access rules to tables and functions, protect privileged columns and storage buckets, configure authentication and API keys, and test permissions as different users.
Why use it?
Supabase clients can call exposed database and storage interfaces directly, so missing or weak database rules can allow users to access or alter other users’ data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the web-security-guard plugin — 15 skills, 4 commands shipped together

Good fit It helps add access rules to tables and functions, protect privileged columns and storage buckets, configure authentication and API keys, and test permissions as different users.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ayalaphiscan/web-security-guard/supabase-sicuro
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 ayalaphiscan/web-security-guard --skill supabase-sicuro
Clone the repo
git clone --depth 1 https://github.com/ayalaphiscan/web-security-guard

Made for: Claude Code.

Or install web-security-guard, the plugin that ships this one along with the rest of its 15 skills, 4 commands.

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-sicuro

README.md
[![agentmods](https://agentmods.dev/badge/skills/ayalaphiscan/web-security-guard/supabase-sicuro/github.svg)](https://agentmods.dev/skills/ayalaphiscan/web-security-guard/supabase-sicuro)
Your own site
<a href="https://agentmods.dev/skills/ayalaphiscan/web-security-guard/supabase-sicuro"><img src="https://agentmods.dev/badge/skills/ayalaphiscan/web-security-guard/supabase-sicuro/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-sicuro

Your own site · 80×15
<a href="https://agentmods.dev/skills/ayalaphiscan/web-security-guard/supabase-sicuro"><img src="https://agentmods.dev/badge/skills/ayalaphiscan/web-security-guard/supabase-sicuro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 183 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,037 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.00183 $0.04037
Opus 5.5 $0.00073 $0.01615
Sonnet 5.5 $0.00037 $0.00807
Haiku 4.5 $0.00018 $0.00404

Measured 1mo ago against content hash e9e0d4c5e05b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

supabase-sicuro 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 1mo 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.

skills/supabase-sicuro/SKILL.md · 207 lines

How it starts

The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Supabase sicuro · Secure Supabase

🇮🇹 Versione italiana qui sotto · 🇬🇧 English version below

Con Supabase il browser parla direttamente con il database (PostgREST, RPC, Storage, Realtime) usando la chiave pubblica. Ogni tabella e ogni funzione è un'API pubblica: l'unica difesa sono le regole nel database. Chi conosce l'indirizzo del progetto e la chiave pubblica (sono nel codice del sito) può chiamare tutto ciò che le regole permettono.

Regole obbligatorie

1. RLS su ogni tabella, sempre

  • alter table … enable row level security nella stessa migrazione che crea la tabella. Una tabella senza policy con RLS attiva non si legge: è il punto di partenza giusto.
  • Le policy dicono chi vede quali righe (using) e cosa può scrivere (with check). Nelle insert e update, il proprietario si lega sempre a auth.uid() (with check (user_id = (select auth.uid()))), mai a un valore scelto dal client.
  • Le colonne privilegiate (verificato, piano, ruolo, contatori, stato di una richiesta) non si aggiornano dal client. Si usano permessi per colonna (grant update (bio, city) on … to authenticated) o trigger che le rifiutano.
  • I dati altrui sensibili (data di nascita, posizione, email, telefono) si escludono con permessi per colonna, o si espongono solo tramite funzioni che restituiscono il minimo (l'età, una posizione arrotondata).

2. Permessi espliciti sulle tabelle nuove (dal 30 ottobre 2026)

Una tabella nuova nello schema public non è più esposta da sola all'API. Ogni migrazione che la crea deve dire chi può usarla:

grant select, insert, delete on public.commenti to authenticated;  -- solo le azioni che servono
-- anon solo se la tabella si legge senza accesso

Senza grant l'app riceve "permission denied", con il suggerimento del comando. Le tabelle esistenti non cambiano.

3. Funzioni

  • security invoker (il default) quando bastano le regole di chi chiama.
  • Le security definer (girano con i privilegi del proprietario) devono:
    • avere set search_path = '' e nomi completi (public.tabella);
    • controllare chi chiama con auth.uid() e i suoi diritti sui dati toccati;
    • togliere l'esecuzione a tutti e ridarla solo a chi serve: revoke execute on function … from public, anon, authenticated; poi grant execute on function … to authenticated;. Le funzioni interne vanno in uno schema non esposto:
create schema if not exists private;
revoke all on schema private from public, anon;
alter default privileges in schema private revoke execute on functions from public;
grant usage on schema private to authenticated;  -- solo se le policy usano funzioni di private
  • Mai SQL dinamico con testo del client. Se serve, usare format('%I', …) e %L.

Read the full file on GitHub · 207 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. 1mo ago First seen · 207 lines · 183 tokens per session scan A e9e0d4c5e05b

Subscribe to this mod's changes

supabase-sicuro is a skill published in the GitHub repository ayalaphiscan/web-security-guard (4 stars, last pushed 1mo ago), licensed MIT. It adds 183 tokens to every session and 4,037 once invoked, about $0.0007 per session on Opus 5.5. 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-10-24.

Related

supabase-sicuro compared with skills from other repositories

supabase-sicuro next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
supabase-sicuroayalaphiscan/web-security-guardSkill41mo agoMITA183Claude Code
ecto-patternsoliver-kriska/claude-elixir-phoenixSkill5803d agoMITA51Claude Code
cloudflare-hyperdrivesecondsky/claude-skillsSkill2574d agoMITA45Claude Code
ecto-constraint-debugoliver-kriska/claude-elixir-phoenixSkill5803d agoMITA36Claude Code
prod-dry-runsuxrobGM/jobpilotSkill11725d agoMITA61Claude Code
postgresqliliaal/whetstoneSkill37todayMITA61Claude Code, Codex
pytest-databaseslitestar-org/litestar-skillsSkill1911d agoMITA161Claude Code