当前位置: 首页 > Skill >

BeautyPlus portrait beauty, outfit change, photo restoration

BeautyPlus portrait beauty, outfit change, photo restoration

BeautyPlus portrait beauty, outfit change, photo restoration

AI图像编辑与美化套件:人像修图、身体塑形(胸/臀)、AI发型、AI服装/cosplay换装、表情编辑

1.0.4 2026.11.10 874
获取Skill文件查看使用说明
作 者:叶舟 许可证: 更新时间:2026.11.10
本文目录展开

BeautyPlus Skills & API

{baseDir} placeholder. Every CLI command in this file uses {baseDir}/scripts/.... The host (skill loader) substitutes {baseDir} with this skill's installation directory at load time. If your host does not expand placeholders, replace {baseDir} with the absolute path to this skill folder, or run from inside the skill folder using scripts/....

When to Use This Skill

Activate whenever the user requests modifications, enhancements, or artistic changes to a photo / image (path, URL, or attachment).

Trigger keywords: "make me look better", "change my clothes", "fix this blurry photo", "make me smile", "enhance my body", "change my hair color / style", "add a filter", "cosplay", "outfit change", "upscale", "virtual try-on".

Effect KEY catalog (--task values)

The CLI --task value is always one of the effect KEYs below. Per-key algorithm params are returned inline by POST /skill/consume.json (invoke_spec) — never hard-code AIGC paths. If the server returns Unknown invoke preset, the key is not in the tenant's invoke map; do not invent params, check config or admin.

All KEYs operate on still images (.jpg / .jpeg / .png / .webp). The current catalog is image-only; the async / video flow is reserved — see docs/video-reserved.md.

1. 💪 Body reshape

When: user explicitly asks to enhance, enlarge, or reshape breast or buttocks.

Tier rule: append _strong / _medium / _weak to the base KEY. Default tier: _medium (e.g. breast_natural_medium).

KEY (base) Description
breast_natural Natural fullness; subtle lift.
breast_teardrop Teardrop contour, fuller lower pole.
breast_round Rounded, lifted look with upward emphasis.
breast_outward Editorial spread with outward emphasis.
butt_peach Lift and side volume for a peach shape.
butt_o_shape Smooth, continuous curve, even side profile.

2. 💇‍♀️ Hair editing

When: new hair color or new hairstyle.

KEY Description
hair_black Deep black shine; natural look.
hair_blonde Classic golden blonde.
hair_brown_highlights Brown with highlights for dimension.
hair_platinum Soft creamy platinum.
hair_silver_platinum Cool metallic silver; edgy modern look.
hair_teddy_brown Warm soft brown; youthful vibe.
hair_glossy Extra shine and sleek fall.
hair_high_layer Light layers and airy volume.
hair_soft_waves Romantic large waves.
hair_latino_curls Tight curls, maximum volume.

3. 👗 Outfit change (AI clothes)

When: user asks to change clothes, try on different styles, or dress up for a specific occasion / cosplay.

Formal / Evening

KEY Description
dress_yellow_gown Vivid yellow silk evening gown.
dress_arctic_allure Rhinestone mesh gown with galaxy sparkle.
dress_ostrich_feather Ethereal feather gown.
dress_muse_goddess Couture-heavy beaded goddess gown.
suit_tartan_eve Smart, polished British tartan suit.
suit_red_carpet Classic sharp black suit.

Vacation / Casual

KEY Description
accessory_bunny_ear Playful bunny ear accessory.
dress_butter_moonlight Pale yellow slip dress; fresh light look.
dress_pink_puffy Tiered pink puff dress; sweet portrait style.
dress_gold_hoodie Urban casual hoodie dress.
dress_lace_corset French-inspired lace corset set.
dress_chiffon_cake Tiered chiffon maxi; relaxed vacation mood.
dress_sheer_bikini Bikini under sheer cover; resort look.

Cosplay / Fantasy

KEY Description
cosplay_carnival Carnival samba outfit with feather headpiece.
cosplay_bunny_cop Navy bunny police uniform.
cosplay_fox_boyfriend Green fox print shirt; relaxed vibe.
cosplay_deer_girl Forest fawn-inspired mini skirt.
cosplay_grinch Green fuzzy Grinch party costume.
victoria_angel Lingerie set with wings (runway showstopper).
dallas_cowboy Iconic blue-and-white cheerleader uniform.

Party / Futuristic

KEY Description
floral_camisole Botanical floral cami.
puff_skirt Strapless puff corset dress.
one_shoulder_lbd One-shoulder little black dress.
red_latex Bold red latex mini skirt.
moonlight_dress Full-rhinestone bodycon long gown.
y3k_set Futuristic metallic Y3K co-ord.

Sports / Activewear

KEY Description
brazilian_bikini Brazilian-cut bikini.
tennis_set Sporty athletic-chic tennis skirt and top.
cozy_fit Relaxed hoodie and jogger; urban athleisure.
racing_suit Bold motorsport racing driver suit.
white_yoga Minimal white yoga set.

4. 🎭 Facial retouch & expression

When: retouch / apply a makeup style, or change the subject's expression.

KEY Description
natural_beauty Soft natural enhancement; clear skin.
glamour_beauty Polished, charismatic look with full makeup.
sweet_beauty Youthful sweet-girl vibe.
luminous_beauty Radiant glow; bright complexion.
youthful_beauty Fresh, energetic style.
closed_smile Gentle closed-lip smile.
open_smile Wide toothy grin.
cool_expression Serious, composed, edgy.
wink Single-eye wink.

5. 🖼️ Photo quality & art filters

When: image is blurry / noisy / old / low-resolution, or the user wants a camera vibe / lighting filter.

KEY Description
photo_restoration_v3 Denoise, deblur, reduce artifacts; keeps a natural look.
ai_ultra_hd_v3 Deep-learning upscale + detail recovery for old / small photos.
tanning_filter Warm bronzed tan skin filter.
ccd_flash Vintage CCD-camera flash effect.
film_flash Film grain with flash overlay.
fuji_flash Fujifilm-style flash; soft grain, warm tones.

Defaults & disambiguation (MANDATORY)

Use this table when the user's intent is broad or under-specified. Do not guess a wrong KEY.

Situation Action
Vague intent ("make this photo look better") Default to natural_beauty if a face is present, else photo_restoration_v3.
User asks for retouch / makeup but did not pick a style Offer 2–3 KEYs from §4 (e.g. natural_beauty, glamour_beauty, sweet_beauty).
User says "change my hair / outfit / cosplay" without a style Ask one question, or offer 2–3 KEYs from §2 / §3.
Body reshape, no tier given Default to _medium, or briefly confirm before submit.
User mentions video / motion / "make a video" No video keys exist today — see docs/video-reserved.md. Stay on still images.
Ambiguous or missing attachment Ask one clarifying question, or pull media from IM per docs/im-attachments.md.

API submission path (MANDATORY)

  • New jobs must go through python3 {baseDir}/scripts/beautyplus_ai.py run-task … (or the same run-task embedded inside spawn-run-task → sessions_spawn for the reserved video flow).
  • Do not hand-craft HTTP to the skill's wapi gateway or to AIGC / invoke endpoints — that skips POST /skill/consume.json (quota and permission) and breaks the supported pipeline. This skill does not emit debug curl for API calls.
  • query-task --task-id is for resuming polling on an existing full task_id only; it does not replace run-task for a new submission.

Billing and user-facing claims (MANDATORY)

  • Each successful run-task (including inside a sessions_spawn worker) triggers server-side quota / credit consumption for the BP_AK tenant. This is a paid, metered commercial API.
  • Do not state or imply that the service is free, costs nothing, has an unlimited trial, or invent prices, plan names, promotions, or trial rules.
  • Allowed wording: processing uses the BeautyPlus account quota tied to the configured keys; billing and plans are per the user's console or administrator.
  • On quota / membership errors, surface the server detail and pricing_url (see Step 3 error table). Never add "free" or zero-cost wording, even on success.

Step 0 — Pre-flight check (MANDATORY)

Verify AK / SK are configured. Only run this command at this stage; do not read other Python sources first.

python3 {baseDir}/scripts/beautyplus_ai.py preflight
  • Output ok → continue to Step 1.
  • Output missing → stop and prompt the user. Use the channel-appropriate template in docs/credentials-prompt.md (plain text by default; Feishu interactive card when the host exposes a Feishu account).

Step 1 — Pick effect KEY and input

  1. Map the user's intent to one effect KEY from the catalog above. Apply the Defaults & disambiguation table when the request is broad.
  2. Confirm the input file location. If the user already gave a path or URL, continue to Step 2 without asking again.
  3. Reply immediately to acknowledge, e.g. "🖼️ Processing — please wait a moment…"

Getting media from IM messages

Full detail: docs/im-attachments.md.

Platform How to obtain
Feishu Message resource URL / image_key + message_id → optional resolve-input
Telegram file_id → resolve-input --telegram-file-id (needs TELEGRAM_BOT_TOKEN)
Discord attachments[0].url — often usable directly as --input
Generic URL or path
python3 {baseDir}/scripts/beautyplus_ai.py resolve-input --file /tmp/saved.jpg --output-dir /tmp
# or: --url, --telegram-file-id, --feishu-image-key + --feishu-message-id

Use the JSON path field as --input.

--input as a URL: quote the full URL in the shell to avoid & splitting. Defaults: 120 s read timeout, 100 MB max — override with MT_AI_URL_READ_TIMEOUT, MT_AI_URL_CONNECT_TIMEOUT, MT_AI_URL_MAX_BYTES. For flaky or large links, use resolve-input --url first and pass the local path.

Step 2 — Install dependencies

python3 {baseDir}/scripts/beautyplus_ai.py install-deps

If dependencies are already installed this step is quick; then continue to Step 3.

Step 3 — Run the task

All listed effect KEYs are image jobs — use the inline run-task flow (§3a). Video keys are reserved; see docs/video-reserved.md.

3a — Inline run-task (blocking, default)

python3 {baseDir}/scripts/beautyplus_ai.py run-task 
  --task "<effect_key>" 
  --input "<image_url_or_path>"

Replace <effect_key> (e.g. hair_soft_waves) and <image_url_or_path> with real values. Default params include rsp_media_type: url. For custom JSON params:

python3 {baseDir}/scripts/beautyplus_ai.py run-task 
  --task "<effect_key>" 
  --input "<url_or_path>" 
  --params '{"parameter":{"rsp_media_type":"url"}}'

When run-task exits 0

Stdout is JSON containing:

  • skill_status: "completed" — job done.
  • output_urls — ordered http(s) links (extracted from data.result.urls, images, media_info_list, etc.).
  • primary_result_url — same as output_urls[0]; convenient for delivery.
  • task_id — full task id when the API returns one. Keep it for support / recovery; do not truncate. Some sync completions may omit it.
  • agent_instruction — short reminder for the model.
  • meta / data — full API payload for debugging.

You must:

  1. Send the user a short natural-language summary of what was done.
  2. Complete Step 4 delivery using primary_result_url or output_urls[0], unless the user explicitly asked for the URL only.

Never end the turn with raw JSON alone. Never resubmit run-task for the same task_id — use query-task to resume polling.

When run-task exits non-zero

Stdout has skill_status: "failed" with an error field. Map it as:

error api_code Action
credit_required 60002 Show server detail to the user; include pricing_url as a link if present. Do not retry by tweaking params.
membership_required 60001 Same — show detail / pricing_url.
consume_param_error — Fix --task / --input / --params; do not tell the user to recharge.
Other (task_failed, poll_timeout, poll_aborted, …) — See docs/errors-and-polling.md.

Never dump raw JSON to the user. Never retry run-task for credit / membership errors.

3b — Resume polling (query-task)

When you already have a full task_id (from previous stdout JSON, polling checkpoint, or task_id=... lines in stderr) and the job may still be running, do not run run-task again — resume polling only:

python3 {baseDir}/scripts/beautyplus_ai.py query-task 
  --task-id "<full_task_id>"

Optional --task sets the task_name field in the success JSON for your logs (default labels as query_task). Uses the same BP_AK / BP_SK and remote config as the original submit. Stdout JSON and exit codes match run-task.

3c — Last task and history

Local state lives under ~/.openclaw/workspace/beautyplus-ai/ (last_task.json, history/task_*.json, last 50 records). For async jobs, last_task.json may briefly show skill_status: "polling" with a task_id while the client is still polling — a checkpoint that lets query-task resume if the process is killed mid-poll.

python3 {baseDir}/scripts/beautyplus_ai.py last-task
python3 {baseDir}/scripts/beautyplus_ai.py history

Use when the user asks whether a recent job finished, or wants a short history summary. Do not expose raw secrets.

Step 4 — Deliver result to the channel

Required after skill_status: "completed". The CLI does not post to IM by itself — send the processed image back on the user's platform, in the same turn as the success summary.

Resolve deliver-to

Platform Source Format
Feishu group conversation_label or chat_id without chat: prefix oc_xxx
Feishu DM sender_id without user: prefix ou_xxx
Telegram inbound message chat_id e.g. -1001234567890
Discord channel_id e.g. 123456789

Feishu

python3 {baseDir}/scripts/feishu_send_image.py 
  --image "<result_url>" 
  --to "<oc_xxx or ou_xxx>"

Telegram

TELEGRAM_BOT_TOKEN="$TELEGRAM_BOT_TOKEN" python3 {baseDir}/scripts/telegram_send_image.py 
  --image "<result_url>" 
  --to "<chat_id>" 
  --caption "✅ Done"

Discord

Download the result, then send with the message tool:

curl -L "<result_url>" -o /tmp/result_image.jpg
message(action="send", channel="discord", target="<channel_id>", filePath="/tmp/result_image.jpg")

For files over ~25 MB, send the result URL as a link instead.

WhatsApp / Signal / others

Use the message tool with media, or send the result URL directly.

Video delivery (reserved): see docs/video-reserved.md.

Multi-stage pipelines (chaining tasks)

When the user asks for more than one BeautyPlus step on the same media (e.g. photo_restoration_v3 → dress_yellow_gown), treat each step as a separate job with its own --task:

  1. After stage A completes, pass primary_result_url (or output_urls[0]) as --input for the next stage. That is a new job, not a retry.
  2. "Do not re-run run-task" means: do not resubmit the same task_id. It does not forbid the next stage with a different effect KEY.
  3. Deliver only after the final stage completes.

Video chains are reserved — see docs/video-reserved.md.

Notes

  • Single business entrypoint: all algorithm runs and config fetches go through beautyplus_ai.py; agents do not need to open client.py or ai/api.py. See API submission path above for the no-direct-HTTP rule.
  • AK / SK loading: environment variables BP_AK / BP_SK first; if unset, scripts/.env is read automatically.
  • Client init pulls the latest algorithm config from the server; no manual INVOKE setup is required.
  • Bot token safety: pass TELEGRAM_BOT_TOKEN, DISCORD_BOT_TOKEN, etc. only via environment variables — never as CLI arguments.
  • URL input errors may report HTTP 403 (expired signed URL) or timeout — see MT_AI_URL_* env vars in Step 1.

Further reading

  • BeautyPlus Developers — API and skill key integration, use cases.
  • BeautyPlus — product overview.
  • README.md
  • docs/video-reserved.md — async / video flow (reserved).
  • docs/credentials-prompt.md — preflight: missing user prompt templates.
  • docs/multi-platform.md — delivery details (Feishu, Telegram, Discord, …).
  • docs/im-attachments.md — IM attachments and resolve-input.
  • docs/errors-and-polling.md — polling, timeouts, failure codes.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • BeautyPlus Skills & API
    • When to Use This Skill
    • Effect KEY catalog (--task values)
      • 1. 💪 Body reshape
      • 2. 💇‍♀️ Hair editing
      • 3. 👗 Outfit change (AI clothes)
      • 4. 🎭 Facial retouch & expression
      • 5. 🖼️ Photo quality & art filters
    • Defaults & disambiguation (MANDATORY)
    • API submission path (MANDATORY)
    • Billing and user-facing claims (MANDATORY)
    • Step 0 — Pre-flight check (MANDATORY)
    • Step 1 — Pick effect KEY and input
      • Getting media from IM messages
    • Step 2 — Install dependencies
    • Step 3 — Run the task
      • 3a — Inline run-task (blocking, default)
        • When run-task exits 0
        • When run-task exits non-zero
      • 3b — Resume polling (query-task)
      • 3c — Last task and history
    • Step 4 — Deliver result to the channel
      • Resolve deliver-to
      • Feishu
      • Telegram
      • Discord
      • WhatsApp / Signal / others
    • Multi-stage pipelines (chaining tasks)
    • Notes
    • Further reading
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期