Extracts structured knowledge and assets from complex document formats.

Install

mkdir -p .claude/skills/richpdf && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15625" && unzip -o skill.zip -d .claude/skills/richpdf && rm skill.zip

Installs to .claude/skills/richpdf

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Extract structured wiki-ready markdown from any document — PDF (text or image/scanned), markdown clippings, or plain text. Captures text, embedded images/diagrams, and code samples per page. Images saved to raw/assets/ and referenced inline with the page they came from. Use when user says "/richpdf", "ingest", "process this pdf", "ingest this document", or provides a file path.
380 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Extract 5 key ideas per page from documents
  • Capture embedded images and diagrams
  • Save images to `raw/assets/` and reference them inline
  • Detect and extract code samples with language identification
  • Process text-based PDFs using pymupdf
  • Process image/scanned PDFs using vision for text and code

How it works

This skill extracts structured markdown from documents by identifying key ideas, embedded images, and code samples per page, saving images to a dedicated asset directory and referencing them inline.

Inputs & outputs

You give it
A document file path (PDF, .md, .txt)
You get back
Structured, wiki-ready markdown file(s) with extracted text, images, and code samples, and images saved to `raw/assets/`

When to use richpdf

  • Converting PDFs to markdown
  • Extracting images from scanned documents
  • Documenting code samples from PDFs
  • Ingesting reference materials

About this skill

richpdf / ingest

Extracts structured, wiki-ready markdown from any document. Per page it captures:

  • 5 key ideas
  • All embedded images and diagrams (saved to raw/assets/, described by vision)
  • All code samples (detected by font analysis or fenced blocks, language identified)

Each image and code sample is placed inline immediately after the key ideas of the page it came from — so the extracted knowledge stays in context.

Requirements (PDF extraction)

pip install pymupdf anthropic

Usage (PDFs)

python .agent/skills/richpdf/extract.py <file_path> [output_dir]
  • file_path — path to document (PDF, .md, .txt)
  • output_dir — where to save the wiki .md (default: wiki/sources/)
  • Images always saved to raw/assets/

For clippings and articles: read the file directly — no script needed.

How assets are detected

Source typeTextCode blocksImages/Diagrams
PDF (text-based)pymupdf text extractionFont analysis — monospace spans flagged as codepymupdf image extraction per page
PDF (image/scanned)Vision reads whole pageVision wraps code in ``` fencesWhole page sent to vision; individual images also extracted
Markdown clippingDirect read``` fenced blocks![[wikilink]] and ![alt](url) references captured
Plain textDirect read``` fenced blocksn/a

Images under 5KB (icons, bullets, decorations) are skipped automatically.

Asset file naming

raw/assets/{Source-Title}-p{page}-img{index}.{ext}

After extraction

Follow all steps in the Ingest operation defined in AGENT.md.

When not to use it

  • When only raw text extraction is needed without structured markdown
  • When images under 5KB (icons, bullets, decorations) are required
  • When the user does not want images saved to `raw/assets/`

Prerequisites

pymupdfanthropic

Limitations

  • Images under 5KB are automatically skipped
  • Output directory for markdown defaults to `wiki/sources/`
  • Images are always saved to `raw/assets/`

How it compares

This skill provides a structured, wiki-ready markdown output with inline image and code references, which is more organized and contextual than simple text or image extraction.

Compared to similar skills

richpdf side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
richpdf (this skill)03moReviewIntermediate
doc03moReviewIntermediate
feature-doc-updates02moNo flagsBeginner
repo-markdown-quality01moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry