/oss:doc-to-markdown [path to the document, plus what you need from it]from oss
Reads or converts documents (PDF, Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV) to Markdown for research workflows. Routes by document structure, not extension, and decides between direct reading and conversion.
Ships in oss. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Conversion is a cost, not a default. Read the file directly with the Read tool when the question is bounded — Read handles PDFs natively, sees figures, equations, and layout that no text conversion preserves, and takes a pages range.
Read directly when the document is under ~20 pages and the task is one pass over it (summarize, answer a question, check a claim, review a draft), when the payload is visual (figures, plots, scanned tables, slides), or when you need a page number you can cite.
Convert when the document is longer than one read comfortably spans, when the text will be searched or quoted repeatedly, when it joins a corpus or source library, when many documents get the same treatment, or when a downstream tool (grep, a classifier, a script) needs plain text. citation-check and fact-check both require converted Markdown, one file per source.
State which path you took in one line. Silently converting a two-page memo wastes a step; silently reading page 1 of a 300-page book and answering as if you read it all is worse.
Probe first — the extension says nothing about structure:
pdfinfo doc.pdf | grep -E '^(Pages|Encrypted)'
pages=$(pdfinfo doc.pdf | awk '/^Pages:/{print $2}')
chars=$(pdftotext -q doc.pdf - | wc -c)
echo "$((chars / pages)) chars/page" # < 300 means image-only, needs OCR
| Document | Tool | Why |
|---|---|---|
| Born-digital PDF, prose-dominant (articles, books, reports) | opendataloader-pdf -f markdown | Keeps paragraph boundaries and does not invent tables |
| PDF whose payload is tables (questionnaires, appendices, statistical tables) | npx -y @firecrawl/anydoc | Real tables come out as real columns |
| Office and e-book formats (.docx, .pptx, .xlsx, .odt, .ods, .odp, .rtf, .epub, .csv) | npx -y @firecrawl/anydoc | One local MIT Rust binary covers all 14 formats, sub-second, no model weights |
| Scanned or image-only PDF (< 300 chars/page) | Stop and hand off to vlm-ocr | Neither text extractor can do OCR |
| One value or one passage out of a clean PDF | pdftotext -layout | 30 ms, no dependencies |
Fall back to pandoc for .docx only when Node is unavailable; it escapes apostrophes, hard-wraps lines, and emits Pandoc-flavored rather than GitHub-flavored Markdown.
If the repo already ships a conversion script — scripts/convert-sources.sh and a sources/og + sources/md pair is the house layout — run that script instead of a bare converter. It encodes the project's naming and output conventions, and bypassing it produces files the rest of the pipeline cannot find.
These are measured on the library's own corpus of political-science PDFs, not vendor claims:
opendataloader-pdf leaves typographic ligatures intact. One 30-page article carried 426 raw fi/ff/ffi characters, so grep significant silently misses every hit. Expand them on every conversion:
sed -i.bak 's/ff/ff/g; s/fi/fi/g; s/fl/fl/g; s/ffi/ffi/g; s/ffl/ffl/g; s/ſt/ft/g; s/st/st/g' out.md && rm out.md.bak
grep -c 'ff\|fi\|fl\|ffi\|ffl' out.md # must be 0
Full unicodedata.normalize('NFKC', ...) fixes ligatures too, but it also flattens superscripts, so footnote markers merge into the body text as ordinary digits. On documents whose footnote numbering matters, expand the ligatures and leave the rest alone.
opendataloader-pdf fails silently on scanned PDFs. A 28-page image-only article produced 2.5 KB of noise and exit code 0. The chars-per-page probe catches this; treat a short output as a failure until shown otherwise.
opendataloader-pdf under-detects section headings on some layouts, emitting the title as the only #. Check the heading count before relying on the Markdown for structure-aware chunking.
anydoc invents tables out of two-column prose and footnote blocks, shredding sentences into pipe cells. On the same article it emitted 24 table rows where the PDF has no tables at all. Grep the output for ^| and read what it caught before trusting it on a prose document.
anydoc merges a whole page into one line, running headers and footnotes into the middle of body paragraphs — fine for retrieval, wrong for quotation and for anything that reads paragraph structure.
anydoc errors loudly on image-only PDFs (OCR is required, exit 1). That is a feature: use it as a cheap scanned-document detector.
After any conversion, spot-check the head, the tail, and one middle page against the original. Converters truncate, drop columns, and reorder without complaining.
Make this call yourself, then say which way you went and where the file is.
Persist — write into the project and keep it — when any of these hold:
sources/md/, knowledge_base/md/, a convert-sources.sh). Write there, under the repo's naming scheme (author-year-slug.md, up to three authors, then firstauthor-etal-year-slug).Use a scratch file and delete it when done when any of these hold:
/tmp) and the task is one question about it.When in doubt, persist inside the project and tell the user, since a stray Markdown file is cheap and a re-run of a 40-minute OCR job is not. Either way, say so when writing into a git-tracked directory, and leave the source document where it is.
A converted document is derived data, and a reader six months on cannot tell a clean extraction from a mangled one. For anything persisted, note the converter and version — in the file's front matter, in sources/README.md, or in the conversion log the repo already keeps. When a document needed OCR, that fact travels with it; downstream text analysis has to know it is working from OCR output.
Bulk intake of many sources at once is research-repo's job, not this skill's. Cleaning OCR output is vlm-ocr's (clean phase).
grep -c 'ff\|fi\|fl\|ffi\|ffl' returns 0What SKILL.md sets; muted values are Claude Code's defaults
46 skills in this plugin
/advisorConsults Fable as an independent, read-only reviewer at an effort the caller matches to the question. The calling session (usually Opus, or Haiku) holds the task and escalates one decision point. Use before committing to an interpretation or a substantial piece of writing or analysis, when stuck or not converging, when changing approach, or as a final check on a finished task. Fallback for when the native advisor tool is unavailable. Not for a session already running Fable./beamerHouse rules and craft for LaTeX Beamer slide decks (lectures, seminars, talks), drawn from the author's own Overleaf edits and published slide-design guidance. Covers storyboarding, frame titles, slide prose, word and frame budgets, layout without overfull boxes, XeLaTeX fonts and Korean (xeCJK), color, figures and screenshots, Overleaf source hygiene, speaker notes, and a build-and-QA loop with a contact sheet. Use when writing, editing, reviewing, or building a Beamer deck, theme, or storyboard. A course skill supplies course facts and the frame skeleton; this skill supplies the craft. Not for HTML or PowerPoint decks, posters, or papers./citation-checkAudits a manuscript's citations for fabricated or nonexistent sources, DOIs that resolve to a different work, mismatches between in-text citations and the reference list, APA 7 or journal style, and whether each source supports the claim it is attached to. Checks entries against Crossref, OpenAlex, and DataCite and labels anything it could not verify NOT CHECKED. Use to check citations, references, a .bib file, or DOIs, or when a source may be AI-invented. Figures and tables go to figure-table-audit.npx claudepluginhub scdenney/open-science-skills --plugin ossOther plugins' skills for the same job