Image Service logo

Image Service

Community
zrt-ai-lab
image-service

多模态图像处理技能,支持信息图、封面图、长图、幻灯片、漫画、文章插图、小红书图、营销物料等多场景生图,以及图生图、图生文、长图拼接。

Overview

Publisherzrt-ai-lab
Repositoryopencode-skills
Skill nameimage-service
Stars
293
Forks
75
Bundled files
20
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.

  • 20 bundled files

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

  • Open source

    Published by zrt-ai-lab on GitHub. Read the source before you install it.

Installation

Install the Image Service 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/zrt-ai-lab/opencode-skills/tree/main/image-service
  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/zrt-ai-lab/opencode-skills.git /tmp/opencode-skills
mkdir -p .claude/skills
cp -r /tmp/opencode-skills/image-service .claude/skills/image-service
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

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

zlab 图像处理技能

配置

配置项值
API配置文件中设置
生图模型配置文件中设置
视觉模型配置文件中设置
配置文件config/settings.json

执行规范

  • 脚本使用绝对路径调用,图片保存到当前工作目录
  • 提示词必须使用中文,图中标题标签必须中文
  • 含中文文字时,追加 guides/text-rendering.md 中的文字清晰后缀
  • 默认宽高比 16:9,竖版场景(小红书/漫画)默认 3:4

🔀 场景路由(铁律:收到需求后第一步)

收到生图需求
  │
  ├─ 信息图/数据可视化/架构图/流程图/对比图/鱼骨图/思维导图/金字塔/漏斗/韦恩图/冰山图
  │  → 📊 信息图 → scenes/infographic/
  │
  ├─ 封面/头图/banner/公众号封面/文章封面
  │  → 🖼️ 封面图 → scenes/cover/
  │
  ├─ 长图/微信长图/多屏/从上到下/竖版长图/分段/多个段落
  │  → 📜 长图 → scenes/long-image/
  │
  ├─ 幻灯片/PPT图/slides/演示文稿
  │  → 📑 幻灯片 → scenes/slide-deck/
  │
  ├─ 漫画/连环画/分镜/绘本/知识漫画/故事图
  │  → 📖 漫画 → scenes/comic/
  │
  ├─ 文章插图/自动配图/智能插图/给文章配图
  │  → ✏️ 文章插图 → scenes/article-illust/
  │
  ├─ 小红书/笔记配图/种草图/卡片系列
  │  → 📱 小红书图 → scenes/xhs/
  │
  ├─ 海报/主图/电商/促销/九宫格/产品图/营销/物料
  │  → 🛍️ 营销物料 → scenes/marketing/
  │
  ├─ 改图/编辑图片/风格转换/基于这张图
  │  → 🔄 图生图 → core/image_to_image.py(直接执行)
  │
  ├─ 分析图片/OCR/识别文字/描述图片/图生文
  │  → 👁️ 图生文 → core/image_to_text.py(直接执行)
  │
  └─ 其他单图需求(一张图,无特殊场景)
     → 🎨 单图 → core/text_to_image.py(直接执行)

路由到场景后 → 加载该场景的 README.md 获取详细参数和用法 → 按下方执行流程操作。


📋 通用执行流程(所有场景共用)

第一步:分析需求

  • 明确要生什么(主题、内容要点)
  • 确定场景类型(已由路由判断)
  • 确定数量(几张图)
  • 确定比例(16:9 / 3:4 / 1:1 等)

第二步:规划方案(多图场景必须)

单图:可跳过直接生成。 多图场景(长图/幻灯片/漫画/小红书/文章插图):必须先输出规划,等用户确认后再执行。

规划输出格式:

| 序号 | 内容概要 | 类型/布局 |
|-----|---------|----------|
| 1   | xxx     | xxx      |
| 2   | xxx     | xxx      |

**场景**:xx | **风格**:xx | **比例**:xx | **预计**:N张

第三步:执行生成

场景执行方式规则
📊 信息图场景脚本直接调用单张可并发
🖼️ 封面图场景脚本直接调用单张
📜 长图core引擎串行铁律:必须串行! 首屏text_to_image,后续image_to_image参考上一屏,最后merge拼接
📑 幻灯片场景脚本逐页串行逐页生成
📖 漫画场景脚本逐页串行! 首页text_to_image定调,后续image_to_image参考上一页
✏️ 文章插图场景脚本批量各章节独立,可并发(≤8张)
📱 小红书场景脚本逐张串行! 首张定调,后续参考上一张保风格一致
🛍️ 营销物料core引擎+模板同风格可并发(≤8张)
🔄 图生图core直接调用单张
🎨 单图core直接调用单张

第四步:质量校验

  1. 生成完成后,含中文文字的图用 core/image_to_text.py -m ocr 校验文字是否清晰
  2. OCR结果与预期不符 → 用 core/image_to_image.py 迭代修复(参考 guides/text-rendering.md)
  3. 多图场景完成后,逐张展示给用户确认,不满意的单张重新生成

🛠️ 脚本速查

场景脚本

bash
# 📊 信息图 — 20布局×17风格=340种
python3 scenes/infographic/zlab_infographic.py -l {布局} -s {风格} -n "标题" -c "内容" -o out.png
python3 scenes/infographic/zlab_infographic.py --list  # 查看所有选项

# 🖼️ 封面图 — 五维定制=3888种
python3 scenes/cover/zlab_cover.py -n "标题" --type {类型} --palette {配色} --rendering {渲染} --text {文字} --mood {氛围} -o out.png

# 📑 幻灯片 — 16种预设
python3 scenes/slide-deck/zlab_slide_deck.py article.md --style {预设} -o slides/
python3 scenes/slide-deck/zlab_slide_deck.py article.md --outline-only  # 仅看大纲

# 📖 漫画 — 5画风×7基调×6布局=210种
python3 scenes/comic/zlab_comic.py source.md --art {画风} --tone {基调} --layout {布局} -o comic/

# ✏️ 文章插图 — 6类型×8风格=48种
python3 scenes/article-illust/zlab_article_illustrator.py article.md --style {风格} -o images/

# 📱 小红书 — 9风格×6布局=54种
python3 scenes/xhs/zlab_xhs_images.py content.md --style {风格} --layout {布局} -o xhs/

所有场景脚本支持 --list 查看可用选项。

核心引擎

bash
# 文生图
python3 core/text_to_image.py "中文描述" -r 16:9 -o output.png
python3 core/text_to_image.py "描述" -r 3:4 --ref ref.png -o output.png  # 参考图风格

# 图生图
python3 core/image_to_image.py input.png "编辑描述" -r 3:4 -o output.png

# 图生文
python3 core/image_to_text.py image.jpg -m describe|ocr|chart|fashion|product|scene

# 长图拼接
python3 core/merge_long_image.py img1.png img2.png -o output.png --blend 20
python3 core/merge_long_image.py -p "*.png" -o output.png --sort name

支持比例:1:1 2:3 3:2 3:4 4:3 4:5 5:4 9:16 16:9 21:9


📚 通用指南(按需加载)

触发条件文件何时加载
图片含中文文字guides/text-rendering.md提示词要求含中文标题/标签时必须加载
为PPT/文档配图guides/color-sync.md需要与其他载体配色协同时加载
需要优化生图效果guides/prompt-guide.md生图效果不理想需要改进时加载
API接口问题guides/api-reference.md调试底层接口时加载
生成多屏长图scenes/long-image/README.md路由到长图场景时必须加载
营销物料模板scenes/marketing/templates.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 Image Service AI skill do?

多模态图像处理技能,支持信息图、封面图、长图、幻灯片、漫画、文章插图、小红书图、营销物料等多场景生图,以及图生图、图生文、长图拼接。

Why use Image Service on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zrt-ai-lab/opencode-skills/tree/main/image-service. 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 Service?

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 Service?

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

Is the Image Service AI skill free?

It is published on GitHub by zrt-ai-lab. Check the repository for licensing terms. 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 👇