Image Search logo

Image Search

Organization
meitu
image-search

关键词搜图 / 以图搜图,平台图库 + Pinterest 联合检索。仅在用户明确要求搜图、以图搜图或检索参考图/素材图时触发。执行时会读取 Meitu 凭证和检索配置,调用本地 `meitu` CLI,并把检索结果与可选下载文件写入本地输出目录。

Overview

Publishermeitu
Repositorymeitu-skills
Skill nameimage-search
Stars
36
Forks
3
Bundled files
Instructions only
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by meitu on GitHub. Read the source before you install it.

Installation

Install the Image Search 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/meitu/meitu-skills/tree/main/skills/image-search
  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/meitu/meitu-skills.git /tmp/meitu-skills
mkdir -p .claude/skills
cp -r /tmp/meitu-skills/skills/image-search .claude/skills/image-search
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

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

Image Search

Overview

关键词搜图 / 以图搜图,平台图库 + Pinterest + 花瓣联合检索。用于找参考图、找素材、搜灵感、以图找相似图片;支持多关键词拆分提升召回率。

执行前应让用户清楚知道:本 Skill 会读取本地 Meitu 凭证与检索配置、调用 meitu image-search,并可能把检索结果 JSON 和下载图片写入 ./output/ 或 $VISUAL/output/image-search/。

API Mapping

  • 关键词搜图 / 以图搜图:image_search

Dependencies

  • meitu-cli: >=2.0.6
  • 凭证:CONFIG AKSK → meitu tools update;EXEC AKSK → 实际执行(见根 CONFIG.md)
  • 环境变量:MEITU_OPENAPI_TOOL_TASK_MODE=command

路径别名:$VISUAL = {OPENCLAW_HOME}/workspace/visual/

Core Workflow

Preflight → Execute → Deliver

Preflight

  1. meitu --version ≥ 2.0.6
  2. 已用 CONFIG AKSK 跑过 meitu tools update
  3. 当前 AKSK = EXEC,MEITU_OPENAPI_TOOL_TASK_MODE=command
  4. output_dir:openclaw.yaml → ./output/ |else → $VISUAL/output/image-search/;mkdir -p

Execute

触发信号 / 路由规则

核心维度:search vs retrieve 模式 + 参数齐全。

场景判定路由
关键词搜图搜文字描述的图image_search,query_mode=search
以图搜图给参考图找相似image_search,query_mode=retrieve
关键词 + 参考图同时给关键词和参考图image_search,query_mode=search + 双参数

复杂意图拆多个关键词提升召回率(如"北欧极简客厅"→["北欧客厅","极简风"])。

参数定义

参数类型必填范围默认说明
promptARRAY条件必填----搜索词数组。复杂意图拆多个关键词。search 模式必填
image_idsARRAY条件必填----图片 ID 数组。用户给 URL 时自动提取 ID。retrieve 模式必填
query_modeSTRING是search / retrievesearchsearch=关键词搜索;retrieve=以图召回
sizeNUMBER是1–84返回图片数量,最大 8
source_typeSTRING是auto / internal / pinterest / huabanautoauto=平台图库优先,不足时回退其他来源

缺省策略:prompt 和 image_ids 至少提供一项;都缺失 → 提示"请描述搜索内容或提供参考图"。

工具调用

bash
meitu image-search --prompt "<kw1>,<kw2>" [--query_mode search] [--size 4] [--source_type auto] --json --download-dir {output_dir} --skill_name skill_image-search
bash
# 以图搜图
meitu image-search --image_ids <id1>,<id2> --query_mode retrieve --json --download-dir {output_dir} --skill_name skill_image-search

错误降级

场景处理方式
prompt 和 image_ids 都缺失提示"请描述搜索内容或提供参考图"
说"搜这张图类似的"但未提供图片提示"请提供参考图片"
说"多搜点"但 size 已为 8告知最多返回 8 张
source_type=pinterest 但外部源不可用降级为 auto 重试
返回空结果换同义词重试 1 次,仍空:告知未找到,建议换关键词
接口超时size 缩至 2 重试,仍超时:告知服务暂不可用
image_ids 全部无效提示"图片 ID 无效"
内容合规拦截直接返回合规提示,不重试
用户既给关键词又给参考图query_mode=search,同时传 prompt + image_ids

Deliver

  • 使用 Preflight 解析的 output_dir
  • 将返回的检索结果元数据写入 {output_dir}/{YYYY-MM-DD}_{descriptive}_image-search.json
  • 若命令返回 downloaded_files,从 downloaded_files[*].saved_path 读取已下载图片路径并保留在 output_dir

Output

  • 格式:JSON 检索结果(URL/ID)+ 可选下载图片
  • 位置:项目 → ./output/,一次性 → $VISUAL/output/image-search/

基线 Task ID

见 references/task-id-baseline.md 中对应行。

Frequently asked questions

What does the Image Search AI skill do?

关键词搜图 / 以图搜图,平台图库 + Pinterest 联合检索。仅在用户明确要求搜图、以图搜图或检索参考图/素材图时触发。执行时会读取 Meitu 凭证和检索配置,调用本地 `meitu` CLI,并把检索结果与可选下载文件写入本地输出目录。

Why use Image Search on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/meitu/meitu-skills/tree/main/skills/image-search. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Image Search?

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

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

Is the Image Search AI skill free?

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