Mineru
Nebutra/MinerU-Skill
An AI-Native skill for parsing PDF / Office / image files into Markdown with MinerU — a fast, zero-config document parser for AI agents.
Convert PDF/EPUB textbooks to searchable markdown files for an AI agent's own reference.
$ npx skills add drpwchen/textbook-to-note --skill textbook-to-md -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install drpwchen/textbook-to-note textbook-to-md --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/drpwchen/textbook-to-note.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/textbook-to-md .claude/skills/textbook-to-md && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "textbook-to-md" agent skill from https://github.com/drpwchen/textbook-to-note/tree/main/skills/textbook-to-md into .claude/skills/textbook-to-md/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "textbook-to-md", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/drpwchen/textbook-to-note/tree/main/skills/textbook-to-mdType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add drpwchen/textbook-to-note --skill textbook-to-md -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install drpwchen/textbook-to-note textbook-to-md --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/drpwchen/textbook-to-note.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/textbook-to-md .agents/skills/textbook-to-md && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "textbook-to-md" agent skill from https://github.com/drpwchen/textbook-to-note/tree/main/skills/textbook-to-md into .agents/skills/textbook-to-md/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "textbook-to-md", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add drpwchen/textbook-to-note --skill textbook-to-md -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install drpwchen/textbook-to-note textbook-to-md --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/drpwchen/textbook-to-note.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/textbook-to-md .cursor/skills/textbook-to-md && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "textbook-to-md" agent skill from https://github.com/drpwchen/textbook-to-note/tree/main/skills/textbook-to-md into .cursor/skills/textbook-to-md/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "textbook-to-md", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/drpwchen/textbook-to-note.git --path skills/textbook-to-md--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add drpwchen/textbook-to-note --skill textbook-to-md -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install drpwchen/textbook-to-note textbook-to-md --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/drpwchen/textbook-to-note.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/textbook-to-md .gemini/skills/textbook-to-md && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "textbook-to-md" agent skill from https://github.com/drpwchen/textbook-to-note/tree/main/skills/textbook-to-md into .gemini/skills/textbook-to-md/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "textbook-to-md", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install drpwchen/textbook-to-note textbook-to-mdInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add drpwchen/textbook-to-note --skill textbook-to-md -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/drpwchen/textbook-to-note.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/textbook-to-md .github/skills/textbook-to-md && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "textbook-to-md" agent skill from https://github.com/drpwchen/textbook-to-note/tree/main/skills/textbook-to-md into .github/skills/textbook-to-md/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "textbook-to-md", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add drpwchen/textbook-to-note --skill textbook-to-md -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install drpwchen/textbook-to-note textbook-to-md --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/drpwchen/textbook-to-note.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/textbook-to-md .opencode/skills/textbook-to-md && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "textbook-to-md" agent skill from https://github.com/drpwchen/textbook-to-note/tree/main/skills/textbook-to-md into .opencode/skills/textbook-to-md/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "textbook-to-md", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
textbook-to-mdConvert PDF/EPUB textbooks to searchable markdown files for an AI agent's own reference.
Textbook To Md is an agent skill from drpwchen/textbook-to-note. Convert PDF/EPUB textbooks to searchable markdown files for an AI agent's own reference. Use this skill whenever: (1) the user asks to convert a textbook/PDF chapter to markdown, (2) you need to search textbook content and no markdown version exists yet, (3) batch-converting a set of reference books into a knowledge base. This is a 0-token local conversion — no vision model needed.
Its SKILL.md is about 3.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Documents & Office, covering PDF, Knowledge bases and Markdown. It works with Obsidian. The repository describes itself as: Turn your own PDF textbooks into an AI-searchable knowledge base and structured, fully-cited notes — figures included. Local-first, token-frugal. The licence is MIT.
2 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 65e7690. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Textbook To Md loads about 3.5k tokens when it runs. Until then it costs about 100 tokens; SKILL.md has 1,512 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from drpwchen/textbook-to-note at commit 65e7690, republished under its MIT licence (© drpwchen). 1,512 words, ~3,535 tokens.
.claude/skills/textbook-to-md/SKILL.md (or your agent's skills folder).This skill calls scripts in your clone of the textbook-to-note repo. At install time, replace
{REPO}below with the absolute path of the clone.
Convert PDF or EPUB textbooks into searchable markdown that the agent can grep/read directly, eliminating the need for PDF-library extraction at every query.
Output lives outside the note vault, at the path configured by
OUTPUT_DIR in shared/config.py (default ./output/), and is
for the agent's consumption, not for the user's reading.
Figures are on-demand, not pre-extracted. This skill produces markdown text only. Figures are extracted one at a time when a note needs them, via the
figure-remapskill's entrypoint (QC-gated). Do not batch-extract a whole book's figures into afigures/folder — that approach does not scale and is unnecessary since the on-demand path already handles it. A legacyfigures/folder may exist for books converted before this design; new conversions are markdown-only.
# Single file
python {REPO}/converter/convert.py "path/to/chapter.pdf"
# Single file with custom output and label
python {REPO}/converter/convert.py "path/to/chapter.pdf" "output.md" --book-label "Author Title 2e — Ch32"
# Batch-dir: convert ALL PDFs in a directory tree (auto chapter split + PDF bookmarks)
python {REPO}/converter/convert.py --batch-dir "path/to/your/textbook/folder"
# Force re-convert (ignore existing md)
python {REPO}/converter/convert.py --batch-dir "path/to/your/textbook/folder" --force
# Force OCR for ALL PDFs in batch-dir (bypass the text-extraction path entirely).
# Use when the text layer "looks" healthy but quality is actually bad (OCR-overlay
# scans, some digitized reprints) — auto-detection won't trigger because the text
# layer passes the shallow check.
python {REPO}/converter/convert.py --batch-dir DIR --force --force-surya
# EPUB → markdown (the 2nd arg is a FOLDER, not a .md file)
python {REPO}/converter/convert.py "path/to/book.epub" "<OUTPUT_DIR>/Author_Title_2e_2022"Batch mode skips files whose markdown already exists and is newer than the
source PDF. Batch-dir mode saves progress to batch_progress.json — if
interrupted, re-running resumes where it stopped. --batch-dir also picks
up .epub files automatically.
pandoc (epub → gfm). EPUBs are reflowable, so there are no
<!-- page N --> markers; files carry a <!-- SOURCE: epub --> marker
instead.chNN_*.md + full_text.md (same shape as a PDF
book) — the single-file 2nd argument is the output directory, not a
.md path.pandoc on PATH. Figures are not extracted from EPUB (the
on-demand figure flow is PDF-only).<OUTPUT_DIR>/{PDF_stem}/
(OUTPUT_DIR from shared/config.py; default ./output)full_text.md (complete with <!-- page N --> markers) plus a
chapter splitdocs/ocr-ladder.md). Falls back to
skip-with-explanation if the OCR environment is missing. Output is
full_text.md with page markers, and a chapter split is attempted on the
OCR'd text too (numbered-heading patterns often survive OCR); it is
best-effort and simply yields no chapters when heading detection fails<OUTPUT_DIR>/ ← default ./output (shared/config.py)
├── Author_Title_Edition_Year/
│ ├── ch01_Chapter_Title.md ← conversion produces md only
│ ├── ch02_....md
│ ├── full_text.md
│ └── figures/ ← LEGACY ONLY — not produced by conversion
└── Another_Book/ ← single-file conversions use the same <book>/full_text.md layoutFigure-registry generation (figure_registry.json) is an optional external
hook, not a shipped script — set the FIGURE_REGISTRY_SCRIPT env var to a
generator script if you have one; if unset, post_convert.py skips that
step.
==Conversion writes .md files only.== A figures/ subdirectory is legacy —
present only on books converted before the on-demand switch. New conversions
never create one; figures are pulled on demand by figure-remap.
Each markdown file contains:
<!-- page X --> at every page boundary, to map content
back to the source PDFFig. 32.1, Table 31.2, etc.), an HTML comment
<!-- REF: Fig. 32.1 → see PDF page X --> is inserted so the agent knows
where to look in the original PDFTwo search methods:
grep -r "your search term" "$OUTPUT_DIR" # default ./outputIf you've set up the optional semantic index (LanceDB + a local embedding
model — see docs/architecture.md), a textbook_search tool becomes
available for concept-level queries that don't depend on exact wording.
After converting new books, run the post-pipeline:
# Full pipeline: verify quality + refresh index.md + refresh figure registry + semantic index
python {REPO}/converter/post_convert.py
# Or individual steps:
python {REPO}/converter/post_convert.py --verify # check quality only
python {REPO}/converter/post_convert.py --index # semantic index only
python {REPO}/converter/post_convert.py --audit # report index coverage (no backfill)The pipeline does not extract figures — it only verifies page markers,
refreshes index.md + figure_registry.json from whatever figures already
exist, and (optionally) builds the semantic index. Figure extraction is
never a batch post-step.
Missing page markers do not block indexing by design — EPUBs (reflowable)
and some vector-glyph PDFs legitimately lack <!-- page N -->; the indexer
handles this gracefully (page metadata = 0). After indexing, a coverage
audit compares the markdown corpus against the index and auto-backfills any
book that has markdown but no index rows, so every converted book ends up
searchable even if a step was skipped.
No pre-extraction step. A whole-book batch figure dump is retired and should
not be run on new books. When a note needs a figure, figure-remap extracts
that single figure on demand with QC. See "Using figures in notes" below.
Chapter N / CHAPTER N — standardPart N / PART N — with roman numerals (Part III)Section N / SECTION N / Unit N1 Introduction, 23 Shoulder (digit + title-case
text)Many textbooks repeat Chapter N Title as a running header on every page.
Only count the first occurrence of each unique chapter number — track a
seen_chapters set and skip duplicates.
pages_0001-0030.md).pdf (use an
Author_Title_Edition_Year convention)ch01_Chapter_Title.md, ch00_Front_Matter.mdpages_0001-0030.mdAfter conversion, check:
Always cite with year when referencing converted content:
(Author 2e, 2021), not just (Author).
When writing or supplementing a note that needs a figure (anatomy,
classification, imaging, algorithm), extract that one figure on demand —
never batch-dump a book. The markdown's
<!-- REF: Fig. 5.1 → see PDF page 42 --> markers tell you which figure
exists and what PDF page it's on; hand that to the gate.
Call the figure-remap skill's public entrypoint (figure_remap.py extract — not the internal gate script). The entrypoint runs deterministic
geometric matching by default and returns a stable contract:
python {REPO}/figures/figure_remap.py extract \
--book "{Book}" \
--fig-id "5-1" \
--caption "<caption text from the REF marker / md>" \
--out "path/to/your/vault/attachments/Fig_5-1_{BookShort}.jpeg" \
--pdf "<source PDF path>" \
--page {1-indexed PDF page from the REF marker}Contract: {status: pass|fail|escalate, match_quality: exact|uncertain|failed, hard_fail, file, fig_id, reason, qc_degraded, qc_skipped} — those eight keys
exactly (figures/figure_remap.py CONTRACT_KEYS; the validator raises on any
extra or missing key, so branching on the engine's internal match_method is
not just discouraged, it is impossible).
status:fail (exit 1) is a deterministic miss — a correct refusal, not a
wrong crop; fix --page, escalate to vision, or leave a <!-- TODO -->.
Read the real caption to confirm the figure depicts what you intend.
On pass (exit 0), embed the --out path (result.file) in the note:
![[Fig_5-1_{BookShort}.jpeg|400]]
*Fig 5.1 — description (Author 2e, p.42)*When writing a fresh note via the note-writing workflow (see
workflows/note-writing.md), figure harvest is Phase 3.5 — don't call the
gate manually there, the workflow does it. The manual call above is for
ad-hoc figure needs outside that workflow. Full fallback ladder + per-book
calibration: see the figure-remap skill.
figure_registry.json (produced by the post-conversion pipeline) records
each book's figure status. A status of "not extracted" or "lazy-only" is
the expected normal state — it does not mean a batch extraction has to
run first; the on-demand gate handles extraction from the PDF regardless.
{FigID}_{BookShort}.{ext} — e.g. Fig_5-1_AuthorName.jpeg,
Fig_32-1_AuthorName.jpeg. Avoids filename collisions across books in your
attachments folder.
<!-- page X -->.docs/ocr-ladder.md.dump_all figures: books where caption detection failed get
page-based filenames (page_0042.jpeg) without captions. Still usable,
but you must identify content by reading the image.The script accepts any PDF, not just your priority set. For ad-hoc conversions:
python {REPO}/converter/convert.py "path/to/any.pdf" "path/to/output.md" --book-label "Book Name — Chapter"If no output path is specified, output goes to OUTPUT_DIR/<pdf name>/full_text.md — the same layout --batch-dir uses, so a later batch run skips it as already converted.
© drpwchen, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/textbook-to-md of drpwchen/textbook-to-note.
Open the folder on GitHubat commit 65e7690
Textbook To Md next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Textbook To Md this skilldrpwchen/textbook-to-note | 105 | — | ~3.5k | Automated safety check: Pass | MIT | |
| MineruNebutra/MinerU-Skill | 123 | — | ~504 | Automated safety check: Pass | MIT | |
| Quant Paper ExtractorCamusGIT/EvoQuant | 151 | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Z Md To PDFtjxj/z-skills | 548 | — | ~711 | Automated safety check: Pass | MIT | |
| Lov Any2pdflovstudio/any2pdf | 211 | — | ~2.4k | Automated safety check: Notes | MIT | |
| MineruNebutra/MinerU-Skill | 123 | — | ~1.4k | Automated safety check: Pass | MIT |
Nebutra/MinerU-Skill
An AI-Native skill for parsing PDF / Office / image files into Markdown with MinerU — a fast, zero-config document parser for AI agents.
CamusGIT/EvoQuant
Convert quantitative research report PDFs to markdown, then extract structured knowledge (paperId, title, year, source, keywords, tldr, abstract, strategy, method, experiment, result) into JSONL…
tjxj/z-skills
将 Markdown、Obsidian 笔记、技术文章、白皮书或长文排成中文 PDF。用户说“转成 PDF”“Markdown 转 PDF”“md 转 pdf”“排版成电子书”“生成指定风格 PDF”“一次生成多种风格”“学术风/书籍风/报告风”,或要编译 my-girlfriend-jingtian-latex 项目时,都应使用本…
lovstudio/any2pdf
Convert Markdown documents to professionally typeset PDF files with reportlab.
Nebutra/MinerU-Skill
An AI-Native skill for parsing PDF / Office / image files into clean Markdown with MinerU — a fast, zero-config document parser for AI agents.
ImCa0/just-laws
Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.
drpwchen/textbook-to-note
Extract single figures from PDF textbooks on-demand with built-in QC verification.
Works with
Categories
Convert PDF/EPUB textbooks to searchable markdown files for an AI agent's own reference. Textbook To Md is an agent skill from drpwchen/textbook-to-note. Convert PDF/EPUB textbooks to searchable markdown files for an AI agent's own reference.
Textbook To Md fits situations like: the user asks to convert a textbook/PDF chapter to markdown; you need to search textbook content and no markdown version exists yet; batch-converting a set of reference books into a knowledge base.
Run `npx skills add drpwchen/textbook-to-note --skill textbook-to-md -a claude-code`. Or copy the skill folder (skills/textbook-to-md in drpwchen/textbook-to-note) into .claude/skills/textbook-to-md in your project. Claude Code loads it when a task matches its description.
Run `npx skills add drpwchen/textbook-to-note --skill textbook-to-md -a codex`. Or copy the skill folder (skills/textbook-to-md in drpwchen/textbook-to-note) into .agents/skills/textbook-to-md in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add drpwchen/textbook-to-note --skill textbook-to-md -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/textbook-to-md, .gemini/skills/textbook-to-md, .github/skills/textbook-to-md and .opencode/skills/textbook-to-md in your project.
Going by SKILL.md and its folder, Textbook To Md needs the command-line tools its instructions call (python). Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Textbook To Md is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.5k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Textbook To Md: Mineru (Nebutra/MinerU-Skill, 123 stars), Quant Paper Extractor (CamusGIT/EvoQuant, 151 stars), Z Md To PDF (tjxj/z-skills, 548 stars) and Lov Any2pdf (lovstudio/any2pdf, 211 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
drpwchen (a GitHub user) maintains it in drpwchen/textbook-to-note, which has 105 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on August 26, 2026.
Source: drpwchen/textbook-to-note on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.