No slash command · from story-flow
Generates a technical story markdown from a ticket ID or feature description by gathering requirements, fetching Figma designs, exploring the codebase, and drafting a story.md for review.
Ships in story-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill helps developers create technical story markdown by:
story.md for the developer to review and refineWhen 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:
/mcp to check status) and ask them to paste the story details or provide a feature description instead — never guess at the story content.figma.com URL, keeping its node-id), searching the ticket's comments, custom fields and attachments as well as its descriptionmcp__plugin_story-flow_figma__get_design_context and mcp__plugin_story-flow_figma__get_screenshot, and note its frame and component names for Phase 3. If the fetch fails, keep the link for the tasks anyway and tell the developer to check the Figma MCP login (/mcp).Bug, Defect, Incident or equivalent, or when it carries steps to reproduce with actual and expected behaviour.mcp__plugin_story-flow_playwright__* tools, or mcp__plugin_story-flow_appium__* for a mobile app. Navigate relative to the base URL from BASE_URL, falling back to use.baseURL in the project's @playwright.config.js. Note the failing step, the actual behaviour and any console or network errors, and use them to inform the exploration keywords in Phase 2 and the tasks in Phase 3..mcp.json defines a story tracker MCP server, and they are logged into it (/mcp to check status)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:
Project structure and conventions
src/, components/, api/, schemas/)Files related to the feature area
Similar existing implementations
Technical conventions
Existing utility/helper patterns
src/utils/, src/helpers/, lib/)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 or feature description]
## Requirements
- [Requirement 1 from acceptance criteria or feature description]
- [Requirement 2 from acceptance criteria or feature description]
- [Additional requirements derived from Figma design]
## Tasks
- Use qa-tester subagent to plan BDD scenarios @path/to/feature.feature. Scenario ideas:
- Real data. Assert behaviour that holds for any data:
- [Behaviour that holds for any data]
- Stubbed [request], for behaviour that needs specific data and for visual regression scenarios:
- [Behaviour that needs specific data]
- Use backend-developer subagent to [task description] @path/to/file.js. [Technical details].
- [Risk: reason]
- Use frontend-developer subagent to [task description] @path/to/component.jsx.
- [Technical detail].
- [Technical detail].
- Use qa-tester subagent to verify the implementation meets the acceptance criteria by executing all BDD scenarios @path/to/feature.feature via the /execute-scenario command. If any scenario fails, fix the implementation with the appropriate developer subagent and re-run until every scenario passes.
Task guidelines:
Use backend-developer subagent to, Use frontend-developer subagent to, Use mobile-developer subagent to, Use qa-tester subagent to)@path/to/file formatnode-id. Every Figma link from Phase 1 appears on at least one task/execute-scenario) and fixing any failure until all scenarios passsrc/utils/, src/helpers/).validation.js, formatting.js, transforms.js), not one function per file.analyze-task-dependencies skill after the story is drafted. Note: existing story files in the codebase may already have dependency groupings added by that skill — do NOT copy that format when drafting.Using Figma design to inform content:
When the story has Figma links:
Derive requirements from design:
Inform task descriptions:
Agent assignment guide:
Use backend-developer subagent to: APIs, schemas, database models, server-side logic, backend servicesUse frontend-developer subagent to: React/Vue/Angular components, state management, UI logic, stylingUse mobile-developer subagent to: React Native, iOS, Android native code, mobile-specific featuresUse qa-tester subagent to: BDD scenarios, test planning, feature files, executing/verifying scenarios against acceptance criteria and coordinating fixes on failureIf a requirement cannot be mapped to specific files:
Ask the developer using the AskUserQuestion tool:
I couldn't identify where [requirement description] should be implemented.
Based on my exploration, possible locations might be:
- [Option A]: [path/to/possible/location]
- [Option B]: [another/possible/location]
Which file or module should handle this? Or should I create a new file?
Use the developer's guidance to complete the task description.
Document assumptions made for the developer to review.
Show the complete draft markdown in a code block.
Highlight areas needing review:
Suggest output path:
src/[module]/docs/[feature]-story.md)Ask for confirmation before writing the file:
Would you like me to save this draft to [suggested/path/story.md]?
Please review the draft and let me know if you'd like any changes before I save it.
Write the file only after the developer confirms, then point them to /story-flow:review-story as the next step, followed by /story-flow:analyze-tasks once the review is done.
As a user, I want to update my profile name so that my account details are accurate.
## Requirements
- Allow the user to edit their display name.
- The display name is optional and has a maximum length of 100 characters.
- Display validation error if name exceeds 100 characters.
- Show character count below the input field (derived from Figma design).
## Tasks
- Use qa-tester subagent to plan BDD scenarios @src/account/docs/update-profile-name.feature.
- Use backend-developer subagent to create `validateDisplayName(name)` function in @src/account/utils/validation.js.
- Return error message or null.
- Pure function, no side effects.
- Max 100 characters.
- Use backend-developer subagent to add `displayName: String` field to user schema @src/account/schemas/user-schema.js. Use `validateDisplayName` from @src/account/utils/validation.js.
- [Risk: changes the user schema shared by every account API; check existing records without displayName still load]
- Use backend-developer subagent to update user update API to handle displayName @src/account/api/user-api.js.
- Use frontend-developer subagent to create EditNameModal component @src/account/components/edit-name-modal.jsx.
- Input field with a character counter below it.
- Use `validateDisplayName` from @src/account/utils/validation.js for client-side validation.
- Match the modal design from Figma https://figma.com/design/abc123/ProfileEdit?node-id=1-234.
- Use frontend-developer subagent to update profile state management @src/account/redux/profile-slice.js.
- [Discuss: update the slice optimistically or after the API responds?]
- Use qa-tester subagent to verify the implementation meets the acceptance criteria by executing all BDD scenarios @src/account/docs/update-profile-name.feature via the /execute-scenario command. If any scenario fails, fix the implementation with the appropriate developer subagent and re-run until every scenario passes.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub intai/story-flow --plugin story-flow7 skills in this plugin
/analyze-task-dependenciesAnalyze task dependencies for parallel executionParse story markdown to identify task dependencies and parallel execution opportunities./execute-bdd-scenarioExecute BDD scenariosExecute BDD test scenarios from .feature files using browser automation./implement-story-markdownImplement a story according to the requirements and tasksImplement story.md requirements and tasks./plan-bdd-scenariosPlan BDD scenariosPlan BDD scenarios./prepare-implementation-review-commentsPrepare implementation review comments on a pull requestPost reviewer-facing evidence on a pull request - reading order, requirement traceability, risks, discussion points, screenshots, API calls, BDD results and unit coverage./review-story-against-ticketReview a story markdown against a story trackerReview story.md requirements and tasks, optionally against a story from the story tracker.Other plugins' skills for the same job