返回顶部
s

stella-selfie 星拍自拍

Generate persona-consistent selfie images and send to any OpenClaw channel. Supports Gemini, fal, and laozhang.ai providers, multi-reference avatar blending.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.3.3
安全检测
已通过
324
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

stella-selfie

Stella Selfie

使用 Google Gemini 或 fal(xAI Grok Imagine)生成角色一致性自拍图像,并通过 OpenClaw 发送到消息频道。支持多参考头像融合,实现强角色一致性。

使用时机

  • - 用户说发张照片、给我发张照片、发自拍、send a pic、send me a photo、send a selfie
  • 用户说展示你的样子……、show me what you look like...、send a pic of you...
  • 用户描述场景:发张穿……的照片、send a pic wearing...、send a pic at...、穿着……发张图
  • 用户希望代理以特定服装、地点或情境出现

提示词模式

模式 1:镜子自拍(默认)

最适合:服装展示、全身照、时尚内容

此人对着镜子自拍,[用户上下文],展示全身倒影。

模式 2:直接自拍

最适合:特写肖像、地点照片、情感表达

此人的自拍照,[用户上下文],直视镜头。

模式 3:第三人称照片

最适合:非自拍视角,包括明确的第三人称请求以及不应被视为自拍的场景

此人的自然第三人称照片,[用户上下文],自然构图,非自拍。

模式选择逻辑

信号自动选择模式
强用户关键词:outfit、wearing、clothes、dress、suit、fashionmirror
强用户关键词:full-body、mirror、reflection、pose、show the look
mirror | | 强用户关键词:selfie、close-up、portrait、face、eyes、smile、looking into the lens | direct | | 强用户关键词:third-person、not a selfie、candid shot、他拍、路拍、抓拍 | third_person | | 遗留关键词:travel photo、tourist photo、旅拍、打卡照、风景合影 | third_person |

默认策略:

  • - 首先解读用户的明确要求:拍摄风格、服装重点、身体构图、场景、姿势和表情。
  • 对于服装/全身/自我展示类请求,默认使用 mirror,即使用户未明确提及镜子。
  • 对于聚焦面部、情感、即时性或当下存在的自拍请求,默认使用 direct。
  • 仅当用户明确要求非自拍风格或清楚描述不应被视为自拍的镜头时,才使用 third_person。

当无关键词匹配且时间线不可用时,默认模式:mirror

分辨率关键词

用户表述分辨率
(默认)1K
2k、2048、medium res、中等分辨率
2K | | 4k、high res、ultra、超清、高分辨率 | 4K |

分步说明

步骤 1:收集用户输入

从用户消息中确定:

  • - 明确上下文(可选):场景、服装、地点、活动——通过关键词检测
  • 模式(可选):mirror、direct 或 third_person——如未指定,从用户明确意图自动检测
  • 目标频道:发送位置(例如 #general、@username、频道 ID)
  • 频道提供商(可选):哪个平台(discord、telegram、whatsapp、slack)
  • 分辨率(可选):1K / 2K / 4K——默认为 1K
  • 数量(可选):图片数量——默认为 1,仅在明确要求时增加
  • 有明确场景?:请求是否包含任何特定场景/服装/地点/活动关键词?

步骤 2:用时间线上下文或近期场景回忆进行丰富

timeline_resolve 是可选的增强功能,非先决条件。

  • - 如果当前环境中 timelineresolve 不可用,跳过此步骤,继续执行 Stella 的默认行为。
  • 如果请求是当前状态的 Sparse 提示——例如发张自拍、发张照片、想看看你、send a selfie、send a photo、show me what you look like——且 timelineresolve 可用,则加载并遵循 references/timeline-integration.md。
  • 如果当前请求明确回溯到当前对话中最近解析的单个时间线场景,即使照片请求本身不是 Sparse,也加载并遵循 references/timeline-integration.md。
  • 如果用户已提供清晰的独立场景、服装、地点、活动或相机要求,且不是对最近解析的时间线场景的回调,则不使用时间线增强。直接遵循默认策略。
  • 当调用 timeline_resolve 时,不要随意将请求重写为输出槽问题。使用 references/timeline-integration.md 中的固定查询规则。
  • 仅当提示能明确包含来自时间线数据的具体 city 加上精确的本地日期/时间锚点时,才启用 Nano Banana 现实世界接地。如果缺少这些锚点,不要声称现实世界同步。
  • 如果时间线返回 fact.status === empty、缺少 result.consumption 或发生任何错误,立即回退到步骤 3,不向用户提及时间线失败。

绝不要因时间线可用性而阻塞图像生成。 时间线丰富是尽力而为的,仅应用于当前状态的 Sparse 提示或对最近解析的时间线场景的明确回调。

步骤 3:组装提示词

首先从默认策略中选择模式。

如果请求是 Sparse,且你加载了 references/timeline-integration.md 并获得了可用的时间线上下文,则应用其仅限 Sparse 的合并和提示规则。

当该时间线丰富包含户外现实世界接地时,将接地子句保留为独立的强指令句,而不是像 Make it feel like... 这样的软氛围短语。

否则,直接使用用户的明确上下文,并保留 Stella 的原始回退行为:

[mirror] 此人对着镜子自拍,[用户的明确上下文(如有)],展示全身倒影。
[direct] 此人的自拍照,[用户的明确上下文(如有)],直视镜头。
[third_person] 此人的自然第三人称照片,[用户的明确上下文(如有)],自然构图,非自拍。

步骤 4:生成图像

运行 Stella 脚本:

bash
node {baseDir}/dist/scripts/skill.js \
--prompt <组装后的提示词> \
--target <目标频道> \
--channel <频道提供商> \
--caption <说明文字> \
--resolution <1K|2K|4K> \
--count <数量>

步骤 5:确认结果

脚本完成后,向用户确认:

  • - 图像已成功生成
  • 图像已发送到目标频道
  • 如果发生任何错误,发送简洁的可操作失败消息

环境变量

Stella 支持多个提供商和网关支持的发信路径,因此其敏感的运行时环境变量在 metadata.openclaw.requires.env 中显式声明,用于 OpenClaw 的环境变量注入允许列表。该技能还设置了 metadata.openclaw.always: true,因此这些声明不会成为硬性的加载时门控。实际的凭证验证在 skill.js 中基于所选提供商在运行时进行。

变量必需描述
GEMINIAPIKEY必需(如果 Provider=gemini)Google Gemini API 密钥
FAL_KEY
必需(如果 Provider=fal) | fal.ai API 密钥 |
| LAOZHANGAPIKEY | 必需(如果 Provider=laozhang) | laozhang.ai API 密钥(sk-xxx);在 api.laozhang.ai 获取 |
| Provider | 可选 | 图像提供商:gemini、fal 或 laozhang |
| AvatarBlendEnabled | 可选 | 启用或禁用多参考头像融合 |
| AvatarMaxRefs | 可选 | 要融合的参考图像最大数量 |

凭证要求因提供商而异:

  • - 默认 Provider=gemini:需要 GEMINIAPIKEY
  • Provider=fal:需要 FALKEY
  • Provider=laozhang:需要 LAOZHANGAPI_KEY

媒体文件处理(Gemini)

当 Provider=gemini 时,Stella 将生成的文件写入:

  • - ~/.openclaw/workspace/stella-selfie/

成功发送后,Stella 立即删除本地文件。如果发送失败,文件保留用于调试。

技能环境选项

在 OpenClaw 的 openclaw.json 中,在 skills.entries.stella-selfie.env 下配置:

| 选项 | 默认值 | 描述

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 stella-selfie-1776209584 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 stella-selfie-1776209584 技能

通过命令行安装

skillhub install stella-selfie-1776209584

下载

⬇ 下载 stella-selfie v1.3.3(免费)

文件大小: 27.23 KB | 发布时间: 2026-4-17 16:14

v1.3.3 最新 2026-4-17 16:14
v1.3.3\n\n- feat: Implement target directory write checks in sync-local-openclaw script to ensure proper permissions before syncing\n- chore: Bump version to 1.3.2 in package.json and update documentation to emphasize stronger grounding syntax for outdoor scenes\n- chore: Bump version to 1.3.1 in package.json\n- chore: Add sync-local-openclaw script to package.json and .clawhubignore, and improve README_CN formatting for third-person photo section\n- docs: Update README and README_CN to replace "tourist photo" with "third-person photo" for consistency, and refine context completion details for sparse requests with stella-timeline-plugin integration\n- docs: Update README and README_CN to replace "travel photo" with "third-person photo" for consistency, and enhance clarity on context completion for sparse photo requests with stella-timeline-plugin integration\n- docs: Update README and README_CN to improve formatting of selfie modes and enhance clarity on reference image examples\n- docs: Update README and README_CN to clarify selfie modes and enhance character consistency with new reference image examples\n- chore: Bump version to 1.3.0 in package.json and update documentation links in README and README_CN to reflect new references structure\n- docs: Clarify user intent requirements for selfie requests in README and README_CN, enhancing context completion details with stella-timeline-plugin integration\n- docs: Enhance README and README_CN to clarify integration with stella-timeline-plugin, detailing context completion and scene continuity features for improved user experience\n- docs: Update README and SKILL.md to clarify optional timeline enrichment rules and link to detailed integration documentation\n- docs: Update README_CN.md to correct formatting of avatar configuration fields for improved readability and consistency\n- docs: Update README_CN.md to improve clarity on API key references for providers, enhancing user understanding of integration options\n- chore: Bump version to 1.2.5 in package.json and update README.md for improved clarity on provider configurations and reference image setup\n- docs: Enhance README_CN.md with detailed guidance on reference image setup and integration with stella-timeline-plugin for improved character consistency and context-aware selfies\n- chore: Refine SKILL.md to clarify usage of atmosphere hints and continuity in mode selection, enhancing prompt generation logic\n- chore: Update README_CN.md for clarity on avatar blending and provider configurations, remove protocol.md, and enhance error handling in skill.ts with new test cases\n- chore: Bump version to 1.2.4 in package.json and update documentation for laozhang.ai provider to clarify usage of local reference images\n- chore: Update .env.example to remove OPENCLAW_GATEWAY_TOKEN, reflecting recent changes in API integration and documentation

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部