spec-by-example

spec-by-example is a skill for Claude Code from YuDefine/nuxt-supabase-starter. It costs 76 tokens per session (1,055 once invoked), scanned A, original, MIT.

A requirements-to-examples skill that turns a new plan's specification into business-readable acceptance scenarios. These scenarios use Gherkin, a Given/When/Then format, to describe the journeys the planned change should support.

In plain words
What is it for?
Use it to create acceptance feature files for a plan, organize scenarios into rules and examples, and identify unclear requirements that need user clarification.
Why use it?
It gives product reviewers a concrete way to check expected behavior before implementation. It also keeps planned acceptance scenarios separate from the current system's interface test truth.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to create acceptance feature files for a plan, organize scenarios into rules and examples, and identify unclear requirements that need user clarification.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yudefine/nuxt-supabase-starter/spec-by-example"><img src="https://agentmods.dev/badge/skills/yudefine/nuxt-supabase-starter/spec-by-example.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,055 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.00076 $0.01055
Opus 5.5 $0.00030 $0.00422
Sonnet 5.5 $0.00015 $0.00211
Haiku 4.5 $0.00008 $0.00105

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

Security

Grade A, and why

spec-by-example 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 19d 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/work-route/rules/.workflow/spec-by-example/SKILL.md · 44 lines

How it starts

The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.

clade 覆寫:clade lifecycle repo(本次 plan package 的 work.md(舊 package:plan.md)frontmatter 同時含 work_id: 與 truth_baseline:)或適用 canonical doctor 的 clade consumer:執行本 skill 前先讀 work-route skill 根下的 rules/上游覆寫-lifecycle落點與doctor.md,命中該檔判準的條目以該檔為準,未命中照本檔原文。

Spec By Example

spec-by-example 產出 PM 可 review 的總驗收 Gherkin。這一層仍屬於 plan:它描述本次迭代希望達成的業務旅程,不是目前系統的 interface truth。

SOP

Phase 1 -- 對齊 plan spec 與輸出位置

  1. READ 讀取使用者需求、呼叫者要求、目標 plan package 的 spec.md、既有 features/acceptance/ 內容,以及必要的 specs/truth/** 高層現況。
  2. READ 讀取 rules/輸出位置與acceptance切檔判準.md,確認 acceptance feature files 必須輸出到當前 plan package。
  3. WRITE 若 specs/plans/NNN-<slug>/features/acceptance/ 尚不存在,建立該目錄。

Phase 2 -- 收斂驗收旅程與需求缺口

  1. READ 讀取 rules/gherkin-驗收句型與結構判準.md、templates/acceptance.feature、templates/acceptance.example.feature、templates/電商範例/features/acceptance/訂單成立與付款超時.feature、templates/電商範例/features/acceptance/庫存預留與超賣防護.feature、templates/電商範例/features/acceptance/折扣疊加與互斥.feature、templates/電商範例/features/acceptance/滿額贈品與條件取消.feature 與 templates/電商範例/features/acceptance/運費分區與免運判定.feature,確認 acceptance Gherkin 的顆粒度、句型、Rule / Example 邊界與完成樣貌。
  2. THINK 依 spec.md 的 User Stories、Acceptance Criteria、邊界情況與全域需求,收斂少量但關鍵的 Journey 型驗收流程。
  3. READ 若需求存在會改變 Journey、規則歸屬、驗收結果或切檔的高影響缺口,讀取 rules/缺口標記與Clarify升級判準.md。
  4. DELEGATE 若仍有高影響缺口,呼叫 /clarify;未收斂前停止,不自行假設答案。

Phase 3 -- 產出 acceptance Gherkin

  1. WRITE 在目標 plan package 的 features/acceptance/ 下建立或更新 feature files;Gherkin 維持業務語言,不拆前端 / 後端,也不產出 dsl.md。
  2. WRITE 將高影響未定事項直接標在對應 feature 的規則或步驟旁,格式固定為 # [need clarification] ...。
  3. READ 回頭檢查每份 feature 是否與 spec.md 一致、可被 PM 直接閱讀,且不與已知 truth 明顯衝突;若不符合,立即修正或升級 clarify。

Phase 4 -- 交付後續 handoff

  1. WRITE 向使用者回報寫入的 acceptance feature files、已澄清決策、剩餘 # [need clarification],以及是否可進入 /system-analysis 或 /dsl-refine。

Read the full file on GitHub · 44 lines

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. 19d ago Changed dce368349b1b
  2. 1mo ago Changed · -1 lines · -26 tokens per session 1920cff2a365
  3. 1mo ago Changed 32d4a98be35c
  4. 1mo ago Changed 143883be02a7
  5. 2mo ago Changed · +1 lines 1c8e5f47ab3d
  6. 2mo ago Changed · +1 lines · +26 tokens per session c7287ffec2b4
  7. 2mo ago Changed 4014fa37e6e0
  8. 2mo ago Changed 14f8c7a7f1e5
  9. 2mo ago First seen · 43 lines · 76 tokens per session scan A a821dd11d5dd

Subscribe to this mod's changes

spec-by-example is a skill published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed 2d ago), licensed MIT. It adds 76 tokens to every session and 1,055 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-09-10.

Related

spec-by-example compared with skills from other repositories

spec-by-example next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spec-by-exampleYuDefine/nuxt-supabase-starterSkill452d agoMITA76Claude Code
prd-v07-implementation-loopmattgierhart/PRD-driven-context-engineeringSkill1793mo agoMITA113Claude Code
prd-v07-test-planningmattgierhart/PRD-driven-context-engineeringSkill1793mo agoMITA125Claude Code
prax-tdd-workflowChanningLua/prax-agentSkill2722mo agoMITA24Claude Code
flutter-qualitymorodomi/dev-crewSkill111d agoMITA74Claude Code
sb:executealo-exp/silver-bulletSkill7yesterdaynoneA25Claude Code
tddvincenzodomina/aiSkill25d agononeA45Claude Code, Codex