spec-by-example

spec-by-example is a skill for Claude Code from YuDefine/nuxt-supabase-starter. It costs 76 tokens per session (917 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: disable-model-invocation in frontmatter.

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 917 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.00917
Opus 5 $0.00038 $0.00458
Sonnet 5 $0.00015 $0.00183
Haiku 4.5 $0.00008 $0.00092

Measured yesterday against content hash 14f8c7a7f1e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 yesterday.

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/spec-by-example/SKILL.md · 43 lines

What it actually says

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-驗收句型與結構判準.mdtemplates/acceptance.featuretemplates/acceptance.example.featuretemplates/電商範例/features/acceptance/訂單成立與付款超時.featuretemplates/電商範例/features/acceptance/庫存預留與超賣防護.featuretemplates/電商範例/features/acceptance/折扣疊加與互斥.featuretemplates/電商範例/features/acceptance/滿額贈品與條件取消.featuretemplates/電商範例/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
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. yesterday Changed 14f8c7a7f1e5
  2. 2d 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 today), licensed MIT. It adds 76 tokens to every session and 917 once invoked, about $0.0004 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

prd-v07-implementation-loop

Execute implementation within EPICs following test-first development, continuous SoT updates, and code traceability during PRD v0.7 Build Execution. Triggers on requests to start building, implement an epic, begin coding, or when user asks "start building", "implement epic", "coding", "development", "build execution"…

mattgierhart/PRD-driven-context-engineering · 113 tokens

prd-v07-test-planning

Define test cases BEFORE implementation, ensuring every API, business rule, and user journey has verifiable acceptance criteria during PRD v0.7 Build Execution. Triggers on requests to define tests, plan test coverage, create test cases, or when user asks "define tests", "test planning", "what to test?", "test cases"…

mattgierhart/PRD-driven-context-engineering · 125 tokens

python

Python development with ruff, mypy, pytest - TDD and type safety.

alinaqi/maggy · 18 tokens

conductor-implement

Execute tasks from a track's implementation plan following TDD workflow.

rmyndharis/antigravity-skills · 17 tokens

etl-stabilization

Phase-based orchestrator for fixing SnowConvert ETL conversion gaps in ETL-to-Snowflake migrations (SSIS, Informatica, and other platforms). Analyzes units holistically, creates a ROADMAP with test strategies, and executes fixes through phased TDD with cross-phase learning. Use when user says "fix ETL unit", "fix SSIS…

sfc-gh-dflippo/snowflake-dbt-demo · 154 tokens

bug-fix

Regression-first TDD bug fix workflow with real tests. Use when: fixing bugs, resolving regressions, addressing runtime errors, debugging failures, or when the user reports something broken. Triggers on words like: bug, broken, error, crash, regression, not working, fix.

bluebear-io/angry-bear · 61 tokens