version unknown

vision-skills

anionex@anionex⭐ 1.3k stars· last commit 25d ago· 4 open issues

>-

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

7.5/10
Verified
Oct 12, 2026

// RATINGS

⭐GitHub Stars
⭐⭐⭐⭐⭐ 1.3k on GitHubGitHub ↗

Very popular

🟢ProSkills ScoreAI Verified
7.5/10
📍

Not yet listed on ClawHub or SkillsMP

// README

agent-vision-toolkit

X (Twitter) GitHub stars GitHub forks License: MIT

Agent Skills Extensions Shell

What it thinks is what it sees — give any text-only coding agent eyes: image Q&A, long-screenshot OCR, frontend UI restoration, and GUI automation, as a vision toolkit plus a skill, with optional drop-in integration for Codex, Claude Code, Pi, Oh My Pi, and OpenCode.

🎯 An agent's vision capability doesn't have to live in the model — it can live in the harness.

🌐 中文 | English

If your agent already runs on a text-only model such as DeepSeek but is held back by the lack of multimodality — unable to see images, with every attempt to use an image tool blocked by the system — this repository provides tools, skills, and proxy integrations that let text-only models handle visual tasks on equal or even better footing. The goal is to make the experience of using a text-model agent as seamless as using a multimodal one, and ultimately let a tool-equipped text-model agent outperform a native multimodal agent that does not use this toolkit and its methods.

This repository provides two kinds of components:

  1. Vision tool CLIs — multiple CLIs, plus a skill that teaches the agent when to use each one. Any agent that can invoke a shell can use them.
  2. Seamless integration (optional upgrade) — a transparent local proxy and single-file native plugins, so images we paste and the agent's built-in image tools both work seamlessly, with no extra tool installation or additional prompting.

All code has been verified in real Codex + DeepSeek sessions, and the same pipeline has been live-verified end-to-end in Claude Code, Pi, Oh My Pi, and OpenCode.

If this project helps you or gives you some inspiration, feel free to star🌟 & fork.

❤️ Sponsor

Want to sponsor this project? See FUNDING.md or email [email protected].

Latest Update

2026-08-18 — Skill renamed: the included agent skill is now vision-skills (formerly vision-tools), so the name describes the capability rather than the underlying tools.

2026-08-13 — Native DeepSeek Harness support is now available. The new dsh-vision-toolkit linked package brings this toolkit into DSH Web and Headless profiles as a native Profile Bundle. It provides 10 structured visual tools for intent-aware image Q&A, grounding, detection, tracing, cropping, pixel diff, long-screenshot OCR, foreground extraction, dominant-color analysis, and HTML screenshots, while adding DSH Credentials, a managed isolated runtime, previewable Artifacts, Web Settings, and Agent-scoped progressive tool exposure.

The package is tracked here as a Git submodule and maintained independently at Anionex/dsh-vision-toolkit. Clone this repository with --recurse-submodules, or run git submodule update --init --recursive in an existing checkout.

Highlights

  • More than image descriptions — it captures what the LLM actually cares about: when viewing an image, it passes along the user's or model's latest intent, producing the details needed for the current turn instead of a broad, unfocused description.
  • Both pasted images and built-in image tools work: the agent can understand images pasted directly as well as images opened through its built-in tools.
  • A battle-tested methodology for visual tasks: the included skill teaches the agent what to inspect, which tool to choose, what sequence to follow, and how to verify the final result.
  • One-sentence install: ask your agent to install it — it follows the verified flow end to end, toolkit, skill, and seamless integration included.

Use-case Playbooks

The included vision-skills skill contains complete examples that an agent can follow directly. When to use them, the order in which to call tools, and how to verify the result are all documented in the corresponding skill guides:

Use caseWhat the agent learns to do
Extract long screenshots, chat histories, and scrolling pagesFind low-content cut bands, OCR each chunk in order, preserve chat speakers/timestamps/quotes, merge only duplicated overlap, and surface risky boundaries for verification. See the Telegram reference run →
Rebuild a UI from a screenshot or designReuse project components and assets first, then combine code-native UI, extracted visuals, rendered screenshots, and visual comparison to align a page or component.

// HOW IT'S BUILT

// FILES

2 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.

  • skills/vision-skills/SKILL.md7.9 KBupstream ↗
    ---
    name: vision-skills
    description: >-
      Local vision CLIs: glance (describe/ask/OCR an image), ground (locate a
      target, pixel box), detect (element inventory), trace (image to SVG
      geometry), crop (cut a pixel box to a file), and scripts/html_shot.py (HTML
      file to image). Use for any task involving an image — questions, text,
      splitting and transcribing long screenshots or chat histories, locating elements,
      comparing, rebuilding as HTML/SVG, digitizing a sketch or diagram, reading
      values off a chart, operating a GUI from screenshots — and to re-check an
      image yourself when a description you were given lacks a detail.
    ---
    
    # vision-skills
    
    Five local CLIs that give a text-only agent eyes. They read one shared
    vision config (`VISION_API_KEY` / `VISION_BASE_URL` / `VISION_MODEL` /
    `LANG`), plus the optional Python-client settings `VISION_API_PROTOCOL`,
    `VISION_REASONING_EFFORT`, and `VISION_USER_AGENT` — no extra credentials.
    
    Pick the tool by the question you are answering:
    
    | Question | Tool |
    |---|---|
    | "What does this image show / say?" | `glance` |
    | "Where is X?" — a thing you can name | `ground` |
    | "Where are all the Xs?" — every instance of a kind | `detect` |
    | "What is its exact shape, size, offset?" | `trace` |
    | "Cut this box out as its own image file" | `crop` |
    | "OCR this long screenshot / scrolling page / chat history" | `scripts/long_screenshot_ocr.py` |
    | "Extract the icon/logo foreground as transparent PNG — manual region or auto (cropped+scaled screenshots)" | `scripts/extract_fg.py` |
    | "Turn this HTML file into a viewport or full-page screenshot" | `scripts/html_shot.py` |
    | "Which colours dominate a region, and which palette value fits it?" | `scripts/dominant_colors.py` |
    | A relation none of them return — a gap, a distance between two located things | code over the pixels (Pillow) |
    
    `glance` answers what something is; `ground` and `detect` answer where.
    You give `ground` a description of a particular thing; you give `detect` a
    kind and it enumerates the instances.
    
    Both give real coordinates, but they are not pixel-exact: the box arrives
    on a 0-1000 grid and is scaled to your image, so the last pixel or few are
    not reliable. That is accurate enough to crop with, to click, to compare
    positions against. When a number has to be exact, `trace` derives it from
    the actual pixels — offsets, sizes, shapes.
    
    ## Use the provided tools before hand-rolled pixels
    
    Everything this toolkit ships a tool for, call the tool — do not rewrite
    it with Pillow in the middle of a task. The CLIs exist so the same pixel
    work is not hand-coded differently every time:
    
    - cut a box out of an image → `crop`, not `Image.open(...).crop(...)`
    - sample a region's palette → `scripts/dominant_colors.py`
    - compare two images → `scripts/pixel_diff.py`
    - vectorize to SVG → `trace`
    - locate / inventory elements → `ground` / `detect`
    - describe / OCR an image → `glance`
    - safely split, OCR, and merge a long screenshot → `scripts/long_screenshot_ocr.py`
    - HTML file to a viewport or full-page screenshot → `scripts/html_shot.py`
    
    Hand-written Pillow is only for what none of them return: a relation
    between two things you already located (a gap, a distance), a resize or
    overlay, drawing. If you catch yourself writing `.crop()`, `.convert()`,
    or histogram code where one of the tools above fits, replace it with the
    tool call — same coordinates, same box format, and the output feeds the
    next tool directly.
    
    ## glance — ask about an image
    
    ```bash
    glance <image>                                 # detailed description
    glance <image> -q "<question>"                 # targeted question (qualitative only)
    glance <image> --ocr                           # verbatim OCR
    glance <image> --region X1,Y1,X2,Y2 -q "..."   # zoom into a crop
    glance <img1> <img2> -q "..."                  # compare in ONE call
    ```
    
    When you do compare with `glance`, pass all paths to one call — separate
    calls cannot see both images, so two descriptions compared afterwards are
    two hallucination surfaces, not a comparison. `--region` uploads only the
    crop, so small text and icons become readable.
    
    But "what changed between these two?" is not a glance question. A one-word
    badge or a small shift is a rounding error to a vision model and exact to
    `scripts/pixel_diff.py`. Diff first to get the box, then `glance --region`
    that box to read what the change actually is.
    
    For a tall scrolling screenshot, do not send the whole image through one OCR
    call and accept the model's downscaling loss. Run the long-screenshot workflow,
    which finds low-content cut bands, invokes `glance` on each chunk, uses
    structured extraction for chat histories, merges only duplicated overlap, and
    writes a boundary audit:
    
    ```bash
    python3 scripts/long_screenshot_ocr.py work/page.png -o work/page.ocr.md
    python3 scripts/long_screenshot_ocr.py work/chat.png --mode chat --resume -o work/chat.ocr.md
    ```
    
    Read `references/long-screenshot-ocr.md` before using it. It defines the
    verification pass for unsafe cuts and chat-message boundaries.
    
    ## ground — locate a named target
    
    ```bash
    ground <image> "<target description>"
    ground <image> "<target>" --region X1,Y1,X2,Y2
    ```
    
    Output: `x1: .., y1: .., x2: .., y2: ..` in original-image pixels — with
    `--region` too (crop hits are mapped back).
    
    Provider-native 0-1000 boxes do not all use the same array order: Gemini uses
    `[y0, x0, y1, x1]`, while Qwen3-VL, Qwen3.5, and Qwen3.6 use
    `[x0, y0, x1, y1]`. Grounding code must select the order by model family (or
    an explicit override) before scaling to pixels; never parse every provider as
    Gemini-style `yxyx`.
    
    If several boxes come back numbered, your description matched more than
    one element rather than picking out a single thing. Narrow it with what
    distinguishes the one you mean — its text, its position, the block it sits
    in — and ask again.
    
    The box is a handle, not just an answer — it feeds the next call:
    
    ```bash
    $ ground screenshot.png "the send button"
    x1: 1067, y1: 841, x2: 1108, y2: 881
    $ glance screenshot.png --region 1067,841,1108,881 -q "is it enabled or greyed out?"
    ```
    
    That two-step is how you inspect anything too small to survive a
    full-image pass.
    
    ## detect — find every instance of a kind
    
    ```bash
    detect <image>                        # every UI element
    detect <image> "buttons"              # one kind only
    detect <image> --region X1,Y1,X2,Y2   # inside one box
    ```
    
    You name a particular thing for `ground`; you name a kind for `detect` and
    it enumerates the instances. Output is a numbered list with each item's
    visible text and box. A full-screen
    pass is a fast first draft — counts vary run to run on dense screens. For
    completeness, detect the layout blocks first, then `detect --region` each
    block.
    
    ## trace — exact shape geometry (local, no vision API)
    
    ```bash
    trace <image>                                  # b/w spline SVG to stdout
    trace <image> --polygon                        # boxy diagrams/wireframes
    trace <image> --region X1,Y1,X2,Y2 -o out.svg  # crop first
    ```
    
    Coordinates come from the actual pixels, not a model's estimate. Flat,
    high-contrast graphics only; text becomes curves (pair with `--ocr` when
    the text matters). Small images are upscaled automatically before tracing,
    so a 30px icon traces as readily as a screenshot — size is not a reason to
    skip the tool. Before shipping or reusing a traced SVG, read
    `references/restore-graphic.md` — it holds the reuse traps and the
    ship-vs-hand-write call.
    
    ## crop — cut a pixel box out of an image (local, no vision API)
    
    ```bash
    crop <image> --region X1,Y1,X2,Y2             # writes <image-stem>.crop.png next to the input
    crop <image> --region X1,Y1,X2,Y2 -o out.png
    crop <image> --region X1,Y1,X2,Y2 --scale 4   # upscale the cut-out 4x (LANCZOS) first
    ```
    
    The same X1,Y1,X2,Y2 pixel boxes `ground`/`detect` print, clamped to the
    image bounds. Once a box is worth keeping — the same crop is about to feed
    `pixel_diff`, `dominant_colors`, and `trace` in turn — cut it to a file
    once 
  • README.mdupstream ↗

    Contents are not inlined in the catalog. Open the upstream file.

Plain-text copy, no login: /skill-bundles/anionex-agent-vision-toolkit-skills-vision-skills.md

// REPO STATS

1.3k stars
4 open issues
Last commit: 25d ago