ModLens — Vision Bridge
Gives text-only models plug-in vision by routing any image path or placeholder through the modlens CLI into structured JSON evidence.
UtilitiesIntermediate★ 5,074⑂ 156AI score 9/10Last updated: Nov 24, 2026
What it does
- Fires automatically whenever an image path/URL (.png, .jpg, .webp, .gif, .heic…) or a placeholder like
[Image #1]/[Unsupported Image]shows up in the conversation. - Forbids home-grown OCR (no PIL, no tesseract) and instead calls the
modlensCLI to return full text transcription, layout regions, semantics and visual clues as JSON. - Runs
modlens guardon the first read of a session so models that already have native vision don't waste a call. - Ships a launcher plus an explicit runtime fallback chain (PATH
modlens→npx→bunx) and clear retry rules for schema mismatches and timeouts. - Also handles install/configuration questions for providers: Gemini API key, OpenAI-compatible endpoints, Claude API, Claude Code CLI.
Who it's for
- Anyone driving a text-only model or a CLI harness that can't render images.
- Developers who need exact log lines, error text or tables pulled out of screenshots.
- Operations and back-office users digitising receipts, scanned docs or whiteboard photos.
Examples
- "Check the error in
~/Desktop/error.png" → the skill runsmodlens -i ~/Desktop/error.pngand quotes the stack trace fromresult.ocr.full_text. - A pasted screenshot that only renders as
[Image #1]→ it followsreferences/find-image.mdto resolve the real path, then analyses it. - "How do I point modlens at my Gemini key?" → it runs
modlens doctorandconfig show, then applies the recipe fromreferences/configure.md.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/liustack/modlens/HEAD/skills/modlens/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the skills/modlens folder from the GitHub repo liustack/modlens into my ~/.claude/skills/modlens/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/liustack/modlens.git /tmp/modlens && mkdir -p ~/.claude/skills && cp -r /tmp/modlens/skills/modlens ~/.claude/skills/modlens⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and confirm you have Node.js 22.19+ (
node -v, https://nodejs.org) or Bun (https://bun.sh). - Clone the repository:
git clone https://github.com/liustack/modlens.git /tmp/modlens - Create the skills folder and copy it in:
mkdir -p ~/.claude/skills && cp -r /tmp/modlens/skills/modlens ~/.claude/skills/modlens - Restart Claude Code and verify
modlensappears in your skill list. - Run
npx --yes --package @liustack/modlens@3.27.6 modlens doctorto see which providers are available on this machine. - If no key is configured, run
modlens config showand follow the prompts to add a Gemini API key, an OpenAI-compatible endpoint, or Claude credentials. - Test it by sending an image path, e.g. "read the text in screenshot.png".
View source on GitHub ↗License: MIT