specformula-api-spec

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

A writing guide for API specifications in OpenAPI 3.0, a standard format for describing web APIs. It defines naming and file-location rules and links API operations to readable test steps.

In plain words
What is it for?
Use it when introducing SpecFormula, designing new API operations, or changing the API specification schema. It helps describe paths, methods, parameters, request fields, and response fields.
Why use it?
It prevents duplicate operation names, misplaced specification files, and mismatches between API details and interface tests. This makes the API contract easier for tools and people to interpret.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when introducing SpecFormula, designing new API operations, or changing the API specification schema. It helps describe paths, methods, parameters, request fields, and response fields.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/specformula-api-spec"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/specformula-api-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 604 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.
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.00030 $0.00604
Opus 5 $0.00015 $0.00302
Sonnet 5 $0.00006 $0.00121
Haiku 4.5 $0.00003 $0.00060

Measured today against content hash 92a1e4127aac, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

specformula-api-spec 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 today.

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/specformula-api-spec/SKILL.md · 61 lines

What it actually says

SpecFormula API Spec 撰寫指南

API Spec 使用 OpenAPI 3.0 格式,是 SpecFormula「規格三巨頭」之一。

SpecFormula 規範

1. summary 全域不可重複

summary 是 ApiCall 和 ResponseValidate 指令的識別依據,在整份 API Spec(含多檔案)中不可重複。使用「動詞 + 名詞」的業務語言命名:

# ✅ 正確
summary: 新增待辦事項
summary: 查詢待辦事項列表
summary: 查詢單一待辦事項

# ❌ 錯誤
summary: 查詢待辦事項    # 與上面重複,無法識別
summary: POST user       # 避免技術用語

2. 檔案存放位置必須參考 isa.yml 配置檔

API Spec 的存放路徑由 isa.ymlconfig.api.resource_path 決定,撰寫前須先確認配置:

# isa.yml
config:
  api:
    resource_path: specs/api                                    # ← 框架讀取路徑
    project_path: my-project/src/test/resources/specs/api       # ← Lint 報錯路徑

對應的檔案結構:

src/test/resources/specs/api/    # ← 與 resource_path 一致
├── api-spec.yml
├── auth-api.yml                 # 可拆分為多個檔案
└── ...

與 Feature 指令的對應

Gherkin 元素 API Spec 來源
新增待辦事項(summary) paths.*.*.summary
HTTP Method 從 path 定義推斷
URL Path paths 的 key
Request Body 欄位 requestBody.content.*.schema.properties
Path 參數(P: parameters[].in: path
Query 參數(Q: parameters[].in: query
Header 參數(H: parameters[].in: header
Response 欄位 responses.*.content.*.schema.properties
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. today Changed · -7 lines 92a1e4127aac
  2. yesterday First seen · 68 lines · 30 tokens per session scan A 5d92d5f8f47f

Subscribe to this mod's changes

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

Related

Other skills, from other repositories