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...".
Generate images using Google's Gemini model via Deno. Triggers when users request image creation or transformation from text prompts.
/plugin marketplace add ghostmind-dev/system/plugin install utils@ghostmindThis skill inherits all available tools. When active, it can use any tool Claude has access to.
scripts/deno.jsonscripts/deno.lockscripts/generate-image.tsGenerate images using Google's Gemini 2.0 Flash image generation model, running with Deno.
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
GOOGLE_API_KEY environment variable must be setThe 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) |
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
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"
});
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.