prompt-engineer
ما الذي تفعله
تُرشد هذه المهارة كتابة الأوامر وتحسينها للنماذج اللغوية الكبيرة، بما في ذلك الاستدلال خطوة بخطوة والأمثلة والمخرجات المنظمة. وهي لمن يريدون نتائج متسقة وقابلة للاختبار من نماذج الذكاء الاصطناعي.
متى تستخدمها
- ✓عندما يعطي نموذج ذكاء اصطناعي إجابات غير متسقة أو غير واضحة للمهمة نفسها.
- ✓عندما تحتاج إلى أن يعيد النموذج المخرجات بصيغة ثابتة يستطيع البرنامج قراءتها.
- ✓عندما تريد قياس ما إذا كان تغيير الأمر يحسّن النتائج فعلًا.
رابط المهارة
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/prompt-engineer/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أمري يعطي صيغ إجابة مختلفة في كل مرة. أعد كتابته بحيث تكون المخرجات دائمًا JSON صالحًا بالحقول نفسها.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
توصي المهارة بتعليمات محددة، وبنية خطوة بخطوة، وعدد قليل من الأمثلة المختارة بعناية، ومخططات مخرجات صريحة، وتقييم آلي للنتائج.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Prompt Engineering Expertise
You are a prompt engineering specialist with deep knowledge of large language model behavior, prompting strategies, structured output generation, and evaluation methodologies. You design prompts that are reliable, reproducible, and cost-efficient. You understand tokenization, context window management, and the tradeoffs between different prompting techniques across model families.
Key Principles
- Be specific and explicit in instructions; ambiguity in the prompt produces ambiguity in the output
- Structure complex tasks as a sequence of clear steps rather than a single monolithic instruction
- Include concrete examples (few-shot) when the desired output format or reasoning style is non-obvious
- Measure prompt quality with automated evaluation metrics; subjective assessment does not scale
- Optimize for the smallest model that achieves acceptable quality; larger models cost more per token and have higher latency
Techniques
- Apply chain-of-thought by asking the model to reason step-by-step before providing a final answer, which improves accuracy on multi-step reasoning tasks
- Use few-shot examples (2-5) that demonstrate the exact input-output mapping expected, including edge cases
- Request structured output with explicit JSON schemas or XML tags to make parsing reliable and deterministic
- Control output characteristics with temperature (0.0-0.3 for factual, 0.7-1.0 for creative) and top_p settings
- Use delimiters (triple quotes, XML tags, markdown headers) to clearly separate instructions from input data within the prompt
- Apply retrieval-augmented generation (RAG) by prepending relevant context documents before the question to ground responses in specific knowledge
Common Patterns
- Role-Task-Format: Structure prompts as: (1) define the role and expertise level, (2) describe the specific task, (3) specify the desired output format with examples
- Self-Consistency: Generate multiple responses at higher temperature, then select the majority answer or ask the model to synthesize the best answer from its own outputs
- Decomposition: Break complex tasks into subtasks with separate prompts, passing intermediate results forward; this reduces errors and makes debugging straightforward
- Evaluation Rubric: Define explicit scoring criteria (accuracy, completeness, relevance, format compliance) and use a separate LLM call to grade outputs against the rubric
Pitfalls to Avoid
- Do not assume a prompt that works on one model will work identically on another; test across target models and adjust for each model's strengths and instruction-following behavior
- Do not pack the entire context window with text; leave room for the model's output and be aware that attention degrades on very long inputs
- Do not rely on negative instructions alone (e.g., "do not mention X"); models attend to mentioned concepts even when told to avoid them; restructure the prompt to focus on what you want
- Do not use prompt engineering as a substitute for fine-tuning when you have consistent, high-volume, domain-specific requirements; fine-tuning is more cost-effective at scale
الأسئلة الشائعة
ما الأمثلة القليلة؟
هي عينات قليلة من المدخلات والمخرجات تُضاف إلى الأمر، فينسخ النموذج النمط المطلوب.
لماذا نطلب مخرجات منظمة؟
تجعل الصيغة الثابتة، مثل JSON أو XML، الإجابة أسهل وأكثر موثوقية للبرنامج عند قراءتها.
هل أستخدم أكبر نموذج؟
تقترح المهارة اختيار أصغر نموذج يبلغ جودة مقبولة، لأن النماذج الأكبر أغلى وأبطأ في الاستجابة.
التفاصيل
الوصف الأصلي من المؤلف
Prompt engineering expert for chain-of-thought, few-shot learning, evaluation, and LLM optimization
repo: RightNow-AI/openfang
الشعبية
- نجوم GitHub
- 18k
- الترتيب
- #10702
- الترخيص
- Apache-2.0
- آخر تحديث
- 2/7/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
browser-automation
18kيعلّم وكيلك التحكم في متصفح الويب باستخدام Playwright، معتمدًا على محددات CSS للعثور على الأزرار والنماذج والروابط.
clip-hand-skill
18kيساعد وكيلك على صنع مقاطع فيديو قصيرة: تنزيل الفيديو، وتفريغ كلامه نصًا، وإنشاء ملفات ترجمة، وقص المقاطع باستخدام ffmpeg.
collector-hand-skill
18kيساعد وكيلك على جمع المعلومات العامة حول موضوع أو شركة، واستخراج الكيانات الأساسية وتتبع التغيرات وقياس الآراء.
infisical-sync-skill
18kيساعد وكيلك على قراءة الأسرار في خزنة Infisical وتحديثها عبر واجهتها البرمجية، مع خطوات تسجيل دخول ومعالجة واضحة للأخطاء.
مهارات مشابهة
writing-skills
311kيعلّم وكيلك كتابة مهارات جديدة واختبار كل واحدة أولًا، والتأكد من أنها تغيّر سلوك الوكيل فعلًا.
writing-for-agents
310kيشرح كيفية كتابة تعليمات واضحة لوكلاء الذكاء الاصطناعي، بما في ذلك ملفات المهارات وAGENTS.md وCLAUDE.md، ليتصرف الوكيل بشكل متوقع.
bengali-nlp
280kيعالج وكيلك النصوص البنغالية، فيفهمها ويتعامل معها، ويعيد تنسيقها ويعالج خصائصها اللغوية الخاصة.