document-converter

Installation
SKILL.md

Document Converter Workflow

Use this workflow when the user asks to read, summarize, analyze, or convert a large or complex document.

Do not start by converting the entire file into one large Markdown document. First build a lightweight understanding of the document, sample a few representative units, then decide how to read the rest.

What Conversion Means

This skill uses "conversion" in two document-specific ways:

  • Semantic conversion: turn complex documents into model-readable Markdown artifacts, such as document.md, chunks/, document.index.json, document.outline.md, document.reading_state.json, visual-understanding records, and summaries. Use this for normal reading, analysis, summarization, and Markdown export.
  • Format conversion: create a new file in another supported document format. Use this only when the user explicitly asks for a converted file or when a format mismatch must be repaired before extraction.

Current supported raw format conversions:

  • PDF -> png, jpg, jpeg
  • Office-like documents -> pdf, docx, pptx, xlsx

Office-like documents include Word, PowerPoint, spreadsheets, WPS Office, OpenDocument, RTF, templates, macro-enabled files, and slide-show files when the current runtime converter can handle them.

Installs
1
Repository
dtyq/magic
GitHub Stars
5.0K
First Seen
Jun 27, 2026
document-converter — dtyq/magic