Image Upload logo

Image Upload

Community
jspi-fu
image-upload

scan a document's local image references and upload to ImgBB / Freeimage / UploadMe / ImgLink, replacing links in-place. Use when the user says "上传图片", "replace local image links", "全量转存", "mirror images", "scan and upload images", "图床化".

Overview

Publisherjspi-fu
RepositoryAeson-skills
Skill nameimage-upload
Stars
45
Forks
2
Bundled files
13
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.

  • 13 bundled files

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

  • Open source

    Published by jspi-fu on GitHub. Read the source before you install it.

Installation

Install the Image Upload 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/jspi-fu/Aeson-skills/tree/master/Skills/image-upload
  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/jspi-fu/Aeson-skills.git /tmp/Aeson-skills
mkdir -p .claude/skills
cp -r /tmp/Aeson-skills/Skills/image-upload .claude/skills/image-upload
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Image Upload 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 Image Upload 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 Image Upload 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.

图床化 Skill

扫描文档(Markdown / HTML)中的本地图片引用,上传至图床,将本地路径替换为远程 URL。

执行步骤

Step 1 — 确定模式

根据用户意图选择模式:

  • document 模式:用户指定一篇文档 → 扫描其中的本地图片引用(![](./...) / <img src="...">)
  • single 模式:用户指定单张图片文件 → 直接上传,返回 URL
  • mirror 模式:用户要求"全量转存"/"把文档里所有图片(含网络图片)搬到我的图床" → 扫描本地 + 文档内已有的远程 URL 图片,一并转存

完成标准:模式已确定,目标文件路径 / 图片路径已明确。

Step 2 — 加载配置

运行 node scripts/upload.mjs --help 确认脚本可用,然后查找 .env 文件(搜索顺序:当前目录 → Skill 目录 → ~/.claude/ → ~/)。

读取 IMAGE_UPLOAD_PROVIDER(默认 imglink)和对应的 API Key 环境变量。

如果 API Key 缺失(出现 Missing *_API_KEY 错误):

  1. 展示对应图床的 API Key 获取链接(见 references/providers.md)
  2. 询问用户粘贴 Key
  3. 将 Key 写入 .env 文件(优先写到项目目录;如不存在则写到 ~/.claude/.env)
  4. 静默重试上传

完成标准:API Key 已就绪,provider 已确认;或用户明确放弃。

Step 3 — 上传

根据模式调用脚本:

bash
# document 模式(仅打印映射表)
node scripts/upload.mjs /path/to/document.md

# document 模式(原地替换链接)
node scripts/upload.mjs /path/to/document.md --replace

# mirror 模式(含网络图片,原地替换)
node scripts/upload.mjs /path/to/document.md --mirror --replace

# single 模式
node scripts/upload.mjs /path/to/image.png

SVG / AVIF / 大文件:SVG、ICO 仅 ImgLink 支持,AVIF 仅 ImgLink 与 UploadMe 支持;超过当前 provider 单文件上限(ImgLink 50MB / ImgBB 32MB / Freeimage 64MB / UploadMe 64MB)时切换到支持的 provider(详见 references/providers.md)。四家都不支持时跳过该图并保留原链接。

mirror 幂等:若远程图片的 host 已是目标图床域名,跳过再次转存。

完成标准:所有扫描到的图片都有上传结果(成功 URL 或明确的跳过理由),无遗漏。

Step 4 — 输出结果

  • document 模式(无 --replace):输出映射表 本地路径 → 远程直链 → Markdown 引用
  • document 模式(有 --replace):确认文档已写回,报告替换数量
  • single 模式:返回 URL、![name](url)、<img src="url">、[IMG]url[/IMG]

完成标准:结果已展示给用户;替换模式下文档已实际写回磁盘。

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 Image Upload AI skill do?

scan a document's local image references and upload to ImgBB / Freeimage / UploadMe / ImgLink, replacing links in-place. Use when the user says "上传图片", "replace local image links", "全量转存", "mirror images", "scan and upload images", "图床化".

Why use Image Upload on TypingMind?

Because you install it once and use it with any model. Image Upload 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 Image Upload in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jspi-fu/Aeson-skills/tree/master/Skills/image-upload. 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 Image Upload?

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 Image Upload?

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

Is the Image Upload AI skill free?

Yes. It is published on GitHub by jspi-fu 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 👇