gitwtfhub

wtf is ky-markdown-rebuilder?

kyriecheungyep/ky-markdown-rebuilder — explained in plain English

Analysis updated 2026-05-18

120PythonAudience · developerComplexity · 3/5Setup · moderate

TL;DR

An AI coding assistant skill that rebuilds complex documents like PDFs and slide decks into page aligned, verified Markdown.

Mindmap

mindmap
  root((KY Markdown Rebuilder))
    What it does
      Rebuilds documents as Markdown
      Page by page alignment
      Checks output before delivery
    Output modes
      Fast mode
      Page aligned mode
      Deep visual mode
      Transcribe mode
    Tech stack
      Python scripts
      Tesseract OCR
      pdftoppm
    Use cases
      PDF reports
      Slide decks
      Scanned documents
    Audience
      Codex users
      Claude Code users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Convert a visually complex PDF report or whitepaper into structured, page aligned Markdown.

REASON 2

Turn a slide deck with diagrams and tables into a checked Markdown document.

REASON 3

Transcribe scanned documents or photographed pages into reliable text using vision models or OCR.

REASON 4

Generate an outline or translated version alongside the calibrated Markdown output.

What's in the stack?

PythonTesseract OCRpdftoppmLibreOffice

How it stacks up

kyriecheungyep/ky-markdown-rebuilderjackson-video-resources/markov-hedge-fund-methodshiroeirin/comfyui-good-anima
Stars120120120
LanguagePythonPythonPython
Setup difficultymoderateeasyhard
Complexity3/53/54/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Best results need optional tools like pdftoppm, soffice, and tesseract installed, checked via the bundled preflight script.

Wtf does this do

KY Markdown Rebuilder is a skill for AI coding assistants like Codex and Claude Code that rebuilds visually complex documents into reliable Markdown, aligned page by page. It is not a simple file to Markdown converter. Instead it extracts text, renders each original page as an image, checks that extracted content against the actual page layout, and runs scripts to verify page counts, formatting, and image links before calling the result done. It is meant for documents where plain text extraction usually goes wrong, such as PDFs, PowerPoint slides, scanned pages, long screenshots, reports, whitepapers, and course materials, especially ones with tables, flowcharts, diagrams, timelines, or multi column layouts. Ordinary conversion tools tend to keep only the text and lose reading order, mix content from adjacent pages together, break apart tables, and drop the relationships shown in diagrams. This project keeps each page or slide as its own section, checks visually dense pages at full resolution instead of guessing from thumbnails, and falls back to Tesseract OCR only when a scanned page cannot be handled by a vision model. Amounts, units, or small text that cannot be reliably read are explicitly flagged rather than guessed. It offers four output modes: a fast mode for mostly linear text, a page aligned mode that produces one Markdown block per page, a deep visual mode for high stakes or visually dense slide decks that checks every page image individually, and a transcribe mode for scanned books or tables that copies content one to one without added commentary. By default it produces a single calibrated Markdown file, with an optional outline file or a translated version available on request. Installation means cloning the repository into the Codex or Claude Code skills folder, and the project includes a preflight script that checks whether tools like pdftoppm, soffice, markitdown, and tesseract are available before running. A bundled output checker script verifies page continuity, formatting, and link correctness before a result is considered ready to deliver.

Yoink these prompts

Prompt 1
Use $ky-markdown-rebuilder to rebuild this PDF as page aligned Markdown and create an outline as well.
Prompt 2
Use $ky-markdown-rebuilder in deep-visual mode to reconstruct this slide deck's tables and diagrams.
Prompt 3
Help me install ky-markdown-rebuilder as a skill for Claude Code and run its preflight check.
Prompt 4
Use $ky-markdown-rebuilder to transcribe this scanned PDF page by page without translation.

Frequently asked questions

wtf is ky-markdown-rebuilder?

An AI coding assistant skill that rebuilds complex documents like PDFs and slide decks into page aligned, verified Markdown.

What language is ky-markdown-rebuilder written in?

Mainly Python. The stack also includes Python, Tesseract OCR, pdftoppm.

How hard is ky-markdown-rebuilder to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is ky-markdown-rebuilder for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.