bdd-scenarios

Generates Gherkin BDD scenarios and step definitions from user stories for Cucumber frameworks.

1|Updated Oct 11, 2025
One-click install
npx skills add https://github.com/codewizwit/human-in-the-loop --skill bdd-scenarios-codewizwit
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bdd-scenarios
Source: https://github.com/codewizwit/human-in-the-loop/tree/main/lib/skills/bdd-scenarios
Command: npx skills add https://github.com/codewizwit/human-in-the-loop --skill bdd-scenarios-codewizwit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing behavior-driven development scenarios by hand is slow and inconsistent, and teams often miss edge cases, error paths, and security scenarios when converting user stories into acceptance tests. ## Core Features & Use Cases - Gherkin Scenario Generation: Converts user stories or feature descriptions into complete .feature files organized by scenario type (happy path, edge cases, error handling, security, performance) with tags. - Step Definition Scaffolding: Produces TypeScript step definition examples compatible with Cucumber, Jest-Cucumber, or Cypress-Cucumber. - Coverage Reporting: Delivers a tags summary and test coverage matrix so teams can verify scenario completeness. - Use Case: Given a shopping cart user story for an Angular app, generate 10 tagged scenarios covering add, update, remove, out-of-stock errors, and network failures, plus reusable step definitions. ## Quick Start Ask the assistant to generate BDD scenarios for your feature, then answer the prompts about your BDD framework and desired detail level.

Frequently Asked Questions about bdd-scenarios

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Gherkin scenarios from a user story?▼

Provide the user story or feature description, select your BDD framework (Cucumber, Jest-Cucumber, or Cypress-Cucumber), and choose a detail level. The skill outputs a complete .feature file with tagged scenarios, step definitions, and a coverage matrix.

What is the difference between Cucumber, Jest-Cucumber, and Cypress-Cucumber?▼

Cucumber is the standalone BDD runner, Jest-Cucumber integrates Gherkin scenarios into Jest unit test workflows, and Cypress-Cucumber pairs feature files with Cypress end-to-end tests. The skill generates step definitions tailored to whichever framework you select.

Can I reuse existing step definitions when generating new scenarios?▼

Yes. During the discovery step, the skill uses Glob and Read to examine existing feature files and step definitions in your project, then reuses established step patterns and domain language in the new scenarios.

What scenario types should a BDD feature file include?▼

A complete feature file covers happy path flows, edge cases, error handling, security behaviors, and performance scenarios, each tagged accordingly (for example @happy-path, @edge-case, @error, @security). The comprehensive detail level generates all of these types.

Why should Gherkin steps avoid implementation details?▼

Gherkin steps should use declarative domain language describing what the system does, not how, so scenarios remain readable by non-technical stakeholders and stay stable when implementation changes. Technical jargon and UI-level mechanics make scenarios brittle and hard to maintain.