@0xGky: An Agent Skill that makes reading PDFs addictive — learn-from-materials turns hundreds of pages of material into an interactive learning website. Feed it PDFs, EPUBs, Word docs, PPTs, or web pages — it first reads through all the material, builds a knowledge base, and then generates learning pages. Most importantly…
Summary
An introduction to the open-source Agent Skill "learn-from-materials," which converts hundreds of pages of material — PDF, EPUB, Word, PPT, web pages, and more — into an interactive learning website and knowledge base, with citation tracing precise down to page numbers and chapter sections. Compatible with environments like Claude Code, Codex, and Copilot CLI.
View Cached Full Text
Cached at: 11/03/26, 02:34 PM
An Agent Skill that makes reading PDFs seriously satisfying: learn-from-materials turns hundreds of pages of material into an interactive learning site. You can throw PDFs, EPUBs, Word docs, PPTs, and web pages at it — it reads the material through first, builds a knowledge base, and then produces the learning pages. The main thing: every sentence the AI says can be traced back to its source. PDFs down to the exact page, PPTs down to the exact slide, EPUBs down to the exact chapter — no more agonizing over “did the book actually say this, or did the AI make it up?” It installs on Claude Code, Codex, and Copilot CLI. URL: http://github.com/dmoshehun-prog/learn-from-materials…
dmoshehun-prog/learn-from-materials
Source: https://github.com/dmoshehun-prog/learn-from-materials
English · 中文
learn-from-materials
Icon
Turn books, PDFs, slides, Word documents, web pages, and multi-file material sets into traceable knowledge bases, interactive learning pages, and Markdown derived from the same content data.
Status Agent Skills Python License
learn-from-materials is a cross-agent learning skill built on the open Agent Skills specification. Systematic study emphasizes complete reading; a quick overview extracts the core argument. Both require verifiable sources, a strict separation between material facts and model-added content, offline-first operation, and least privilege.
It works in agent environments that can read files, run local commands, and recognize SKILL.md — such as WorkBuddy, Codex, Claude Code, and GitHub Copilot CLI. Pure chat environments without file-system access or Python execution can only use parts of the prompting workflow; they cannot perform material extraction, coverage validation, or HTML rendering.
1.1.0
A single sequential workflow extracts materials directly, without an execution-mode choice or choice file. Source-first unit records derive the page and readable units from the same data. Unit rereads and final correctness and omission/application passes retain actual evidence and dependency fingerprints. This release adds relationship inventories, resumable checkpoints, acceptance snapshots and phase timing; improves framework curves, outside lists for unlinked cards, direction cues and source tooltips; and exports a standalone methodology Markdown at the delivery root. See CHANGELOG.md for cumulative changes and migration from the local 1.06 package.
Key Features
A Methodology That Spans the Whole Material
It starts by extracting the material’s central question and its goal, then organizes the argument, frameworks and action rules into one complete structure. It supports the main flow, decision branches, causal and hierarchical relations, and evidence-backed feedback loops; it does not fix a step count and does not force every material into an eight-step process.
The overview is not split into groups by node count, and selecting a node shows its inputs, actions, outputs, check conditions, related learning units and sources. The whole structure is also saved separately as methodology.json / methodology.md, keeping what the source material itself does clearly distinct from the whole-material synthesis.
“Apply This Methodology” carries the entire structure by default, letting the AI locate your entry point and advance you condition by condition; a single card can still be chosen instead.
Guided content shows source hints for core ideas, key points and conclusions on mouse hover and on keyboard focus, plus an expandable “Source” panel for touch screens. These stay available after switching units. When a verified fine-grained location exists, the matching page number is displayed; otherwise the unit-level or conclusion-level range is reported as-is.
See the whole-material methodology protocol, the original three-page teaching PDF, and the systematic-study example. The example includes coverage, action-rule, content-review and original-heading records. Its short length is for demonstration and regression testing, not an extraction ceiling for real materials.
An Accumulating Method Library
After parsing new material, reusable methods are saved to the knowledge base’s methods.json, and a readable patterns.md is generated from it. Each card records purpose, prerequisites, limits, steps, effect checks, a short source quotation, a stable ID and a version; when a material contains no methodology, that is stated plainly rather than invented. Page bindings and the method prompts are derived from that same data.
Several method files you designate can be indexed cumulatively, candidate methods can be found by Chinese or English keywords, and comparison records can be exported. Original methods and earlier versions are retained; a synthesized method receives a new ID and an explicit parent-method reference, and never silently overwrites or blends into what the material actually meant.
See the method library protocol and commands, the example method file, the readable method cards and the demo page bound to a method library. The earlier Chinese and English versions, the relationship maps and “Apply This Methodology” all remain available.
Language and In-Page Interaction
- Follows your language: an explicit instruction comes first, then the current request and the conversation; Chinese and English are supported for body text, the interface, Markdown and copyable prompts. Original quotations and source names are preserved. Language is never guessed from nationality or browser locale, and existing HTML is never auto-translated.
- Logical relationship maps: core framework cards remain available and switch to a collapsible framework mind map with search, zoom and fullscreen. Hover or focus a node or link for its explanation and source; independent branches and cross-links retain the original relationships. Action rules still show the whole-material methodology graph.
- Reader themes and motion: new pages use Sea Salt, Ink Wash or Bamboo Moon with a compact horizontal layout, larger diagrams, readable floating explanations and an optional motion switch. Both diagrams retain their links when motion is off.
- Apply This Methodology: enter your question, goal and constraints, choose the whole structure, a specific method or automatic selection, and copy the resulting prompt into your material conversation. The prompt asks your agent to assess applicability before giving sourced analysis and suggested actions. The page does not run an AI itself.
- Supports PDF, EPUB, MOBI/AZW/AZW3, DOCX, PPTX/PPTM, HTML, Markdown, TXT, RTF, and multi-material collections
- Two learning depths: “Quick Overview” and “Systematic Study”
- Systematic study reads to the end and audits every method candidate’s disposition; card counts do not establish completeness across books, papers, industry reports, slides and other materials
- Generates a traceable
.learnkb/knowledge base, a self-contained interactive HTML page, and Markdown derived from the same content data - Fine-grained source mapping for PDF pages, PPT slides, and EPUB chapters
- Produces core-framework, guided-content, glossary, action-rules, dynamic self-check, and local-notes pages
- Systematic study runs full coverage, summary mapping and reverse checks; quick overviews scan the complete structure and audit displayed citations. Both check source hashes
- Distinguishes material-backed facts, areas not covered by the material, model-added content, and externally verified items
- Offline by default with no automatic dependency installation; page notes, learner profiles, and wrong-answer records stay in the local browser only
Framework Maps with Many Unlinked Cards
Connected frameworks appear in compact groups. Unlinked frameworks remain in source order in an initially collapsed list outside the canvas, with complete search and source-grounded details. An all-unlinked view has no large canvas; Expand all expands connected nodes and every original edge. All canonical frameworks remain available. Missing-relationship review still applies; an unlinked graph record does not prove independence in the source. No synthetic root or decorative edge is added.
Learning Depths
| Item | Quick overview | Systematic study |
|---|---|---|
| Content | Core arguments across the main sections, essential terms, conditions and limits | Read each source block and retain independent knowledge, arguments, evidence and methods as fully as possible |
| Source checks | Complete structure scan and displayed-citation review in quick-audit.json | Full coverage, summary ledger, rule/relationship ledger and phased source-first content review |
| Method files | Defensible core methods and an integrated structure | Methods and an integrated structure reviewed against the full material |
| Question bank | No exhaustive bank is prebuilt; inspect original questions in the selected scope when a quiz starts | Index questions through the systematic workflow |
Both depths share the six modules, Chinese/English support, three themes, contained hovercard scrolling, relationship maps and finalize.py delivery. methods.json is the method-card source of truth; methodology.json is the explicitly labeled integrated structure. Use the corresponding no-method/not-applicable status when the source does not support one. A quick overview does not establish exhaustive coverage. Upgrading preserves pageId and reusable content/method IDs, then completes the systematic records after review.
Showcase
These 16 user-captured screenshots show the updated liquid-glass interface in paired English and Chinese views. This README uses the eight English images; README_CN.md uses their Chinese counterparts. The showcase image index maps both sets to the same eight views. Some maps are partial screenshots.
These captures illustrate the design, not a browser acceptance report for this release; use the bundled HTML examples to try the current interactions.
The following examples show learning pages generated from three types of material, in order: a biography, a financial market outlook report, and a research paper. Each set of screenshots highlights selected sections of the same six-module learning-page format; it does not show every section of each page.
1. Biography — Elon Musk
The first-run guide introduces the modules and optional local learner profile. The generated page then moves from a material-level thesis to framework cards and their relationship map.
First-run learning guide First-run learning guide explaining themes, modules, sources, self-check and local notes
Systematic-study cover Elon Musk biography learning-page cover with a central thesis
Core-framework cards Elon Musk biography core-framework cards with stable numbers and brief explanations
Framework relationship map — partial view Compact framework mind map showing connected groups, stable numbered nodes and inline relationship labels; partial view
2. Financial market outlook report — J.P. Morgan 2026 Mid-Year Outlook
This example shows that the same workflow can organize a financial outlook PDF into a systematic learning page. The guided-content view preserves PDF page ranges while separating a unit’s core idea, key frameworks and action points.
Systematic-study cover Financial market outlook learning-page cover with a central thesis
Guided content with PDF page ranges Market outlook guided-content unit with its PDF page range, core idea, key framework and action points
3. Research paper — Attention Is All You Need
The paper example shows a research argument recast as a learning page and an explicitly bounded methodology map. The map screenshot is a partial view of the page, not the full graph.
Systematic-study cover Attention Is All You Need learning-page cover about Transformer sequence modeling
Methodology map — partial view Attention Is All You Need methodology map with numbered Transformer reasoning steps
These screenshots demonstrate interface organization, not an independent verification of each claim, citation or generated conclusion. Source texts and screenshots remain subject to their respective rights holders; this repository does not include those original materials or their full generated results. Bundled Method Lab sources and knowledge bases are self-authored synthetic examples under MIT. For interaction examples, open the synthetic systematic-study demo or the English feature demo.
Getting Started
1. Installation
Install this 1.1.0 package: extract learn-from-materials-1.1.0.zip and place the complete enclosed learn-from-materials/ folder in your client’s skill search directory. SKILL.md, scripts/, references/ and templates/ should sit directly inside that folder; avoid an extra nesting level. Back up an existing skill of the same name before updating. Reload or restart the client if it does not discover the new version.
Repository URL: https://github.com/dmoshehun-prog/learn-from-materials.
The git examples below install the repository’s default branch, which may differ from this ZIP; use the ZIP to install this release.
| Agent | User-level install directory | Example |
|---|---|---|
| WorkBuddy | ~/.workbuddy/skills/ | git clone https://github.com/dmoshehun-prog/learn-from-materials.git ~/.workbuddy/skills/learn-from-materials |
| Codex | ~/.agents/skills/ | git clone https://github.com/dmoshehun-prog/learn-from-materials.git ~/.agents/skills/learn-from-materials |
| Claude Code | ~/.claude/skills/ | git clone https://github.com/dmoshehun-prog/learn-from-materials.git ~/.claude/skills/learn-from-materials |
| GitHub Copilot CLI | ~/.copilot/skills/ or ~/.agents/skills/ | git clone https://github.com/dmoshehun-prog/learn-from-materials.git ~/.copilot/skills/learn-from-materials |
| Other agents | See your client’s documentation | Place the full directory in its Agent Skills search path |
Codex user-level discovery uses ~/.agents/skills/; see the official skill locations (https://learn.chatgpt.com/docs/build-skills). Follow your installed client’s documentation if its search paths differ.
If the target directory already exists, back it up yourself first — do not overwrite it directly. Cloud or hosted agents may not read local user directories; install through that product’s skill import, sync, or project-level directory mechanism instead.
2. Use It in a Conversation
``text Please use learn-from-materials to systematically study this PDF and generate a traceable knowledge base and a learning page.
``text
Give me a quick overview of this PPT, keep per-slide sources, and generate an offline learning HTML.
An explicit request for a quick overview or systematic study selects that depth directly. If no depth is specified, the skill asks once, then follows SKILL.md. Output follows the current request language unless you explicitly choose English or Chinese.
Requirements & Compatibility
- Python 3.10 or later
- An agent that can read materials and the skill directory and run local Python commands
- Most formats can be handled with the Python standard library or system capabilities
- Node.js is used for optional JavaScript regression checks; Playwright and an existing browser are used for permitted browser verification
- Scanned PDFs and image-heavy slides require OCR or vision capabilities; when unavailable, affected ranges are flagged as unverified
- Long books, multi-material cross-analysis, specialized papers, and complex open-ended questions work best with long-context, high-reasoning models
Optional enhancements:
| Scenario | Optional component | Behavior without it |
|---|---|---|
| Text-based PDFs | pdftotext, PyPDF2, pdfminer.six, or macOS PDFKit | Falls back to the next available parsing path |
| Technical PDFs | Docling | Falls back to the text extraction chain and flags visual-review boundaries |
| S |
Similar Articles
@grgerwcwetwet: Here's a highly recommended Agent Skill for party learning that's totally worth installing: learn-from-materials. It di…
The learn-from-materials Agent Skill converts PDFs, EPUBs, Word docs, and PPTs into interactive learning websites with source tracing and knowledge base building.
@gaoren7716: Of the 200 tech books you've read, how many chapters do you remember after 3 months? PDFs sit on your hard drive, unopened. Notes span 200 lines, never revisited. Ask an Agent, and it either hallucinates or says "I don't know this book." 3 ways to "use" a book: · Stuff it into Claude's context:…
book-to-skill is an open-source tool that transforms technical books, documents, or collections into structured Agent skills. It supports on-demand chapter loading via GitHub Copilot CLI, Amp, and Claude Code, solving knowledge forgetting and hallucination issues.
@sitinme: Not just "have AI summarize a book", but go further: turning a book or a document package into a Skill that an AI Agent can repeatedly call. This idea is worth discussing. Previously, after buying and reading a book, when I later wanted to find a certain knowledge point, I couldn't find it after flipping through for a long time; asking AI might make things up; throwing the entire PD…
Introduces a tool called book-to-skill that converts books or document packages into AI Agent callable Skills. It supports PDF and other formats, generates SKILL.md and chapter indexes, avoiding loading the full context at once.
@knowledgefxg: Papermorph is an open-source AI Skill that can turn textbooks, stories, and books into interactive web pages. For example, when explaining matrices, lines and planes change along with the narration, you can drag shapes to see how the values change, and exercises are graded instantly. It can also create animated picture books, vertical short videos, and long scrolling pages. I tried it with Chapter 1 of Computer Networking…
The open-source AI skill Papermorph can adapt textbooks, stories, and books into interactive web pages, supporting visuals that change with the narration, draggable parameter controls, instant grading, and a variety of formats, including animated picture books, vertical short videos, and long scrolling pages.
@RituWithAI: Someone just built a tool that turns any book into a skill your AI agent can use forever. One command. Any PDF, ePub, o…
book-to-skill is an open-source tool that converts PDFs, ePubs, and long documents into structured SKILL.md files for AI coding agents like Claude Code and Cursor, enabling agents to permanently apply book knowledge during coding sessions.