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-migrationgit 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-migration)<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/supabase-migration"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/supabase-migration/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-migration"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/supabase-migration.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.00055 | $0.01001 |
| Opus 5.5 | $0.00022 | $0.00400 |
| Sonnet 5.5 | $0.00011 | $0.00200 |
| Haiku 4.5 | $0.00006 | $0.00100 |
Grade A, and why
supabase-migration 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.
How it starts
The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Supabase Migration 規範
核心規則(supabase migration new、search_path、SECURITY DEFINER 不放 exposed schema、view security_invoker、不改已 apply 的 migration、timestamp 契約、MCP 禁 DDL、reset → lint → gen types → typecheck、advisors、pending migration 分類、expand-contract)在 rules/modules/db-schema/supabase/migration.md,本 skill 不複述,只補實作細節。
PR-isolated DB preview env / schema diff gate / production data sanitization 規約見
rules/core/db-preview-env.md(capability + safety contract)與rules/modules/db-runtime/supabase-self-hosted/preview-env.md(self-host 實作層 + image trip-wires)。Cookbook 範本:vendor/snippets/db-preview-env/。
SOP
Phase 1 -- 建立 migration 檔
- READ 讀取 module rule
rules/modules/db-schema/supabase/migration.md(或 runtime 已交付的同名規約;改supabase/migrations/**/*.sql時已自動載入就不重讀)。 - DELEGATE 執行
supabase migration new <topic>產生檔名;一個 migration 只放一個主題。
Phase 2 -- 撰寫 DDL
- READ 讀取
rules/DDL撰寫慣例判準.md。 - WRITE 需要
SECURITY DEFINER函式時,讀取templates/security-definer-function.md與templates/security-definer-function.example.md撰寫;要讓 PostgREST(Data API)呼叫時,再讀取templates/public-thin-wrapper.md與templates/public-thin-wrapper.example.md在public建 wrapper。 - WRITE 其餘 DDL 依已載入規則撰寫;RLS policy 的內容設計轉
supabase-rlsskill。
Phase 3 -- 本機驗證
-
DELEGATE 依 module rule 對每一個新增或修改的 migration 跑 reset → lint → gen types → typecheck,再跑
supabase db advisors並逐條處置 security 類 finding。 -
DELEGATE 檢查有沒有 migration 被改名:
git diff --cached --diff-filter=R -- 'supabase/migrations/' | grep -q . && echo "BLOCK: migration renamed" || echo "OK"印
BLOCK時 STOP,把檔名還原成 main 上的檔名,不 commit 新 timestamp(判準見migration.md§ Timestamp 不可變)。
Phase 4 -- Production 韌性分類與 gate(self-host production)
- DELEGATE 執行
node scripts/postgrest-resilience/classify-migration.mjs <migration.sql>(本 skill 目錄下的投影資源);找不到投影資源時 NEVER 改用其他 runtime 的路徑猜一個,回報標準未送達並保留 evidence 要求。 - THINK 讀取
rules/Production韌性分類判準.md,依分類器的overall決定 online、expand-contract 或 hard stop。 - DELEGATE online 路線部署時執行
node scripts/postgrest-resilience/ready-watch.mjs --url=<admin-ready-url>與node scripts/postgrest-resilience/smoke-runner.mjs --endpoint=<name=url>,保存/ready、smoke summary 與 PostgREST logs 作為 evidence。
What ships with it
10 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.
- rules/DDL撰寫慣例判準.md 3.5 KB
- rules/Production韌性分類判準.md 2.4 KB
- rules/疑難排解與Owner修復判準.md 2.5 KB
- scripts/postgrest-resilience/classify-migration.mjs 32 KB runs code
- scripts/postgrest-resilience/ready-watch.mjs 1.5 KB runs code
- scripts/postgrest-resilience/smoke-runner.mjs 3.0 KB runs code
- templates/public-thin-wrapper.example.md 613 B
- templates/public-thin-wrapper.md 999 B
- templates/security-definer-function.example.md 918 B
- templates/security-definer-function.md 928 B
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 · -57 lines 63f571541c0b
- 1mo ago Changed · -1 lines f92e72bdfc1a
- 2mo ago Changed · -52 lines 598996927084
- 2mo ago Changed · +1 lines 02207dc59982
- 2mo ago Changed · +47 lines · -1 tokens per session fbabd477c6a4
- 3mo ago First seen · 114 lines · 56 tokens per session scan A 0be5927a9933
supabase-migration is a skill published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed 2d ago), licensed MIT. It adds 55 tokens to every session and 1,001 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-08-30.
supabase-migration compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| supabase-migrationYuDefine/nuxt-supabase-starter | Skill | 45 | 2d ago | MIT | A | 55 | 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 |