learn-bdd-scenarios
Interactive guidance on writing complete, effective BDD scenarios for story-flow.
Execute BDD test scenarios from .feature files using browser automation.
Claude Code
$ npx -y skills add Intai/story-flow --skill execute-bdd-scenario --agent claude-code
Codex
$ npx skills add Intai/story-flow --skill execute-bdd-scenario -a codex -y
Cursor
$ npx skills add Intai/story-flow --skill execute-bdd-scenario -a cursor -y
Gemini CLI
$ npx skills add Intai/story-flow --skill execute-bdd-scenario -a gemini-cli -y
GitHub Copilot
$ npx skills add Intai/story-flow --skill execute-bdd-scenario -a github-copilot -y
OpenCode
$ npx skills add Intai/story-flow --skill execute-bdd-scenario -a opencode -y
Windsurf
$ npx skills add Intai/story-flow --skill execute-bdd-scenario -a windsurf -y
name: Execute BDD scenarios description: Execute BDD test scenarios from .feature files using browser automation. user-invocable: false effort: medium
1. **Scenario tags FIRST** (e.g., `@purge-data`) 2. **Background steps SECOND** (setup prerequisites) 3. **Scenario steps THIRD** (Given/When/Then)
When executing multiple scenarios (e.g., "Execute all scenarios in @path/to/file.feature", "Execute ARMR-01,ARMR-02 scenarios in @path/to/file.feature"): 1. Read the feature file to identify all scenario IDs and titles 2. For each scenario, use the **Task tool** with `subagent_type="general-purpose"` to run it in isolated context sequentially:
Load skills in this order using the Skill tool:
1. First: `story-flow:execute-bdd-scenario` (plugin - general BDD framework)
2. Then: `execute-bdd-scenario` if it exists (project-level - overrides/extends the plugin)
3. Confirm which skills are loaded before continuing with the execution.
Execute BDD scenario <SCENARIO-ID> in @path/to/file.feature [--record if recording mode is active].
End your reply with `RESULT: PASSED` or `RESULT: FAILED`.**IMPORTANT:** Replace `<SCENARIO-ID>` with the individual scenario ID (e.g., `ARMR-01`), NOT "all". Each subagent executes exactly one scenario. **Recording Mode:** When executing multiple scenarios with `--record`, pass the `--record` flag to each subagent prompt. Each subagent is responsible for generating/updating the `.spec.js` file after executing its scenario — do NOT defer spec file generation to the parent orchestrator. 3. Wait for subagent completion, record PASS/FAIL result 4. **If the scenario FAILED:** STOP immediately and print the summary table with remaining scenarios marked as "⊘ SKIPPED". Do NOT proceed to the next scenario. 5. Print summary table:
| Scenario | Title | Result |
|----------|-------|--------|
| SMG-01 | Display available languages | ✓ PASSED |
| SMG-02 | Search and filter strings | ✗ FAILED |
| SMG-03 | Inline edit a string value | ⊘ SKIPPED || Variable | Description | Default | |----------|-------------|---------| | `APPIUM_DEVICE_NAME` | Local device name or emulator | `emulator-5554` (Android) | | `APPIUM_UDID` | Local iOS device or simulator UDID | - | | `APPIUM_APP_PACKAGE` | Local Android app package unique identifier | - | | `APPIUM_APP_ACTIVITY` | Local Android app launcher activity | `.MainActivity` | | `APPIUM_BUNDLE_ID` | Local iOS app bundle identifier | - | | `BROWSERSTACK_USERNAME` | BrowserStack username | - | | `BROWSERSTACK_ACCESS_KEY` | BrowserStack access key | - | | `BROWSERSTACK_APP_ID` | Uploaded app ID (`bs
Interactive guidance on writing complete, effective BDD scenarios for story-flow.
Interactive guidance on why human code review is essential for readability and maintainability.
Interactive guidance on creating technical design PRs to align with your team before coding.
Parse story markdown to identify task dependencies and parallel execution opportunities.
Generate a draft story markdown by analyzing a story tracker or feature description, Figma designs, and the codebase.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.