Skillpedia
PDF وWord والعروض التقديمية33k · #8976

markitdown

ما الذي تفعله

تتيح لوكيلك تحويل أنواع كثيرة من الملفات إلى Markdown، وهي صيغة نص بسيطة يسهل قراءتها وإعادة استخدامها. وهي لكل من يريد تجهيز مستندات لأدوات الذكاء الاصطناعي أو لتحريرها كنص.

متى تستخدمها

  • ✓عندما تحتاج إلى نص ملف PDF أو Word أو PowerPoint بصيغة Markdown.
  • ✓عندما تريد تحويل جدول بيانات أو CSV أو صفحة HTML إلى نص مقروء.
  • ✓عندما تحتاج إلى نص من صورة أو مستند ممسوح ضوئيًا عبر OCR.

رابط المهارة

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/scientific/markitdown/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/scientific/markitdown/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“حوّل ملف PowerPoint هذا وملف PDF المرفق إلى Markdown حتى أنسخ النص إلى ملاحظاتي.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يشغّل وكيلك أداة MarkItDown على الملف الذي تسميه. تقرأ الأداة المحتوى وتعيد نسخة Markdown مع الحفاظ على البنية قدر الإمكان.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

MarkItDown - File to Markdown Conversion

Overview

MarkItDown is a Python tool developed by Microsoft for converting various file formats to Markdown. It's particularly useful for converting documents into LLM-friendly text format, as Markdown is token-efficient and well-understood by modern language models.

Key Benefits:

  • Convert documents to clean, structured Markdown
  • Token-efficient format for LLM processing
  • Supports 15+ file formats
  • Optional AI-enhanced image descriptions
  • OCR for images and scanned documents
  • Speech transcription for audio files

Visual Enhancement with Scientific Schematics

When creating documents with this skill, always consider adding scientific diagrams and schematics to enhance visual communication.

If your document does not already contain schematics or diagrams:

  • Use the scientific-schematics skill to generate AI-powered publication-quality diagrams
  • Simply describe your desired diagram in natural language
  • Nano Banana Pro will automatically generate, review, and refine the schematic

For new documents: Scientific schematics should be generated by default to visually represent key concepts, workflows, architectures, or relationships described in the text.

How to generate schematics:

python scripts/generate_schematic.py "your diagram description" -o figures/output.png

The AI will automatically:

  • Create publication-quality images with proper formatting
  • Review and refine through multiple iterations
  • Ensure accessibility (colorblind-friendly, high contrast)
  • Save outputs in the figures/ directory

When to add schematics:

  • Document conversion workflow diagrams
  • File format architecture illustrations
  • OCR processing pipeline diagrams
  • Integration workflow visualizations
  • System architecture diagrams
  • Data flow diagrams
  • Any complex concept that benefits from visualization

For detailed guidance on creating schematics, refer to the scientific-schematics skill documentation.


Supported Formats

Format Description Notes
PDF Portable Document Format Full text extraction
DOCX Microsoft Word Tables, formatting preserved
PPTX PowerPoint Slides with notes
XLSX Excel spreadsheets Tables and data
Images JPEG, PNG, GIF, WebP EXIF metadata + OCR
Audio WAV, MP3 Metadata + transcription
HTML Web pages Clean conversion
CSV Comma-separated values Table format
JSON JSON data Structured representation
XML XML documents Structured format
ZIP Archive files Iterates contents
EPUB E-books Full text extraction
YouTube Video URLs Fetch transcriptions

Quick Start

Installation

# Install with all features
pip install 'markitdown[all]'

# Or from source
git clone https://github.com/microsoft/markitdown.git
cd markitdown
pip install -e 'packages/markitdown[all]'

Command-Line Usage

# Basic conversion
markitdown document.pdf > output.md

# Specify output file
markitdown document.pdf -o output.md

# Pipe content
cat document.pdf | markitdown > output.md

# Enable plugins
markitdown --list-plugins  # List available plugins
markitdown --use-plugins document.pdf -o output.md

Python API

from markitdown import MarkItDown

# Basic usage
md = MarkItDown()
result = md.convert("document.pdf")
print(result.text_content)

# Convert from stream
with open("document.pdf", "rb") as f:
    result = md.convert_stream(f, file_extension=".pdf")
    print(result.text_content)

Advanced Features

1. AI-Enhanced Image Descriptions

Use LLMs via OpenRouter to generate detailed image descriptions (for PPTX and image files):

from markitdown import MarkItDown
from openai import OpenAI

# Initialize OpenRouter client (OpenAI-compatible API)
client = OpenAI(
    api_key="your-openrouter-api-key",
    base_url="https://openrouter.ai/api/v1"
)

md = MarkItDown(
    llm_client=client,
    llm_model="anthropic/claude-sonnet-4.5",  # recommended for scientific vision
    llm_prompt="Describe this image in detail for scientific documentation"
)

result = md.convert("presentation.pptx")
print(result.text_content)

2. Azure Document Intelligence

For enhanced PDF conversion with Microsoft Document Intelligence:

# Command line
markitdown document.pdf -o output.md -d -e "<document_intelligence_en
الأسئلة الشائعة

ما أنواع الملفات التي يمكنها تحويلها؟

تذكر المهارة PDF وDOCX وPPTX وXLSX والصور وHTML وCSV وJSON وXML وZIP وEPUB من بين أنواع أخرى.

هل تتعامل مع روابط الصوت أو الفيديو؟

تذكر المهارة تفريغ الصوت وروابط YouTube كمدخلات مدعومة.

هل تقرأ المستندات الممسوحة ضوئيًا؟

نعم. تذكر المهارة OCR للصور والمستندات الممسوحة ضوئيًا.

التفاصيل

الوصف الأصلي من المؤلف

Convert files and office documents to Markdown. Supports PDF, DOCX, PPTX, XLSX, images (with OCR), audio (with transcription), HTML, CSV, JSON, XML, ZIP, YouTube URLs, EPubs and more.

repo: davila7/claude-code-templates

الشعبية

نجوم GitHub
33k
الترتيب
#8976
الترخيص
MIT
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة