context-pdf

Extract, transform, and inspect PDF documents with triage-based reading strategies.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/mnazaal/dotfiles --skill context-pdf-mnazaal
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: context-pdf
Source: https://github.com/mnazaal/dotfiles/tree/main/.agents/skills/context-pdf
Command: npx skills add https://github.com/mnazaal/dotfiles --skill context-pdf-mnazaal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Reading long or math-heavy PDFs naively wastes context and silently corrupts content: text extraction mangles mathematical notation, and scanned pages return empty text. This Skill provides a triage-first workflow that inspects each page before deciding whether to extract text, render it as an image, or run OCR. ## Core Features & Use Cases - Triage-Based Reading: Inspect page count, text length, image count, and notation density per page before committing to a reading strategy. - Full PDF Operations: Extract text, tables, and images; merge, split, rotate, watermark, create, fill forms, encrypt, decrypt, and OCR scanned documents. - Math and Figure Handling: Render pages with dense notation or figures to images instead of relying on lossy text extraction. - Use Case: Given a 200-page scanned thesis with heavy equations, triage the document, OCR the scanned pages, render equation-dense pages as images, and extract only the relevant page ranges. ## Quick Start Use the context-pdf skill to triage the attached PDF and extract the key findings from pages 10 through 25.

Frequently Asked Questions about context-pdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from a PDF without losing math equations?▼

Text extraction mangles mathematical notation, dropping or reordering symbols, subscripts, and matrix layouts. For pages with real notation, render the page to an image and read it visually instead of relying on extracted text.

How to read a long PDF efficiently with an AI assistant?▼

Triage the document first: check page count and per-page text length, image count, and notation density. Then read only the pages that matter, rendering dense pages as images and scanning the rest as text.

Can I extract text from a scanned PDF?▼

Scanned PDFs contain images rather than a text layer, so standard extraction returns empty or low-quality output. Use the OCR path when text extraction yields little or no usable text.

Why does PDF text extraction return empty or garbled output?▼

Empty output usually means the page is a scanned image requiring OCR. Garbled output with plausible-looking prose typically indicates mangled mathematical notation, which requires rendering the page as an image instead.

How do I handle PDF passwords and sensitive content securely?▼

Route credential handling, passwords, signatures, and sensitive extracted content through the dev-security skill. Avoid exposing secret values in logs during encryption, decryption, or form-filling operations.