Agent skill

Reading Business Cards

by oaustegard in oaustegard/claude-skills

Preprocesses photographed sheets of many business cards — slicing each into overlapping high-resolution tiles and de-glaring them with container tooling (OpenCV/ImageMagick) — then reads every card…

MITAuto-check passedMedia & Creative

Install Reading Business Cards

skills CLI
$ npx skills add oaustegard/claude-skills --skill reading-business-cards -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install oaustegard/claude-skills reading-business-cards --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/oaustegard/claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/reading-business-cards .claude/skills/reading-business-cards && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
reading-business-cards
GitHub stars
150
Token cost
~2.6k tokens
SKILL.md length
1,452 words
Files
5 (incl. scripts)
Skills in repo
67
Repo updated
First seen
Licence
MIT

At a glance

Preprocesses photographed sheets of many business cards — slicing each into overlapping high-resolution tiles and de-glaring them with container tooling (OpenCV/ImageMagick) — then reads every card…

  • Works in 3 steps: Tile the sheets → Read and extract → Triage the failures
  • A user has photos
  • SKILL.md covers Why preprocess first, Stage 1 — Tile the sheets, Stage 2 — Read and extract and Stage 3 — Triage the failures, plus 3 more sections
  • Runs Python scripts from its folder; calls python3; needs API_KEY

What it does

Reading Business Cards is an agent skill from oaustegard/claude-skills. Preprocesses photographed sheets of many business cards — slicing each into overlapping high-resolution tiles and de-glaring them with container tooling (OpenCV/ImageMagick) — then reads every card via cheap parallel temperature-0 API calls (Haiku or Sonnet) using a distilled extraction prompt, and writes deduped contact fields to a CSV. Use when a user has photos or scans holding multiple business cards per image, mentions glare or unreadable cards, batch card transcription, contact extraction, or wants to read…

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts (for example `CHANGELOG.md`, `prompts/haiku_extract.md` and `scripts/extract_cards.py`).

It sits in Media & Creative, covering Transcription and CSV and tabular files. It works with OpenCV. The repository describes itself as: My collection of Claude skills. The licence is MIT.

When your agent uses it

  • A user has photos
  • Scans holding multiple business cards per image
  • Unreadable cards
  • Batch card transcription

Example prompts

  • “business cards”
  • “card scan”
  • “extract contacts”
  • “/reading-business-cards”

Requirements

  • Python 3
  • A credential in API_KEY

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Tile the sheets
  2. Read and extract
  3. Triage the failures

What it can do on your machine

Read from SKILL.md and the folder at commit 90b0f1b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Reading Business Cards loads about 2.6k tokens when it runs. Until then it costs about 180 tokens; SKILL.md has 1,452 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~180
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from oaustegard/claude-skills at commit 90b0f1b, republished under its MIT licence (© oaustegard). 1,452 words, ~2,619 tokens.

Download SKILL.mdSave it as .claude/skills/reading-business-cards/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
reading-business-cards
description
Preprocesses photographed sheets of many business cards — slicing each into overlapping high-resolution tiles and de-glaring them with container tooling (OpenCV/ImageMagick) — then reads every card via cheap parallel temperature-0 API calls (Haiku or Sonnet) using a distilled extraction prompt, and writes deduped contact fields to a CSV. Use when a user has photos or scans holding multiple business cards per image, mentions glare or unreadable cards, batch card transcription, contact extraction, or wants to read many cards without an expensive in-conversation pass. Triggers on 'business cards', 'card scan', 'extract contacts', 'read these cards', 'card glare', 'too many cards per photo'.
metadata.version
2.3.0

Reading Business Cards

Turn photos or scans that pack many business cards into one image into a clean contact list. The job is two stages, in order: preprocess with the script, then read the tiles it produces. Read the tiles, not the original sheet — the original is too low-resolution per card once the model downscales it.

Why preprocess first

The model downscales any input image to ~1568px on the long edge before it sees it. A phone photo of 50-60 cards is often 4000-6000px; downscaled to one image, each card lands ~150px wide — unreadable, which forces you onto a more expensive model. The script cuts the sheet into overlapping tiles, each near the downscale cap (~1300px), so every card in a tile keeps 500px+ of real resolution. That resolution recovery is what lets a cheaper model (Sonnet) read cards that only the expensive one (Opus) could read before — and it lets Opus read cards from far fewer tiles. The grid is sized to the reader model (see Stage 1): pass --model and the script tiles aggressively for Haiku, moderately for Sonnet, and least for Opus, because a stronger reader has a lower resolution floor. The floor is set by the pixels, not the model's intelligence: at ~220px/card (a whole dense sheet) even Opus reads only company and some names, not phone/email — so even Opus needs a few tiles for fine print on dense sheets.

De-glaring (illumination flattening + local contrast) is applied to each tile. It corrects uneven lighting and the haze off glossy cards and plastic binder sleeves. It cannot recover text where glare has clipped pixels to pure white — that data is gone (see Limits).

Stage 1 — Tile the sheets

The person only provides the images and the goal ("read these cards"). Derive every parameter yourself; do not ask them to choose grid sizes or flags.

Real sheets are messy: cards scattered at angles, packed in binder sleeves, overlapping, piled. Detecting individual card boundaries fails on all of these. Tiling ignores card boundaries — it slices the sheet into a grid of overlapping rectangles. Each tile holds a few cards at high resolution; the overlap means a card split by one tile's edge is whole in its neighbour.

Run it sized to whichever model will read the tiles — pass --model and the script measures each sheet's native card size, then derives the coarsest grid whose cards still clear that model's OCR floor:

bash
python3 scripts/prep_cards.py /mnt/user-data/uploads --out /home/claude/cards_work --model opus

--model opus|sonnet|haiku (or a full model id string) sets the floor: Opus tiles least, Haiku most. Default is sonnet (the safe middle). On a dense ~660px-card sheet this yields roughly 6 tiles/sheet for Opus, 9-12 for Sonnet, 12-20 for Haiku. If the reader is the in-conversation model (the no-key path, below), set --model to match whatever you're running. Overrides: --target-px forces an explicit tile size, --card-px overrides the auto card-size estimate, --floor-px overrides the per-model floor.

It prints the grid it chose per image (e.g. auto 3x2 from 4284x5712 [model=opus floor=350 card~668px -> target 2993]) and writes tiles to cards_work/tiles/ (<sheet>__r{R}_c{C}.png) plus a manifest.json. If a sheet's cards are smaller than the model's floor even at native resolution, it warns — that sheet needs a re-shoot, not a finer grid.

Then verify and self-adjust by inspection — this is your judgment, not the person's:

  • View one representative tile. If the cards in it are crisp and fully legible, proceed to read them all.
  • If cards look small or dense (text fuzzy), rerun with a smaller cap for a finer grid: --target-px 1100.
  • If cards are clipped in half at tile edges, rerun with more overlap: --overlap 0.2.
  • If the cards are matte and text-only and a light haze remains, rerun with --binarize. Skip binarize for color or logo-heavy cards — it flattens them.

De-glaring (illumination flatten + local contrast) is on by default and is non-destructive. Decide on the extra flags by looking at a tile, then commit to the full read.

Stage 2 — Read and extract

There are two ways to read the tiles. In-session reading is the universal path and works for everyone, key or no key: view the tiles with the view tool and transcribe them in this conversation, applying the rules in prompts/haiku_extract.md (one row per fully-visible card, skip edge-clipped cards that are whole in a neighbour, never invent, confidence low when unsure). The coarse model-sized grid is what makes this tractable — a dozen tiles per sheet, not eighty — and the conversation model reading them is exactly the model that reads cards well. Cost here is the subscription's usage allowance, not per-token dollars; the coarser the grid (Opus), the fewer reads.

The API runner is an optional optimization, only when an API key is present (API_KEY in env / /mnt/project/claude.env). It sends each tile to a model in a separate parallel call (temperature 0 on legacy models; current models reject sampling parameters) using the distilled prompt, dedupes, and writes the CSV — reading outside the chat context, so it is cheaper per token and runs many tiles at once. Without a key it cannot run; use the in-session path. The runner bills the API account per token; it buys parallelism and a cheaper meter, never accuracy.

Show full SKILL.md (615 more words)Show less
Running the API runner (keyed path)

Validate the model on a sample before the full run. Haiku (default claude-haiku-5-5, $0.10/$0.50 per MTok, ~20x cheaper per token than Sonnet 5.5) has weaker OCR; on phone photos of loose or angled cards it confidently misreads names and marks the errors high confidence. (Gemini's free tier was tested 2026-06-15 and read these poorly — do not reach for it here.) Tested guidance:

  1. Sample run with Haiku:
    bash
    python3 scripts/extract_cards.py --work /home/claude/cards_work \
        --out /home/claude/sample.csv --limit 8
  2. View 2 of the tiles it read and compare against sample.csv. Check: are names and companies correct? Is confidence honest (clear cards high, blurry/angled low)?
  3. Decide:
    • Clean, high-resolution, upright cards (e.g. a flatbed scan), Haiku reads them correctly → keep Haiku for the full run.
    • Errors, or high confidence on wrong text → switch to Sonnet: --model claude-sonnet-5-5. Sonnet via this same script is far cheaper than reading tiles in-conversation and is accurate on messy phone photos.
  4. Full run with the chosen model and your real output path:
    bash
    python3 scripts/extract_cards.py --work /home/claude/cards_work \
        --out /mnt/user-data/outputs/cards.csv [--model claude-sonnet-5-5]

The script prints raw vs unique counts and the low-confidence / parse-error tally. The CSV columns are sheet, tile, name, title, company, phone, email, website, address, confidence.

Stage 3 — Triage the failures

From the finished CSV, take every row with confidence = low (and any parse-error). Re-run just those — extract the relevant tiles into a small work dir and run extract_cards.py on them with --model claude-sonnet-5-5 (or Opus in-chat for the worst). Cards still wrong after that are too small, angled, or glare-clipped in the source — flag them for a re-shoot rather than re-running.

Note Haiku's confidence is not reliable enough to drive this triage on its own; if you used Haiku, sanity-check high rows too, or just use Sonnet for the run.

Reading tiles by hand (fallback)

If the API runner is unavailable (no key), you can read tiles yourself with the view tool, applying the rules baked into prompts/haiku_extract.md: one row per fully-visible card, skip edge-clipped cards, never invent, confidence low when unsure. Work in batches and write the CSV incrementally. This burns far more tokens than the runner — prefer the runner.

Other layouts

Two narrower modes exist for clean inputs. Choose them yourself only when a spot-check shows the cards are cleanly separated and unrotated; never the default:

  • --rows R --cols C (grid slice): exact, for cards in a perfect non-overlapping grid. Builds numbered montages instead of tiles.
  • --detect (contour auto-detect): crops individual well-separated cards. Best-effort only — it merges touching cards and misses rotated/glare-covered ones. On real scattered or binder sheets it under-detects badly; stay on the default tiling.

In both, the read units are numbered montages (montage_NNN.png) whose cells carry a red #index matching the manifest; extract one row per #index.

Limits

  • Tiling recovers resolution and corrects lighting; it does not invent pixels that glare clipped to white. Severe specular blowout is unrecoverable — those cards need a re-shoot under diffuse light.
  • Cards photographed at an extreme angle or far smaller than their neighbours may still read low; a finer tile grid helps, a re-shoot helps more.
  • --binarize trades color/logo fidelity for text crispness. Use it only for text-only cards, not as a default.
  • Model accuracy is the real bottleneck, not the pipeline. On tested phone (Haiku 4.5, Sonnet 4.x; not re-measured on the 5.5 models) photos of loose/angled cards, Haiku confidently misread names and companies (e.g. "Clint Emerson/CableQuest" → "Cliff Emerson/Quest") and marked errors high confidence; its inconsistent misreadings also defeated cross-tile dedup. Sonnet on the identical tiles read them correctly with calibrated confidence. Reserve Haiku for clean, high-resolution, upright scans, and validate it on a sample (Stage 2) before trusting a full run.

© oaustegard, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts) in reading-business-cards of oaustegard/claude-skills.

  • SKILL.md
  • CHANGELOG.md
  • prompts/haiku_extract.md
  • scripts/extract_cards.py
  • scripts/prep_cards.py

Open the folder on GitHubat commit 90b0f1b

Compare with similar skills

Reading Business Cards next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Reading Business Cards compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Reading Business Cards this skilloaustegard/claude-skills150—~2.6kAutomated safety check: PassMIT
Srt Whiteboard Animationgeeklee/srt-whiteboard-animation4.2k—~1.8kAutomated safety check: PassMIT
Env Setupwwwzhouhui/skills_collection283—~3.5kAutomated safety check: NotesNone
Edu Math Videowy51ai/edulab1.4k—~2.5kAutomated safety check: NotesApache-2.0
TranscribeJetBrains/skills3664 repos~776Automated safety check: PassApache-2.0
Bilibili Transcribechubbyguan/chubbyskills1.2k—~578Automated safety check: NotesMIT

Similar skills

  • Srt Whiteboard Animation

    geeklee/srt-whiteboard-animation

    将 SRT 字幕做成暖米黄纸张底的白板手绘动画:读字幕→输出配图策略→确认后生成统一风格线稿→按叙事语义标注分区→预览台调整→渲染 MP4。编排沿用分区遮罩揭示(annotation.json / sequence / startMs / protectedRegions),但每个区域内的落墨换成 stream 的连续笔迹(骨架/网格 ink→color)。当用户提供 SRT…

    4.2k GitHub stars~1.8k tokensUpdated 2 mo ago
    Media & CreativeAuto-check passed
  • Env Setup

    wwwzhouhui/skills_collection

    Checking and provisioning the machine's environment for the video-agent-kit plugin — probing for ffmpeg/ffprobe that actually carry the encoders and filters we render with (libx264/aac/libmp3lame…

    283 GitHub stars~3.5k tokensUpdated 5 days ago
    Media & CreativeAuto-check: notes
  • Edu Math Video

    wy51ai/edulab

    A skill your agent uses when asked to make an explainer / walkthrough video (讲解视频、解题视频、例题精讲、微课) for a math problem (数学题, geometry, algebra, functions, motion/行程 problems), from a problem screenshot…

    1.4k GitHub stars~2.5k tokensUpdated yesterday
    Media & CreativeAuto-check: notes
  • Transcribe

    JetBrains/skills

    Official

    Transcribe audio files to text with optional diarization and known-speaker hints.

    366 GitHub starsUsed in 4 repos~776 tokens
    Media & CreativeAuto-check passed
  • Bilibili Transcribe

    chubbyguan/chubbyskills

    哔哩哔哩视频 → 下载 → 转录 → 存为 Markdown 的完整工作流. An agent skill from chubbyguan/chubbyskills.

    1.2k GitHub stars~578 tokensUpdated 3 days ago
    Media & CreativeAuto-check: notes
  • Horizon Speech

    peters/horizon

    Check that a microphone is usable for Horizon dictation and report which layer is at fault — no signal, bad level, or a genuine model/accent limit.

    716 GitHub stars~1.8k tokensUpdated today
    Media & CreativeAuto-check passed

More from oaustegard/claude-skills

All 67 skills in this repo
  • Vega-Lite Interactive Charts

    oaustegard/claude-skills

    Builds interactive Vega-Lite charts from uploaded data: analyzes the fields, picks five to ten fitting chart types, and produces a React artifact with the data embedded inline.

    150 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Single-File HTML Composer

    oaustegard/claude-skills

    Builds self-contained single-file HTML pages such as reports, decks, postmortems, flowcharts and prototypes from a small spec using a bundled Python composer and templates.

    150 GitHub stars~3.2k tokensUpdated yesterday
    Auto-check passed
  • Deciding With Confidence

    oaustegard/claude-skills

    Routes, triages, flags and rates a piece of text with a probability for every option: which department or queue a ticket goes to, which intent a message expresses, whether a yes/no condition holds…

    150 GitHub stars~2.6k tokensUpdated yesterday
    Auto-check passed
  • Declauding

    oaustegard/claude-skills

    Rewrites model-sounding prose into plain technical writing and checks that every claim survives, for PR text, docs, commit messages and similar drafts.

    150 GitHub stars~5.2k tokensUpdated yesterday
    Auto-check passed
  • Preact Developer

    oaustegard/claude-skills

    Guides building standards-based Preact apps with native-first choices, HTM syntax, import maps and vendored ESM, from single-file demos to larger builds.

    150 GitHub stars~4.6k tokensUpdated yesterday
    Auto-check passed
  • Bluesky Zeitgeist Sampler

    oaustegard/claude-skills

    Deprecated sampler that captures short windows of the Bluesky firehose, clusters trending terms and builds an HTML report; replaced by the browsing-bluesky skill.

    150 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Reading Business Cards

What does Reading Business Cards do?

Preprocesses photographed sheets of many business cards — slicing each into overlapping high-resolution tiles and de-glaring them with container tooling (OpenCV/ImageMagick) — then reads every card…. Reading Business Cards is an agent skill from oaustegard/claude-skills. Preprocesses photographed sheets of many business cards — slicing each into overlapping high-resolution tiles and de-glaring them with container tooling (OpenCV/ImageMagick) — then reads every card via cheap parallel temperature-0 API calls (Haiku or Sonnet) using a distilled extraction prompt, and writes deduped contact fields to a CSV.

When should I use Reading Business Cards?

Reading Business Cards fits situations like: A user has photos; scans holding multiple business cards per image; unreadable cards; batch card transcription.

How do I install Reading Business Cards in Claude Code?

Run `npx skills add oaustegard/claude-skills --skill reading-business-cards -a claude-code`. Or copy the skill folder (reading-business-cards in oaustegard/claude-skills) into .claude/skills/reading-business-cards in your project. Claude Code loads it when a task matches its description.

How do I install Reading Business Cards in Codex?

Run `npx skills add oaustegard/claude-skills --skill reading-business-cards -a codex`. Or copy the skill folder (reading-business-cards in oaustegard/claude-skills) into .agents/skills/reading-business-cards in your project. Codex loads it when a task matches its description.

Can I use Reading Business Cards in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add oaustegard/claude-skills --skill reading-business-cards -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/reading-business-cards, .gemini/skills/reading-business-cards, .github/skills/reading-business-cards and .opencode/skills/reading-business-cards in your project.

What does Reading Business Cards need to run?

Going by SKILL.md and its folder, Reading Business Cards needs Python for the scripts in its folder, the command-line tools its instructions call (python3) and credentials named API_KEY. Our summary lists: Python 3; A credential in API_KEY.

Does Reading Business Cards access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Reading Business Cards safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Reading Business Cards use?

Reading Business Cards is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Reading Business Cards use?

About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Reading Business Cards?

Skills that share tags, products or a category with Reading Business Cards: Srt Whiteboard Animation (geeklee/srt-whiteboard-animation, 4.2k stars), Env Setup (wwwzhouhui/skills_collection, 283 stars), Edu Math Video (wy51ai/edulab, 1.4k stars) and Transcribe (JetBrains/skills, 366 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Reading Business Cards?

oaustegard (a GitHub user) maintains it in oaustegard/claude-skills, which has 150 GitHub stars. The repository holds 67 skills in this directory. The repository was last updated on October 9, 2026.

Source: oaustegard/claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.