image-text-replace

image-text-replace is a skill for Claude Code, Codex from meitu/meitu-skills. It costs 86 tokens per session (1,643 once invoked), scanned A, original, MIT.

An image-editing workflow for replacing existing text in a picture, such as a title, price, name, or slogan. It handles both simple printed text and harder cases such as handwriting, decorative lettering, multiple locations, or changed text length.

In plain words
What is it for?
Changing labels, prices, names, headings, advertising copy, or other visible words in existing images.
Why use it?
It removes the need to recreate an entire image when only its wording needs to change. The workflow chooses a simpler or more advanced editing route based on the text and layout.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Changing labels, prices, names, headings, advertising copy, or other visible words in existing images.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/meitu/meitu-skills/image-text-replace
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add meitu/meitu-skills --skill image-text-replace
Clone the repo
git clone --depth 1 https://github.com/meitu/meitu-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for image-text-replace

README.md
[![agentmods](https://agentmods.dev/badge/skills/meitu/meitu-skills/image-text-replace/github.svg)](https://agentmods.dev/skills/meitu/meitu-skills/image-text-replace)
Your own site
<a href="https://agentmods.dev/skills/meitu/meitu-skills/image-text-replace"><img src="https://agentmods.dev/badge/skills/meitu/meitu-skills/image-text-replace/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for image-text-replace

Your own site · 80×15
<a href="https://agentmods.dev/skills/meitu/meitu-skills/image-text-replace"><img src="https://agentmods.dev/badge/skills/meitu/meitu-skills/image-text-replace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,643 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 5
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 9
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 11
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 17
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Rogue Agent · line 21
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.01643
Opus 5 $0.00043 $0.00822
Sonnet 5 $0.00017 $0.00329
Haiku 4.5 $0.00009 $0.00164

Measured 9d ago against content hash dccf5fa775a0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

image-text-replace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/image-text-replace/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Image Text Replace

Overview

对已有图片做文字内容替换:简单精准改字(标准印刷体/单处/≤6 字符/字符数不变四条件全满足)与复杂改字(花字/手写体/风格化/多处/字符数变化)。

API Mapping

  • 简单精准改字:简单改字路径。
  • 复杂改字:优先 praline_pro,失败依次降级为 praline_litemint_edit

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-text-replace/mkdir -p

Execute

触发信号 / 路由规则

核心维度:四条件判断(必须同时满足):

  1. 字体类型:标准印刷体(宋体/黑体/楷体/圆体/衬线体/无衬线体/等宽字体)
  2. 修改位置:只修改一处文字
  3. 字符长度:修改的文字字符数 ≤ 6
  4. 字符数恒等:原文字符数 = 修改后字符数
场景 判定 路由
四条件全满足 标准印刷体 + 单处 + ≤6 字符 + 字符数不变 简单改字路径 → praline_propraline_litemint_edit
花字 / 手写 / 风格化 花体字、手写、风格化 praline_propraline_litemint_edit
多处修改 改多个地方 praline_propraline_litemint_edit
字符数 >6 或 字符数变化 长文本 / 3 字→5 字 praline_propraline_litemint_edit

参数定义

参数 类型 必填 说明
image_url STRING 图片地址。缺失 → 提示"请提供需要改字的图片"
source_words STRING 条件必填 原文字内容。简单改字必填;复杂改字可从 prompt 自动提取
target_words STRING 条件必填 目标文字内容。简单改字必填
prompt STRING 改字描述;复杂改字时根据 source_words / target_words 自动生成英文改字指令

简单改字路径直接传 image_urlsource_wordstarget_words;复杂改字使用 praline_propraline_litemint_edit,并根据 source_words/target_words 构造英文改字指令。

目标文字含中文时,prompt 中目标文字保持原样、不做翻译

工具调用

meitu image-text-replace --image_url <url> --source_words "<原文>" --target_words "<新文>" --json --download-dir {output_dir} --skill_name skill_image-text-replace

错误降级

场景 处理方式
image_url 缺失 提示"请提供需要改字的图片"
image_url 不可访问 直接返回图片链接无效错误,不重试
source_words / target_words 缺失 提示"请告诉我要把哪个文字改成什么"
source_words 在图片中找不到 返回原图,告知未找到匹配文字
字符数改变 / 花字 / 多处 不走简单改字,直接使用 praline_pro
简单改字路径调用失败 自动升级至 praline_pro
praline_pro 调用失败 自动降级至 praline_lite
praline_lite 调用失败 自动降级至 mint_edit
mint_edit 调用失败 返回错误
用户一次要改多张图 提示每次处理一张
用户未提供字体信息 按标准印刷体判断,先试简单 API;失败自动升级
内容合规拦截 直接返回合规提示,不重试、不降级

Read the full file on GitHub · 130 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 130 lines · 86 tokens per session scan A dccf5fa775a0

Subscribe to this mod's changes

image-text-replace is a skill published in the GitHub repository meitu/meitu-skills (32 stars, last pushed 11d ago), licensed MIT. It adds 86 tokens to every session and 1,643 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens