Xiaoer Upscale logo

Xiaoer Upscale

Community
Jane-xiaoer
xiaoer-upscale

在 Mac 上把图片本地放大/提清晰度(超分辨率),并装好「Finder 右键 → 快速操作 → 超分 4K/8K」。 USE WHEN 用户说 图片放大、超分、提清晰度、图糊了、做高清版、把这张图变清楚、 4K/8K 图、image upscale、super resolution、右键放大图片、Mac 右键超分。 纯本地离线、不用 API key、不花钱(OpenCV dnn_superres,CPU 即可)。

Overview

PublisherJane-xiaoer
Repositoryclaude-skill-xiaoer-upscale
Skill namexiaoer-upscale
Stars
34
Forks
6
Bundled files
7
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Jane-xiaoer on GitHub. Read the source before you install it.

Installation

Install the Xiaoer Upscale AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Jane-xiaoer/claude-skill-xiaoer-upscale/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Jane-xiaoer/claude-skill-xiaoer-upscale.git \
  .claude/skills/xiaoer-upscale
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Xiaoer Upscale in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Xiaoer Upscale on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Xiaoer Upscale is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

小耳超分 · Mac 本地图片超分 + 右键 4K/8K

把"图片放大/提清晰度"做成两种入口:命令行 upscale + Finder 右键。 引擎 = OpenCV dnn_superres,在 CPU 上跑,不调任何 AI API、不用 key、不联网(装完拔网也能用)。唯一联网 = 安装时下 3 个模型(~41MB)。

一键安装

bash
bash scripts/install.sh

装完得到:

  • 命令行:upscale 图片.jpg --8k(别名 超分)
  • 右键:选图片 → 右键 → 快速操作 → 超分 4K / 8K / 极速4K(后台跑、完成弹通知、不卡 Finder)

安装脚本做了 5 件事:建 venv 装 opencv-contrib-python+Pillow → 下 3 个模型 → 生成 CLI 壳 → 生成 3 个右键 .workflow → pbs -flush 注册。全用 $HOME,不写死用户名,别人照装即可。

命令行用法

bash
upscale 图.jpg              # 默认满血 4x
upscale 图.jpg --4k         # 目标长边 3840
upscale 图.jpg --8k         # 目标长边 7680
upscale 图.jpg --16k        # 目标长边 15360(源不够大时为插值,非真细节)
upscale 图.jpg --long 5000  # 自定义长边
upscale 图.jpg --scale 2    # 相对原图 2 倍
upscale 图.jpg --model edsr # 换模型(默认 lapsrn)

输出 原名_档次.jpg 存到同目录,带轻度 unsharp 锐化。

三档模型(速度 / 质量 · CPU 无 GPU)

模型右键档速度(2K 源)质量用途
fsrcnn极速4K~0.5s稍软快速预览 / 批量
lapsrn4K / 8K~6 分钟好出片默认
edsr(仅 CLI)~8 分钟+最好极致质量少用,大图可能上小时/OOM

关键认知:模型是 4x,真实细节上限 = 源图长边 ×4。2K 源 → 4K/8K 是真提升;16K 基本是插值(源撑不起)。源本身 4-5K 才谈得上真 16K。

右键设置 & 排障(别人在新 Mac 上最容易卡这里)

  1. 右键没出现「超分」菜单项 → 系统设置(System Settings)→ 搜「扩展 / Extensions」或「访达 / Finder」→ 在"添加的扩展 / 访达"里勾上 超分 4K / 8K / 极速4K。装完 pbs -flush 一般会自动出现,这是兜底。(旧版 macOS:系统偏好设置 → 扩展 → 访达扩展。)
  2. 菜单项藏在哪 → 选中图片右键 →「快速操作 / Quick Actions」子菜单里(条目多时会折叠进这里,不在最外层)。
  3. 完成通知没弹 → 系统设置 → 通知 → 允许「脚本编辑器 / Automator」发通知(右键用 osascript 弹通知,首次可能要手动允许一次)。
  4. 拷贝来的 .workflow 点了没反应(quarantine 隔离) → 本 skill 的 install.sh 是本地生成 workflow、不带隔离属性,无此问题;若手动拷了下载来的,执行 xattr -dr com.apple.quarantine "xxx.workflow"。
  5. 命令行 upscale 找不到 → ~/.local/bin 不在 PATH。加:echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc。(右键不受 PATH 影响。)

边界(重要)

  • 只处理图片,不处理视频。CPU 上逐帧超分不现实(lapsrn ~6min/帧 → 10s 片要 25 小时)。视频超分请走 GPU 方案(Real-ESRGAN / Topaz Video AI),不是这个工具。
  • 需要 GPU 加速版超分(Real-ESRGAN 等)是另一条路,本工具专注"零依赖、人人能装、CPU 即可"。

模型来源

三个模型是 OpenCV dnn_superres 官方预训练权重,来自 GitHub(可重下)。直链、大小校验、逐个说明见 references/models.md。install.sh 会自动下载,一般不用手动碰。

文件

  • scripts/install.sh — 一键安装(入口)
  • scripts/upscale.py — 超分引擎(OpenCV dnn_superres)
  • scripts/qa_run.sh / qa_worker.sh — 右键的后台跑 + 通知粘合层
  • scripts/gen_quickactions.sh — 生成 3 个 Finder 右键 .workflow
  • references/models.md — 模型来源与直链

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Xiaoer Upscale AI skill do?

在 Mac 上把图片本地放大/提清晰度(超分辨率),并装好「Finder 右键 → 快速操作 → 超分 4K/8K」。 USE WHEN 用户说 图片放大、超分、提清晰度、图糊了、做高清版、把这张图变清楚、 4K/8K 图、image upscale、super resolution、右键放大图片、Mac 右键超分。 纯本地离线、不用 API key、不花钱(OpenCV dnn_superres,CPU 即可)。

Why use Xiaoer Upscale on TypingMind?

Because you install it once and use it with any model. Xiaoer Upscale is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Xiaoer Upscale in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Jane-xiaoer/claude-skill-xiaoer-upscale/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Xiaoer Upscale?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Xiaoer Upscale?

As many as you like. As long as a model supports skills, you can use Xiaoer Upscale with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Xiaoer Upscale AI skill free?

Yes. It is published on GitHub by Jane-xiaoer under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇