# Learn what defines effective BDD scenarios

> Learn what defines effective BDD scenarios is an open-source agent skill for developer tools. Teaches the agent to walk a junior developer through writing complete BDD scenarios. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/Intai/story-flow/tree/main/plugins/junior-flow/skills/learn-bdd-scenarios
- **Repository:** https://github.com/intai/story-flow
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** Learn what defines effective BDD scenarios
- **Collection:** https://github.com/Intai/story-flow
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This interactive learning module walks a developer through what makes a Behavior-Driven Development scenario precise and complete enough for story-flow's automated testing. It covers the Feature, Background and Scenario structure, the Given/When/Then roles, and how each scenario should check both what the user sees and what gets persisted.

The guide pauses after each section and offers the learner choices to continue, see more examples or ask a question. It also explains the supported tags, including ones that reseed data, take screenshots, extend timeouts, or control whether a scenario is recorded into a Playwright spec, and it lists common mistakes with corrected examples. A closing checklist gives the developer a short review list before submitting scenarios.

The skill is written for story-flow and expects that project's conventions, such as scenario IDs in the FEAT-01 form and the Claude-driven execution model. It runs no scripts and needs no extra tools beyond the agent itself.

## When your agent uses it

> Interactive guidance on writing complete, effective BDD scenarios for story-flow.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Intai/story-flow/tree/HEAD/plugins/junior-flow/skills/learn-bdd-scenarios)
- [License: MIT](https://github.com/Intai/story-flow/tree/HEAD/plugins/junior-flow/skills/learn-bdd-scenarios)

## Features

- **Scenario Structure Guide:** Shows how Feature, Background and Scenario blocks fit together with example Gherkin.
- **Quality Principles:** Explains specific, complete, independent and concrete scenarios with good and bad examples.
- **Tag Reference:** Describes supported tags such as purge-data, screenshots, non-parallel and timeout.
- **Common Mistakes:** Lists frequent scenario-writing errors and shows how to correct each one.
- **Review Checklist:** Provides a pre-submission checklist covering IDs, assertions and setup.
- **Interactive Lessons:** Presents content section by section with options to continue, get examples or ask questions.

## Good for

- Teach me how to write good BDD scenarios
- Review my Gherkin scenario for missing assertions
- Explain when to use the purge-data tag
- Show me how to structure a Background section
- Check my scenarios against a quality checklist

## Install

### Claude Code

This skill ships in the `junior-flow` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Intai/story-flow
/plugin install junior-flow@story-flow
```

Or copy only this skill to `~/.claude/skills/learn-bdd-scenarios`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Intai/story-flow.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/learn-bdd-scenarios &&
cp -R "$tmp/plugins/junior-flow/skills/learn-bdd-scenarios" ~/.claude/skills/learn-bdd-scenarios &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/learn-bdd-scenarios` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/learn-bdd-scenarios` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Intai/story-flow.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/learn-bdd-scenarios &&
cp -R "$tmp/plugins/junior-flow/skills/learn-bdd-scenarios" ~/.agents/skills/learn-bdd-scenarios &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/learn-bdd-scenarios` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/learn-bdd-scenarios` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Intai/story-flow.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/learn-bdd-scenarios &&
cp -R "$tmp/plugins/junior-flow/skills/learn-bdd-scenarios" ~/.cursor/skills/learn-bdd-scenarios &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/learn-bdd-scenarios` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Intai/story-flow.git --path plugins/junior-flow/skills/learn-bdd-scenarios
```

Or copy the folder to `~/.gemini/skills/learn-bdd-scenarios` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/learn-bdd-scenarios`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Intai/story-flow.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/learn-bdd-scenarios &&
cp -R "$tmp/plugins/junior-flow/skills/learn-bdd-scenarios" ~/.copilot/skills/learn-bdd-scenarios &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/learn-bdd-scenarios` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Intai/story-flow.git
```

Then copy `story-flow/plugins/junior-flow/skills/learn-bdd-scenarios` into your agent's skills folder as `learn-bdd-scenarios`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Learn what defines effective BDD scenarios run any scripts or change files?

No. The skill has no scripts and presents guidance interactively.

### When does Learn what defines effective BDD scenarios trigger?

It is set to non-user-invocable, so it is loaded when the agent needs to teach BDD scenario writing for story-flow, for example when a junior developer asks about writing good BDD tests.

### What does the skill expect from the user?

It expects the developer to be working within the story-flow project, using its Feature and Scenario conventions and Playwright or shell execution model.

### How do I install Learn what defines effective BDD scenarios in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/learn-bdd-scenarios to use it in all your projects, or to .claude/skills/learn-bdd-scenarios in one project. Or install the junior-flow plugin, which includes it: /plugin marketplace add Intai/story-flow, then /plugin install junior-flow@story-flow.

### Does Learn what defines effective BDD scenarios run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Learn what defines effective BDD scenarios?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Learn what defines effective BDD scenarios?

The closest alternatives to Learn what defines effective BDD scenarios are Plan BDD scenarios, Test scenarios, Specflow skill, Behave skill and Cucumber skill.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Plan BDD scenarios](https://ai-powered.com/skills/plan-bdd-scenarios): Plan BDD scenarios is an open-source agent skill for developer tools.
- [Test scenarios](https://ai-powered.com/skills/test-scenarios): Test scenarios is an open-source agent skill for developer tools.
- [Specflow skill](https://ai-powered.com/skills/specflow-skill): Specflow skill is an open-source agent skill for developer tools.
- [Behave skill](https://ai-powered.com/skills/behave-skill): Behave skill is an open-source agent skill for developer tools.
- [Cucumber skill](https://ai-powered.com/skills/cucumber-skill): Cucumber skill is an open-source agent skill for developer tools.
- [Writing specs](https://ai-powered.com/skills/writing-specs-zerotechdebt): Writing specs is an open-source agent skill for developer tools.
- [Moodle behat testing](https://ai-powered.com/skills/moodle-behat-testing): Moodle behat testing is an open-source agent skill for developer tools.
- [TDD](https://ai-powered.com/skills/tdd): TDD is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/learn-what-defines-effective-bdd-scenarios
