Who it is forA student preparing for exams who has a question bank as a PDF with formulas and figures.
The problemDirect OCR misreads formulas and figures, and rearranging questions before fixing them mixes errors into the new set.
The outcomeA checked Markdown question bank in which questions are grouped by type or topic, with page numbers that still match the source, and optional new variants built from the verified text.
What you need first
- Python installed on Windows, Linux, or macOS
- git installed to clone the repository
- A supported AI agent that can load the skill (the README names Claude Code and Codex)
- The PDF file to convert, with the page range you want
- A host model that can understand images, since transcription quality depends on it
Steps
- Clone the skill into your agent's skills directory, for example
git clone https://github.com/libnyx/LT2MD.git ~/.codex/skills/LT2MDon macOS or Linux with Codex. - Ask the agent to convert the question bank PDF to Markdown first, keeping formulas and page labels.
- Review the validator result and any transcription notes for questions with formulas or figures.
- Ask the agent to regroup the verified questions by type or topic, or to generate variants from them.
Prompt for your agent
Use the LT2MD skill in the libnyx/LT2MD repo to convert <path to question bank PDF> to Markdown, keeping formulas and labeling each question with its PDF page. After validation, group the questions by <topic or type>. Expected output: a grouped Markdown file where each question keeps its page number; verify five questions with formulas against the source pages.
Caveat. Rearranging questions only after the conversion is checked keeps errors out of the new set, but any formula in a generated variant should still be checked by a person.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for libnyx/LT2MD and "Regroup an exam question bank PDF by topic or type"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer