Skip to content

Instantly share code, notes, and snippets.

@tkellogg
Created December 24, 2025 13:59
Show Gist options
  • Select an option

  • Save tkellogg/c8555e5e2ee523ffd138fb1801062d18 to your computer and use it in GitHub Desktop.

Select an option

Save tkellogg/c8555e5e2ee523ffd138fb1801062d18 to your computer and use it in GitHub Desktop.
name description
images
Generate images, infographics, and diagrams using Gemini AI

Image Generation

Use this skill when Tim asks for visual content: infographics, diagrams, illustrations, or any image.

Quick Reference

# Generate an image
python generate_image.py "Your detailed prompt here" state/images/output.png

# Send to Tim
# Use the send_image tool with the path

Prompt Writing for Gemini 3 Pro Image

Gemini 3 Pro Image is a reasoning model - it thinks through complex prompts and can use Google Search for grounded results. Write prompts that leverage this.

Being a reasoning model, you should not be overly specific. Instead, surface information or theories. Focus on the ideas you want conveyed and let the model be the artist. It's remarkably good at figure out how to best layout information for easy consumption.

For Infographics

Specify:

  • Topic - be specific about the topic
  • The Focus - Don't boil the ocean, tell it what you're most interested in seeing
  • Visual style - I've noticed that "simple colors" goes a long way to removing visual noise

Example:

Create an infographic titled "Morning Routine for Focus". The important phases are Wake Up, Hydrate, Move, & Plan.
Use simple colors and make it easy to follow.

For Diagrams (Mermaid)

Use render_mermaid.py for standard mermaid diagrams - it's free and fast via mermaid.ink API:

# Pipe mermaid code directly
python render_mermaid.py state/images/diagram.png << 'EOF'
graph TD
    A[Start] --> B[Process] --> C[End]
EOF

Only use Gemini for diagrams if Tim wants a stylized/artistic version.

File Management

  • Save to: state/images/ (gitignored)
  • Use descriptive names: morning-routine.png, project-arch.png
  • Files persist locally but aren't committed

Workflow

  1. Understand what Tim wants visualized
  2. Gather any data/context from state files if relevant
  3. Write a detailed, structured prompt
  4. Generate: python generate_image.py "prompt" state/images/filename.png
  5. Send: use send_image tool with path and optional caption
  6. If Tim wants changes, adjust prompt and regenerate

Tips

  • Be explicit - vague prompts get generic results
  • Include text verbatim - if you want specific words, write them out
  • Specify colors - hex codes or descriptive (soft blue, warm orange)
  • Leverage reasoning - Gemini can research and incorporate real data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment