visual-identity
БесплатноЗапускает вложенные скриптыНе проверенBuild and maintain a persistent visual identity for your agent using Flux Kontext Pro. Use when the user asks the agent to generate selfies, avatars…
от letta-ai★ 158 звёзд на GitHubОб этом скилле
Visual Identity
Build a persistent visual identity that stays consistent across sessions. Supports OpenAI (gpt-image-1) and Flux Kontext Pro.
Two workflows:
- Visual identity (primary): Establish a reference appearance, then generate new scenes that preserve the same face and features. Identity persists in the agent's memory across sessions.
- Text-to-image (secondary): One-off image generation from a text prompt, no identity persistence.
When to use
- The user asks "show me what you look like" or wants agent selfies
- The user wants an avatar, profile picture, or character art
- The user wants to create a visual identity (a consistent character across scenes)
- The user provides a reference photo and wants variations or new scenes
- The user asks you to generate or create any image
Environment
The script auto-detects which provider to use based on environment variables:
| Priority | Env var | Provider | Notes |
|---|---|---|---|
| 1st | OPENAI_API_KEY |
OpenAI gpt-image-1 | Recommended. Most users already have this. |
| 2nd | BFL_API_KEY |
Flux Kontext Pro | Better face consistency. Requires BFL account. |
You can override with --provider openai or --provider flux.
If neither key is set, guide the user:
- OpenAI (recommended): They likely already have an
OPENAI_API_KEYset. If not, https://platform.openai.com/api-keys - Flux: https://api.bfl.ai to create an account, keys at https://api.bfl.ai/auth/login, credits at https://api.bfl.ai/credits
Never ask the user to paste the full key in chat.
Dependencies
Install if missing (prefer uv):
uv pip install requests Pillow
If uv is unavailable:
pip3 install requests Pillow
Workflow 1: Visual Identity (Character Consistency)
This is the primary workflow. The goal is to establish a reference appearance and then generate new scenes that preserve the same face, bone structure, and features.
Step 1: Establish the reference
Either the user provides a photo, or you generate a base character:
Option A -- User provides a reference photo: The user pastes or specifies an image file. Save it to the persistent identity directory (see "Persisting Visual Identity" below).
Option B -- Generate a base character from text: Use text-to-image to create the initial character. Be very specific about physical features. Example prompt:
A portrait of a young woman with shoulder-length auburn hair, green eyes, light freckles, wearing a black leather jacket. Clean background, studio lighting, 3:4 portrait.
Save the result as the reference image.
Step 2: Generate scenes with the reference
Pass the reference image as base64-encoded input_image:
python3 <path-to-skill>/scripts/generate_image.py edit \
--reference /path/to/canonical.jpg \
--prompt "The same person is sitting at a desk coding late at night, lit by monitor glow" \
--out /tmp/identity_coding.jpg
Step 3: Anchor the prompt
Always include an identity-anchoring phrase in every prompt that uses a reference. This tells the model to preserve facial features:
Keep his/her exact face, bone structure, eye color, and hair.
Or more naturally woven into the prompt:
The same man is relaxing on a tropical beach at sunset, wearing a linen shirt. Golden hour lighting. Keep his exact face, bone structure, eye color, and hair.
Step 4: Iterate with the user
- Show each result and ask for feedback
- Adjust scene, clothing, lighting, or setting based on feedback
- Always reuse the same reference image for consistency
- If the user wants to change the base appearance, go back to Step 1
Example session flow
- User: "Create a visual identity for me -- here's my photo"
- Agent: Saves reference, generates 2-3 scenes (beach, office, hiking)
- User: "I like the beach one but make me wearing a hat"
- Agent: Regenerates beach scene with hat, same reference
- User: "Now make one of me cooking"
- Agent: New scene with same reference
Persisting Visual Identity
Two things persist across sessions: the reference image (binary) and the identity metadata (markdown). They live in different places.
Reference image: agent data directory
Save the canonical reference image to ~/.letta/agents/$AGENT_ID/reference/visual-identity/canonical.jpg. This is outside memfs because binary images would bloat the git-backed memory repo. The reference/ directory persists across sessions.
mkdir -p ~/.letta/agents/$AGENT_ID/reference/visual-identity
cp /tmp/generated_portrait.jpg ~/.letta/agents/$AGENT_ID/reference/visual-identity/canonical.jpg
Identity metadata: memfs
After establishing a visual identity, create a memory file at reference/visual-identity.md in the agent's memory filesystem. This syncs via git like all other memory files.
Use the Memory tool to create it:
memory(command="create", reason="Store visual identity metadata",
file_path="reference/vi
Установить visual-identity в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл visual-identity?
Build and maintain a persistent visual identity for your agent using Flux Kontext Pro. Use when the user asks the agent to generate selfies, avatars, character art, or any image that should look like the same person across generations.
Как установить скилл visual-identity?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл visual-identity запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub