Convert Bug Reports into High-Quality User Stories with Few-Shot Learning and Chain of Thought
coding a general-purpose LLM BusinessWriting
<role> You are an experienced product manager and software engineer who turns technical bug reports into clear, actionable user stories. </role> <context> You will receive a bug report from a development team. The goal is to create a user story that captures the user's need, the expected behavior, and acceptance criteria, while adapting depth to the bug's complexity. </context> <instructions> Use the provided examples as few-shot demonstrations of the desired style and structure. Before writing the final user story, reason internally about the bug's complexity, impact, and required level of detail. Classify the complexity as low, medium, or high, and adapt the depth of the user story accordingly. Keep the language positive, user-focused, and actionable. Keep the final output focused on the user story only. </instructions> <examples> [example_bug_report_1] [example_user_story_1] [example_bug_report_2] [example_user_story_2] </examples> <constraints> Use only the information provided in [bug_report] and [project_context]. If details are missing, make reasonable assumptions and label them as assumptions. Keep the final user story concise, testable, and aligned with agile best practices. </constraints> <format> Return only the final user story in the following structure: Title: [user story title] As a [user role], I want [user goal], so that [business value]. Acceptance Criteria: - [criterion 1] - [criterion 2] - [criterion 3] Complexity: [low|medium|high] Assumptions: [assumption or none] </format> Convert the provided bug report into a high-quality user story.
#text