learn-bdd-scenarios
Interactive guidance on writing complete, effective BDD scenarios for story-flow.
Generate a draft story markdown by analyzing a story tracker or feature description, Figma designs, and the codebase.
Claude Code
$ npx -y skills add Intai/story-flow --skill draft-story-markdown --agent claude-code
Codex
$ npx skills add Intai/story-flow --skill draft-story-markdown -a codex -y
Cursor
$ npx skills add Intai/story-flow --skill draft-story-markdown -a cursor -y
Gemini CLI
$ npx skills add Intai/story-flow --skill draft-story-markdown -a gemini-cli -y
GitHub Copilot
$ npx skills add Intai/story-flow --skill draft-story-markdown -a github-copilot -y
OpenCode
$ npx skills add Intai/story-flow --skill draft-story-markdown -a opencode -y
Windsurf
$ npx skills add Intai/story-flow --skill draft-story-markdown -a windsurf -y
name: Draft a story markdown from a story tracker or feature description description: Generate a draft story markdown by analyzing a story tracker or feature description, Figma designs, and the codebase. user-invocable: false
This skill helps developers create technical story markdown by: 1. Gathering requirements from a story tracker or a provided feature description 2. Fetching Figma designs linked in the story (when applicable) 3. Exploring the codebase to discover relevant files and patterns 4. Generating a draft `story.md` for the developer to review and refine
When the input is a ticket ID (matching a pattern like `PROJ-123`, `86d2uf1mh`, `4821`, `AB#4821`). A bare integer is always a ticket ID, never a feature description:
When the input is a feature description (not a ticket ID):
Use a **single comprehensive Explore agent** (Task tool with `subagent_type: Explore`) to discover:
1. **Project structure and conventions**
2. **Files related to the feature area**
3. **Similar existing implementations**
4. **Technical conventions**
5. **Existing utility/helper patterns**
**Exploration prompt template:**
Explore the codebase to help draft a story for: [SUMMARY FROM STORY TRACKER OR FEATURE DESCRIPTION] Find: 1. Project structure - how are features organized? 2. Files related to: [KEYWORDS FROM REQUIREMENTS] 3. Similar implementations to use as reference patterns 4. Naming conventions for schemas, components, APIs, and tests 5. Where new files should be created based on existing patterns 6. Utility/helper directories and existing shared functions (validation, formatting, etc.) Provide specific file paths and patterns discovered.
**Important:** Do not include unit test requirements or tasks in the story. Unit tests are automatically created during implementation with 100% coverage for every source file. Only include QA tasks for BDD scenario planning and for verifying the implementation against the acceptance criteria.
Create a story markdown with the following structure:
[User story summary from the story tracker
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.
Execute BDD test scenarios from .feature files using browser automation.
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.