Best Claude Prompt for “Write a User Story”
Claude performs best with XML-tagged prompts using <task>, <context>, <requirements>, and <format> blocks. Unlike other models, Claude generalizes well from motivations — explaining WHY you want something, not just WHAT, produces more accurate and nuanced responses. This free template is optimized specifically for Claude, achieving approximately 37% token reduction compared to unoptimized prompts while producing higher quality output.
Optimize Any Prompt Instantly
Stop manually formatting prompts for each AI model. PromptOptimizr auto-restructures your prompts for ChatGPT, Claude, Gemini, Cursor, and Claude Code — with 3 optimization styles.
What Most People Type
Optimized Claude Prompt
<context>
The user wants to generate user stories for a specific feature. User stories are a common agile software development artifact used to capture functional requirements from an end-user perspective. They help teams understand who the user is, what they want to achieve, and why they want to achieve it.
</context>
<task>
As a Product Owner, write user stories for the specified [feature].
Focus on creating clear, concise, and actionable user stories that adhere to the standard "As a [type of user], I want [some goal] so that [some reason]" format.
Provide thorough explanations for each user story, going beyond surface-level descriptions to capture the underlying value and intent.
</task>
<requirements>
* **User Story Format:** Strictly adhere to the "As a [type of user], I want [some goal] so that [some reason]" template for all generated stories.
* **Clarity and Conciseness:** Ensure each user story is easy to understand and avoids jargon, as the stories may be reviewed by various stakeholders, including those less familiar with technical details.
* **Focus on Value:** Emphasize the "so that" clause to clearly articulate the benefit or value the user gains from the feature.
* **Bounded Quantity:** Generate between 3 to 5 distinct user stories, covering the core functionality of the [feature].
* **Depth of Explanation:** For each user story, provide a brief (2-3 sentences) explanation that elaborates on the context or specific need behind the story, helping to clarify the user's motivation.
* **Placeholder:** The specific [feature] will be provided by the user.
</requirements>
<format>
Present the user stories as a bulleted list. Each bullet point will represent a single user story, followed immediately by its brief explanation.
Example structure:
* As a [type of user], I want [some goal] so that [some reason].
* *Explanation:* [Brief elaboration on the context and value.]
Before finishing, verify your response covers the core ask of writing user stories for the specified [feature] in the requested format and detail.
</format>Why This Claude Prompt for “Write a User Story” Works Better
When you type “Write user stories for [feature]” into Claude, it lacks structure — Claude has to guess what format you want, how detailed to go, and what to prioritize. The optimized version removes that guesswork.
It wraps the request in XML tags (<task>, <requirements>, <format>) that Claude uses to separate context from instructions. It also explains WHY behind each constraint — Claude produces better results when it understands your reasoning.
This Prompt Optimized for Other AI Models
Each AI model processes instructions differently. See how this same prompt is optimized for:
Frequently Asked Questions
What makes a good Claude prompt for write a user story?
Claude performs best with XML-tagged prompts using <task>, <context>, <requirements>, and <format> blocks. Unlike other models, Claude generalizes well from motivations — explaining WHY you want something, not just WHAT, produces more accurate and nuanced responses.
Can I use this prompt template for free?
Yes — copy the optimized prompt below and paste it directly into Claude. For unlimited prompt optimization across all 5 AI models, try PromptOptimizr free with 10 prompts per month. You can also use the Chrome extension to optimize prompts directly inside Claude.
Why is this prompt different from a generic one?
Each AI model processes instructions differently. Claude has specific formatting preferences — this prompt is structured to work with those preferences, not against them. The result is better output quality with approximately 37% fewer tokens.
More Claude Prompt Templates
Optimize Prompts Without Leaving Claude
The PromptOptimizr Chrome Extension injects directly into Claude's interface. No tab switching — click the optimize button right inside the chat, pick your style, and get a model-specific prompt instantly. Works inside ChatGPT, Claude, and Gemini.
Get the Free Chrome Extension →