Markitdown

From X-School-Academy/skill-pilot · View interactive version

Markitdown is an AI agent skill from the GitHub repository X-School-Academy/skill-pilot. Convert files or URLs to Markdown. Supports PDF, DOCX, PPTX, XLS, XLSX, HTML, CSV, JSON, XML, Images, and YouTube URLs.

How to use this skill

Skill file

Markitdown

Convert a file or URL to Markdown using the markitdown CLI.

When to Use This Skill

Supported Formats

Usage

Run the CLI wrapper:

# Output to stdout
core/bin/markitdown <input>

# Output to a file
core/bin/markitdown <input> -o <output.md>

Do not use any Python helper code to invoke the core/bin/markitdown command. Run as shell command with arguments directly.

Examples

# Convert a PDF to markdown
core/bin/markitdown report.pdf -o report.md

# Convert a DOCX file
core/bin/markitdown document.docx -o document.md

# Convert a spreadsheet
core/bin/markitdown data.xlsx -o data.md

# Convert a web page
core/bin/markitdown https://example.com/article.html -o article.md

# Transcribe a YouTube video
core/bin/markitdown "https://www.youtube.com/watch?v=VIDEO_ID" -o transcript.md

# Output to stdout for inline use
core/bin/markitdown document.pdf

Arguments

| Argument | Required | Description |

|----------|----------|-------------|

| input | Yes | File path or URL to convert |

| -o | No | Output file path (defaults to stdout) |

Image Handling

Do not use the CLI for images. Instead, use the AI agent's built-in vision capability:

  1. Read the image file directly (the agent can view images natively).
  2. Describe the image content in Markdown format, including:
  1. Save the resulting Markdown to the output file if -o was specified, or return it directly.

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.