Loading...
Loading...
Generate and edit images using AI. Use when users ask to: create/draw/generate images, take selfies, edit/modify photos, change backgrounds, add elements to images, create avatars, make logos, etc. Covers requests like '发自拍', '画一只猫', '把背景换成蓝色', 'generate a logo', 'send me a selfie'.
npx skill4agent add naohainezha/skill image-genalma imagealma image generate "detailed prompt describing the image"alma image edit /path/to/source.jpg "describe the changes you want"~/.config/alma/selfies/alma image generatealma image generate "Photorealistic smartphone selfie, real photograph NOT illustration NOT anime. A cute girl with [ALL face details], [ALL hair details], wearing [EXACT clothing from appearance], [ALL style/makeup/accessory details], [擦边 elements if described], [vary the setting/pose/lighting]. Shot on iPhone, natural lighting, real skin texture."LATEST=$(alma selfie latest)alma image generate "A selfie of [your appearance], [new setting/outfit/pose]" --reference "$LATEST"alma selfie save /path/to/approved-selfie.jpgalma selfie list # List all saved selfies
alma selfie latest # Get path to most recent selfie
alma selfie save <path> # Save an image to your album
alma selfie count # How many selfies you have# Check if we have previous selfies for face consistency
COUNT=$(alma selfie count)
if [ "$COUNT" -gt "0" ]; then
LATEST=$(alma selfie latest)
IMG=$(alma image generate "A cheerful selfie at a coffee shop, warm lighting, latte art visible" --reference "$LATEST")
else
IMG=$(alma image generate "A cheerful selfie of [appearance from SOUL.md], at a coffee shop, warm lighting")
fi
# DO NOT auto-save! Just output the image. Only save when user says it looks good.
echo "$IMG"--referencegenerate