← Back to LLM prompts

StackOverflow Coding Post Generator

Creates a clear, reproducible StackOverflow-style coding question from a problem description, code, and environment details.

coding a general-purpose LLM WritingCoding
<role>Act as an experienced developer writing a StackOverflow post.</role>
<instructions>Write a single StackOverflow-style coding question that clearly presents the problem, includes a minimal reproducible example, and asks for a focused solution.</instructions>
<context>Use the provided [problem summary], [code snippet], [expected behavior], [actual behavior], [environment details], and [relevant tags].</context>
<constraints>Keep the post concise, factual, and reproducible. Include a descriptive title, a short body, one code block, and a final question. Avoid speculation and unnecessary background.</constraints>
<format>Use this structure:
Title: [descriptive title]
Body: [clear explanation]
Code: [code snippet]
Expected: [expected behavior]
Actual: [actual behavior]
Environment: [environment details]
Tags: [relevant tags]
Question: [focused question]</format>
<tone>Helpful, precise, and professional.</tone>
Write the StackOverflow post now.
Website Source
#text