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.
1---
2name: agent-selfie
3description: 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.
4homepage: https://github.com/IISweetHeartII/agent-selfie
5metadata:
6 source: https://skillmd.com/skills/modbender/agent-selfie
7 openclaw:
8 emoji: "🤳"
9 category: creative
10 requires:
11 bins:
12 - python3
13 env:
14 - GEMINI_API_KEY
15 primaryEnv: GEMINI_API_KEY
16 tags:
17 - selfie
18 - avatar
19 - identity
20 - creative
21 - profile
22 - ai-art
23---
24
25# agent-selfie
26
27AI 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.
28
29## Quick Start
30
31```bash
32export GEMINI_API_KEY="your_key_here"
33python3 scripts/selfie.py --format avatar --mood happy --theme spring --out-dir ./selfies
34```
35
36```bash
37python3 scripts/selfie.py --personality '{"name": "Rosie", "style": "anime girl with pink hair and blue eyes", "vibe": "cheerful and tech-savvy"}' --format avatar
38```
39
40```bash
41python3 scripts/selfie.py --personality ./personality.json --mood creative --theme halloween --format full --count 3
42```
43
44```bash
45python3 scripts/selfie.py --moods
46python3 scripts/selfie.py --themes
47```
48
49## Command Examples (All Flags)
50
51```bash
52python3 scripts/selfie.py --personality '{"name": "Agent", "style": "friendly robot", "vibe": "curious and helpful"}'
53python3 scripts/selfie.py --personality ./personality.json
54python3 scripts/selfie.py --mood professional --theme winter --format avatar
55python3 scripts/selfie.py --format banner --count 2 --out-dir ./output
56python3 scripts/selfie.py --moods
57python3 scripts/selfie.py --themes
58```
59
60## Mood / Theme Presets
61
62| Type | Presets |
63| --- | --- |
64| Mood | happy, focused, creative, chill, excited, sleepy, professional, celebration |
65| Theme | spring, summer, autumn, winter, halloween, christmas, newyear, valentine |
66
67## Platform Integration Guide
68
69- Discord: use the generated PNG as your bot or agent avatar; upload the `avatar` format for best crop.
70- Twitter/X: set `avatar` for profile, `banner` for header; keep the banner prompt style consistent.
71- AgentGram: store the PNG in your asset bucket and reference it in your profile metadata.
72- Any platform: pick `avatar` for 1:1, `banner` for 16:9, `full` for story/vertical layouts.
73
74## Personality Config
75
76Personality can be inline JSON or a file path. Minimum fields are `name`, `style`, and `vibe`.
77
78```json
79{
80 "name": "Rosie",
81 "style": "anime girl with pink hair and blue eyes",
82 "vibe": "cheerful and tech-savvy"
83}
84```
85
86Tips:
87- `style` should describe visual traits and aesthetic.
88- `vibe` should describe attitude, energy, and personality.
89- Keep `style` and `vibe` consistent with the agent's identity.
90
91## Cron Integration (OpenClaw)
92
93```cron
94# Run a daily selfie at 09:00
950 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
96```
97
98## Troubleshooting
99
100- `GEMINI_API_KEY not set`: export the key or pass it via your runtime environment.
101- `No image in response`: try again, or simplify the personality/style prompt.
102- `HTTP 429 / 5xx`: rate limit or service issue; retry later.
103- Output missing: ensure `--out-dir` is writable and has permission.
104
105## Integration with Other Skills
106
107- **[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.
108- **[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.
109- **[opencode-omo](https://clawhub.org/skills/opencode-omo)** — Automate recurring selfie generation and profile refresh tasks with Sisyphus workflows.
110
111## Changelog
112
113- v1.2.1: Added workflow integration guidance for opencode-omo.
114- v1.0.0: Initial release with personality, mood, theme, format, batch, and gallery output.