convert-documents-to-markdown

Converts local office documents and PDFs into Markdown using the AnyDoc CLI.

30.7k|12.8k|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/nanocoai/nanoclaw --skill convert-documents-to-markdown
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: convert-documents-to-markdown
Source: https://github.com/nanocoai/nanoclaw/tree/main/.claude/skills/add-anydoc/container-skills/convert-documents-to-markdown
Command: npx skills add https://github.com/nanocoai/nanoclaw --skill convert-documents-to-markdown

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reading attached Word documents, spreadsheets, presentations, or PDFs inside an agent container normally requires uploading files to an external parser, which risks leaking private data. This Skill converts those attachments to Markdown locally, keeping content inside the container.

Core Features & Use Cases

  • Local document conversion: Converts Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, and text-based PDF files to Markdown with the Firecrawl AnyDoc CLI.
  • Safe shell handling: Provides quoting and -- conventions so hostile or unusual attachment filenames cannot trigger command execution.
  • Untrusted-content guidance: Instructs the agent to treat converted content as data, never as instructions, and to report conversion failures clearly.
  • Use Case: A user sends a quarterly report as a .docx attachment in chat; the agent converts it at /workspace/inbox/<message-id>/ into Markdown and summarizes the relevant sections without uploading the file anywhere.

Quick Start

Convert the attached document at its local inbox path to Markdown with anydoc, then read only the sections needed to answer my question.

Frequently Asked Questions about convert-documents-to-markdown

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a Word document to Markdown locally?

Run the AnyDoc CLI with the input path after `--`: `anydoc -o output.md -- input.docx`. Conversion happens entirely on the local machine or container, so no document content is uploaded to an external service.

What file formats does AnyDoc convert to Markdown?

AnyDoc handles Word documents, presentations, spreadsheets, OpenDocument files, RTF, EPUB, CSV, and text-based PDFs. For CSV piped via stdin, specify the format explicitly with `--format csv`.

Can AnyDoc convert scanned or image-only PDFs?

No. Scanned and image-only PDFs require OCR, which AnyDoc does not perform, so those files are unsupported. Only text-based PDFs can be converted to Markdown.

Why is document conversion safer inside a container?

Converted document content is untrusted data that may contain injected instructions or malicious filenames. Converting inside an isolated container with proper shell quoting prevents command execution and keeps private files off external parsing services.

What are the limitations of converting spreadsheets to Markdown?

Spreadsheet conversion can be lossy: percentages, hidden rows, and formatting may not survive. Treat the Markdown output as reading context only, never as an authoritative source for financial or numeric calculations.