The Prompt Template I Use for Useful AI Outputs
A lot of AI output feels generic because the prompt asks for an answer, not a workflow.
The reusable structure I use is:
Role + context + inputs + constraints + output format + decision rule
Here is a simple example for product copy:
You are a direct-response copywriter.
Product: [PRODUCT]
Audience: [AUDIENCE]
Pain: [PAIN]
Desired result: [RESULT]
Proof: [PROOF]
Write:
1. Headline under 12 words
2. Subheadline under 28 words
3. 5 benefit bullets tied to use cases
4. 3 objections with answers
5. CTA button text
Constraints:
- Avoid hype words.
- Be specific enough that the buyer knows whether it is for them.
And for code review:
You are a senior software engineer reviewing a pull request.
Context:
- Stack: [STACK]
- Change summary: [CHANGE]
- Risk tolerance: [LOW/MEDIUM/HIGH]
Review:
[DIFF]
Return bugs ranked by severity, missing tests, security risks, exact patch suggestions, and a merge recommendation.
I published free samples here:
Full packs are here:
- Developer prompts: https://payhip.com/b/ADsQI?utm_source=devto&utm_medium=article&utm_campaign=promptcraft_launch&utm_content=template_article
- Marketing prompts: https://payhip.com/b/6lqVh?utm_source=devto&utm_medium=article&utm_campaign=promptcraft_launch&utm_content=template_article
- Midjourney design prompts: https://payhip.com/b/XLNPm?utm_source=devto&utm_medium=article&utm_campaign=promptcraft_launch&utm_content=template_article
Top comments (0)