backend/onyx/server/features/build/sandbox/kubernetes/docker/skills/image-generation/SKILL.md
Generate images using nano banana.
npx skillsauth add onyx-dot-app/onyx-foss image-generationInstall 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 using Nano Banana (Google Gemini Image API). Supports text-to-image and image-to-image generation with configurable options.
pip install google-genai Pillow
Set your API key:
export GEMINI_API_KEY="your_api_key_here"
python scripts/generate.py --prompt "A futuristic city at sunset with neon lights" --output city.png
python scripts/generate.py \
--prompt "Mountain landscape with a lake" \
--output landscape.png \
--aspect-ratio 16:9
Use a reference image to guide generation:
python scripts/generate.py \
--prompt "Make it look like a watercolor painting" \
--input-image original.png \
--output watercolor.png
python scripts/generate.py \
--prompt "Abstract colorful art" \
--output art.png \
--num-images 3
| Argument | Short | Required | Default | Description |
|----------|-------|----------|---------|-------------|
| --prompt | -p | Yes | — | Text prompt describing the desired image |
| --output | -o | No | output.png | Output path for the generated image |
| --model | -m | No | gemini-2.0-flash-preview-image-generation | Model to use for generation |
| --input-image | -i | No | — | Reference image for image-to-image mode |
| --aspect-ratio | -a | No | — | Aspect ratio: 1:1, 16:9, 9:16, 4:3, 3:4 |
| --num-images | -n | No | 1 | Number of images to generate |
gemini-2.0-flash-preview-image-generation - Fast, optimized for speed and lower latencyimagen-3.0-generate-002 - High quality image generationImport the function directly in Python:
from scripts.generate import generate_image
paths = generate_image(
prompt="A serene mountain lake under moonlight",
output_path="./outputs/lake.png",
aspect_ratio="16:9",
num_images=2,
)
tools
Query the Onyx knowledge base using the onyx-cli command. Use when the user wants to search company documents, ask questions about internal knowledge, query connected data sources, or look up information stored in Onyx.
documentation
Use this skill any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this skill.
development
Write and maintain Playwright end-to-end tests for the Onyx application. Use when creating new E2E tests, debugging test failures, adding test coverage, or when the user mentions Playwright, E2E tests, or browser testing.
tools
Query the Onyx knowledge base using the onyx-cli command. Use when the user wants to search company documents, ask questions about internal knowledge, query connected data sources, or look up information stored in Onyx.