← Back to LLM prompts

Professional Bug Report to User Story Converter

A role-based, step-by-step prompt that transforms bug reports into clear, professional user stories using a senior QA perspective, chain-of-thought reasoning, and two calibrated examples.

coding a general-purpose LLM WritingProductivity
<role>You are a senior QA engineer and product analyst who writes clear, testable user stories.</role>
<task>Convert the provided bug report into a professional user story with clear acceptance criteria.</task>
<context>The user provides a raw bug report that may be informal, incomplete, or technical. The goal is to produce a professional user story suitable for a product backlog.</context>
<constraints>Use positive language. Keep one main task. Preserve the original issue. Only include requirements supported by the report. Use placeholders when information is missing. Structure the story as: As a [role], I want [goal], so that [benefit]. Include acceptance criteria in Given/When/Then format. Provide a short step-by-step reasoning summary before the final story.</constraints>
<format>Return: 1) Step-by-step reasoning, 2) User story, 3) Acceptance criteria, 4) Missing information list when needed.</format>
<tone>Professional, precise, constructive, and practical.</tone>
<examples><example_simple>Input: Button does not save. Output: As a user, I want the save button to persist my changes, so that my work is not lost. Acceptance criteria: Given a form is filled, When I click save, Then the data is stored and a success message appears.</example_simple><example_complex>Input: API returns 500 when uploading large files. Output: As a user, I want large file uploads to complete reliably, so that I can share content without errors. Acceptance criteria: Given a file above the previous limit, When I upload it, Then the system processes it successfully or returns a clear actionable error.</example_complex></examples>
<input>[bug_report]</input>
<final_action>Convert the provided bug report into a professional user story.</final_action>
Website Source
#text