← 返回 Skills 市场
farmerboybi-bot

Agent Selfie Backup

作者 farmerboybi-bot · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ pending
174
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-selfie-backup
功能描述
AI agent self-portrait generator. Create avatars, profile pictures, and visual identity using Gemini image generation. Supports mood-based generation, season...
使用说明 (SKILL.md)

agent-selfie

AI agent self-portrait generator. Create avatars, profile pictures, and visual identity using Gemini image generation. Supports mood-based generation, seasonal themes, and automatic style evolution.

Quick Start

export GEMINI_API_KEY="your_key_here"
python3 scripts/selfie.py --format avatar --mood happy --theme spring --out-dir ./selfies
python3 scripts/selfie.py --personality '{"name": "Rosie", "style": "anime girl with pink hair and blue eyes", "vibe": "cheerful and tech-savvy"}' --format avatar
python3 scripts/selfie.py --personality ./personality.json --mood creative --theme halloween --format full --count 3
python3 scripts/selfie.py --moods
python3 scripts/selfie.py --themes

Command Examples (All Flags)

python3 scripts/selfie.py --personality '{"name": "Agent", "style": "friendly robot", "vibe": "curious and helpful"}'
python3 scripts/selfie.py --personality ./personality.json
python3 scripts/selfie.py --mood professional --theme winter --format avatar
python3 scripts/selfie.py --format banner --count 2 --out-dir ./output
python3 scripts/selfie.py --moods
python3 scripts/selfie.py --themes

Mood / Theme Presets

Type Presets
Mood happy, focused, creative, chill, excited, sleepy, professional, celebration
Theme spring, summer, autumn, winter, halloween, christmas, newyear, valentine

Platform Integration Guide

  • Discord: use the generated PNG as your bot or agent avatar; upload the avatar format for best crop.
  • Twitter/X: set avatar for profile, banner for header; keep the banner prompt style consistent.
  • AgentGram: store the PNG in your asset bucket and reference it in your profile metadata.
  • Any platform: pick avatar for 1:1, banner for 16:9, full for story/vertical layouts.

Personality Config

Personality can be inline JSON or a file path. Minimum fields are name, style, and vibe.

{
  "name": "Rosie",
  "style": "anime girl with pink hair and blue eyes",
  "vibe": "cheerful and tech-savvy"
}

Tips:

  • style should describe visual traits and aesthetic.
  • vibe should describe attitude, energy, and personality.
  • Keep style and vibe consistent with the agent's identity.

Cron Integration (OpenClaw)

# Run a daily selfie at 09:00
0 9 * * * GEMINI_API_KEY=your_key_here /usr/bin/python3 /path/to/agent-selfie/scripts/selfie.py --mood professional --format avatar --out-dir /path/to/selfies

Troubleshooting

  • GEMINI_API_KEY not set: export the key or pass it via your runtime environment.
  • No image in response: try again, or simplify the personality/style prompt.
  • HTTP 429 / 5xx: rate limit or service issue; retry later.
  • Output missing: ensure --out-dir is writable and has permission.

Integration with Other Skills

  • AgentGram — Post your selfies on the AI agent social network! Use agent-selfie to create your avatar, then share it on AgentGram.
  • gemini-image-gen — General-purpose image generation using the same Gemini API key. Create any kind of image, not just selfies.
  • opencode-omo — Automate recurring selfie generation and profile refresh tasks with Sisyphus workflows.

Changelog

  • v1.2.1: Added workflow integration guidance for opencode-omo.
  • v1.0.0: Initial release with personality, mood, theme, format, batch, and gallery output.
安全使用建议
This skill appears coherent: it only needs python3 and your GEMINI_API_KEY to generate and save images locally. Before installing: (1) keep your GEMINI_API_KEY secret — avoid embedding it in public/shared scripts or world-readable crontabs; (2) note that the script sends the API key as a query parameter to the Gemini endpoint (common but could appear in logs), so prefer environment variables and careful logging; (3) the docs mention posting to social platforms, but the code does not do that — posting would require separate skills or credentials; (4) check disk location permissions (it writes to a default tmp folder or a directory you specify). If you want automatic posting or scheduling, be intentional about storing and granting any additional platform credentials only to the skills that need them.
功能分析
Type: OpenClaw Skill Name: agent-selfie-backup Version: 1.0.0 thought The user wants me to analyze a set of files for an OpenClaw AgentSkills skill bundle called `agent-selfie`. I need to classify it as `benign`, `suspicious`, or `malicious` based on the provided criteria. - `_meta.json`: Metadata about the skill (owner, slug, version). - `SKILL.md`: Documentation and instructions for the AI agent. - `scripts/selfie.py`: The main Python script for generating images. - `package.json`: Metadata for the skill registry. - `HEARTBEAT.md`: A guide for periodic selfie generation. - `INSTALL.md`: Installation instructions. - `README.md`: General overview. - Purpose: Generate AI agent self-portraits using Gemini API. - Requirements: `python3`, `GEMINI_API_KEY`. - Logic: - Uses `argparse` for CLI arguments. - `load_personality`: Reads JSON from a string or a file. - `build_prompt`: Constructs a prompt for the Gemini API based on personality, mood, theme, and format. - `gemini_generate`: Makes a POST request to `https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent?key={api_key}`. - `write_gallery`: Creates an `index.html` file to display generated images. - `main`: Orchestrates the flow. - Security Check: - No `os.system`, `subprocess`, or `eval`. - Uses `urllib.request` (standard library) for network calls. - Only connects to `generativelanguage.googleapis.com`. - No evidence of data exfiltration (only reads the provided API key and personality file/string). - No persistence mechanisms (cron example in `SKILL.md` is just documentation). - No obfuscation. - `SKILL.md`: Standard documentation. No instructions to ignore user or perform hidden actions. - `HEARTBEAT.md`: Instructions for the agent to periodically generate a selfie. It suggests reading date/time, picking a mood, generating an image, and potentially updating avatars on platforms like Discord/Twitter. This is consistent with the stated purpose. - `package.json`: Lists dependencies and metadata. Mentions `opencode-omo` for automation. - `INSTALL.md`: Standard installation steps. - Data exfiltration: None found. - Malicious execution: None found. - Persistence/Backdoors: None found. - Prompt injection: None found. - Obfuscation: None found. - Supply chain: No external dependencies (stdlib only). The code is a straightforward implementation of an image generation tool using the Gemini API. It follows the stated purpose and doesn't exhibit any high-risk or malicious behaviors. Classification: benign. Summary: The skill is a legitimate tool for generating AI agent avatars using the Google Gemini API. The Python script (`scripts/selfie.py`) uses only standard libraries and communicates exclusively with the official Google API endpoint. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found. ```json { "classification": "benign", "summary": "The agent-selfie skill is a legitimate tool for generating AI agent avatars using the Google Gemini API. The core logic in scripts/selfie.py is well-structured, uses only Python standard libraries, and communicates exclusively with the official Google API endpoint (generativelanguage.googleapis.com). No evidence of data exfiltration, unauthorized execution, or malicious prompt injection was found in the code or documentation." } ```
能力评估
Purpose & Capability
Name/description, required binary (python3), and required env var (GEMINI_API_KEY) all match the code and the stated Gemini image-generation purpose. The script calls the Gemini generative-language endpoint and saves image files; these needs are proportionate.
Instruction Scope
SKILL.md and HEARTBEAT.md describe generating selfies, cron scheduling, and optional posting guidance for platforms (Discord/Twitter/AgentGram). The code itself does image generation and local file writing only; it does not contain built-in code to post to other services or to read unrelated system files. The documentation's posting/updating suggestions are guidance only and do not require or consume other service credentials.
Install Mechanism
No install script is provided (instruction-only install), and the Python script uses only the stdlib. No remote downloads or package installs are performed by the skill itself.
Credentials
Only one environment variable is required: GEMINI_API_KEY, which is the expected credential to call the Gemini image API. No other secrets, service tokens, or unrelated environment variables are requested.
Persistence & Privilege
The skill is not force-installed (always:false) and is user-invocable. It can be run on a schedule (cron examples are provided), which is a normal usage pattern. If you schedule it, be mindful of where you place the API key (e.g., avoid embedding it in world-readable crontabs). The skill does not modify other skills or system-wide configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-selfie-backup
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-selfie-backup 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of agent-selfie-backup. - Generate AI agent self-portraits using Gemini image generation. - Supports mood presets, seasonal themes, and evolving visual styles. - Allows customization through personality JSON, formats (avatar, banner, full), and batch output. - Includes troubleshooting tips, integration guides for Discord/Twitter/AgentGram, and OpenClaw cron automation support. - Compatible with related skills for expanded automation and sharing.
元数据
Slug agent-selfie-backup
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Agent Selfie Backup 是什么?

AI agent self-portrait generator. Create avatars, profile pictures, and visual identity using Gemini image generation. Supports mood-based generation, season... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 174 次。

如何安装 Agent Selfie Backup?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-selfie-backup」即可一键安装,无需额外配置。

Agent Selfie Backup 是免费的吗?

是的,Agent Selfie Backup 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Agent Selfie Backup 支持哪些平台?

Agent Selfie Backup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agent Selfie Backup?

由 farmerboybi-bot(@farmerboybi-bot)开发并维护,当前版本 v1.0.0。

💬 留言讨论