DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-vision-skill

D

dsh-vision-skill

Manifest valid2

DSH standard vision skill: Qwen dynamic-resolution preprocessing + OpenAI-compatible VLM chain with failover/429 backoff, structured evidence mode, local tesseract-first long-screenshot OCR, paste-to-path (no framework patch). 8 tools + runtime skill.

UI (client)hasBundlePatch

dsh-plugins / dsh-vision-skill

dsh-vision-skill packages the General_skills/vision-skill image workflow as a native DeepSeek Harness plugin. It uses DSH extension points for runtime skills, tools, credentials, sessions, the web server, and client injection.

Since v0.4, pasted images are uploaded by the client to a workspace path before the message is sent. The model receives a path and calls the plugin. The older pi-ai image-to-path patch remains available for compatibility.

Tools

| Name | Purpose | |---|---| | vision | Runtime skill that exposes the image tools on demand | | vision_analyze | Analyze a local image in general, OCR, table, code, error, or evidence mode | | vision_ocr | Extract visible text while preserving its layout | | vision_ground | Locate a named target and return pixel and normalized boxes | | vision_detect | Enumerate elements such as UI controls with numbered boxes | | vision_dominant_colors | Calculate dominant colors locally without a vision API | | vision_long_screenshot_ocr | OCR a long screenshot in overlapping chunks, using local Tesseract before a VLM fallback | | vision_clipboard | Save a clipboard image to the workspace for recognition | | vision_activate | Explicitly expose the tool set when automatic skill activation is unavailable |

vision_analyze evidence mode returns summary, ocr_full_text, reading-order layout, semantic entities and relations, uncertainty, and visual fields. Results can be cached by image SHA-256, mode, budget, crop, and prompt. The cache has configurable TTL and entry limits.

Request flow

The image script applies Qwen's dynamic-resolution preprocessing and sends the result to an OpenAI-compatible multimodal endpoint. Grounding accepts either JSON or <ref><box> output and converts the model's 0 to 1000 coordinates to pixels. Long screenshots run local tesseract first, then use the configured VLM when Tesseract is unavailable.

The plugin accepts a local image path as text. Direct paths work in every environment. A Windows screenshot can be saved from the clipboard with vision_clipboard. In v0.4, pasting into the DSH input uploads the image to .dsh-vision/pasted/ and inserts a path reference into the message. The message therefore contains text rather than an image block, so text-only DSH adapters can still call the vision tools.

Installation

For a normal profile installation:

dsh plugin --profile web add github:DDDFXYqiming/dsh-vision-skill

For local development, add a link to the web profile and run pnpm install there:

git clone https://github.com/DDDFXYqiming/dsh-vision-skill.git
cd dsh-vision-skill
# add dsh-vision-skill: link:<absolute-path> to the profile dependencies

The bundled cordis.patch.yml contributes id: vision-skill. When overriding it in a profile, use one complete bare entry and do not insert a second entry with the same id. Patch replacement is line-based, so include every config field that must remain active.

- id: vision-skill
  config:
    apiUrl: 'https://api.example.com/v1/chat/completions'
    model: 'your-vision-model'
    credential: 'VISION_API_KEY'
    visionProviders:
      - apiUrl: 'https://api.example.com/v1/chat/completions'
        model: 'your-vision-model'
        credential: 'VISION_API_KEY'
    tesseract: tesseract
    tesseractLangs: chi_sim+eng
    pasteMaxBytes: 10485760
    cache: true
    cacheTtlSeconds: 3600
    cacheMaxEntries: 200

credential refers to a DSH credential and is preferred over an inline apiKey. Provider entries are tried in order; a 429, 5xx, or network error can move the request to the next entry. Store the credential in $DSH_HOME/.credentials.yaml.

The main options include timeoutMs with a default of 180 seconds, concurrency with a default of 2, allowedDirs for path fencing, and the cache controls above. progressive: false registers the full tool set globally instead of waiting for the runtime skill.

Adapter support

| Adapter or scene | Pasted image | Notes | |---|---|---| | dsh-llm-deepseek | Works without a patch | Recent DSH versions include image-to-path conversion. | | dsh-llm-pi-ai | Works through v0.4 paste-to-path | The older vendor patch is retained for installations that still use the original attachment path. | | Native multimodal model | Image is sent directly | The model handles the image without conversion. |

The compatibility patch is optional and machine-specific. After a DSH upgrade, rerun it only when the old attachment behavior is required, then restart the host.

powershell -File scripts\reapply-pi-ai-vision-patch.ps1

The patch edits the vendor dsh-llm-pi-ai package and contains a local profile path. Change that path before using it on another machine. It is excluded from the package file list.

Tests and dependencies

npm run check
python -m unittest discover -s tests -v
python scripts/vision.py --check --no-api

The plugin needs Node.js with DSH (@deepseek-ai/dsh-tools, @deepseek-ai/dsh-credentials, and @deepseek-ai/schemastery), Python 3 with Pillow, Tesseract for the local OCR fast path, and a credential for the chosen OpenAI-compatible vision model.

Examples

识别这张图 <路径>        → vision_analyze
OCR 这张图 <路径>        → vision_ocr
找到图中的 <目标>        → vision_ground
清点图里的按钮          → vision_detect
分析图片主色            → vision_dominant_colors
提取长截图文字          → vision_long_screenshot_ocr
识别剪贴板截图          → vision_clipboard

All image tools receive a path, not the image bytes. The path must resolve inside the session workspace, the DSH attachment directory, or a configured allowedDirs entry.

Related

  • SKILL.md contains the runtime instructions loaded by DSH.
  • templates/.env.example documents standalone script configuration.
  • General_skills/vision-skill contains the shared image workflow.
  • The runtime skill name is vision. Avoid installing another vision skill in a project or user scope, because DSH resolves project, runtime, and user skills by precedence.

License

MIT

Comments

Loading…

From the same category

archify

by tt-a1i

Agent skill for beautiful, verifiable architecture, workflow, sequence, data-flow, and lifecycle diagrams—self-contained HTML with motion and crisp export.

Workflow & AutomationTools & CapabilitiesManifest valid

67k

4.3k/wk

MIT

JavaScript

Sep 19, 2026

dsh plugin --profile web add @tt-a1i/archify-dsh

DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.

Tools & CapabilitiesManifest valid

41.7k

332/wk

MIT

Aug 24, 2026

dsh plugin --profile web add dsh-plugin-reactive-resume

by anywhere-labs

为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。

Tools & CapabilitiesManifest valid

27.6k

281/wk

MIT

TypeScript

Sep 19, 2026

dsh plugin --profile web add dsh-plugin-desktop

by Tencent

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

27.1k

811/wk

NOASSERTION

Go

Sep 19, 2026

dsh plugin --profile web add @wxg-prc-cpg/dsh-weknora

by titanwings

Distilly — Distill how they think into reusable Skills for any Agent or Bot. Formerly Colleague Skill(原同事 Skill).

Tools & Capabilities

24.9k

MIT

TypeScript

Sep 16, 2026

Index only — not installable

by Nagi-ovo

Enhancement suite for Gemini, AI Studio, Claude & ChatGPT — plus a prompt manager for any websites, DeepSeek Harness included. / 面向 Gemini、AI Studio、Claude 与 ChatGPT 的增强套件;其中的提示词管理器可用于任意网站,如 DeepSeek

Tools & Capabilities

20.1k

GPL-3.0

TypeScript

Sep 18, 2026

Index only — not installable