supabase-arch

supabase-arch is a skill for Claude Code from YuDefine/nuxt-supabase-starter. It costs 49 tokens per session (562 once invoked), scanned A, original, MIT.

A set of architecture guidelines for applications that use Supabase, a hosted database and backend service based on PostgreSQL. It helps choose where database reads, writes, third-party requests, scheduled work, and real-time updates should run.

In plain words
What is it for?
Use it to plan Supabase features, decide between a database function and an Edge Function, organize database schemas, handle webhooks and scheduled tasks, and consider performance or secret keys.
Why use it?
It reduces uncertainty when designing features by matching common jobs to database functions, server-side functions, security rules, or client code.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

Good fit Use it to plan Supabase features, decide between a database function and an Edge Function, organize database schemas, handle webhooks and scheduled tasks, and consider performance or secret keys.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yudefine/nuxt-supabase-starter/supabase-arch
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 YuDefine/nuxt-supabase-starter --skill supabase-arch
Clone the repo
git clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starter

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/supabase-arch/github.svg)](https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/supabase-arch)
Your own site
<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/supabase-arch"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/supabase-arch/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-arch

Your own site · 80×15
<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/supabase-arch"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/supabase-arch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 562 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00049 $0.00562
Opus 5 $0.00024 $0.00281
Sonnet 5 $0.00010 $0.00112
Haiku 4.5 $0.00005 $0.00056

Measured 10d ago against content hash 2f1c4fc7d0f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

supabase-arch 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 10d 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.

template/.claude/skills/supabase-arch/SKILL.md · 56 lines

What it actually says

Supabase 架構決策指南

資料存取模式已定義在 CLAUDE.md(Client 讀、Server 寫)。本 skill 提供架構決策指引。

Schema 邊界

  • core / auth: 授權相關(user_roles、allowed_emails、user_preferences、enum、函式)
  • app / 專案名稱: 業務資料表
  • public: 不存放業務資料;SDK 查詢使用 client.schema('core')client.schema('app')

快速決策表

場景 方案
簡單 CRUD Client SDK + RLS
跨表交易 Postgres RPC
第三方 API Edge Function
Webhook Edge Function
排程任務(DB 內部) pg_cron
排程任務(外部邏輯) Edge Function + Cron
即時更新 SDK + Realtime
複雜統計 Materialized View + pg_cron
權限繞過 RPC (Security Definer)
檔案處理 Edge Function (Stream)
敏感金鑰 Edge Function (環境變數)

需要更詳細的決策指引?→ references/decision-tree.md

效能評估

  • High Concurrency (>100 req/s):讀取密集加 Redis/CDN 快取,寫入密集用 Message Queue
  • Standard:遵循快速決策表

檢查清單

安全性

  • RLS First:所有 Table 預設開啟 RLS
  • Never Trust Client:前端資料在 DB/Edge 層驗證
  • Service Role:僅在 Edge Function 或 RPC 內部使用

效能

  • Filter/Join 欄位建立 Index
  • 避免 select('*'),明確指定欄位
  • 外部請求設定 Timeout
Files

What ships with it

1 file 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.

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. 10d ago First seen · 56 lines · 49 tokens per session scan A 2f1c4fc7d0f2

Subscribe to this mod's changes

supabase-arch is a skill published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 562 once invoked, about $0.0002 per session on Opus 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.

Related

Other skills, from other repositories

explorer

Build and modify Studio Explorer surfaces, including notebooks, chats, SQL snippets, query cells, and their shared toolbar patterns.

supabase/supabase · 27 tokens

azure-cosmos-db-py

Build Azure Cosmos DB NoSQL services with Python/FastAPI following production-grade patterns. Use when implementing database client setup with dual auth (DefaultAzureCredential + emulator), service layer classes with CRUD operations, partition key strategies, parameterized queries, or TDD patterns for Cosmos. Triggers…

microsoft/skills · 96 tokens

slides

Build a Grida slides deck — a .canvas bundle in slides mode whose pages are SVG documents (16:9, one SVG per slide). Use when creating a presentation, pitch deck, slideshow, or talk.

gridaco/grida · 46 tokens

dotcanvas

Author and edit a Grida .canvas board — a .canvas.json manifest plus document files (references, generated images, notes) placed on an infinite canvas. Use when working on a .canvas bundle or arranging visuals/design work spatially. For a linear deck/presentation, use the slides skill instead.

gridaco/grida · 69 tokens

supabase

Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies…

supabase/agent-skills · 185 tokens

supabase-postgres-best-practices

Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the…

supabase/agent-skills · 182 tokens