0
Extract a reusable template from a one-off prompt that worked well
I wrote a prompt for a specific task and it worked really well. Help me generalize it into a reusable template with variable placeholders, without over-abstracting it into something so generic it loses what made it work. Given the original prompt and the specific task it solved:
1. Identify which parts are genuinely task-specific (should become variables) versus which parts are structural (the reasoning steps, the output format requirements, the constraints) and should stay fixed since they're what made this prompt effective, not incidental wording.
2. For each variable you introduce, write a one-line description of what should go there and one example value, so future users of the template aren't guessing.
3. Explicitly call out any part of the original prompt that's doing real work but is easy to accidentally strip out during templating (a specific constraint, an example, an edge-case handling instruction) - these are the parts generic templates usually lose.
4. Test the template mentally against one different-but-similar task to see if it still holds up, and note if any part needs adjustment for that case, rather than assuming genericization is complete on the first pass.
Original working prompt: original_prompt
What task it solved: task_it_solved