with one click
manga-translate
当用户要求翻译漫画、汉化漫画、嵌字时激活
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
当用户要求翻译漫画、汉化漫画、嵌字时激活
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
识别到图片点评、偏好学习或画像查询意图时激活。场景:1)用户发图并请求点评/分析;2)用户对图片反馈喜欢/不喜欢;3)用户查询画像("我的喜好"/"画像"/"图像偏好"/"喜欢什么");4)用户直接声明偏好("我喜欢兽耳""不喜欢某题材")
管理已有 qBittorrent 下载任务。用于查看任务进度、查询分类、暂停、恢复、删除、重校验和修改分类
下载磁力链接到 NAS 的 qBittorrent。用户发送 magnet 链接、"下载这个磁力"、"帮我下载" 附带磁力链接时激活
搜索 PT 站资源并添加到 qBittorrent 下载,或查看下载进度。当用户想看/下载影视、动漫等资源(如"我想看xxx电影"、"帮我下载xxx"),或查询下载进度(如"查看下载"、"下载进度"、"qb状态")时使用
在连续对话或聊天模式中,为AI回复末尾生成3个可选行动项供用户快速选择。当用户发送"进入对话模式 --option"、"开启选项模式"或要求生成选项时自动激活。
当用户要求画图、生图、编辑图片、改图、风格转换时激活
| name | manga_translate |
| description | 当用户要求翻译漫画、汉化漫画、嵌字时激活 |
/ocr → 每个文字区域的位置和原文
交叉验证 → 大模型看图复核原文
翻译 + 渲染参数 → 基于交叉验证后的原文
/inpaint_and_render → 成品
核心原则:翻译基于本地OCR的精确原文。图像大模型辅助视觉判断(过滤误检、颜色、气泡归属)和交叉验证原文。
静默工作模式 — 全程不要逐步汇报"Step 1 完成了""现在进入 Step 2"等进度。所有中间步骤默默执行,只在最后 /inpaint_and_render 完成后一次性回复最终结果。
execute_script(skill_name="manga_translate",
script_path="scripts/manga_service.py",
args=["ocr", "--image", "<user_image_1>"])
返回 {"success": true, "results": [...], "data_id": "abc123"}。记住 data_id,Step 4 要用。
⚠️ 纯文本模型(如 DeepSeek)不具备多模态能力,禁止假装看图。
优先级:
无论哪种方式,多模态模型必须同时完成四件事:
bubble: A),这是 Step 3.2 合并碎片的核心依据交叉验证规则:
交叉验证后的精确原文 + 坐标 → 逐框决策:
以下情况跳过(不翻译、不擦除):
相邻小框如果属于同一句话,用 bbox_ids 合并成一个 translation。
Step A — 提出合并候选:
Step B — 距离校验:
标点与符号保留规则:
| 参数 | 说明 | 可选值 |
|---|---|---|
color | 文字色 | 严格以原图为准。不确定时用 #000000 |
direction | 方向 | 统一用 "auto"。 |
execute_script(skill_name="manga_translate",
script_path="scripts/manga_service.py",
args=["inpaint_render", "--image", "<user_image_1>",
"--data-id", "<Step 1 的 data_id>",
"--translations", '<翻译JSON字符串>'])
translations.json 格式:
[
{
"bbox_id": 0,
"text": "翻译后的中文文本",
"color": "#000000",
"direction": "horizontal"
},
{
"bbox_id": 2,
"bbox_ids": [2, 3],
"text": "合并多个碎片的译文",
"color": "#000000",
"direction": "vertical"
}
]
inpaint_render 已自动存储结果到 ImageStore,返回 identifier。不要手动调用 store_images。 直接引用脚本返回的标识符发送图片即可