convert-documents-to-markdown
What it does
It runs a command-line tool that turns office files, PDFs, ebooks and spreadsheets into Markdown text. It is for anyone whose AI needs the contents of a document it cannot open directly.
When to use it
- ✓When you share a Word or PDF file and want the AI to read and summarize it.
- ✓When a spreadsheet or presentation needs to be turned into text for analysis.
- ✓When a long document should be saved to a file so only the parts you need are read.
Skill link
https://github.com/firecrawl/anydoc/blob/main/skills/convert-documents-to-markdown/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Convert this PDF report into text so you can summarize the key findings.”
5 new skills a week. 1 minute to read.
How it works
The skill runs a converter that detects the file type from its contents, then outputs Markdown to the screen or to a file, with no separate install step.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Convert documents to Markdown
Run the anydoc CLI. It needs Node 20+ and no install:
npx -y @firecrawl/anydoc <file> # Markdown to stdout
npx -y @firecrawl/anydoc <file> -o out.md # write to a file
npx -y @firecrawl/anydoc - --format csv < f # read stdin
Rules:
- Supported inputs:
.doc,.docx,.docm,.odt,.rtf,.epub,.pdf,.ppt,.pps,.pot,.pptx,.pptm,.ppsx,.ppsm,.odp,.xls,.xlsx,.xlsm,.xlsb,.ods,.csv. - The format is detected from the file content. Pass
--format <name>only when detection cannot work: CSV from stdin, or a missing or wrong extension. - Exit codes: 0 success, 1 the document could not be converted, 2 usage error, 3 pages of a PDF need OCR. Failures print one
anydoc: <message>line to stderr. The CLI never prompts. - For a large document, write to a file with
-oand read the parts you need instead of streaming everything into context. - Scanned and image-only pages need OCR, which anydoc does not do, so the document exits 3. Rerun with
--ocr hostedto send it to Firecrawl Parse. No signup needed. Pass--api-keyor setFIRECRAWL_API_KEYfor higher limits. - Inside a Node, Python, or Rust codebase, prefer the library over shelling out:
@firecrawl/anydocon npm,firecrawl-anydocon PyPI,anydocon crates.io. Each exposes the sameto_markdown/toMarkdownAPI.
FAQ
Which file types can it read?
It handles Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV and PDF files.
What happens with scanned pages?
Scanned pages need OCR, which the tool does not do itself. The skill can send them to the hosted Firecrawl Parse option instead.
Does it need to be installed first?
No. It runs through npx and needs Node 20 or newer.
Details
Original description by the author
Convert Word (.doc, .docx), PowerPoint (.ppt, .pptx), Excel (.xls, .xlsx), OpenDocument (.odt, .ods, .odp), RTF, EPUB, CSV, and PDF files to GitHub-Flavored Markdown. Use when a task needs the contents of an office document, spreadsheet, presentation, ebook, or PDF you cannot read directly.
repo: firecrawl/anydoc
Popularity
- GitHub stars
- 23k
- Ranking position
- #10124
- License
- MIT
- Updated
- 10/23/2026
Comments
- …
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.