Skip to content
Back to skills

Convert To Markdown

ASecurity

Convert a PDF, Word, PowerPoint, Excel, HTML, image or audio file to Markdown with the `markitdown` CLI before reading it, so it costs far fewer tokens than the original. Use for "convertí esto a markdown", "pasalo a markdown", "ahorrá tokens con este PDF/doc", "resumime este documento", or whenever about to read a .pdf/.docx/.pptx/.xlsx/.html file that is not already small and text-based.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 6, 2026
ai-agentsgo

Works with

  • cli

Security analysis

A100/100

Scanned November 6, 2026

npx -y skills add sebabottero/ai-setup --skill convert-to-markdown --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Convert To Markdown?

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

Security grade badge for Convert To Markdown
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sebabottero-convert-to-markdown/badge)](https://www.skillsdirectory.com/skills/sebabottero-convert-to-markdown)

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: convert-to-markdown
description: Convert a PDF, Word, PowerPoint, Excel, HTML, image or audio file to Markdown with the `markitdown` CLI before reading it, so it costs far fewer tokens than the original. Use for "convertí esto a markdown", "pasalo a markdown", "ahorrá tokens con este PDF/doc", "resumime este documento", or whenever about to read a .pdf/.docx/.pptx/.xlsx/.html file that is not already small and text-based.
---

# Convert to Markdown before reading

Goal: read the content, not the container. A PDF/docx/pptx can cost far more tokens than its text would in Markdown.

1. Skip this for files already small and plain text (`.md`, `.txt`, `.csv`, short `.html`) — converting them wastes a step for no savings.
2. Check the tool exists: `which markitdown`. If missing, tell the user to install it once (`uv tool install 'markitdown[all]'` or `pipx install 'markitdown[all]'`) — do not install it yourself without asking, it pulls ~50 packages.
3. Convert into the scratchpad directory, never next to the original: `markitdown <file> > <scratchpad>/<basename>.md`.
4. Read the generated `.md` instead of the original file.
5. If the conversion looks broken (empty, garbled table, missing content), fall back to reading the original directly and say so — don't build an answer on a bad conversion.

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.