yudefine/nuxt-supabase-starter/server-api

Claude Code and agent skill by yudefine/nuxt-supabase-starter

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when 新增或修改 Nitro API handler(含 request 驗證與 server 端資料存取)。NOT for client 端讀取查詢——僅 `modules.auth` 為 Supabase Auth 時;其餘 auth stack 讀取也走本 skill。NOT for 前端全域狀態(走 pinia-store)。

Install

npx vskill@latest install yudefine/nuxt-supabase-starter/server-api

SKILL.md

The same SKILL.md was published earlier as yudefine/nuxt-supabase-starter/server-api.

Server API

requireRole、getSupabaseWithContext/getAuthedSupabase 等 helper 是 consumer 自己實作的函式,使用前查其來源與授權行為。回應 envelope 與錯誤碼照 consumer 已安裝的 runtime 規約 api-patterns(與該 repo 自己宣告的 envelope),本 skill 不另訂;這裡只放與預設不同的慣例,以及列表、搜尋、聚合端點的查詢契約。

SOP

Phase 1 -- 判定 auth stack 與資料路徑

  1. READ 讀取 consumer manifest(canonical .clade/manifest.json;canonical 缺席的未遷移 consumer 讀 legacy .claude/hub.json)的 modules.auth 與 server/utils/ 的 helper 實作。
  2. THINK 依 [[auth-data-path-consistency]] § Auth 策略與資料路徑的合法組合、已安裝的 db-runtime 規約(database-access 或 database)與 runtime 規約 api-patterns,決定讀寫路徑、helper 名、授權層與回應 envelope。

Phase 2 -- 契約與 handler

  1. READ 讀取 rules/API慣例判準.md。
  2. READ 若要新增或修改列表、搜尋或聚合端點,先讀取 rules/列表查詢契約判準.md,再照它定這類端點的 query 參數、篩選、搜尋跳脫與分頁回應欄位。
  3. WRITE 依已載入規則在 shared/schemas/ 定義 request/response schema,在 server/api/v1/ 實作 handler。
  4. WRITE 接 user input 的 schema 依已載入規則補 boundary test;DELEGATE rg -n "z\.string\(\).*\.optional\(\)" shared/schemas/ server/api/,逐筆比對 client 是否會送 null。
  5. READ 回頭逐條對照已載入規則;不符就修正。

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
45
Repository forks
2
7-day trend score
19

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 4 Dec 2026, yesterday.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/yudefine/nuxt-supabase-starter/server-api/badge)](https://verified-skill.com/skills/yudefine/nuxt-supabase-starter/server-api)

Something wrong with this skill or its page? Tell us.