Skip to content
Back to skills

Markitdown Converter

ASecurity

Convert files to Markdown using Microsoft's MarkItDown library

  • 40 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 6, 2026
researchjavascriptpythonrustgojavabash

Works with

  • cli

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 10 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add oimiragieo/agent-studio --skill markitdown-converter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Markitdown Converter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Markitdown Converter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/oimiragieo-markitdown-converter/badge)](https://www.skillsdirectory.com/skills/oimiragieo-markitdown-converter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: markitdown-converter
version: 1.0.0
description: Convert files to Markdown using Microsoft's MarkItDown library
category: utilities
tags: [file-conversion, markdown, pdf, docx, xlsx, images, audio]
tools: [Bash, Read, Write]
created_by: skill-creator
compliance_status: created-via-research-synthesis
research_synthesis: true
verified: true
source: builtin
trust_score: 100
provenance_sha: 16e3fa3301dfb5c6
---

# MarkItDown Converter Skill

Convert files (PDF, DOCX, XLSX, PPTX, HTML, CSV, images, audio) to Markdown using Microsoft's MarkItDown library.

## Usage

```javascript
Skill({ skill: 'markitdown-converter' });
// Then call the converter via Bash:
// bash: python .claude/tools/cli/markitdown-convert.py <input_file> [output_file]
```

## Supported File Types

| Format          | Extensions                            |
| --------------- | ------------------------------------- |
| Documents       | .pdf, .docx, .pptx, .xlsx             |
| Web             | .html, .htm                           |
| Data            | .csv, .json, .xml                     |
| Images          | .jpg, .jpeg, .png, .gif, .webp        |
| Audio           | .mp3, .wav, .m4a                      |
| Archives        | .zip (extracts and converts contents) |
| Video platforms | YouTube URLs                          |

## Installation

```bash
pip install 'markitdown[all]'
```

## CLI Wrapper

The CLI wrapper is at `.claude/tools/cli/markitdown-convert.py`.

### Convert a file to stdout

```bash
python .claude/tools/cli/markitdown-convert.py /path/to/file.pdf
```

### Convert and save to output file

```bash
python .claude/tools/cli/markitdown-convert.py /path/to/file.pdf /path/to/output.md
```

### Convert with explicit extension hint (for streams)

```bash
python .claude/tools/cli/markitdown-convert.py /path/to/file --ext .pdf
```

## Exit Codes

| Code | Meaning                            |
| ---- | ---------------------------------- |
| 0    | Success — JSON with `text_content` |
| 1    | Conversion error                   |
| 2    | File not found                     |
| 3    | markitdown not installed           |

## JSON Output Format

```json
{
  "success": true,
  "text_content": "# Document Title\n\nContent here...",
  "char_count": 1234,
  "source_file": "report.pdf",
  "output_file": null
}
```

## Integration with Telegram File Drop

When a user sends a file in Telegram:

```javascript
// 1. Download the file to tmp
const tmpPath = `.claude/context/tmp/telegram-upload-${userId}-${Date.now()}.${ext}`;

// 2. Run markitdown converter
const result = JSON.parse(
  execSync(`python .claude/tools/cli/markitdown-convert.py "${tmpPath}"`).toString()
);

// 3. Store as agent memory
if (result.success) {
  MemoryRecord({ type: 'discovery', text: result.text_content.slice(0, 2000), area: 'user-files' });
}
```

## Error Handling

```javascript
// Check if markitdown is installed
const { status } = spawnSync('python', ['.claude/tools/cli/markitdown-convert.py', '--help']);
if (status === 3) {
  // Not installed — guide user
  sendMessage(chatId, 'File conversion requires: pip install markitdown[all]');
}
```

## When to Use

- User drops a file in Telegram → convert to markdown → store as memory
- Agent needs to process uploaded documents
- Convert research papers (PDF) to searchable markdown
- Extract data from spreadsheets (XLSX → markdown tables)

Files in this skill

  • SKILL.md3.3 KB
  • commands/markitdown-converter.md120 B
  • hooks/post-execute.cjs137 B
  • hooks/pre-execute.cjs244 B
  • references/research-requirements.md229 B
  • rules/markitdown-converter.md260 B
  • schemas/input.schema.json287 B
  • schemas/output.schema.json284 B
  • scripts/main.cjs426 B
  • templates/implementation-template.md229 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.