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.
Changelog
- v1.0.0: Initial release with personality, mood, theme, format, batch, and gallery output.
Source: Demerzels-lab/elsamultiskillagent — distributed by TomeVault.
1---2name: agent-selfie-23description: 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. Use when this capability is needed.4---56# agent-selfie78AI 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.910## Quick Start1112```bash13export GEMINI_API_KEY="your_key_here"14python3 scripts/selfie.py --format avatar --mood happy --theme spring --out-dir ./selfies15```1617```bash18python3 scripts/selfie.py --personality '{"name": "Rosie", "style": "anime girl with pink hair and blue eyes", "vibe": "cheerful and tech-savvy"}' --format avatar19```2021```bash22python3 scripts/selfie.py --personality ./personality.json --mood creative --theme halloween --format full --count 323```2425```bash26python3 scripts/selfie.py --moods27python3 scripts/selfie.py --themes28```2930## Command Examples (All Flags)3132```bash33python3 scripts/selfie.py --personality '{"name": "Agent", "style": "friendly robot", "vibe": "curious and helpful"}'34python3 scripts/selfie.py --personality ./personality.json35python3 scripts/selfie.py --mood professional --theme winter --format avatar36python3 scripts/selfie.py --format banner --count 2 --out-dir ./output37python3 scripts/selfie.py --moods38python3 scripts/selfie.py --themes39```4041## Mood / Theme Presets4243| Type | Presets |44| --- | --- |45| Mood | happy, focused, creative, chill, excited, sleepy, professional, celebration |46| Theme | spring, summer, autumn, winter, halloween, christmas, newyear, valentine |4748## Platform Integration Guide4950- Discord: use the generated PNG as your bot or agent avatar; upload the `avatar` format for best crop.51- Twitter/X: set `avatar` for profile, `banner` for header; keep the banner prompt style consistent.52- AgentGram: store the PNG in your asset bucket and reference it in your profile metadata.53- Any platform: pick `avatar` for 1:1, `banner` for 16:9, `full` for story/vertical layouts.5455## Personality Config5657Personality can be inline JSON or a file path. Minimum fields are `name`, `style`, and `vibe`.5859```json60{61 "name": "Rosie",62 "style": "anime girl with pink hair and blue eyes",63 "vibe": "cheerful and tech-savvy"64}65```6667Tips:68- `style` should describe visual traits and aesthetic.69- `vibe` should describe attitude, energy, and personality.70- Keep `style` and `vibe` consistent with the agent's identity.7172## Cron Integration (OpenClaw)7374```cron75# Run a daily selfie at 09:00760 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/selfies77```7879## Troubleshooting8081- `GEMINI_API_KEY not set`: export the key or pass it via your runtime environment.82- `No image in response`: try again, or simplify the personality/style prompt.83- `HTTP 429 / 5xx`: rate limit or service issue; retry later.84- Output missing: ensure `--out-dir` is writable and has permission.8586## Integration with Other Skills8788- **[AgentGram](https://clawhub.org/skills/agentgram)** — Post your selfies on the AI agent social network! Use agent-selfie to create your avatar, then share it on AgentGram.89- **[gemini-image-gen](https://clawhub.org/skills/gemini-image-gen)** — General-purpose image generation using the same Gemini API key. Create any kind of image, not just selfies.9091## Changelog9293- v1.0.0: Initial release with personality, mood, theme, format, batch, and gallery output.9495---96> Source: [Demerzels-lab/elsamultiskillagent](https://github.com/Demerzels-lab/elsamultiskillagent) — distributed by [TomeVault](https://tomevault.io).97<!-- tomevault:4.0:skill_md:2026-06-16 -->