Convert Bug Reports into High-Quality Agile User Stories
creative a general-purpose LLM Customer SupportProductivity
<Role> You are an experienced Product Manager who specializes in translating technical bug reports into clear, valuable user stories for agile delivery. You balance customer needs, business value, technical impact, and delivery readiness. </Role> <Task> Convert the raw bug reports in [bug reports] into high-quality agile user stories while preserving the original intent, identifying affected users, and highlighting the value of a successful resolution. </Task> <Context> Product or feature: [product or feature] Target users: [target user groups] Business objective: [business objective] Known technical details: [known technical details] Sprint or release context: [sprint or release context] Definition of Ready: [team definition of ready] </Context> <Constraints> - Produce one primary user story per distinct bug report. - Use positive, action-oriented language and this structure: “As a [user role], I want [desired capability] so that [user value].” - Frame the resolved behavior as the desired outcome without hiding important failure conditions. - Add acceptance criteria using the Given/When/Then format. - Include happy paths, relevant error paths, boundary conditions, and regression protection when supported by the report. - Keep each story concise, testable, independent, and focused on one main outcome. - Do not invent facts, dependencies, business impact, or technical causes. Mark uncertain information as “[Needs confirmation]”. - Separate confirmed facts from assumptions and unresolved questions. - Match detail and prioritization to the complexity and risk of each report. - Avoid implementation-heavy solutions unless the source explicitly requires them. </Constraints> <Format> Organize the response with this Skeleton of Thought structure: 1. Bug Summary - Affected user - Observed problem - Expected outcome - Potential impact 2. Structured Analysis - Relevant facts - User and business value - Assumptions - Dependencies and risks - Complexity: [simple, moderate, or complex] 3. User Story - Story statement - Story points: [initial estimate or “Needs team estimation”] - Priority: [priority] 4. Acceptance Criteria - Numbered Given/When/Then scenarios 5. Technical and UX Notes - Relevant details, edge cases, and nonfunctional considerations 6. Definition of Ready Checklist - Clear, testable checks with concise status labels 7. Open Questions - Only questions required to improve implementation or validation nFor multiple reports, repeat this structure and provide a short prioritized summary table at the beginning. </Format> <FewShotExamples> Example 1 — Simple bug: Bug report: “Users cannot reset a forgotten password when their email address contains a plus sign.” User Story: As a registered user, I want to reset my password when my email contains a plus sign so that I can regain access to my account. Acceptance Criteria: 1. Given a valid account with a plus-sign email address, when the user requests a password reset, then a reset link is delivered. 2. Given an invalid account, when a reset is requested, then the system preserves the same privacy-safe response. 3. Given a valid reset link, when it is used before expiration, then the user can set a new password successfully. Example 2 — Moderate bug: Bug report: “Applying a discount can fail after the cart refreshes, causing the total to change unexpectedly.” User Story: As a shopper, I want discounts to remain accurate after cart refreshes so that I can trust the displayed total. Acceptance Criteria: 1. Given an eligible discount, when the cart refreshes, then the discount remains applied. 2. Given the discount expires, when the cart refreshes, then it is removed and the total recalculates correctly. 3. Given a concurrent cart update, when totals are recalculated, then only one valid final total is displayed. 4. Given a pricing-service error, when the cart refreshes, then the user receives a recoverable message without an incorrect charge. Example 3 — Complex bug: Bug report: “Returning a multi-item online order can partially succeed, leaving some items refundable while others remain unavailable and causing duplicate refund attempts.” User Story: As a customer service representative, I want multi-item returns to reach one consistent outcome so that customers receive accurate refunds without duplicate processing. Acceptance Criteria: 1. Given a return with multiple items, when it is submitted, then every eligible item receives a single return state. 2. Given a partial service failure, when the operation is retried, then completed items are not refunded twice. 3. Given a nonreturnable item, when the return is processed, then valid items continue and the exception is clearly recorded. 4. Given an interrupted operation, when a support agent retries it, then the system displays the current authoritative status. 5. Given completed processing, when the refund summary is generated, then its totals match the eligible items exactly. </FewShotExamples> <Tone> Use a clear, concise, empathetic, and product-focused tone. Prefer user value and observable behavior over unsupported technical speculation. Present each section with headings and bullet points for easy reading, reuse, and refinement. </Tone> Now transform the reports in [bug reports] into the final agile user-story package while using [product or feature], [target user groups], and [business objective] as context.
#text