skills/extract/SKILL.md
Extract text and structured data from images and PDFs using OpenAI Vision
npx skillsauth add hasna/skills extractInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Extract text, data, and structured content from images and PDF documents using OpenAI Vision.
# Extract text from an image
bun run src/index.ts extract --input ./receipt.png --output ./receipt.txt
# Extract as Markdown from a PDF
bun run src/index.ts extract -i ./document.pdf -o ./document.md -f markdown
# Extract with custom prompt
bun run src/index.ts extract \
--input ./invoice.png \
--format json \
--prompt "Extract invoice number, date, total amount, and line items"
# High-detail extraction for small text
bun run src/index.ts extract \
--input ./handwriting.jpg \
--detail high \
--format text
| Option | Short | Description |
|--------|-------|-------------|
| --input | -i | Input file path (required) |
| --output | -o | Output file path (optional) |
| --format | -f | Output format: text, markdown, json |
| --prompt | -p | Custom extraction prompt |
| --model | -m | OpenAI model (default: gpt-4o) |
| --detail | -d | Image detail: low, high, auto |
export OPENAI_API_KEY="your-openai-key"
bun run src/index.ts extract \
--input ./receipt.jpg \
--format json \
--prompt "Extract store name, date, items with prices, subtotal, tax, and total"
bun run src/index.ts extract \
--input ./report.pdf \
--format markdown \
--output ./report.md
bun run src/index.ts extract \
--input ./notes.jpg \
--detail high \
--prompt "Transcribe the handwritten text, preserving the structure"
testing
Merge a GitHub pull request, merge when green, use a merge queue, or decide whether a pull request is mergeable. Use only for explicit merge intent, not ordinary review.
development
Generate premium performance audit reports for web apps, APIs, or SaaS surfaces with metrics, findings, budgets, remediation plans, and manifest metadata.
data-ai
Generate premium customer feedback reports from reviews, support tickets, surveys, call notes, or raw feedback with clusters, sentiment, root causes, roadmap recommendations, evidence, and manifest metadata.
development
Generate high-quality PDF documents from markdown, HTML, or templates