bdd-formulation

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

Guidance for writing Gherkin scenarios, a readable format for describing software behavior with Given, When, and Then steps.

In plain words
What is it for?
Use it when writing or reviewing behavior-driven development (BDD) scenarios and organizing them around domain rules.
Why use it?
It helps turn discovered examples and edge cases into clear business rules instead of implementation-focused test scripts.

Skill for Claude CodeCodex

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

Good fit Use it when writing or reviewing behavior-driven development (BDD) scenarios and organizing them around domain rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mattwynne/yaks/bdd-formulation
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-formulation
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-formulation

README.md
[![agentmods](https://agentmods.dev/badge/skills/mattwynne/yaks/bdd-formulation.svg)](https://agentmods.dev/skills/mattwynne/yaks/bdd-formulation)
Your own site
<a href="https://agentmods.dev/skills/mattwynne/yaks/bdd-formulation"><img src="https://agentmods.dev/badge/skills/mattwynne/yaks/bdd-formulation.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 459 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.00026 $0.00459
Opus 5 $0.00013 $0.00230
Sonnet 5 $0.00005 $0.00092
Haiku 4.5 $0.00003 $0.00046

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

Security

Grade A, and why

bdd-formulation 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 8d 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-formulation/SKILL.md · 55 lines

What it actually says

BDD Formulation

Formulation is the craft of writing Gherkin that serves as living documentation. Good scenarios are concrete examples of business rules, not test scripts.

Core Habit

When examples reveal a rule, make the rule visible in the feature file: group related scenarios under a Rule: keyword that states the rule they illustrate.

Rule: Manual blockers replace the existing manual blocker

  Scenario: Adding another manual blocker updates the reason
    Given I add the yak "deploy"
    And I add manual blocker to "deploy" with reason "waiting on vendor"
    When I add manual blocker to "deploy" with reason "waiting on review"
    Then the JSON yak "deploy" should have exactly one manual blocker with reason "waiting on review"

BRIEF Check

From Seb Rose, scenarios should be:

  • Business language: terms stakeholders understand.
  • Real data: vivid, concrete examples.
  • Intention revealing: say what matters, not how the UI works.
  • Essential: every line serves the rule.
  • Focused: one rule per scenario, short enough to read.

Guidelines

  • Use Rule: for a business/domain rule, not an implementation mechanism.
  • Keep scenario names as concrete examples of the rule, not restatements of it.
  • If a scenario discovers a new rule, add or split out a new Rule: section.
  • If a scenario appears to illustrate multiple rules, split it.
  • Prefer several small Rule: groups over one long pile of loosely related scenarios.
  • Carry one consistent narrative through a feature where possible.
  • Put cross-cutting assertions, such as output or logging, on existing scenarios rather than in separate rules.

Review Questions

  • What rule does this scenario prove?
  • Does the Example name add information beyond the Rule?
  • Is every line essential?
  • Is the data concrete and business-readable?
  • Would a feature with no Rule: sections be clearer if its rules were extracted?
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. 8d ago First seen · 55 lines · 26 tokens per session scan A 5a2f4636a25f

Subscribe to this mod's changes

bdd-formulation is a skill published in the GitHub repository mattwynne/yaks (58 stars, last pushed 26d ago), licensed MIT. It adds 26 tokens to every session and 459 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.