Banana
DocumentsbananaBanana is an Agent Skill for documents published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Generate images using Google's Gemini image generation model with Deno. Use this skill when the user wants to create AI-generated images, perform image-to-image transformations, or generate visual content from text prompts. Triggers include requests like "generate an image of...", "create a picture of...", "make an image with...", or "transform this image to...".
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/banana/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/banana, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Banana Image Generation Skill
Generate images using Google's Gemini 2.0 Flash image generation model, running with Deno.
Quick Start
Generate an image from a text prompt:
deno run --allow-all scripts/generate-image.ts "A cat eating a nano-banana in a fancy restaurant"
Transform an existing image:
deno run --allow-all scripts/generate-image.ts "Make this cat wear a top hat" --input cat.png --output fancy-cat.png
Requirements
GOOGLE_API_KEYenvironment variable must be set- Deno runtime
Script Usage
The scripts/generate-image.ts script supports:
| Flag | Description |
|---|---|
<prompt> | Text description of the image to generate (required) |
--input <path> | Input image for image-to-image generation (optional) |
--output <path> | Output path for generated image (default: generated-image.png) |
Examples
Text-to-image:
deno run --allow-all scripts/generate-image.ts "A futuristic city at sunset"
Image-to-image with custom output:
deno run --allow-all scripts/generate-image.ts "Add a rainbow to the sky" --input landscape.jpg --output rainbow-landscape.png
Programmatic Usage
Import and use in Deno scripts:
import { generateImage } from "./scripts/generate-image.ts";
await generateImage({
prompt: "A nano-banana floating in space",
outputPath: "space-banana.png"
});
With input image:
await generateImage({
prompt: "Make this banana purple",
imagePath: "banana.png",
outputPath: "purple-banana.png"
});