DEV Community

Suifeng023
Suifeng023

Posted on

The Prompt Template I Use for Useful AI Outputs

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
Enter fullscreen mode Exit fullscreen mode

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.
Enter fullscreen mode Exit fullscreen mode

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.
Enter fullscreen mode Exit fullscreen mode

I published free samples here:

https://github.com/Suifeng023/awesome-ai-prompts-free?utm_source=devto&utm_medium=article&utm_campaign=promptcraft_launch&utm_content=template_article

Full packs are here:

Top comments (0)