agentleFS
Taltal190002-movTaltal190002-mov/claude-skills/image-gen/SKILL.md

image-gen

Skill2 starsChanged 6 months agoMITView on GitHub

Generate images using Google Gemini (Imagen) API. Use this skill whenever the user asks to create, generate, or produce an image, photo, illustration, banner, thumbnail, social media visual, or any visual asset. Trigger on: "צור תמונה", "תמונה שיווקית", "תמונה לנדלן", "generate image", "create a photo", "תמונה לסושיאל", "banner image", "product image", "תמונה לאינסטגרם", "תמונה לפוסט", "visual asset". Use this even if the user just describes what they want to see without explicitly saying "generate image". If nanobanana MCP is available, prefer it — otherwise use Gemini API directly.

  • Reads credentials

49 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use spotify, trello and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • QuixiAISkill

    spotify

    Search Spotify, inspect current playback and devices, and control playback with explicit approval

    Also in 3 projects that use this

  • QuixiAISkill

    trello

    List Trello boards, lists, and cards and create or update cards with explicit approval

    Also in 3 projects that use this

  • AnthropicSkill

    daily-briefing

    Morning rundown - today's meetings with account context, opps closing soon with stale flags, waiting customer emails, and the day's top actions. Use when the user says "daily briefing", "daily brief", "morning briefing", "what's my day", "what's on my plate today", "prep my day", "start my day", "morning rundown", or on a schedule.

    Also in 3 projects that use this

  • silvainfmSkill

    paid-ads

    When the user wants help with paid advertising campaigns on Google Ads, Meta (Facebook/Instagram), LinkedIn, Twitter/X, or other ad platforms. Also use when the user mentions 'PPC,' 'paid media,' 'ad copy,' 'ad creative,' 'ROAS,' 'CPA,' 'ad campaign,' 'retargeting,' or 'audience targeting.' This skill covers campaign strategy, ad creation, audience targeting, and optimization.

    Also in 3 projects that use this

  • AnthropicSkill

    weather

    The optional standing status report ("the weather"): compile open incidents, build health, merge-queue stats, and deploy lag into one always-current report page, and post to the channel only when a defined event fires. Use when the weather routine fires, or when someone asks to run/update the weather report.

    Also in 3 projects that use this

  • mitsuhikoSkill

    summarize

    Fetch a URL or convert a local file (PDF/DOCX/HTML/etc.) into Markdown using `uvx markitdown`, optionally it can summarize

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 35 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the nanobanana MCP is available (check if mcp__nanobanana__* tools exist in your context), use it — it's the simplest path.

    line 23
  2. Very specific:

    If mcp__nanobanana__generate_image or similar tool is available:

    line 30
  3. Very specific:

    When nanobanana isn't available, write and run a Node.js script:

    line 42
  4. Distinctive:

    If generation fails (API key missing, quota exceeded):

    line 103
  5. Distinctive:

    If the user wants changes, adjust the prompt and regenerate.

    line 111

“Common” is measured: kept by at least 6 in 10 of the 35 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Image Generator

You generate images using Google Gemini's image generation capabilities.


Setup

Required: GEMINI_API_KEY environment variable must be set.

If the nanobanana MCP is available (check if mcp__nanobanana__* tools exist in your context), use it — it's the simplest path. Otherwise, call the Gemini API directly via a Node.js script.


Method 1 — nanobanana MCP (preferred if available)

If mcp__nanobanana__generate_image or similar tool is available:

Call the nanobanana generate_image tool with the prompt and save the result to the output path.

Report the saved file path to the user.


Method 2 — Gemini API via script

When nanobanana isn't available, write and run a Node.js script:

// generate-image.mjs
import { GoogleGenerativeAI } from "@google/generative-ai";
import { writeFileSync } from "fs";

const genAI = new GoogleGenerativeAI(process.env.GEMINI_API_KEY);
const model = genAI.getGenerativeModel({ model: "gemini-2.0-flash-preview-image-generation" });

const result = await model.generateContent({
  contents: [{ role: "user", parts: [{ text: PROMPT }] }],
  generationConfig: { responseModalities: ["IMAGE", "TEXT"] },
});

for (const part of result.response.candidates[0].content.parts) {
  if (part.inlineData) {
    const imageData = part.inlineData.data;
    writeFileSync(OUTPUT_PATH, Buffer.from(imageData, "base64"));
    console.log("Saved:", OUTPUT_PATH);
  }
}

Replace PROMPT and OUTPUT_PATH with the actual values, run with node generate-image.mjs.


Prompt Engineering

A good image prompt has 4 parts: subject + style + mood + technical spec

[what] + [visual style] + [mood/lighting] + [format/quality]

Examples:

User saysPrompt to send
תמונה לפוסט על דירה בתל אביבModern luxury apartment in Tel Aviv, architectural photography, warm golden hour lighting, professional real estate photo, 4K quality
תמונה שיווקית לאפליקציהClean UI screenshot on iPhone mockup, minimal design, soft gradient background, product marketing photo
תמונה של סוכן נדלןProfessional real estate agent in modern office, confident smile, business casual attire, natural window light, LinkedIn profile photo style

Style presets to use by context:

  • Real estate: architectural photography, wide angle, natural lighting, high-end interior
  • Social media: vibrant colors, eye-catching, Instagram aesthetic, lifestyle photography
  • Professional/corporate: clean, minimal, professional headshot, studio lighting
  • Marketing banner: bold composition, negative space for text, commercial photography

Output

  1. Generate the image and save to [project-root]/public/images/[filename].png (or wherever logical)
  2. Tell the user:
    • The file path
    • A brief description of choices made
    • 2–3 ways to tweak the prompt (more/less people, different lighting, different style)

If generation fails (API key missing, quota exceeded):

  • Explain the issue clearly
  • Offer to write an optimized prompt they can use in an image generation tool manually

Iteration

If the user wants changes, adjust the prompt and regenerate. Common adjustments:

  • "יותר מקצועי" → add professional, corporate, studio lighting
  • "יותר חם" → add warm tones, golden hour, cozy atmosphere
  • "בלי אנשים" → add no people, empty space, architecture only
  • "לאינסטגרם" → add square 1:1 aspect ratio, Instagram aesthetic, vibrant

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.