Guided reading workflow for studying textbooks, papers, and technical books. Trigger when user says "start studying", "guided read", "read next section", "continue studying", or specifies a chapter/section to learn. Do NOT use for quick lookups or information retrieval.
An interactive learning workflow that prevents two failure modes: passive reading (losing focus) and passive listening (illusion of understanding).
Each section follows a 5-step cycle:
notes/ directoryBefore any learning begins, the source material must be converted to clean Markdown. This step runs once per material, not per section.
| Format |
|---|
| Approach |
|---|
.md / .txt | Use directly, no conversion needed |
.pdf (text-based) | Extract target pages with qpdf, then convert with markitdown. Verify output is readable text, not garbled |
.html | Convert with markitdown |
.epub | Convert with markitdown |
.docx | Convert with markitdown |
If the material is in a format that cannot be reliably converted to text (e.g. scanned image PDF, screenshots, handwritten notes, video), explicitly inform the user:
notes/ch01_raw.md)> — they render poorly in terminals), each segment ~100-200 wordsDo NOT write notes for the user directly. Guide them to articulate note content through questions:
notes/ directoryWhen a section includes exercises, switch from the reading workflow to the exercise workflow below.
| Type | Approach |
|---|---|
| Thought / find-the-bug | Present problem + guiding questions → user answers verbally → judge correctness, correct misconceptions |
| Read-the-code / trace execution | Present code → user traces execution by hand → confirm or correct → optionally verify with code |
| Programming | Present problem + sample input/output + guiding questions → user writes code → review |
| Proof / math | Present problem + hints → user reasons on paper or verbally → verify logic |