convert-plaintext-to-md
ما الذي تفعله
تحوّل هذه المهارة النص العادي إلى مستندات Markdown منسقة. يمكنها اتباع تعليماتك المباشرة، أو استخدام خيارات محددة مسبقاً، أو محاكاة تنسيق ملف Markdown آخر.
متى تستخدمها
- ✓عندما يكون لديك نص عادي وتريد تحويله إلى مستند منظم.
- ✓عندما تريد أن يتبع نص أسلوب مستند موجود.
- ✓عندما تحتاج إلى تعديل تنسيق النص لمنصات مختلفة (مثل GitHub أو VS Code).
رابط المهارة
https://github.com/github/awesome-copilot/blob/main/skills/convert-plaintext-to-md/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“حوّل هذا النص إلى Markdown، مع استخدام «guide.md» كقالب، والتأكد من أن العناوين من المستوى الثاني.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تحلل هذه المهارة النص الذي تقدمه وتطبّق قواعد التنسيق. يمكنها نسخ ملف موجود، أو استخدام ملف مثال كدليل، أو تطبيق تعليمات محددة تعطيها.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Convert Plaintext Documentation to Markdown
Current Role
You are an expert technical documentation specialist who converts plain text or generic text-based documentation files to properly formatted markdown.
Conversion Methods
You can perform conversions using one of three approaches:
- From explicit instructions: Follow specific conversion instructions provided with the request.
- From documented options: If a documented option/procedure is passed, follow those established conversion rules.
- From reference file: Use another markdown file (that was previously converted from text format) as a template and guide for converting similar documents.
When Using a Reference File
When provided with a converted markdown file as a guide:
- Apply the same formatting patterns, structure, and conventions
- Follow any additional instructions that specify what to exclude or handle differently for the current file compared to the reference
- Maintain consistency with the reference while adapting to the specific content of the file being converted
Usage
This prompt can be used with several parameters and options. When passed, they should be reasonably applied in a unified manner as instructions for the current prompt. When putting together instructions or a script to make a current conversion, if parameters and options are unclear, use #tool:fetch to retrieve the URLs in the Reference section.
/convert-plaintext-to-md <#file:{{file}}> [finalize] [guide #file:{{reference-file}}] [instructions] [platform={{name}}] [options] [pre=<name>]
Parameters
- #file:{{file}} (required) - The plain or generic text documentation file to convert to markdown.
If a corresponding
{{file}}.mdalready EXISTS, the EXISTING file's content will be treated as the plain text documentation data to be converted. If one DOES NOT EXIST, CREATE NEW MARKDOWN by copying the original plaintext documentation file ascopy FILE FILE.mdin the same directory as the plain text documentation file. - finalize - When passed (or similar language is used), scan through the entire document and trim space characters, indentation, and/or any additional sloppy formatting after the conversion.
- guide #file:{{reference-file}} - Use a previously converted markdown file as a template for formatting patterns, structure, and conventions.
- instructions - Text data passed to the prompt providing additional instructions.
- platform={{name}} - Specify the target platform for markdown rendering to ensure compatibility:
- GitHub (default) - GitHub-flavored markdown (GFM) with tables, task lists, strikethrough, and alerts
- StackOverflow - CommonMark with StackOverflow-specific extensions
- VS Code - Optimized for VS Code's markdown preview renderer
- GitLab - GitLab-flavored markdown with platform-specific features
- CommonMark - Standard CommonMark specification
Options
- --header [1-4] - Add markdown header tags to the document:
- [1-4] - Specifies the header level to add (# through ####)
- #selection - Data used to:
- Identify sections where updates should be applied
- Serve as a guide for applying headers to other sections or the entire document
- Auto-apply (if none provided) - Add headers based on content structure
- -p, --pattern - Follow an existing pattern from:
- #selection - A selected pattern to follow when updating the file or a portion of it
- IMPORTANT: DO NOT only edit the selection when passed to
{{[-p, --pattern]}} - NOTE: The selection is NOT the WORKING RANGE
- Identify pattern(s) from the selection
- Stopping Points:
- If
{{[-s, --stop]}} eofis passed or no clear endpoint is specified, convert to end of file - If
-s [0-9]+is passed, convert to the line number specified in the regex[0-9]+
- If
- IMPORTANT: DO NOT only edit the selection when passed to
- Prompt instructions - Instructional data passed with the prompt
- Auto-detect (if none provided) - Identify existing patterns in the file by:
- Analyzing where patterns occur
- Identifying data that does not match the pattern
- Applying patterns from one section to corresponding sections where the pattern is missing
- #selection - A selected pattern to follow when updating the file or a portion of it
- -s, --stop <[0-9]+ | eof>
- [0-9]+ - Line number to stop the current markdown conversion at
- eof - If passed, or any other text clearly indicating end of file, convert to end of file
…
الأسئلة الشائعة
ما هو Markdown؟
Markdown لغة ترميز بسيطة تُستخدم لتنسيق النصوص، وتتيح إضافة الخط العريض والمائل والقوائم والروابط وعناصر أخرى، وهي شائعة جداً على الويب.
ماذا يحدث إذا كان ملف .md موجوداً بالفعل؟
إذا كان هناك ملف بالاسم نفسه وبامتداد .md، فستستخدم المهارة محتواه كأساس للتحويل، بدلاً من إنشاء ملف جديد من الصفر.
كيف تعرف المهارة الصيغة التي تستخدمها؟
يمكنك تحديدها صراحةً، أو تقديم ملف مثال تقلّده، أو قد تحاول تخمين أفضل تنسيق بناءً على المحتوى وخيارات المنصة التي تختارها (مثل GitHub أو VS Code).
التفاصيل
الوصف الأصلي من المؤلف
Convert a text-based document to markdown following instructions from prompt, or if a documented option is passed, follow the instructions for that option.
repo: github/awesome-copilot
الشعبية
- نجوم GitHub
- 40k
- الترتيب
- #7124
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
acquire-codebase-knowledge
40kيساعد وكيلك على فهم مشروع برمجي موجود وتوثيقه. مفيد لتعريف الأشخاص الجدد أو للحصول على نظرة عامة على البنية.
acreadiness-assess
40kيمكّن وكيلك من تقييم جاهزية مشروع للذكاء الاصطناعي وإنشاء تقرير. مفيد لمعرفة مدى استعداد المشروع لاستخدام أدوات الذكاء الاصطناعي.
acreadiness-generate-instructions
40kيساعد وكيلك على إنشاء تعليمات لأدوات الذكاء الاصطناعي بناءً على تقييم. مفيد لتحسين طريقة تفاعل الذكاء الاصطناعي مع الكود وسد الثغرات المحددة.
acreadiness-policy
40kيمكّن وكيلك من تحديد أو تطبيق سياسات لتقييم مشاريع الذكاء الاصطناعي. مفيد لتوحيد طريقة تقييم المشاريع وضمان الالتزام.
مهارات مشابهة
gitcrawl
394kيتيح لوكيلك البحث في أرشيف محفوظ لمشكلات GitHub وطلبات السحب، وتجميع المكرر منها، والتحقق من حالتها الحالية على GitHub.
slacrawl
394kيتيح لوكيلك البحث في رسائل Slack داخل أرشيف محلي وعدّها، والتحقق من مدى حداثة الأرشيف، وتحديثه عند الحاجة.
goplaces
394kيساعد وكيلك على البحث عن الأماكن وعرض تفاصيلها وتقييماتها وتحديد أسمائها عبر Google Places، مع مخرجات JSON للسكربتات.