Skip to content
Skill

Execute BDD scenarios

Lets an AI coding agent run BDD .feature scenarios through a live browser or shell

Execute BDD scenarios is an open-source agent skill for browser automation. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
16
Last commit
License
MIT
Listing updated

Similar skills

About Execute BDD scenarios

This skill has the agent execute Gherkin scenarios from .feature files directly, driving a browser through Playwright tools instead of writing a test file first. Background steps run before the scenario's own steps, and tags such as purge-data trigger a reseed, while screenshot and timeout tags adjust how the run captures evidence and how long it waits.

On a failed assertion the run stops at once and reports the expected behavior with feature line numbers, the observed behavior, and a root-cause note. Scenarios that only touch the command line run in the shell, and when a recording mode is requested the skill can also generate Playwright or language-native test files from the executed steps.

It expects a project with browser automation available through the Playwright MCP tools, and may reference a Makefile and a Playwright config for base URLs and seed commands.

When your agent uses it

Execute BDD test scenarios from .feature files using browser automation.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (66 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

/plugin marketplace add Intai/story-flow
/plugin install story-flow@story-flow

Or copy only this skill to ~/.claude/skills/execute-bdd-scenario:

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

For one project only, put the folder in .claude/skills/execute-bdd-scenario inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/execute-bdd-scenario to use it in every repository:

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

For one repository only, put the folder in .agents/skills/execute-bdd-scenario inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/execute-bdd-scenario to use it in every project:

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

For one project only, put the folder in .cursor/skills/execute-bdd-scenario inside it instead.

Cursor docs on skills

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

gemini skills install https://github.com/Intai/story-flow.git --path plugins/story-flow/skills/execute-bdd-scenario

Or copy the folder to ~/.gemini/skills/execute-bdd-scenario yourself.

Gemini CLI docs on skills

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

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

For one project only, put the folder in .github/skills/execute-bdd-scenario inside it instead.

VS Code docs on skills

Get the folder:

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

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

The SKILL.md format

What it does

Ordered scenario execution
Runs tags first, then Background steps, then the Given, When and Then steps, stopping at the first failure.
Browser-driven checks
Executes UI steps through Playwright browser tools and compares page state with each expected outcome.
Command-line scenarios
Runs scenarios without UI steps in the shell and reports command output and exit codes as evidence.
Test recording mode
Can turn executed steps into a generated Playwright spec file, with helper functions for Background setup.
Screenshot and VRT hooks
Captures screenshots for tagged scenarios and can send them to a visual regression tracker when configured.
Multi-scenario runs
Runs each scenario of a feature file in its own subagent and prints a pass, fail or skipped summary table.

Good for

  • Run all scenarios in a feature file against the running app
  • Execute one scenario by ID and report where its assertions failed
  • Reseed test data and then run a tagged scenario
  • Record executed BDD scenarios as a Playwright test file
  • Check a command-line workflow from a feature file and report its output

Execute BDD scenarios FAQ

Does Execute BDD scenarios need a browser?

Scenarios with browser or app steps use Playwright browser tools. Scenarios that only run commands or call APIs execute in the shell without a browser.

What happens when a scenario fails?

The run stops immediately, and the report lists the expected behavior with feature line numbers, the actual behavior, and a root-cause analysis. Later steps are not run.

Does Execute BDD scenarios write test files by default?

No. Direct execution runs the scenario without generating a test file. Test files are only generated when the recording flag is passed.

How are test data resets handled?

Scenarios tagged purge-data run a make reseed command before the Background steps. Other scenarios keep existing data.

How do I install Execute BDD scenarios in Claude Code?

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

Does Execute 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 Execute 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 Execute BDD scenarios?

The closest alternatives to Execute BDD scenarios are Playwright generate test, Webapp testing, Browser verify, Playwright skill and Playwright verification.

Where this comes from

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

More from Intai/story-flow