Foundations
What Is Prompt Engineering?
Understand prompt engineering as designing, testing, and refining instructions for more useful and consistent results.
In this lesson
Why this matters
Prompt engineering is the process of designing, testing, and improving prompts against a checkable goal. It is not magic wording, and the best wording can vary by task and model.
How to apply it
- Define the task and desired outcome.
- Add only context or rules that affect success.
- Specify an output form or checkable criterion when needed.
- Test on realistic input and revise when a failure pattern appears.
Practical example
Weak example:
Weak version of the same task: استخدم أفضل برومبت ممكن.The weak version leaves an important part of the task or its boundaries to guesswork. The improved version adds information tied directly to success without treating length or complexity as a goal.
Improved example:
Improved version: الهدف: تلخيص التقارير للإدارة في 5 نقاط تشمل المخاطر والإجراءات. اختبر الصياغة على تقارير مختلفة وعدّلها عند الفشل.Short practice
Apply the lesson concept to this task: اختر مهمة متكررة واكتب معيارين لنجاح الناتج.
Check your understanding
Check: ما الذي يميز هندسة الأوامر عن كتابة طلب واحد؟
Answer: وجود هدف واختبار وتحسين تكراري.
Summary
Keep this concept as one tool rather than a magic formula. Tie it to the goal and success criteria, then build on it in the next lesson.

