textbook-to-md

Solid

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.

Data & Documents 84 stars 22 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 86/100

Stars 20%
64
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Textbook-to-Markdown Converter > 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. ## Purpose 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-remap` skill's entrypoint (QC-gated). Do not batch-extract > a whole book's figures into a `figures/` folder — that approach does not > scale and is unnecessary since the on-demand path already handles it. A > legacy `figures/` folder may exist for books converted before this design; > new conversions are markdown-only. ## When to use - User explicitly asks to convert a textbook or chapter - You need to search textbook content and want to avoid per-query PDF re-parsing overhead - Building up a knowledge base from a personal library of reference books - Before starting work on a new topic, convert the relevant chapters first ## Quick reference ```bash # Single file python {REPO}/converter/convert.py "path/to/chapter.pdf" # Single file with custom output and label pyth...

Details

Author
drpwchen
Repository
drpwchen/textbook-to-note
Created
1 weeks ago
Last Updated
4 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

markdown-to-epub

Convert one or more Markdown files into a clickable, text-to-speech-friendly EPUB for e-readers (Kindle), with an optional branded cover. Use when the user wants an EPUB or ebook from markdown, a briefing or research note as EPUB, or wants to aggregate several markdown artifacts into a single self-contained topical EPUB "book" with an intro and a table of contents (common after a long session or deep research that produced many markdown files that are painful to jump between in a chat UI, and that the user wants to read or listen to on the go). Preserves clickable links, including timestamped video deep-links, and generates a navigable table of contents. Triggers: "make an epub", "turn this into an ebook", "epub for kindle", "convert this briefing to epub", "bundle these markdowns into a book", "combine these notes into one ebook", "make me an ebook of the artifacts you just created".

0 Updated 4 days ago
dzivkovi
Data & Documents Listed

markdown-to-docx

Use this skill whenever the user wants to convert a Markdown file to a Word document (.docx). Triggers include: 'convert markdown to Word', 'convert .md to .docx', 'render mermaid to Word', 'generate Word doc from markdown', 'export markdown as docx', or any request to turn a .md file into a .docx. Use this skill even if the user just says 'make a Word doc from this markdown' or 'convert this to Word'. This skill handles: (1) native Word TOC placed after the document header block (H1 title + metadata + '---' separator), (2) Mermaid diagram blocks rendered to high-resolution PNG and embedded as images, and (3) tables formatted with colored header rows, alternating row shading, and borders. Do NOT use for PDFs, Google Docs, spreadsheets, or general DOCX editing unrelated to Markdown conversion.

0 Updated 1 weeks ago
desmondc9
Data & Documents Listed

markitdown

Converts files (PDF, DOCX, PPTX, XLSX, images, audio, HTML, CSV/JSON/XML, ZIP, YouTube URLs) to clean Markdown using Microsoft's markitdown CLI, and optionally reviews the result for extraction artifacts (fragmented sentences, missing headings, ligature glitches, spelling errors). Use this skill whenever the user attaches a file and asks to convert it, extract text/content from it, "turn this into markdown," get a readable or editable version of a PDF or Office doc, or mentions markitdown by name — even if they just say something like "can you get the text out of this" or "make this PDF editable."

1 Updated yesterday
ErickRamirezAU