searcyan

Doc2md Skill — AI skill for Claude Code

AI community

Agent Skill for reading papers with AI agents: converts PDF/Word into structure-preserving Markdown with a verification report, so agents read section by section instead of dumping the whole paper int.

How to install Doc2md Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open searcyan/doc2md-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Doc2md Skill does

Agent Skill for reading papers with AI agents: converts PDF/Word into structure-preserving Markdown with a verification report, so agents read section by section instead of dumping the whole paper into context and silently missing content. 用 Agent 辅助读论文的 Skill:先转结构完整的 Markdown 并逐行核对,避免整篇灌入、内容遗漏。

Alternatives in AI

README

doc2md-skill

English | [简体中文](README.zh-CN.md)

**An Agent Skill for reading papers with AI agents.** It converts PDF / Word documents into structure-preserving Markdown plus a verification report, so your agent (Claude Code, Codex, …) reads a paper section by section — completely, and without burning tokens.

Why

This tool came out of everyday paper reading with AI agents. Most people now read papers with an agent's help, and when an agent reads a PDF directly, the same problems keep showing up:

  • The whole paper goes into the context at once. Tokens are wasted, and the content that matters gets crowded out.
  • Content is silently lost. Borderless and three-line tables are flattened into prose, headings disappear, formulas are garbled, scanned pages are skipped, and Word comments never show up.
  • Nobody knows what was lost. Neither you nor the agent can tell whether the answer was based on a complete reading.

doc2md fixes this by putting a conversion step in front of reading: first turn the document into clean Markdown and check it line by line against the original, then let the agent read only the sections it needs.

What it does

  • Keeps the structure. Heading hierarchy and numbering (including custom Word styles, manually bolded/enlarged headings, and chapter titles laid out as tables), tables (ruled, borderless, three-line, cross-page continuations), and image positions are all preserved. Images are extracted as images/1.png, 2.png, … in reading order.
  • Doesn't drop content. Word comments, tracked changes, headers/footers, chart data, SmartArt, text boxes, equations, and embedded files are all exported. Pages without a text layer (scans, image-only slides) and lines that could not be converted verbatim (e.g. formulas) come with full-page images, so the agent can look at the original.
  • Verifies itself. Every line of the original is checked against the output, and headings, PDF bookmarks, and table captions are checked for