image-bridge-local
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "image-bridge-local" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5a56b33df8d71db07051a9a8433f5424a1983019153a811319eb3f43471e3cdd. Verify the upstream source and version against https://skillhub.cn/skills/user_3f668d19/image-bridge-local before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Local image→text bridge skill that prefers a local Ollama model and falls back to Codex Vision on failure. Outputs Markdown semantic drafts ready for input into DeepSeek/OpenCode.
Introduction source: third_party · user_3f668d19 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Run: If `ollama_reachable` is false, skip local image recognition and jump to Step 3.
- Limits and differences
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: codex-image-bridge-local
description: 本地图片→文字桥接技能,优先走本地 ollama 本地模型,失败后回退到 Codex vision,输出可直接喂给 DeepSeek/OpenCode 的 Markdown 语义稿。图片→文字桥接(本地优先)
Build a bounded local-first image-to-text bridge. This skill standardizes how screenshots, charts, and document images are converted into text-model-safe Markdown for downstream text-only models.
Core Promise
vision-context.md- 图片关键内容 + OCR + 图表结构 + 关键信息不确定性
text-model-input.md- 当输入是 Markdown 且使用
--compose时,返回可直接喂给文本模型的一体化文稿
- 当输入是 Markdown 且使用
manifest.json- 每次执行后的元数据与环境状态,便于快速回溯
Trigger
Use this skill when the task is to:
- 把图片/截图转给文本模型理解
- 转换 Markdown 文档中的图片到可读文本说明
- 在本地优先、低 token 条件下完成图片语义提取
- 需要为 DeepSeek/OpenCode 等文本模型补齐图片上下文
If the user only wants image generation or style rendering, use codex-image-bridge instead.
Non-Trigger Boundary
Do not use this skill for:
- Prompt-to-image 任务(请走
codex-image-bridge) - 图片编辑、OCR 后修图、裁剪、拼接
- 需要外部 API 转码但不产出 Markdown 的场景
Constraints
- Image-to-text is privacy-first by default: local provider first, no image leaves the machine.
- 模型不稳定时按「本地 ollama → 更轻量本地模型 → 回退到 Codex vision」执行。
- 失败日志不应直接发给用户,优先输出可重跑建议和下一步动作。
Required Inputs
--check-env- 检查
ollama_reachable、codex_exists等关键状态
- 检查
- 图片输入
--image <path>
- Markdown 输入(可选)
--markdown <path> --compose
Output files are written under:
vision-context.mdtext-model-input.md(compose 时)manifest.json
脚本路径:
/Users/Admin/.agents/skills/codex-image-bridge-local/scripts/local_image_describe.py
Workflow
1) 环境检查
Run:
local_image_describe.py --check-env
If ollama_reachable is false, skip local image recognition and jump to Step 3.
2) 先本地识别
Default route:
local_image_describe.py --provider ollama --image "/path/to/screenshot.png"
Fallback sequence when local fails:
ollama切换到--ollama-model minicpm-v:8b(显存友好)ollama切换到--ollama-model llama3.2-vision:11b(语义密度优先)- 使用
--provider codex(云端回退)
3) 结果产出
For single-image usage:
local_image_describe.py --provider ollama --image "~/Desktop/架构图.png"
For article usage:
local_image_describe.py --provider ollama --markdown "/path/to/article.md" --compose
4) 后处理与投喂
将 vision-context.md 或 text-model-input.md 的内容复制给文本模型继续推理。
Provider Rules
ollama(默认): 本地优先,主打隐私和稳定成本codex(兜底): 当本地链路连续 3 次尝试失败时使用--ollama-model仅在显存或稳定性问题时调整,不必每次替换
Common Failure Map
| 症状 | 处理 |
|---|---|
ollama_connection_failed |
先 ollama serve,再重试 |
model_not_found |
ollama pull gemma4:12b,再尝试 minicpm-v:8b |
ollama_empty_response |
换 minicpm-v:8b,必要时回退到 codex |
codex_timeout |
延长超时后重试(例如 --timeout-seconds 360) |
| 图片缺失 | 先修正路径,再重跑 |
| 输出模糊 | 回退高精度模型或 codex 强制重跑 |
Output Contract
When returning user-facing results, include exactly:
provider与model实际使用情况- 成功输出文件名与路径
- 失败原因与下一步建议(若有)
- 是否建议再用 codex 回退
Red Flags
- 不要把原始图片直接喂给外部模型(除非用户明确要求)
- 不要在单步失败后重复同一失败参数
- 不要省略
--check-env中的关键异常项
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供本地优先的图片→文字桥接能力,解决隐私敏感场景下的图片语义提取需求
- 支持多模型 fallback 机制,提升执行成功率
- 输出标准化 Markdown 格式,便于下游文本模型处理
Highlights
- Trigger 和 Non-Trigger Boundary 描述清晰,覆盖多种使用场景
- 明确区分了与 codex-image-bridge 的适用边界
Areas to improve
-
frontmatter name 不一致 Reported severity: Minor
顶层 name 为 image-bridge-local,但 frontmatter 中 name 为 codex-image-bridge-local
Recommendation: 统一 name 字段,避免混淆
-
Document is too long Reported severity: Minor
SKILL.md 文档约600行,超出建议的500行限制
Recommendation: 考虑拆分部分内容为独立文档或简化描述
Highlights
- 结构完整,包含完整的执行流程、约束条件和异常处理方案
- 提供详细的 Common Failure Map,便于用户排查问题
Areas to improve
-
脚本文件缺失 Reported severity: Major
文档中引用了 local_image_describe.py 脚本,但未提供实际文件内容
Recommendation: 需提供完整的脚本实现,或明确说明用户需自行实现
Highlights
- 工具路径明确,参数设计合理
- 覆盖主要异常场景,并提供 fallback 机制
- 输出契约清晰,便于用户理解执行结果
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Run: If `ollama_reachable` is false, skip local image recognition and jump to Step 3.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.