skills/image-from-gemini/SKILL.md
Generate images using Google Gemini API. Use when the user asks to generate, create, or make an image, illustration, poster design, mockup, thumbnail, or any visual asset using AI. Supports uploading reference photos for poster/flyer generation with real people. Also trigger when the user mentions Gemini image generation or asks to visualize something as an image.
npx skillsauth add razbakov/skills image-from-geminiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Generate images from text prompts using Google's Gemini API, optionally with uploaded reference photos.
GEMINI_API_KEY environment variable (or set in ~/.zshrc)python3 (standard on macOS/Linux)python3 ~/.claude/skills/image-from-gemini/scripts/generate.py \
"your detailed image prompt here" \
-o /path/to/output.png
Upload one or more reference photos. Gemini will incorporate the people into the generated design.
# Single photo
python3 ~/.claude/skills/image-from-gemini/scripts/generate.py \
-i /path/to/person.jpg \
"Square Instagram post. Place the person from the photo as the hero..." \
-o /path/to/output.png
# Multiple photos
python3 ~/.claude/skills/image-from-gemini/scripts/generate.py \
-i /path/to/person1.jpg \
-i /path/to/person2.jpg \
-i /path/to/person3.jpg \
"Instagram story with all uploaded people as instructors..." \
-o /path/to/output.png
After generation, use the Read tool to display the image inline. Adjust the prompt and regenerate as needed.
For generating multiple variants, use Python directly to avoid repeated shell calls:
python3 << 'EOF'
import base64, json, os, urllib.request
api_key = os.environ.get("GEMINI_API_KEY")
model = "gemini-3.1-flash-image-preview"
url = f"https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent?key={api_key}"
with open("photo.jpg", "rb") as f:
img_b64 = base64.b64encode(f.read()).decode()
prompts = {
"v1-style": "prompt for style 1...",
"v2-style": "prompt for style 2...",
}
for name, prompt in prompts.items():
payload = {
"contents": [{"parts": [
{"inlineData": {"mimeType": "image/jpeg", "data": img_b64}},
{"text": prompt}
]}],
"generationConfig": {"responseModalities": ["TEXT", "IMAGE"]}
}
data = json.dumps(payload).encode()
req = urllib.request.Request(url, data=data, headers={"Content-Type": "application/json"})
resp = urllib.request.urlopen(req, timeout=180)
result = json.loads(resp.read())
for candidate in result.get("candidates", []):
for part in candidate.get("content", {}).get("parts", []):
if "inlineData" in part:
img_data = base64.b64decode(part["inlineData"]["data"])
with open(f"output-{name}.png", "wb") as f:
f.write(img_data)
break
EOF
When uploading photos of real people for event posters:
rembg (Python) beforehand for cleaner cutouts if needed: uvx --with "rembg[cpu,cli]" rembg i input.jpg output.pngProven styles for event/dance posters:
| Style | Description | Best for | |-------|------------|----------| | Neon | Dark bg, neon pink/cyan streaks, nightclub vibe | Club events, parties | | Cuban | Cuban flag colors, distressed texture, palm shadows, Havana aesthetic | Latin dance, cultural events | | Minimal | Black bg, gold circle frame, Swiss typography | Premium/luxury feel | | Fire | Flames, sparks, dramatic lighting from below | High-energy concerts, competitions | | Warm bokeh | Burgundy/maroon, golden bokeh lights | Warm, inviting classes |
| Model | Best for |
|-------|----------|
| gemini-3.1-flash-image-preview | Fast, good quality (default) |
| gemini-3-pro-image-preview | Higher quality, slower |
export GEMINI_API_KEY=your-key in ~/.zshrccurl -s "https://generativelanguage.googleapis.com/v1beta/models?key=$GEMINI_API_KEY" | python3 -c "import json,sys; [print(m['name']) for m in json.load(sys.stdin)['models'] if 'image' in m['name']]"urllib internally, not curl. If using the API directly, avoid subprocess with large base64 payloads.tools
--- name: handoff description: Get an agent past a browser/UI wall it can't (or must not) cross on its own — a login-gated dashboard, a CAPTCHA, a 2FA prompt, an API that keeps rejecting the write, or an irreversible click that policy says a human must make. This skill is an ESCALATION LADDER, not a first move: it tells you to try the automated browser surfaces FIRST (Chrome-in-Claude, computer-use, an autonomous browser sub-agent) and only fall back to the Handoff app — a wrapper browser that h
documentation
Summarize one or more YouTube videos from their links. Use this whenever the user pastes a youtube.com or youtu.be URL (or several) and wants to know what it's about — phrasings like "summarize to telegram", "tldr these videos", "what do these say", "summary of this talk", or just dropping links with no instruction at all. Fetches each video's real transcript via yt-dlp (not the page text, which never contains the transcript), cleans the captions, and writes a per-video summary. Default delivery is Telegram; honor any other surface the user names ("to my notes", "just here in chat", "email it"). Trigger even when the user only pastes bare links — bare YouTube links almost always mean "tell me what's in these".
data-ai
Daily Digest — Chief-of-Staff role consolidates the six top-managers into one Telegram message to the Commander, instead of six. Implements the protocol from agent-proactivity.md.
development
Seed a new or empty Instagram account with a 9-post grid (3×3) so the profile looks established the moment a new visitor lands. Designed for festivals, new businesses, product launches, conferences, communities — any time an empty IG profile would hurt conversion from external traffic (QR scans, flyer drops, cross-promo). Generates assets via /image-from-gemini (per content-publishing rules — never HTML), writes captions with hashtag sets, and outputs a posting order + cadence plan. Trigger generously: phrases like '9 posts for instagram', 'fill my IG', 'starter grid', 'launch grid', 'instagram seed', '9-post grid', 'IG account not to look empty', 'first instagram posts', 'feed bootstrap', '3x3 grid', 'instagram launch content'. Even if the user mentions only one piece (just the images, just the captions, just the order), use this skill — the grid only works as an integrated bundle.