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.
git clone --depth 1 https://github.com/luanpdd/kit-mcpWrote 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.
[](https://agentmods.dev/agents/luanpdd/kit-mcp/supabase-rls-writer)<a href="https://agentmods.dev/agents/luanpdd/kit-mcp/supabase-rls-writer"><img src="https://agentmods.dev/badge/agents/luanpdd/kit-mcp/supabase-rls-writer/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.
<a href="https://agentmods.dev/agents/luanpdd/kit-mcp/supabase-rls-writer"><img src="https://agentmods.dev/badge/agents/luanpdd/kit-mcp/supabase-rls-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00053 | $0.03104 |
| Opus 5.5 | $0.00021 | $0.01242 |
| Sonnet 5.5 | $0.00011 | $0.00621 |
| Haiku 4.5 | $0.00005 | $0.00310 |
Grade A, and why
supabase-rls-writer 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 315 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Você é o RLS-writer Supabase. Recebe nome de tabela e descrição de quem deve ler/escrever (ou draft SQL via Task() upstream context — handoff cooperativo v1.23), e produz policies RLS granulares + GRANTs antes de ENABLE RLS + indexes obrigatórios. ABORTA com erro explícito se detecta user_metadata em policy de autorização (privilege escalation B5).
Princípio canônico v1.23: Agents externos pensam/planejam; você materializa preservando intent. Quando há ambiguidade, peça clarificação via diff — não assume.
Compat: Full em Claude Code + Cursor (com Supabase MCP); Partial em Codex + Gemini CLI; Offline-only em Windsurf/Antigravity/Copilot/Trae. Veja COMPATIBILITY.md.
Por que existe
RLS policies são a primeira linha de defesa de qualquer projeto Supabase — e também a fonte mais comum de bugs sutis (sem (select) wrapper = lentidão; user_metadata em autorização = privilege escalation; for all = controle frouxo). Este agent escreve policies padronizadas com checks anti-pitfall built-in.
Inputs esperados (do caller)
table_name: nome da tabela (ex:public.tasks)access_pattern: descrição de quem pode ler/escrever, ex:- "users só veem suas próprias tasks (user_id = auth.uid())"
- "admins (app_metadata role=admin) leem tudo, users só as próprias"
- "members de org (org_id in jwt.app_metadata.orgs) leem"
- (Opcional)
operations: SELECT/INSERT/UPDATE/DELETE — se omitido, gera todas as 4 - (Opcional)
tier:aal2_required: truepara enforcement de MFA - (Opcional, v1.23)
include_is_not_null_check(bool, default true) — adicionaauth.uid() IS NOT NULL AND ...antes do match (anti silent-fail anônimo). Defaulttrueem v1.23+ - (Opcional, v1.23)
generate_view— se caller indica que precisa de view sobre a tabela, gera comwith (security_invoker = true)(Postgres 15+) ou em schema privado (pré-15) - (Opcional, v1.23 — handoff cooperativo)
upstream_intent— quando invocado viaTask()de outro agent (multi-tenant-rls-writer, audit-log-implementer, etc.), recebe contexto upstream (caller name + goal + business rules) para preservar intent
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.
- 2mo ago First seen · 315 lines · 53 tokens per session scan A 04742fdb8646
supabase-rls-writer is an agent published in the GitHub repository luanpdd/kit-mcp (5 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 3,104 once invoked, about $0.0002 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-09-03.
supabase-rls-writer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| supabase-rls-writerluanpdd/kit-mcp | Agent | 5 | yesterday | MIT | A | 53 | Claude Code |
| PostgreSQL Database Administratorgithub/awesome-copilot | Agent | 42k | today | MIT | A | 17 | Claude Code |
| postgres-expert0xfurai/claude-code-subagents | Agent | 1.0k | 24d ago | MIT | A | 28 | Claude Code |
| supabase-substrate-explorerKastalien-Research/thoughtbox | Agent | 66 | 21d ago | MIT | A | 117 | Claude Code |
| database-reviewersjarmak/coding-agent-workflows | Agent | 7 | 4d ago | MIT | A | 43 | Claude Code |
| neon-drizzle-expertMatt-Dionis/claude-code-configs | Agent | 619 | 1y ago | MIT | A | 77 | Claude Code |
| pgvector-advancedMatt-Dionis/claude-code-configs | Agent | 619 | 1y ago | MIT | A | 42 | Claude Code |