Agent Skillsfirecrawl/anydoc › convert-documents-to-markdown

convert-documents-to-markdown

GitHub

将Word、PPT、Excel、PDF等多种文档格式转换为GitHub Flavored Markdown,便于直接读取和处理办公文档内容。

skills/convert-documents-to-markdown/SKILL.md firecrawl/anydoc

Trigger Scenarios

需要提取Office文档或PDF中的文本内容 需要将非Markdown格式的文档转换为Markdown以便后续处理

Install

npx skills add firecrawl/anydoc --skill convert-documents-to-markdown -g -y
More Options

Use without installing

npx skills use firecrawl/anydoc@convert-documents-to-markdown

指定 Agent (Claude Code)

npx skills add firecrawl/anydoc --skill convert-documents-to-markdown -a claude-code -g -y

安装 repo 全部 skill

npx skills add firecrawl/anydoc --all -g -y

预览 repo 内 skill

npx skills add firecrawl/anydoc --list

SKILL.md

Frontmatter
{
    "name": "convert-documents-to-markdown",
    "license": "MIT",
    "metadata": {
        "author": "firecrawl"
    },
    "description": "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."
}

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:

  1. Supported inputs: .doc, .docx, .docm, .odt, .rtf, .epub, .pdf, .ppt, .pps, .pot, .pptx, .pptm, .ppsx, .ppsm, .odp, .xls, .xlsx, .xlsm, .xlsb, .ods, .csv.
  2. 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.
  3. Exit codes: 0 success, 1 the document could not be converted, 2 usage error. Failures print one anydoc: <message> line to stderr. The CLI never prompts.
  4. For a large document, write to a file with -o and read the parts you need instead of streaming everything into context.
  5. Scanned and image-only PDFs need OCR, which anydoc does not do; they fail as unsupported. The hosted Firecrawl Parse API handles those.
  6. Inside a Node, Python, or Rust codebase, prefer the library over shelling out: @firecrawl/anydoc on npm, firecrawl-anydoc on PyPI, anydoc on crates.io. Each exposes the same to_markdown / toMarkdown API.

Version History

  • cad7ef2 Current 2026-08-05 14:50

Metadata

Files
0
Version
cad7ef2
Hash
6bd8cfed
Indexed
2026-08-05 14:50

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-06 00:05
浙ICP备14020137号-1 $Map of visitor$