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.
npx skills add YuDefine/nuxt-supabase-starter --skill supabase-rlsgit clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starterWrote 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/skills/yudefine/nuxt-supabase-starter/supabase-rls)<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/supabase-rls"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/supabase-rls/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/skills/yudefine/nuxt-supabase-starter/supabase-rls"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/supabase-rls.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00073 | $0.00656 |
| Opus 5.5 | $0.00029 | $0.00262 |
| Sonnet 5.5 | $0.00015 | $0.00131 |
| Haiku 4.5 | $0.00007 | $0.00066 |
Grade A, and why
supabase-rls 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.
What it actually says
Supabase RLS 政策規範
本 skill 只寫自家慣例。Supabase 官方 supabase skill(supabase/agent-skills@supabase)
已涵蓋的通用 RLS 陷阱不在此重複:UPDATE 需搭配 SELECT policy、Storage upsert 需
INSERT + SELECT + UPDATE 三個 policy、user_metadata 不可用於授權判斷、刪除 user 不會
使既有 access token 失效、view 預設繞過 RLS、SECURITY DEFINER 繞過 RLS、TO authenticated
只是認證不是授權。遇到上述主題 MUST 讀官方 skill,本檔不是它的替代品。
自家的 policy 撰寫規範(GRANT 先於 RLS、AS RESTRICTIVE 疊加、FORCE ROW LEVEL SECURITY、
JWT staleness、service_role isolation)在 rule db-schema/supabase/rls-policy.md,那是 paths-gated 規約,改
supabase/migrations/**/*.sql 時自動載入。
SOP
Phase 1 -- 界定 policy 需求與分工
- READ 讀取目標表、會讀寫它的角色、每個 operation(SELECT/INSERT/UPDATE/DELETE)的存取需求,以及這張表由 client 直讀還是只由 server 讀;需求碰到上方導言列的通用陷阱時,讀取官方
supabaseskill 對應段落。 - READ 讀取 module rule
db-schema/supabase/rls-policy.md(改supabase/migrations/**/*.sql時已自動載入就不重讀)。
Phase 2 -- 撰寫 policy
- READ 讀取
rules/Policy自家慣例判準.md。 - WRITE 讀取
templates/rls-policies.md與templates/rls-policies.example.md,在同一支 migration 中寫 ENABLE(FORCE 依rls-policy.md的條件)、GRANT 與每個 operation 的 policy。
Phase 3 -- 驗證
- DELEGATE 跑
pnpm db:lint,輸出非空就修正後重跑。 - READ 走一遍官方
supabaseskill 的 Security checklist(views/SECURITY DEFINER/storage/JWT),再逐條對照已載入規則;不符就回 Phase 2 修正。
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago Changed · -34 lines a4b7495acf1d
- 1mo ago Changed · -1 lines 5d163bdacbad
- 2mo ago Changed · -6 lines 5357ba4c0beb
- 2mo ago Changed · +1 lines 94ede662220c
- 2mo ago Changed · +14 lines · +10 tokens per session de473d4c248d
- 3mo ago First seen · 62 lines · 63 tokens per session scan A 2588031fd99f
supabase-rls is a skill published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed 2d ago), licensed MIT. It adds 73 tokens to every session and 656 once invoked, about $0.0003 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-08-30.
supabase-rls compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| supabase-rlsYuDefine/nuxt-supabase-starter | Skill | 45 | 2d ago | MIT | A | 73 | Claude Code |
| nw-query-optimizationnWave-ai/nWave | Skill | 636 | 11d ago | MIT | A | 32 | Claude Code |
| database-optimizationils15/pantheon-legacy | Skill | 12 | 16d ago | MIT | A | 25 | Claude Code |
| database-migrationils15/pantheon-legacy | Skill | 12 | 16d ago | MIT | A | 26 | Claude Code, Codex |
| supabase-postgres-best-practicesever-works/directory-web-template | Skill | 22 | yesterday | AGPL-3.0 | A | 41 | Claude Code, Codex |
| schema-designint2t05/engineering-skills | Skill | 3 | 1mo ago | MIT | A | 27 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |