prompt-writing
ما الذي تفعله
توجه هذه المهارة كتابة الأوامر المخزنة بصيغة YAML وتحسينها، مثل أوامر النظام وأوامر الوكلاء. وهي للأشخاص الذين يبنون مساعدين للذكاء الاصطناعي ويريدون أوامر واضحة ومنظمة.
متى تستخدمها
- ✓عندما تكتب أمر نظام لمساعد ذكاء اصطناعي.
- ✓عندما تريد تحسين قالب أمر YAML لا يعمل بشكل جيد.
- ✓عندما تحتاج إلى إضافة متغيرات وأقسام واضحة إلى أمر.
رابط المهارة
https://github.com/ModelEngine-Group/nexent/blob/develop/.claude/skills/prompts-writing/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أعد كتابة أمر النظام بصيغة YAML لوكيل الدعم لدينا بأقسام واضحة، ومواضع للمتغيرات مثل اسم العميل، وقائمة تدقيق.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تعطي المهارة الوكيل تخطيط YAML موحدًا وقواعد للعناوين والقوائم والمتغيرات، وقائمة تدقيق للجودة. يستخدمها الوكيل لإنشاء الأمر أو تحسينه، ويتحقق منه قبل أن يعيده إليك.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Prompt Writing
Create and optimize YAML-based prompts for AI assistants following industry best practices.
Quick Start
Standard YAML Prompt Structure
system_prompt: |-
# Section with ### header
## Subsection with ## header
Content with clear structure.
**Bold key concepts**
- Bullet points for requirements
- Consistent indentation (2 spaces)
1. Numbered lists for sequences
2. Use when order matters
user_prompt: |
Direct instructions with {{ variable placeholders }}
Key Principles
- Structure: Use
|-for multi-line system prompts,|for user prompts - Templating: Use
{{ variable }}for dynamic content - Separators: Use
---sparingly, only between major sections - Language: Keep prompts in consistent language (English recommended for templates)
Quality Checklist
Before finalizing any prompt, verify:
- No unclosed braces
{{without}} - No excessive separators (
---,***) - Consistent heading hierarchy (
###→##) - Clear variable placeholders with descriptive names
- Proper YAML indentation preserved
- No HTML tags in Markdown content
- Lists have parallel structure
Common Patterns
System Prompt with Sections
system_prompt: |-
### Role Definition
You are a professional [role name]. Your task is to [core responsibility].
### Requirements
1. First requirement
2. Second requirement
3. Third requirement
### Guidelines
- Do this
- Don't do that
- Always do this
### Output Format
Respond in plain text without separators.
Jinja2 Template Variables
user_prompt: |
Please analyze the following {{ document_type }}:
Name: {{ filename }}
Content: {{ content }}
Summary ({{ max_words }} words):
References
- Best Practices: See best-practices.md for detailed guidelines
- Templates: See templates.md for reusable patterns
- Examples: See examples.md for real-world samples
Related Tools
When working with prompts, also consider:
- YAML validation tools
- Jinja2 syntax checkers
- Markdown linters
الأسئلة الشائعة
ما الصيغة التي تستخدمها؟
تستخدم YAML بكتلة لأمر النظام وكتلة لأمر المستخدم.
كيف تُكتب المتغيرات؟
يُكتب المحتوى الديناميكي بين قوسين مزدوجين، مثل اسم المتغير بين قوسين مزدوجين.
هل تفحص النتيجة؟
نعم، تتضمن المهارة قائمة تدقيق للتحقق من الأمر قبل اعتماده.
التفاصيل
الوصف الأصلي من المؤلف
Create, refine, and optimize high-quality YAML prompts for AI assistants. Use when working with prompt templates, system prompts, agent prompts, or any prompt engineering tasks. Provides structure guidelines, template patterns, and quality standards for YAML-based prompts.
repo: ModelEngine-Group/nexent
الشعبية
- نجوم GitHub
- 6.1k
- الترتيب
- #14426
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
مهارات مشابهة
writing-skills
311kيعلّم وكيلك كتابة مهارات جديدة واختبار كل واحدة أولًا، والتأكد من أنها تغيّر سلوك الوكيل فعلًا.
writing-for-agents
310kيشرح كيفية كتابة تعليمات واضحة لوكلاء الذكاء الاصطناعي، بما في ذلك ملفات المهارات وAGENTS.md وCLAUDE.md، ليتصرف الوكيل بشكل متوقع.
bengali-nlp
280kيعالج وكيلك النصوص البنغالية، فيفهمها ويتعامل معها، ويعيد تنسيقها ويعالج خصائصها اللغوية الخاصة.