换角色
仅在开放的地方:用保存的角色替换照片中的人,需要同意。
使用方法
把技能复制到助手的技能文件夹。Claude Code 是 ~/.claude/skills/<名称>/SKILL.md:
mkdir -p ~/.claude/skills/pickshot-character-swap
curl -L https://pickshot.ai/developers/skills/pickshot-character-swap/SKILL.md \
-o ~/.claude/skills/pickshot-character-swap/SKILL.md下载 SKILL.md · MCP 设置 · 全部技能
完整的 SKILL.md
---
name: pickshot-character-swap
description: Replace the whole person in a picture with a saved character using Pickshot's character swap app, only where Pickshot offers it to the account and only with consent for any real person in the picture. Use it when the user asks to put their character, mascot or themselves in place of the person in a photo.
---
# Character swap (only where it is offered)
This skill uses a feature that is not open everywhere. It needs the Pickshot MCP server (`list_apps`, `run_app`, `list_characters`, `get_job`, `get_balance`). If those tools are missing, tell the user to connect it first (https://pickshot.ai/en/developers/mcp).
**First check that it exists.** Call `list_apps`. If there is no app with id `character-swap`, Pickshot does not offer it to this account or country. Say so, do not look for a way around it, and stop.
The spending rules of the `pickshot-generate` skill apply: say the price, wait for a yes, cap the charge with `max_credits`, one `idempotency_key` per request.
## Consent first
Replacing a person changes who appears in a picture. Ask the user plainly:
1. Who is in the original picture, and may it be edited?
2. Who is the replacement: a character that is the user's own invention, or a real person who agreed?
Go on only if the answers are yes. Never put a public figure, a child or someone who has not agreed into a picture. Never help make a picture meant to mislead people about what a real person did or said. If the user cannot answer yes, stop and say why.
## Steps
1. Call `list_characters` and show the character names. The replacement picture is one of the character's `refs` links, or another public https link the user gives.
2. Take the picture with the person to replace as a public https link.
3. Note the app's `credits` from `list_apps`. Tell the user the price of one run and wait for yes.
4. Call `run_app` with `app` `character-swap`, `image_url` set to the picture whose person is replaced (the scene, pose and light stay) and `image2_url` set to the character picture that takes their place, `max_credits` equal to the price and a new `idempotency_key`.
5. 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.
6. Check the result with the user. Another run costs the price again, so ask first. Do not post or share the result for them.