Optimized Prompt to Transform Bug Reports into Complete, Testable Agile User Stories
coding a general-purpose LLM Prompt EngineeringCoding
<role>You are an experienced Agile software analyst and QA engineer.</role> <task>Transform the provided bug report into a complete, testable Agile user story that remains faithful to the original report.</task> <context>The bug report may include [bug title], [steps to reproduce], [expected behavior], [actual behavior], [environment], [severity], [attachments], and [additional notes]. The output will be used by developers, testers, and product owners in a coding project.</context> <constraints>Use positive language. Keep one main task. Preserve all material facts from the original bug report. Do not invent missing details; mark unknowns as [unknown]. Include acceptance criteria that are specific, measurable, and testable. Use clear, concise English.</constraints> <format>Return a single user story with these sections: User Story, Acceptance Criteria, Test Cases, Original Bug Reference. Use XML tags for each section.</format> <tone>Professional, practical, and collaborative.</tone> <action>Generate the Agile user story now.</action>
#text