跳到正文
登录免费开始

试穿服装

把图片里或文字描述的衣服穿到照片中的人身上。

使用方法

把技能复制到助手的技能文件夹。Claude Code 是 ~/.claude/skills/<名称>/SKILL.md:

mkdir -p ~/.claude/skills/pickshot-outfit-swap
curl -L https://pickshot.ai/developers/skills/pickshot-outfit-swap/SKILL.md \
  -o ~/.claude/skills/pickshot-outfit-swap/SKILL.md

下载 SKILL.md · MCP 设置 · 全部技能

完整的 SKILL.md

---
name: pickshot-outfit-swap
description: Put the clothes from one picture on the person in another picture, or describe an outfit in words, with Pickshot's outfit app. Use it when the user wants to try a different outfit on a photo of themselves or of a person who agreed to it, for fashion mock-ups, catalogues or styling ideas.
---

# Outfit swap

This skill needs the Pickshot MCP server (`list_apps`, `run_app`, `get_job`, `get_balance`). If they are missing, tell the user to connect it first (https://pickshot.ai/en/developers/mcp).

The spending rules of the `pickshot-generate` skill apply: say the price, wait for yes, cap it, one key per request.

## Before you start

- The person in the photo must be the user or someone who agreed to it. Ask if it is not clear. Do not use pictures of public figures or of children.
- Both pictures must be public https links: the first is the person, the second is the outfit. The second is optional: the outfit can also be described in words.

## Steps

1. Call `list_apps` and find the app with id `outfit-swap`. If it is not listed, it is not open for this account: say so and stop. Note its `credits`.
2. Tell the user the price of one run and wait for yes.
3. Call `run_app` with `app` `outfit-swap`, `image_url` set to the person, `image2_url` set to the outfit picture when there is one, `fields` set to an object with a `prompt` that names the outfit or adds detail (colour, fabric, fit), `max_credits` equal to the price and a new `idempotency_key`.
4. The answer carries a `job` with an `id`. Call `get_job` every 10 to 20 seconds until it is `done` or `failed`, then give the user the link.

## Check the result

Does the person still look like the person (face, pose, body)? Does the outfit match the reference? If not, say what is off and offer one more run with a more exact prompt. Each run costs the same price again, so ask before each one.