Practical Applications
Build a Reusable Prompt
Separate stable instructions from variables and build a clear template that can be reused and tested across inputs.
In this lesson
Why this matters
A reusable template separates stable instructions from variables. Name variables, define required/optional values, and test varied values. This makes versioning and comparison easier.
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: المهمة ثابتة. الجمهور={{audience}}، الحد={{max_words}}، التقرير={{report}}. لا تضف حقائق واذكر المخاطر فقط إذا وردت.Short practice
Apply the lesson concept to this task: حوّل Prompt متكررًا إلى قالب بثلاثة متغيرات.
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.

