Skip to content
Back to skills

Applying Bdd

ASecurity

Use when writing Gherkin feature files or Given-When-Then scenarios, or agreeing with the team on concrete examples of behaviour before coding. Triggers on BDD, ATDD, Gherkin, `.feature` files, Given-When-Then, Cucumber, scenario outline, three amigos, example mapping, specification by example, living documentation, or acceptance-test-driven development, even when the user doesn't say 'BDD'.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 30, 2026
ai-agentsrustgotestingdocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned November 30, 2026

npx -y skills add xonovex/platform --skill applying-bdd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Applying Bdd?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Applying Bdd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/xonovex-applying-bdd/badge)](https://www.skillsdirectory.com/skills/xonovex-applying-bdd)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: applying-bdd
description: "Use when writing Gherkin feature files or Given-When-Then scenarios, or agreeing with the team on concrete examples of behaviour before coding. Triggers on BDD, ATDD, Gherkin, `.feature` files, Given-When-Then, Cucumber, scenario outline, three amigos, example mapping, specification by example, living documentation, or acceptance-test-driven development, even when the user doesn't say 'BDD'."
---

# Behaviour- and Acceptance-Driven Development

Drive software from concrete, agreed examples of behaviour. Discover them in conversation, formulate them as Given-When-Then scenarios, and keep the executable scenarios as living documentation. The acceptance layer answers "are we building the right thing?" The inner domain logic is still driven test-first by **applying-tdd**. ATDD and BDD are two names for this one practice.

## Essentials

- **Discover before you formulate** - run a three-amigos conversation over real examples first, see [references/discovery-three-amigos.md](references/discovery-three-amigos.md)
- **Map examples to size and split the story** - yellow/blue/green/red cards expose scope and gaps, see [references/discovery-three-amigos.md](references/discovery-three-amigos.md)
- **Write scenarios in Gherkin Given-When-Then** - Feature, Scenario, Background, Outline; declarative steps, see [references/gherkin-reference.md](references/gherkin-reference.md)
- **Treat scenarios as living documentation** - specs and tests become one trustworthy artefact, see [references/specification-by-example.md](references/specification-by-example.md)

## Gotchas

- Gherkin/Cucumber is a **collaboration** tool that tests the team's shared UNDERSTANDING of unwritten software, not a testing tool: automation is the third practice, never the purpose, see [references/appendix-discovery.md](references/appendix-discovery.md).
- "Three amigos" means three PERSPECTIVES (business / development / testing), not exactly three people: invite more; the conversation is the point.
- Driving scenarios end-to-end through the UI/browser is slow, volatile, and fails to localise the bug: stub external services/queues/DBs and drive the core domain directly.
- Given-When-Then is the recommended template, not the goal; the essential thing is concrete agreed examples, so do not over-engineer the grammar with deep nesting or imperative "click button X" steps.
- ATDD and BDD are not rival methodologies: same example-driven, acceptance-level idea; do not split the practice in two.
- A rule that needs many examples to pin down is a signal to split the rule, not to write ten scenarios, and a rule simple enough to need none needs none; the count is emergent, not a quota.

## Example

```gherkin
Feature: Assign the best nearby taxi

  Rule: A closer taxi with a higher rating wins

    Scenario: Close taxi with higher rating is preferred
      Given taxi A with rating 0.8 is 1400m from the customer
      And taxi B with rating 0.9 is 1500m from the customer
      When the customer requests a taxi
      Then taxi B should be assigned
```

## Progressive Disclosure

- Read [references/gherkin-reference.md](references/gherkin-reference.md) - Load when writing or reviewing feature files: keyword meanings, file structure, declarative vs imperative steps.
- Read [references/discovery-three-amigos.md](references/discovery-three-amigos.md) - Load when running discovery: the three perspectives, the workshop, and example-mapping card colours.
- Read [references/specification-by-example.md](references/specification-by-example.md) - Load when establishing the process: the seven patterns, specs-as-tests, and trustworthy living documentation.
- Read [references/appendix-discovery.md](references/appendix-discovery.md) - Load when you need the underlying framing: testing understanding vs software, the three practices, and stubbing externals to drive the core.

Files in this skill

  • SKILL.md3.8 KB
  • eval-output.json3 KB
  • eval-trigger.json5.2 KB
  • moon.yml86 B
  • references/appendix-discovery.md1.3 KB
  • references/discovery-three-amigos.md2 KB
  • references/gherkin-reference.md2.5 KB
  • references/specification-by-example.md2 KB
  • sources.json7.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.