neuromechanist/research-skills/document-processing
Claude Code and agent skill by neuromechanist/research-skills
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user says \"process documents\", \"extract text from PDF\", \"OCR this document\", \"convert PDF to markdown\", \"extract emails from documents\", \"parse document\", \"document conversion\", \"batch OCR\", \"extract structured data from PDF\", \"read PDF\", \"extract tables from PDF\", \"convert Word document\", \"convert docx to markdown\", or wants to extract, convert, or process documents and scanned images.
Install
npx vskill@latest install neuromechanist/research-skills/document-processingSKILL.md
Document Processing
Extract, convert, and structure content from PDFs, images, and other document formats. Handles OCR, text extraction, markdown conversion, email extraction, and structured data output.
When to Use
- Converting scanned documents to searchable text
- Extracting text from PDFs (native or scanned)
- Converting documents to markdown for further processing
- Extracting emails, addresses, or other structured data from documents
- Batch processing document collections
Processing Pipeline
Step 1: Identify Document Type
Determine the processing approach:
| Input | Method | Tool | |
|---|---|---|---|
| Native PDF (has text layer) | Direct extraction | pdftotext, pymupdf | |
| Scanned PDF (images only) | OCR | Mistral OCR API, tesseract | |
| Image files (PNG, JPG, TIFF) | OCR | Mistral OCR API, tesseract | |
| Word documents (.docx) | Conversion | python-docx, pandoc | |
| HTML | Conversion | pandoc, beautifulsoup4 |
Detection:
Step 2: Extract Content
Native PDF Extraction
OCR with Mistral (for scanned documents)
Requires MISTRAL_API_KEY environment variable. Falls back to tesseract for offline processing if unavailable.
OCR with Tesseract (offline fallback)
Step 3: Structure Output
Convert extracted text to structured formats:
Markdown cleanup
- Fix OCR artifacts (broken words, spurious line breaks)
- Reconstruct tables from aligned text
- Identify headers from font size/weight changes
- Preserve list formatting
Structured data extraction
Step 4: Output
Save results in the requested format:
- Markdown (
.md) - default for text content - JSON - for structured data extraction
- Plain text (
.txt) - for simple text extraction
Batch Processing
For document collections:
For large collections, track progress:
- Create a manifest of input files
- Process each file, recording success/failure
- Report summary (processed, failed, skipped)
Quality Checks
After extraction, verify:
- [ ] Text is readable (not garbled encoding)
- [ ] Tables preserved their structure
- [ ] No pages were skipped
- [ ] Special characters rendered correctly
- [ ] Headers and sections identified
Additional Resources
- Reference: references/ocr-configuration.md - Tesseract languages, page segmentation modes, preprocessing
- Reference: references/pdf-tools.md - Comparison of PDF extraction libraries and their tradeoffs
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/project/skills/document-processing/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/neuromechanist/research-skills/document-processing)