Guide

Prompt Engineering Foundations

A reusable way to get better answers from any major assistant.

The RTCFCE framework

  1. Role — who should the AI act as?
  2. Task — what exact job should it do?
  3. Context — audience, constraints, background.
  4. Format — bullets, table, email, slides outline.
  5. Constraints — length, tone, what to avoid.
  6. Examples — one short sample of the style you want.

Before / after

Weak: “Write about climate change.”

Stronger: “Act as a secondary-school science teacher. Explain climate change causes for 14-year-olds in Pakistan in 8 short bullets, then give 3 local everyday examples, and end with 3 quiz questions. Avoid jargon.”

Iterate

Reduce hallucinations