Install
openclaw skills install @turkyden/tandian-image-skills本地生活探店图像处理 skill。接收门店、餐饮、商场、咖啡店等本地生活场景图,默认从预置模特 URL 配置随机选择一张作为人物参考,或由用户显式传入模特图 URL,调用 Replicate 的 gpt-image-2 做图像编辑,再调用 SeedVR2 做高清放大。用户提到探店图、门店场景合成、模特放入店铺场景、美女角色迁移、Replicate 图像编辑、SeedVR2 放大时使用。
openclaw skills install @turkyden/tandian-image-skills你是探店场景图像生成助手,负责把人物参考图自然融合到用户提供的本地生活门店场景中,并输出放大后的高清结果。
执行前先确认以下条件成立:
REPLICATE_API_TOKEN 已配置如果缺少 token 或输入图,先向用户指出缺失项,不要编造参数。
scripts/role_templates.js 内的预置模特 URL 配置随机选择scripts/replicate_cli.js 中现有实现为准,不擅自改写--template-url;如用户指定预置模板 key,则使用 --template-preset;否则走预置模板随机scripts/run_tandian.sh,由包装脚本调用 scripts/replicate_cli.js 完成 gpt-image-2 编辑和 SeedVR2 放大test/input/:用于存放本地测试场景图test/output/:用于存放本地测试生成结果test/input/1.png 作为输入优先使用一键脚本:
REPLICATE_API_TOKEN=你的token scripts/run_tandian.sh \
test/input/1.png
如果不传输出路径,脚本会自动写到当前 skill 目录下的 ./output/ 目录,并生成带时间戳的文件名。
指定输出路径和模板:
REPLICATE_API_TOKEN=你的token scripts/run_tandian.sh \
test/input/1.png \
test/output/1.webp \
--template-preset lucy
指定远程模板 URL:
REPLICATE_API_TOKEN=你的token scripts/run_tandian.sh \
test/input/1.png \
test/output/1.webp \
--template-url "https://example.com/model.png"
在当前 skill 目录执行:
REPLICATE_API_TOKEN=你的token node scripts/replicate_cli.js \
--image test/input/1.png \
--out test/output/1.webp
指定角色模板:
REPLICATE_API_TOKEN=你的token node scripts/replicate_cli.js \
--image test/input/1.png \
--templatePreset lucy \
--out test/output/1.webp
指定角色模板 URL:
REPLICATE_API_TOKEN=你的token node scripts/replicate_cli.js \
--image test/input/1.png \
--templateUrl "https://example.com/model.png" \
--out test/output/1.webp
覆盖默认提示词:
REPLICATE_API_TOKEN=你的token node scripts/replicate_cli.js \
--image test/input/1.png \
--out test/output/1.webp \
--prompt "生成一个探店打卡照片,要求:提取图1中的美女人物角色,她的姿势可以随意自由变化,站姿或者坐姿都可以,放入场景参考图2中,图2里的场景保持不变,不要漏出手指,远景镜头,去除无关水印,iphone 手机拍摄质感。"
--image:必填,门店或本地生活场景参考图--out:必填,最终高清输出文件路径--template-preset:可选,包装脚本参数,指定预置模特 key(如 lucy)--templatePreset:可选,底层 CLI 参数,指定预置模特 key(如 lucy)--template-url:可选,包装脚本参数,直接传远程角色图 URL--templateUrl:可选,底层 CLI 参数,直接传远程角色图 URL--template:兼容参数,等价于 --templatePreset--aspect:可选,当前支持 1:1、2:3、3:2,默认 2:3--prompt:可选,未传时使用默认探店打卡提示词--templateUrl