server-api

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

Guidance for designing server-side API routes in a Nuxt application, including validation, permissions, database writes, and response formats.

In plain words
What is it for?
Use it when creating files in server/api, building endpoints with defineEventHandler, or defining request and response schemas.
Why use it?
It keeps sensitive write operations and business rules on the server instead of exposing them directly in the browser.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when creating files in server/api, building endpoints with defineEventHandler, or defining request and response schemas.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yudefine/nuxt-supabase-starter/server-api
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 server-api
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 server-api

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/server-api"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/server-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 565 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 56
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
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.00077 $0.00565
Opus 5.5 $0.00031 $0.00226
Sonnet 5.5 $0.00015 $0.00113
Haiku 4.5 $0.00008 $0.00056

Measured 14d ago against content hash 68d2d40571a1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

server-api 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 14d 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/server-api/SKILL.md · 27 lines

What it actually says

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 回頭逐條對照已載入規則;不符就修正。
Files

What ships with it

2 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.

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. 14d ago Changed · +2 lines · +50 tokens per session 68d2d40571a1
  2. 1mo ago Changed · -124 lines 5b0ee4dda25a
  3. 1mo ago Changed · -1 lines bb4c26f80dff
  4. 2mo ago Changed · -21 lines b5e5217429d7
  5. 2mo ago Changed · +1 lines be6b6ece0417
  6. 2mo ago Changed · -3 lines · -58 tokens per session e878cd7ebd30
  7. 2mo ago Changed · +59 lines · +34 tokens per session 9cb39005e427
  8. 3mo ago First seen · 114 lines · 51 tokens per session scan A ed4a0d9e1360

Subscribe to this mod's changes

server-api is a skill published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed today), licensed MIT. It adds 77 tokens to every session and 565 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.

Related

server-api compared with skills from other repositories

server-api next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
server-apiYuDefine/nuxt-supabase-starterSkill45todayMITA77Claude Code
nw-ddd-tacticalnWave-ai/nWaveSkill63816d agoMITA32Claude Code
webiny-api-permissionswebiny/webiny-jsSkill8.1ktodaynoneA78Claude Code, Codex
springboot-tddloulanyue/awesome-claude-notesSkill2712mo agoMITA42Claude Code
x402-serverDexter-DAO/opendexter-ideSkill25d agoMITA66Cursor
quarkus-tddleandrosilvaferreira/claude-plugins-registrySkill1018d agononeA53Claude Code
backend-testingautohandai/community-skillsSkill144mo agoApache-2.0B52Claude Code, Codex