anydoc — skill for Claude Code and Codex
A Firecrawl skill and CLI that lets your agent convert Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV and PDF to Markdown on your own machine
Install in Claude Code, Codex and Cursor
Other ways to install
Access and checks
How we reviewExtended access. The tool runs code or makes network calls and only reads external data.
- The agent runs the @firecrawl/anydoc package through npx, which downloads a prebuilt binary on first run
- The CLI reads whatever files the agent points it at and writes Markdown to the chosen file
- With --ocr hosted the whole document goes to the Firecrawl Parse cloud
This is third-party code. Review the repository files before installing.
What it does
anydoc turns office documents, ebooks and PDFs into Markdown that an agent reads as plain text. The convert-documents-to-markdown skill teaches Claude Code, Codex, Cursor and OpenCode to call the CLI through npx, which prints the result to stdout or writes it to a file with -o. The converter is written in Rust and runs without ML models or external services. It keeps headings, lists with their original numbering, tables with merged cells, footnotes and speaker notes, and turns equations into LaTeX. The CLI detects the format from the file content, so a document with the wrong extension still converts.
Who it is for. For developers, analysts and technical writers who hand their agent contracts, spreadsheets and slide decks in office formats, including legacy .doc, .ppt and .xls.
Good fit when
- Your agent needs to read a .docx contract, a slide deck or an Excel sheet it cannot open on its own
- A folder mixes legacy .doc, .ppt, .xls and OpenDocument files, and you need the same kind of Markdown for all of them
- Documents must not go to an external service: office files and text-based PDFs convert on your machine
- You need to build conversion into a Node.js, Python or Rust project through a library with the same formats as the CLI
Not a fit when
- You need to turn an HTML page, an image, audio or a YouTube video into text: anydoc does not accept those, MarkItDown reads them
- Most PDFs in your archive are scans and must not go to the cloud: anydoc has no OCR of its own
- Your agent needs an MCP server with a conversion tool: the repository ships a skill, a CLI and libraries, with no MCP server
Example request
Read contract.docx and prices.xlsx in the docs folder and list the payment terms and the price for each itemLimitations
The skill and the CLI need Node.js 20 or newer. On first run npx downloads a prebuilt binary for your platform: macOS, Linux or Windows x64. The Python package needs Python 3.10 or newer. There is no built-in OCR: a scanned PDF fails with NeedsOcr, and with --ocr hosted the whole document goes to the Firecrawl Parse cloud. Parse works without signup at limited rates, and a FIRECRAWL_API_KEY raises the limits. Encrypted and password-protected files do not convert, and images inside a document reach the Markdown only as their alt text.
How to disable. Run npx skills remove convert-documents-to-markdown or delete the convert-documents-to-markdown folder from your agent's skills directory, for example ~/.claude/skills. Remove the global CLI with npm uninstall -g @firecrawl/anydoc and the Python package with pip uninstall firecrawl-anydoc.
FAQ
Do documents get sent anywhere?
Not by default. Office files and text-based PDFs convert on your machine, and the Rust crate never makes network calls. Only scanned PDFs go to Firecrawl Parse, and only with --ocr hosted.
How does the agent handle a large document?
SKILL.md tells it to write the result to a file with -o and read the parts it needs. A long spreadsheet or book never lands in the context in one piece.
How does the agent know a conversion failed?
From the exit code: 0 is success, 1 means the document could not be converted, 2 is a usage error and 3 means the PDF has scanned pages. The CLI prints the reason as one line to stderr and never prompts.
How do I install anydoc?
Run npx skillfoxx add skills/anydoc in a terminal.
Is anydoc safe to install?
Extended access. The tool runs code or makes network calls and only reads external data.
What license does anydoc use?
MIT, according to the repository.
Discussion
No questions or reviews yet.
README in short
The README opens with a one-command skill install through npx skills add and CLI examples, then covers the libraries for Node.js, Python, the browser via WebAssembly and Rust. A separate section explains OCR: only PDFs with a text layer are read locally, and scans go to Firecrawl Parse on request. The authors publish their own benchmark on 100 documents in 14 formats, scored by an LLM judge, with a median conversion time of 4.4 ms for anydoc. The rest covers content-based format detection, error types and the shared document model every format passes through.