neo-bdd
Installation
SKILL.md
Neo BDD (Cucumber, Gherkin & JavaScript)
Guide teams and agents through Behaviour-Driven Development (BDD) using Gherkin executable specifications and JavaScript test automation with @cucumber/cucumber.
Trigger Boundary
Activate only when the user wants to apply Behaviour-Driven Development (BDD). Do not activate for general unit tests, integration tests, or requirement documents unless BDD is requested.
Workflow
- Route & Load Reference Files (load only what the task requires from
references/):- BDD Discovery, Three Amigos, Example Mapping, User Stories (
INVEST), Declarative Gherkin & BDD Myths: bdd-practices-and-formulation.md - Gherkin Keywords (
Feature,Rule,Scenario,Background,Scenario Outline,Data Tables,Doc Strings,Tags,# language:) & Step Organization: gherkin-reference.md - Cucumber-JS (
@cucumber/cucumber) Setup, Step Definitions, Cucumber Expressions,defineParameterType,World, Assertions, Hooks, Reporting & CI: cucumber-js-guide.md - Testable Architecture (Ports & Adapters, Test Pyramid), JS Browser/API Automation, Anti-Patterns & Troubleshooting FAQ: architecture-and-anti-patterns.md
- Critical Gotchas, Execution Checklist & Output Templates (Templates A/B/C): gotchas-and-templates.md
- BDD Discovery, Three Amigos, Example Mapping, User Stories (
- Follow the BDD Order: Execute Discovery (Example Mapping) → Formulation (Declarative Gherkin) → Automation (JavaScript
@cucumber/cucumberRed-Green-Refactor) without skipping prerequisite stages. - Enforce Gotchas & Output Format: Load gotchas-and-templates.md before generating or reviewing Gherkin/JS code to avoid
@cucumber/cucumberpitfalls (such as arrow functions breakingthisWorld context) and format the output with the matching template.