Convert documents to markdown

From kortix-ai/CompanyOS · View interactive version

Convert documents to markdown is an AI agent skill from the GitHub repository kortix-ai/CompanyOS. 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.

How to use this skill

Skill file

Convert documents to Markdown

The anydoc CLI is pre-installed in the sandbox. It converts one document per

invocation and writes GitHub-Flavored Markdown to stdout. It never prompts;

diagnostics go to stderr.

Usage

anydoc report.docx                  # Markdown to stdout
anydoc slides.pptx -o slides.md     # write to a file
anydoc - --format csv < data.csv    # read stdin (stdin needs --format for CSV)

Supported inputs: Word (.doc, .docx, .docm), PowerPoint (.ppt, .pptx, .ppsx),

Excel (.xls, .xlsx, .xlsb), OpenDocument (.odt, .ods, .odp), RTF, EPUB, CSV,

and PDF. The format is detected from file content; pass --format <name> when

detection fails (stdin CSV, missing extensions).

Exit codes: 0 success, 1 the document could not be read or converted,

2 usage error.

Guidelines

instead of streaming the whole conversion into context.

Use the OCR path in skills/pdf/SKILL.md (pytesseract + pdf2image).

skill: skills/docx, skills/xlsx, skills/presentations, skills/pdf.

boxes), use pdfplumber from skills/pdf/SKILL.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.