bdd-discovery

bdd-discovery is a skill for Claude Code, Codex from mattwynne/yaks. It costs 29 tokens per session (504 once invoked), scanned A, original, MIT.

A discussion method for clarifying a product story before writing Gherkin tests. Gherkin is a plain-text format for describing software behaviour with examples such as “Given,” “When,” and “Then.”

In plain words
What is it for?
Use it to run a structured conversation between product, development, and testing roles and decide whether a story is clear enough to implement.
Why use it?
It exposes missing rules, concrete examples, unanswered questions, and work that should be split into separate stories before testing begins.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to run a structured conversation between product, development, and testing roles and decide whether a story is clear enough to implement.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mattwynne/yaks/bdd-discovery
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 mattwynne/yaks --skill bdd-discovery
Clone the repo
git clone --depth 1 https://github.com/mattwynne/yaks

Made for: Claude Code, Codex.

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 bdd-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/mattwynne/yaks/bdd-discovery/github.svg)](https://agentmods.dev/skills/mattwynne/yaks/bdd-discovery)
Your own site
<a href="https://agentmods.dev/skills/mattwynne/yaks/bdd-discovery"><img src="https://agentmods.dev/badge/skills/mattwynne/yaks/bdd-discovery/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 bdd-discovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/mattwynne/yaks/bdd-discovery"><img src="https://agentmods.dev/badge/skills/mattwynne/yaks/bdd-discovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 504 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 pass 7 Sept 2026
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.00029 $0.00504
Opus 5 $0.00015 $0.00252
Sonnet 5 $0.00006 $0.00101
Haiku 4.5 $0.00003 $0.00050

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

Security

Grade A, and why

bdd-discovery 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 10d 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.

skills/bdd-discovery/SKILL.md · 67 lines

How it starts

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

BDD Discovery

Discovery is the conversation before formulation. Use it to build shared understanding of a story: the rules, examples, questions, and scope boundaries that matter.

For writing or refining Gherkin, use bdd-formulation.

Example Mapping

Map one story with the Three Amigos: product, development, and testing. Keep it small, low-tech, and time-boxed.

Cards:

  • Story: the work under discussion.
  • Rules: business rules, constraints, policies, or acceptance criteria.
  • Examples: concrete cases that illustrate one rule.
  • Questions: unknowns, assumptions, missing decisions, or research.
  • New stories: behaviour discovered but sliced out of scope.

Traditional colours: yellow story, blue rules, green examples, red questions.

How to Run It

  1. Start with the story and the rules people already know.
  2. Ask for concrete examples for each rule.
  3. Put each example under the rule it illustrates.
  4. Capture uncertainty as questions; do not solve everything in the room.
  5. Capture tangents or large discoveries as new stories.
  6. Stop when the story is clear enough to pull, or the time-box expires.

Discovery Habits

  • Prefer conversation over documents.
  • Use domain language, not implementation details.
  • Talk about behaviour as if it could be handled manually.
  • Keep examples rough but concrete: real names, amounts, states, dates.
  • Treat red cards as progress: unknown unknowns became known unknowns.
  • Let rules and examples reveal better story slices.

Reading the Map

  • Many red cards: too much uncertainty; research or invite the right person.
  • Many blue cards: story may be too broad or complex.
  • Many green cards under one rule: the rule may hide smaller rules.
  • New story cards: useful scope control, not failure.

Ready for Formulation?

Move to bdd-formulation when:

  • The team agrees what problem the story solves.
  • Key rules are visible.
  • Risky or unclear rules have concrete examples.
  • Open questions are captured and owned.
  • Out-of-scope behaviour is sliced away.

Read the full file on GitHub · 67 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. 10d ago First seen · 67 lines · 29 tokens per session scan A d3f1ea42c0a1

Subscribe to this mod's changes

bdd-discovery is a skill published in the GitHub repository mattwynne/yaks (58 stars, last pushed 28d ago), licensed MIT. It adds 29 tokens to every session and 504 once invoked, about $0.0001 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-08-30.