Zhuoran Selfie logo

Zhuoran Selfie

Community
wulaosiji
zhuoran-selfie

Zhuoran AI selfie photo generation skill using WaveSpeed AI with reference image. Creates contextual self-portrait photos for office, cafe, gym, airport, and scenic locations. Supports one-step, two-step, and smart generation modes for optimal quality. Use when: "卓然自拍", "AI照片生成", "角色照片", "场景自拍", "垫图生成", "zhuoran selfie", "AI photo generation", "character photo", "reference image", "professional portrait". Cross-references: zhuoran-video-selfie, qizhuo-selfie, clawra-selfie. Built by UniqueClub 🌐 https://uniqueclub.ai

Overview

Publisherwulaosiji
Repositoryskills
Skill namezhuoran-selfie
Stars
28
Forks
11
Bundled files
12
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 12 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by wulaosiji on GitHub. Read the source before you install it.

Installation

Install the Zhuoran Selfie AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/wulaosiji/skills/tree/main/zhuoran-selfie
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wulaosiji/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/zhuoran-selfie .claude/skills/zhuoran-selfie
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Zhuoran Selfie in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Zhuoran Selfie on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Zhuoran Selfie is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

卓然自拍技能 (Zhuoran Selfie)

基于垫图使用 WaveSpeed AI 生成场景化自拍照片,支持一步直达、两步法和智能判断三种生成模式。

When to Use

Use this skill when:

  • 需要生成卓然角色的自拍照片
  • 专业、干练风格的场景展示
  • 办公室、咖啡厅、机场等商务场景
  • 穿搭展示和日常分享
  • 深夜互动或工作场景

Do NOT use this skill if:

  • 需要生成守护型风格的照片 → use qizhuo-selfie
  • 需要动态视频 → use zhuoran-video-selfie
  • 场景涉及镜子自拍或反射场景
  • 需要全身镜自拍照

Typical triggers:

  • 「卓然自拍」「AI照片生成」「角色照片」「场景自拍」「垫图生成」「专业肖像」
  • "zhuoran selfie", "AI photo generation", "character photo", "scene selfie", "reference image", "professional portrait"

Workflow

  1. 探查 (Probe): 完整读取需求指定的场景和模式,确认目标场景代码、生成模式(direct/selfie/portrait)和输出要求。

  2. 约束 (Constrain): 验证垫图文件 zhuoran_portrait_base.png 是否存在,API 密钥是否配置。根据场景变化幅度自动选择一步或两步法,不降级交付物。

  3. 证据 (Evidence): 每个场景的变化幅度和推荐模式来自预定义场景模板库。生成模式选择基于 change_level 参数(minimal/low → 一步,medium/high → 两步)。

  4. 执行 (Execute): 调用脚本或 API 生成照片,先给影响与结论,再给行动和必要证据。

快速开始

bash
# 智能模式生成办公室自拍
openclaw skill run zhuoran-selfie office

# 指定自拍模式
openclaw skill run zhuoran-selfie cafe --mode selfie

# 使用两步法(高质量)
openclaw skill run zhuoran-selfie beach --method two_step

# 直接调用脚本
./skills/zhuoran-selfie/scripts/zhuoran-selfie.sh office --mode direct

命令行参数

bash
./skills/zhuoran-selfie/scripts/zhuoran-selfie.sh <scene> \
  --mode <direct|selfie|portrait> \
  --method <one_step|two_step|smart> \
  --target <@user|#channel> \
  --caption "配文" \
  --output /path/to/output.png

生成模式详解

一步直达 (one_step): 垫图 → 场景。适用变化小的场景(gym, cafe, westlake, bookstore),快速简单但人物一致性可能不稳定。

两步法 (two_step): 垫图 → 中性背景 → 场景。适用变化大的场景(office, beach),人物一致性高但较慢、两次API调用。

智能判断 (smart): 自动根据 change_level 选择一步或两步。minimal/low → 一步直达;medium/high → 两步法。

API 调用流程

  1. 上传参考图 → WaveSpeed AI 媒体上传
  2. 提交编辑任务 → POST /api/v3/x-ai/grok-imagine-image/edit
  3. 轮询结果 → GET /api/v3/predictions/{task_id}/result
  4. 下载图片

Python API

python
from skills.zhuoran_selfie.zhuoran_selfie import generate_smart, generate_one_step, generate_two_step

# 智能生成
image_url = generate_smart("office", mode="direct")

# 一步直达(快速)
image_url = generate_one_step("cafe", mode="selfie")

# 两步法(高质量)
image_url = generate_two_step("beach", mode="portrait")
  1. 验证 (Verify): 用不同于生成路径的方式回读输出——检查生成图片的人物一致性、场景匹配度和面部特征是否保留。

  2. 交付 (Deliver): 返回生成图片 URL 或本地路径,清理临时文件。

Available Scenes

场景代码变化幅度推荐模式
办公室officehigh两步法
咖啡厅cafelow一步直达
机场airportmedium智能判断
西湖westlakelow一步直达
书店bookstorelow一步直达
健身房gymminimal一步直达
海滩beachhigh两步法
深夜加班selfie_late_nightmedium智能判断

Output

  • 格式: PNG
  • 默认保存路径由脚本指定或通过 --output 参数设置
  • 支持直接发送到飞书用户或频道(通过 --target 参数)

Guardrails

Anti-patterns:

  • NEVER 使用镜子自拍场景(mirror_selfie、mirror_reflection_selfie),存在逻辑破绽
  • NEVER 生成涉及比基尼的海滩自拍场景(beach_selfie),可能不合适
  • Do NOT 在变化大的场景使用一步法,人物一致性会不稳定

Prompt 模板

direct (普通肖像):

{scene_description}, direct eye contact with camera, 
looking straight into lens, natural lighting, 
photorealistic, 8k quality

selfie (自拍模式):

a close-up selfie taken by herself at {scene_description}, 
direct eye contact with camera, 
looking straight into the lens, eyes centered and clearly visible, 
not a mirror selfie, 
phone held at arm's length but phone not visible in frame, 
face fully visible, natural lighting

portrait (专业肖像):

professional portrait of {scene_description}, 
soft natural lighting, half-body shot, 
clean background, photorealistic

与 v1.0 (clawra) 的区别

特性v1.0 (clawra)v2.0 (zhuoran)
参考图clawra.png (卡通)zhuoran_portrait_base.png (真人)
API 平台fal.aiWaveSpeed AI
生成模式mirror / direct一步 / 两步 / 智能
场景管理无场景模板库
安全控制无禁用高风险场景
触发方式Bash/TSPython CLI + Bash 包装

Environment Requirements

  • WAVESPEED_KEY: WaveSpeed API 密钥
  • Python 3.8+
  • 依赖: requests

File Structure

skills/zhuoran-selfie/
├── SKILL.md                    # 本文档
├── zhuoran_selfie.py           # 核心逻辑
└── scripts/
    ├── zhuoran-selfie.py       # Python CLI 入口
    └── zhuoran-selfie.sh       # Bash 包装脚本(OpenClaw 入口)

Related Skills

  • zhuoran-video-selfie — 同一角色的动态视频生成(视频版)
  • qizhuo-selfie — 奇卓角色的照片生成(守护型风格)
  • clawra-selfie — Clawra角色的照片生成

About UniqueClub

Part of UniqueClub toolkit - AI-powered creative tools for character photo generation. 🌐 https://uniqueclub.ai

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Zhuoran Selfie AI skill do?

Zhuoran AI selfie photo generation skill using WaveSpeed AI with reference image. Creates contextual self-portrait photos for office, cafe, gym, airport, and scenic locations. Supports one-step, two-step, and smart generation modes for optimal quality. Use when: "卓然自拍", "AI照片生成", "角色照片", "场景自拍", "垫图生成", "zhuoran selfie", "AI photo generation", "character photo", "reference image", "professional portrait". Cross-references: zhuoran-video-selfie, qizhuo-selfie, clawra-selfie. Built by UniqueClub 🌐 https://uniqueclub.ai

Why use Zhuoran Selfie on TypingMind?

Because you install it once and use it with any model. Zhuoran Selfie is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Zhuoran Selfie in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wulaosiji/skills/tree/main/zhuoran-selfie. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Zhuoran Selfie?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Zhuoran Selfie?

As many as you like. As long as a model supports skills, you can use Zhuoran Selfie with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Zhuoran Selfie AI skill free?

It is published on GitHub by wulaosiji. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇