doc-process
Document intelligence: categorize, autofill forms, analyze contracts, scan receipts/invoices, analyze bank statements, parse resumes/CVs, scan IDs/passports (MRZ), summarize medical records, redact PII (light/standard/full, 50+ rule types, global coverage), extract meeting minutes/action items, extract tables to CSV/JSON, translate documents, scan/dewarp document photos (edge detection, perspective correction, scan-quality output). Trigger: fill this form, autofill, review contract, red flags, scan receipt, log expense, bank statement, subscriptions, parse resume, scan passport, read id, lab report, redact, remove pii, anonymize, meeting minutes, action items, extract table, table to csv, translate, scan photo, make scanned, dewarp, correct perspective, what is this, analyze this.
What this skill does
# Doc-Process — Document Intelligence Skill ## Step 0 — Auto-Setup (run once on first use) Before invoking any script for the first time in a session, check whether the script dependencies are available. If any are missing, run the setup script automatically — no prompting needed: ```bash bash skills/doc-process/setup.sh ``` This installs all Python packages (`pymupdf`, `Pillow`, `pytesseract`, `opencv-python-headless`, `numpy`, `img2pdf`, `pdfplumber`, `openai-whisper`) and attempts to install system binaries (`tesseract`, `ffmpeg`) via `brew` or `apt` depending on the platform. **When to run Step 0:** - First time any script-assisted mode is used in a session - After a fresh `clawhub install piyush-zinc/doc-process` - If a script fails with `ModuleNotFoundError` or `ImportError` To install Python packages only (no system packages): ```bash bash skills/doc-process/setup.sh --light ``` Or install directly from the skill's requirements file: ```bash pip install -r skills/doc-process/requirements.txt ``` > **Note:** `openai-whisper` downloads its model (~140 MB) on first audio transcription — not at install time. --- ## Overview This skill handles all document-related tasks using Claude's native vision/language capabilities for reading and analysis, and Python scripts for file-output operations. Most modes require **no installation** — only the file-output scripts need third-party libraries. --- ## How Features Are Implemented | Feature | Implementation | External libraries | |---|---|---| | OCR / reading images | Claude built-in vision | None | | MRZ decoding (passport/ID) | Claude reads MRZ visually, applies ICAO algorithm | None | | PDF reading | Claude reads PDF text layer or visually | None | | Form autofill | Claude reads form fields, outputs fill table | None | | Contract analysis | Claude applies reference rule set | None | | Receipt / invoice scanning | Claude reads image or PDF | None | | Bank statement (PDF) | Claude reads PDF pages | None | | Bank statement (CSV) | `statement_parser.py` — pure stdlib | None | | Expense logging | `expense_logger.py` — pure stdlib | None | | Bank report generation | `report_generator.py` — pure stdlib | None | | Resume / CV parsing | Claude reads document | None | | Medical summarizer | Claude reads document | None | | Legal redaction (display) | Claude marks up output | None | | **Legal redaction (file output)** | `redactor.py` | **pymupdf** (PDF); **Pillow + pytesseract** (image) | | Meeting minutes (text/PDF) | Claude reads document | None | | Translation | Claude's multilingual capabilities | None | | Document categorizer | Claude reads first 1–2 pages (with consent gate) | None | | Timeline logging | `timeline_manager.py` — pure stdlib | None | | **Table extraction (PDF)** | `table_extractor.py` | **pdfplumber** | | **Audio transcription** | `audio_transcriber.py` | **openai-whisper + ffmpeg** | | **Doc scan / perspective correction** | `doc_scanner.py` | **opencv-python-headless, numpy, Pillow**; img2pdf optional | --- ## Dependencies & Installation ### No installation required for core functionality Reading, analysis, form filling, contract review, receipt scanning, bank statement analysis (PDF), resume parsing, ID scanning, medical summarising, redaction markup, meeting minutes, and translation all run on Claude's built-in capabilities. ### Optional — install only for file-output scripts ```bash # PII redaction to PDF/image files (redactor.py) pip install pymupdf>=1.23 # required for PDF redaction pip install Pillow>=10.0 # required for image redaction pip install pytesseract>=0.3 # required for image redaction (also: brew install tesseract) # Document scanning / perspective correction (doc_scanner.py) pip install opencv-python-headless>=4.9 numpy>=1.24 Pillow>=10.0 pip install img2pdf>=0.5 # optional — for PDF output; Pillow fallback used if absent # Table extraction from PDFs (table_extractor.py) pip install pdfplumber>=0.11 # Audio transcription (audio_transcriber.py) # Also requires ffmpeg binary: brew install ffmpeg / apt install ffmpeg pip install openai-whisper>=20231117 ``` All dependencies are also listed in `requirements.txt` at the repository root. ### Binary dependencies | Binary | Required by | Install | |---|---|---| | `tesseract` | `redactor.py` (image mode) | `brew install tesseract` / `apt install tesseract-ocr` | | `ffmpeg` | `audio_transcriber.py` | `brew install ffmpeg` / `apt install ffmpeg` | ### Network access `openai-whisper` downloads model files (~140 MB) from OpenAI/HuggingFace servers **on first run only**. Cached at `~/.cache/whisper/`. All other scripts are fully local after installation. --- ## Script Reference | Script | Dependencies | Purpose | Example | |---|---|---|---| | `redactor.py` | pymupdf; Pillow + pytesseract (image mode) | PII redaction to file (PDF/image/text) | `python scripts/redactor.py --file doc.pdf --mode full --log` | | `doc_scanner.py` | opencv-python-headless, numpy, Pillow; img2pdf optional | Document scanning: edge detection, perspective correction, scan-quality output | `python scripts/doc_scanner.py --input photo.jpg --output scanned.png --mode bw` | | `expense_logger.py` | None | Add/list/edit/delete expense entries in CSV | `python scripts/expense_logger.py add --date 2024-03-15 --merchant "Starbucks" --amount 13.12 --file expenses.csv` | | `statement_parser.py` | None | Parse bank CSV export, categorize transactions | `python scripts/statement_parser.py --file statement.csv --output categorized.json` | | `report_generator.py` | None | Format categorized JSON into a markdown report | `python scripts/report_generator.py --file categorized.json --type bank` | | `timeline_manager.py` | None | Manage opt-in document processing timeline | `python scripts/timeline_manager.py show` | | `audio_transcriber.py` | openai-whisper, ffmpeg | Transcribe audio files to text | `python scripts/audio_transcriber.py --file meeting.mp3 --output transcript.txt` | | `table_extractor.py` | pdfplumber | Extract tables from PDFs to CSV or JSON | `python scripts/table_extractor.py --file document.pdf --output data.csv` | All scripts import only what they declare. Scripts with no declared deps use Python stdlib only. You can verify any script: "show me the source of [script name]". --- ## Script Import Verification | Script | Stdlib imports | Third-party | Network | |---|---|---|---| | `timeline_manager.py` | argparse, json, sys, datetime, pathlib, uuid, collections | None | Never | | `redactor.py` | argparse, re, sys, pathlib, dataclasses | pymupdf (PDF); Pillow + pytesseract (image) | Never | | `doc_scanner.py` | argparse, json, sys, time, pathlib | opencv-python-headless, numpy, Pillow; img2pdf optional | Never | | `expense_logger.py` | argparse, csv, json, sys, pathlib | None | Never | | `statement_parser.py` | argparse, csv, json, re, sys, collections, datetime, pathlib | None | Never | | `report_generator.py` | argparse, json, sys, collections, pathlib | None | Never | | `utils.py` | re, unicodedata, datetime, pathlib | None | Never | | `audio_transcriber.py` | argparse, sys, pathlib | openai-whisper | First-run model download only | | `table_extractor.py` | argparse, csv, io, json, sys, pathlib | pdfplumber | Never | --- ## Privacy & Data Handling | Aspect | Policy | |---|---| | Document content | Read locally within this session only. Not stored, indexed, or transmitted. | | Personal data for form autofill | Used only to complete the current form. Not written to any file. Not retained after session. | | Timeline log | Opt-in only. Confirmed by user before any entry is written. Contains no raw document content — only category-level summaries. | | Redacted output files | Written only to a path the user explicitly confirms. | | Audio transcripts | Written to a local file the user specifies. Model download on first Whisper use only. | | No telemetry | This skill has no analytics, usage
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.