Skip to content
Back to skills

Multiformat To Md

ASecurity

Convert source files into Markdown for LLM ingestion. Use this skill for PDF/Word/images (.pdf/.docx/.doc/.png/.jpg/.jpeg) and audio/video transcription (.mp3/.mp4).

  • 47 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
ai-agentspythonshellapi

Works with

  • api

Security analysis

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

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

Scanned September 9, 2026

npx -y skills add NNNightglow/replay --skill multiformat-to-md --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Multiformat To Md?

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

Security grade badge for Multiformat To Md
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nnnightglow-multiformat-to-md/badge)](https://www.skillsdirectory.com/skills/nnnightglow-multiformat-to-md)

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: multiformat-to-md
description: "Convert source files into Markdown for LLM ingestion. Use this skill for PDF/Word/images (.pdf/.docx/.doc/.png/.jpg/.jpeg) and audio/video transcription (.mp3/.mp4)."
---

# Multiformat To Markdown

## Script Architecture

- `scripts/multiformat_gateway.py`
- Shared/common layer for this skill.
- Provides shared helpers (`ProgressPrinter`, `resolve_inputs`, markdown builder/writer).
- Provides runtime bridge API `convert_file_to_markdown_via_skill` for `utils/agents/dataloaders.py`.

- `scripts/docs_images2md.py`
- Handles document/image conversion only.
- Includes doc/image-specific extraction functions (PDF/DOCX/DOC/OCR).

- `scripts/media2md.py`
- Handles media transcription only.
- Includes media-specific functions (audio/video transcription + optional LLM rewrite).

## Usage

Document/image to markdown:

```powershell
python skills/multiformat-to-md/scripts/docs_images2md.py `
  --input "E:/data/raw_docs" `
  --output "E:/data/md_output"
```

Media to markdown:

```powershell
python skills/multiformat-to-md/scripts/media2md.py `
  --input "E:/data/raw_media" `
  --output "E:/data/md_output" `
  --whisper-model "base"
```

Enable LLM rewrite for media:

```powershell
python skills/multiformat-to-md/scripts/media2md.py `
  --input "E:/data/raw_media" `
  --output "E:/data/md_output" `
  --whisper-model "base" `
  --rewrite-with-llm
```

## Dependencies

```powershell
pip install pypdf python-docx pillow pytesseract openai-whisper faster-whisper pypdfium2 pymupdf requests
```

System tools when needed:

- `ffmpeg` for `.mp4`
- `tesseract-ocr` for OCR
- `antiword` for `.doc` fallback

Files in this skill

  • SKILL.md1.6 KB
  • agents/openai.yaml247 B
  • scripts/docs_images2md.py12.6 KB
  • scripts/media2md.py17.6 KB
  • scripts/multiformat_gateway.py14.1 KB

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 ai-agents →

Comments

Loading comments…

Newsletter

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