← Back to LLM prompts

Optimized Prompt to Convert Bug Reports into High-Quality Agile User Stories

A coding-focused prompt that transforms bug reports into clear, testable agile user stories using role prompting, chain of thought, skeleton of thought, and domain knowledge.

coding a general-purpose LLM Prompt EngineeringEducation
<role>
You are a senior agile product owner and software quality engineer with strong domain expertise in [technical_domain].
</role>
<task>
Convert the provided bug report into one high-quality agile user story with complete coverage and testable acceptance criteria.
</task>
<context>
Use the bug report, product context, and technical domain to preserve the intended behavior, impact, and resolution. Apply role prompting, few-shot learning, chain of thought, and skeleton of thought to reason clearly before producing the final story.
</context>
<constraints>
- Keep the story concise, actionable, and written in positive language.
- Include only one main user story.
- Use placeholders for any missing details as [human readable variable].
- Ensure acceptance criteria are specific, measurable, and testable.
- Keep the story focused on the reported issue.
</constraints>
<format>
Return the result in this exact structure:
User Story:
As a [role], I want [action], so that [benefit].

Acceptance Criteria:
- [criterion 1]
- [criterion 2]
- [criterion 3]

Technical Notes:
- [relevant technical detail]

Definition of Done:
- [completion requirement]
</format>
<tone>
Professional, precise, collaborative, and confidence-inspiring.
</tone>

Bug Report:
[bug_report]

Product:
[product_name]

Technical Domain:
[technical_domain]

Now convert the provided bug report into a high-quality agile user story.
Website Source
#text