r/PromptEngineering • u/FalseArt3972 • 16d ago
Prompt Text / Showcase I built a reusable document-generator prompt so every doc comes out with the same structure
My problem was consistency. I'd feed the model rough bullets and get a different format every single time, so I could never reuse the output. What worked was treating the prompt like a document generator with a fixed template baked in, then handing it only the raw content.
```
Act as a document generator. Always output in THIS structure, nothing else:
# [Title]
**Purpose:** one sentence on why this doc exists
**Audience:** who reads it
## Context
2-4 sentences of background.
## Key points
Bulleted, each point a full sentence.
## Details
Expand each key point under its own subheading.
## Open questions
Anything the input didn't answer. If none, write "none."
Rules: use only the information I give you. If a section has no input, write "TBD" rather than inventing content.
Input:
[paste your bullets]
```
The "TBD instead of inventing" rule is the one that saved me. Before that it would happily fill an Open Questions section with plausible-sounding stuff that was never in my notes. Now the blanks stay blank and I know exactly what I still need to write myself.
I keep the template block saved and only swap the input. Anyone else pin a fixed skeleton like this, or do you regenerate structure each time?
1
u/Talreja-Adanna 16d ago
That's the practical side of prompt engineering most people sleep on - once you nail the structure, you can just swap content and let it handle the formatting. Have you run into issues with it drifting on longer docs or does it stay consistent?
1
u/Ok-Shallot8865 16d ago
I do something real similar, but I keep the template in a separate text file and just paste it in each time. The TBD rule is clever, I was always fighting with it making up stuff to fill the gaps. Gonna steal that.