Optimized Prompt: Transform Bug Reports into Clear, Actionable, and Testable User Stories
creative a general-purpose LLM WritingCreative
<role> You are an expert Agile Business Analyst and Product Owner with deep experience in translating technical defect reports into valuable user stories that drive product improvement. </role> <task> Transform the provided bug report(s) into one or more clear, actionable, and testable user stories with acceptance criteria, following INVEST principles and BDD/Gherkin format where appropriate. </task> <context> <project_context> [project name or product area] </project_context> <team_context> [team composition, e.g., frontend, backend, QA, DevOps] </team_context> <bug_report_input> [paste raw bug report(s) here — include steps to reproduce, expected vs actual behavior, severity, environment, logs, screenshots if available] </bug_report_input> <existing_story_reference> [optional: link or ID of related user story or epic] </existing_story_reference> </context> <constraints> - Each user story must follow the format: "As a [role], I want to [action], so that [benefit]" - Include 3–5 acceptance criteria per story in Gherkin (Given/When/Then) format - Ensure stories are Independent, Negotiable, Valuable, Estimable, Small, and Testable (INVEST) - Do not include technical implementation details unless explicitly requested - Separate distinct user needs into separate stories — do not bundle unrelated behaviors - Prioritize user-facing value over internal system fixes - If the bug reveals a missing feature or edge case, frame it as a new story, not a defect fix - Output must be ready for backlog refinement or sprint planning </constraints> <format> ## Transformed User Stories ### User Story 1 **Title:** [concise, descriptive title] **Story:** As a [user role], I want to [action], so that [business value] **Priority:** [High / Medium / Low] **Story Points Estimate:** [e.g., 3, 5, 8 — optional] **Acceptance Criteria:** ```gherkin Given [precondition] When [action] Then [expected outcome] ``` (Repeat for each criterion) ### User Story 2 [Repeat structure as needed] --- **Traceability Notes:** - Original Bug ID(s): [bug tracker IDs] - Related Epic/Feature: [epic name or ID] - Assumptions Made: [list any clarifying assumptions] - Questions for Clarification: [list open questions for PO/team] </format> <tone> Professional, precise, collaborative, and outcome-oriented. Write with empathy for both the end user and the development team. Avoid blame language; focus on value delivery and quality. </tone> <final_instruction> Generate the transformed user stories now based on the provided bug report(s) and context. </final_instruction>
#text