[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75M719FJ3D75G010QKKGS9P":3,"skill-same:01M75M719FJ3D75G010QKKGS9P":55},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":17,"linkOnly":18,"markdownContent":19,"markdownBody":19,"frontMatter":20,"refName":21,"commitSha":22,"skillDirectory":23,"forksCount":24,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":27,"updatedAt":28,"install":29,"resources":42},"01M75M719FJ3D75G010QKKGS9P","vision-bridge",null,"ydf0509\u002Flc-agent","ydf0509","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F26890690?v=4","01M75KX7AQYS5FN6KPSDJAVM43","01M75KX7C61TGAM4RM0M3K4XG6",8,"MIT","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fvision-bridge\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"\u003C!-- --- 暂时屏蔽，现在模型都要多模态了。\nname: vision-bridge\ndescription: Give vision capability to non-vision LLMs (e.g. DeepSeek) by sending images to an external vision model (default agnes-2.5-flash, OpenAI-compatible) and returning text descriptions. 为无视觉能力的大模型（如 DeepSeek）提供识图能力：把图片发给外部视觉模型（默认 agnes-2.5-flash，OpenAI 兼容协议）并返回文字描述。Use this skill whenever the user shares a local image path or network image URL, a message contains \"Saved attachments:\", or the user asks to describe\u002Frecognize\u002Fanalyze\u002Finterpret an image, extract text from an image (OCR), or understand screenshots, charts, tables, QR codes, or memes — do NOT use the Read tool to look at images (the underlying model has no vision). 当用户分享本地图片路径或网络图片 URL、消息中出现 \"Saved attachments:\"、用户要求描述\u002F识别\u002F分析\u002F解读图片、提取图片中的文字（OCR）、理解截图\u002F图表\u002F表格\u002F二维码\u002F表情包，或任何需要\"看图\"的场景，都必须使用本 skill —— 不要用 Read 工具看图（底层模型无视觉能力）。The skill prompts for configuration once on first use when the vision API is not configured; afterwards it recognizes images automatically without asking again. skill 首次使用且视觉 API 未配置时，引导用户配置一次；配置后自动识图，不再询问。\n--- -->\n\n# vision-bridge — Vision for non-vision LLMs\n\nYour underlying model has no native vision capability. For anything that requires \"seeing\" an image, **do NOT use the Read tool** — call the bundled script `vision-bridge.py`, which asks an external vision model to \"look\" for you and returns text.\n\n## When to trigger\n\n- The user shares a **local image path** or **network image URL**\n- The message contains `Saved attachments:` listing images\n- The user asks to describe, recognize, analyze, interpret an image; extract text (OCR); understand screenshots, charts, tables, QR codes, memes, captchas\n- Any task that needs information from an image\n\n## Script location & modes\n\nScript: `scripts\u002Fvision-bridge.py` in this skill. Requires only Python 3.9+ standard library — **zero third-party dependencies** (no pip install). Cross-platform: Windows \u002F Linux \u002F macOS \u002F fish.\n\n| Mode | Command | Purpose |\n|---|---|---|\n| Recognize (default) | `python vision-bridge.py \u003Cimage-path> [more-images] [prompt] [options]` | Look at the image and return a text description |\n| Recognize (URL) | `python vision-bridge.py --url \u003Cimage-url> [prompt] [options]` | Look at a remote image |\n| Check config | `python vision-bridge.py check` | Is the vision API configured? (exit 0=yes, 1=no) |\n| Configure | `python vision-bridge.py config \"\u003Ckey>\"` | Persist VISION_API_KEY across platforms |\n\nIf `python` is unavailable on Windows, use `py -3 vision-bridge.py ...` instead.\n\nCommon options: `--model \u003Cmodel>`, `--max-tokens \u003Cn>`, `--temperature \u003C0~2>`, `--json` (raw JSON response), `config --region global|china` (pin a regional base URL).\n\n## First use: configure once\n\n**Principle**: the API key is only written to an environment variable — never into code, scripts, or any project file, to prevent leakage. Run `check` before recognizing; only guide the user when `VISION_API_KEY` is missing, and never ask again afterwards.\n\nWhen not configured, guide the user (offer one of two options):\n\n1. Run `python vision-bridge.py check`, confirm `configured=false`.\n2. Tell the user a vision model API key is needed (default agnes, model `agnes-2.5-flash`); ask them to choose **one** way:\n   - **Method A (user hands the key over)**: ask the user to paste the API key into the chat; when received, run `python vision-bridge.py config \"\u003Cuser key>\"` to persist it. **Do not repeat the key in plaintext in the session afterwards.**\n   - **Method B (user configures it themselves)**: send the user this command — they only replace the placeholder inside the quotes:\n     ```\n     python vision-bridge.py config \"your-vision-api-key\"\n     ```\n3. Ask the user to **restart the terminal** (system env vars only take effect for new processes), then verify with `python vision-bridge.py check`.\n4. After configuration, immediately recognize the current image.\n\nIf the user already has a key and insists on pasting it, reject placeholders like `sk-xxx` or `your-vision-api-key` before persisting.\n\n## Usage\n\nExamples:\n\n```bash\npython vision-bridge.py \"D:\\photos\\example.png\" \"Describe this image\"\npython vision-bridge.py --url \"https:\u002F\u002Fexample.com\u002Fa.png\" \"Extract the text\"\npython vision-bridge.py \"img1.png\" \"img2.png\" \"Compare these two images\"\n```\n\nThe script: base64-encodes local images → submits all images at once → timeout\u002Fretry\u002Ferror classification (401=bad key, 404=wrong model\u002FURL, 429=rate limited) → prints text to stdout. Surface stderr error messages to the user verbatim on failure.\n\n## Regional base URLs\n\nThe default is agnes `agnes-2.5-flash` (free and unlimited; see the [Agnes docs](https:\u002F\u002Fagnes-ai.com\u002Fdoc\u002Fagnes-25-flash)) via an **auto-selected regional endpoint** (an apihub API key works on both):\n\n| Region | Base URL | Note |\n|---|---|---|\n| Global | `https:\u002F\u002Fapihub.agnes-ai.com\u002Fv1` | Faster for users outside mainland China |\n| China | `https:\u002F\u002Fapi.agnes-ai.cn\u002Fv1` | Faster for users in mainland China |\n\nSelection priority: `VISION_BASE_URL` (explicit) > system language (Chinese locale → `.cn`, otherwise → `.com`) > default `.com`.\n\nTo pin a region explicitly (e.g. a Chinese user on an English system), use:\n```bash\npython vision-bridge.py config --region china \"your-key\"   # writes VISION_BASE_URL too\npython vision-bridge.py config --region global \"your-key\"\n```\n\nTo use any other OpenAI-compatible vision service:\n```bash\n# Windows\nsetx VISION_BASE_URL \"https:\u002F\u002Fyour-provider\u002Fv1\"\nsetx VISION_MODEL \"your-vision-model\"\n# Linux \u002F macOS (write to ~\u002F.bashrc or ~\u002F.zshrc)\nexport VISION_BASE_URL=\"https:\u002F\u002Fyour-provider\u002Fv1\"\nexport VISION_MODEL=\"your-vision-model\"\n```\n\n## Notes\n\n- Bilingual UI: script output auto-switches Chinese\u002FEnglish based on system language; force with `VISION_LANG=zh` or `VISION_LANG=en`.\n- Images over 10MB trigger a warning (some APIs reject very large images).\n- `agnes-2.5-flash` is a **thinking model**: recognition may take 10–90 s (script timeout is 120 s). To use a faster model, set `VISION_MODEL`.\n- The script auto-extracts the final answer from the thinking output (when `content` is empty, it takes the conclusion in `reasoning_content`); default output is clean text, `--json` outputs the raw API response.\n- `config` writes to **system environment variables**; the script re-reads system config, so it works in the current session immediately — but a **new terminal** is where each shell actually loads the variable. Restart the terminal if another program does not see it.\n- Windows writes via `winreg` directly to the registry (not setx): supports special characters like `& ^ %` and has no 1024-char limit.\n- `config` never prints the plaintext key, so it is safe to copy for the user.\n- 401 = bad\u002Fexpired key; 404 = wrong model or API URL; 429 = rate limited.\n",{},"main","c9d35c0e379f9b59b3807abb9a04d98437ffbffa","lc_agent\u002Fskills\u002Fthird_party_skills\u002Fvision-bridge",2,"https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent","https:\u002F\u002Fgithub.com\u002Fydf0509","研究oop编程思想","2026-11-05 17:49:50",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add ydf0509\u002Flc-agent --skill vision-bridge",{"tool":35,"command":36},"bunx","bunx skills add ydf0509\u002Flc-agent --skill vision-bridge",{"tool":38,"command":39},"pnpm","pnpm dlx skills add ydf0509\u002Flc-agent --skill vision-bridge","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fvision-bridge\u002FSKILL.md",true,[43,49],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"README.md","REFERENCE","参考文档",337,"https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fvision-bridge\u002FREADME.md",{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"scripts\u002Fvision-bridge.py","SCRIPT","脚本",26703,"https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fvision-bridge\u002Fscripts\u002Fvision-bridge.py",[56,63,70,77,84,91],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":17},"01M75M6WQ4JP3HHP635A4VA6XE","writing-skills","Use when creating new skills, editing existing skills, or verifying skills work before deployment","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fsuperpowers\u002Fwriting-skills\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":17},"01M75M6SNFFXN1WM46XAJTZM2B","writing-plans","Use when you have a spec or requirements for a multi-step task, before touching code","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fsuperpowers\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":17},"01M75M6PR8M5KYVWT4XJGMY9Y9","verification-before-completion","Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fsuperpowers\u002Fverification-before-completion\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":17},"01M75M6KQX25K40ZP204NFF89K","using-superpowers","Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fsuperpowers\u002Fusing-superpowers\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":17},"01M75M6FYAG0D8EP8WXYNMVKQM","using-git-worktrees","Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fsuperpowers\u002Fusing-git-worktrees\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":17},"01M75M6DPBYEGZYQK8T96D0DPF","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002Fydf0509\u002Flc-agent\u002Fblob\u002Fmain\u002Flc_agent\u002Fskills\u002Fthird_party_skills\u002Fsuperpowers\u002Ftest-driven-development\u002FSKILL.md",[],[]]