Agent skill

Image Generation Skill

by Supreme-Ultimate in Supreme-Ultimate/novel-to-script-team

调用 nano banana API(gemini-3.1-flash-image-preview)生成图片。支持纯文本生图和参考图生图。

MITAuto-check: notesMedia & Creative

Install Image Generation Skill

skills CLI
$ npx skills add Supreme-Ultimate/novel-to-script-team --skill image-generation-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Supreme-Ultimate/novel-to-script-team image-generation-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Supreme-Ultimate/novel-to-script-team.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/image-generation-skill .claude/skills/image-generation-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
image-generation-skill
GitHub stars
175
Token cost
~640 tokens
SKILL.md length
92 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

调用 nano banana API(gemini-3.1-flash-image-preview)生成图片。支持纯文本生图和参考图生图。

  • Works in 2 steps: 纯文本生图:提示词 → API → PNG 图片 → 参考图生图:提示词 + 本地参考图(base64 编码)→ API → PNG 图片
  • Tasks that involve Image generation
  • SKILL.md covers 概述, 前置条件, 输入 and 输出, plus 3 more sections
  • Calls python and pip; needs NANO_BANANA_API_KEY

What it does

Image Generation Skill is an agent skill from Supreme-Ultimate/novel-to-script-team. 调用 nano banana API(gemini-3.1-flash-image-preview)生成图片。支持纯文本生图和参考图生图。

Its SKILL.md is about 640 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Media & Creative, covering Image generation. It works with Google Gemini. The repository describes itself as: 完整的多 Agent 多 Skill 小说改编影视流水线系统。 The licence is MIT.

When your agent uses it

  • Tasks that involve Image generation

Example prompts

  • “/image-generation-skill”

Requirements

  • Python 3
  • A credential in NANO_BANANA_API_KEY

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. 纯文本生图:提示词 → API → PNG 图片
  2. 参考图生图:提示词 + 本地参考图(base64 编码)→ API → PNG 图片

What it can do on your machine

Read from SKILL.md and the folder at commit 117dceb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python
    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • NANO_BANANA_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Image Generation Skill loads about 640 tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 92 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~640

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:14
    - `.env` 或环境变量中配置了 `NANO_BANANA_API_KEY` 和 `NANO_BANANA_BASE_URL`
  • NoteMentions a .env fileSKILL.md:31
    确认 `.env` 中有 `NANO_BANANA_API_KEY` 和 `NANO_BANANA_BASE_URL`:
  • NoteMentions a .env fileSKILL.md:33
    test -f .env && grep -q "NANO_BANANA_API_KEY" .env && grep -q "NANO_BANANA_BASE_URL" .env
  • NoteMentions a .env fileSKILL.md:101
    - API key 缺失:提示用户配置 `.env`

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Supreme-Ultimate/novel-to-script-team at commit 117dceb, republished under its MIT licence (© Supreme-Ultimate). 92 words, ~640 tokens.

Download SKILL.mdSave it as .claude/skills/image-generation-skill/SKILL.md (or your agent's skills folder).
name
image-generation-skill
description
调用 nano banana API(gemini-3.1-flash-image-preview)生成图片。支持纯文本生图和参考图生图。

image-generation-skill

概述

调用 nano banana API 将服化道/分镜提示词转化为图片。支持两种模式:

  1. 纯文本生图:提示词 → API → PNG 图片
  2. 参考图生图:提示词 + 本地参考图(base64 编码)→ API → PNG 图片

前置条件

  • .env 或环境变量中配置了 NANO_BANANA_API_KEY 和 NANO_BANANA_BASE_URL
  • Python 3 已安装
  • requests 库已安装(pip install requests)

输入

  • 提示词文件:outputs/{剧本名}/assets/character-prompts.md、scene-prompts.md 或 prop-prompts.md
  • 单条提示词:直接传入文本
  • 可选参考图:本地图片路径

输出

  • 角色图:outputs/{剧本名}/images/characters/{前缀}-{序号}.png
  • 场景图:outputs/{剧本名}/images/scenes/{前缀}-{序号}.png
  • 物品图:outputs/{剧本名}/images/props/{前缀}-{序号}.png

执行流程

步骤1:环境检查

确认 .env 中有 NANO_BANANA_API_KEY 和 NANO_BANANA_BASE_URL:

bash
test -f .env && grep -q "NANO_BANANA_API_KEY" .env && grep -q "NANO_BANANA_BASE_URL" .env
步骤2:生成角色图(第一批,无外部依赖)
bash
python scripts/generate_image.py \
  --prompt-file "outputs/{剧本名}/assets/character-prompts.md" \
  --output-dir "outputs/{剧本名}/images/characters" \
  --prefix char
步骤3:生成物品图(第二批,白底独立策略,仅同族物品间有依赖)
bash
python scripts/generate_image.py \
  --prompt-file "outputs/{剧本名}/assets/prop-prompts.md" \
  --output-dir "outputs/{剧本名}/images/props" \
  --image-base-dir "outputs/{剧本名}/images" \
  --prefix prop
步骤4:生成场景图(第三批,依赖角色图和物品图,通过 --image-base-dir 跨文件引用)
bash
python scripts/generate_image.py \
  --prompt-file "outputs/{剧本名}/assets/scene-prompts.md" \
  --output-dir "outputs/{剧本名}/images/scenes" \
  --image-base-dir "outputs/{剧本名}/images" \
  --prefix scene

生成顺序很重要:角色 → 物品 → 场景 → 帧图,确保被引用的图先生成。场景引用角色图和物品图,所以必须在场景之前生成。帧图依赖角色图和场景图,所以最后生成。

步骤5:生成帧图(第四批,按集组织,依赖角色图 + 场景图)

帧图由 seedance-storyboard-skill 在生成提示词时同步输出到 03-frame-requests.md。帧图按集组织,不跨集累积。

bash
python scripts/generate_image.py \
  --prompt-file "outputs/{剧本名}/storyboard/ep<N>/03-frame-requests.md" \
  --output-dir "outputs/{剧本名}/images/frames/ep<N>" \
  --image-base-dir "outputs/{剧本名}/images" \
  --prefix frame

帧图类型说明:

  • 首帧图:用于 I2V-首帧模式,锁定开场构图
  • 尾帧图:用于首尾帧模式,锁定结束画面
  • 分镜参考图:用于多参考模式多时段,引导各时段画面
步骤6(可选):参考图生图
bash
python scripts/generate_image.py \
  --prompt "根据参考图风格生成..." \
  --reference-image /path/to/reference.png \
  --output-dir "outputs/{剧本名}/images/characters" \
  --prefix char-ref
步骤7:检查输出
  • 确认图片文件存在且非空
  • 报告生成成功/失败的数量

成功标准

  • 所有提示词都已处理
  • 图片文件存在且大小 > 0
  • 文件命名符合 {prefix}-{序号}.png 规范
  • 无 API 调用错误

错误处理

  • API key 缺失:提示用户配置 .env
  • API 调用失败:记录错误,继续处理下一条
  • 图片解码失败:记录错误,跳过该条

© Supreme-Ultimate, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/image-generation-skill of Supreme-Ultimate/novel-to-script-team.

Open the folder on GitHubat commit 117dceb

Compare with similar skills

Image Generation Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Image Generation Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Image Generation Skill this skillSupreme-Ultimate/novel-to-script-team175—~640Automated safety check: NotesMIT
AI Image Generation and Editingzhayujie/CowAgent47k—~1.3kAutomated safety check: PassMIT
Logo Generatorop7418/logo-generator-skill2.2k—~1.8kAutomated safety check: NotesNone
Gemini Web Reverse-Engineered ClientJimLiu/baoyu-skills26k5 repos~1.6kAutomated safety check: PassMIT
SEO Image GeneratorAgriciDaniel/claude-seo19k2 repos~2.1kAutomated safety check: PassMIT
BlockRun Image GenerationBlockRunAI/ClawRouter6.6k—~2.1kAutomated safety check: PassMIT

Similar skills

  • Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.

    47k GitHub stars~1.3k tokensUpdated today
    Media & CreativeAuto-check passed
  • Logo Generator

    op7418/logo-generator-skill

    Generate professional SVG logos and high-end showcase images.

    2.2k GitHub stars~1.8k tokensUpdated 5 mo ago
    Media & CreativeAuto-check: notes
  • Generates text and images through an unofficial, reverse-engineered Gemini Web API, supporting reference images and multi-turn conversations.

    26k GitHub starsUsed in 5 repos~1.6k tokens
    Media & CreativeAuto-check passed
  • SEO Image Generator

    AgriciDaniel/claude-seo

    Generates Open Graph previews, blog hero images, product photos and infographics for SEO use through Gemini image tools and the banana extension.

    19k GitHub starsUsed in 2 repos~2.1k tokens
    Media & CreativeAuto-check passed
  • BlockRun Image Generation

    BlockRunAI/ClawRouter

    Generates or edits images through ClawRouter's local image API, with a choice of models and sizes and payment handled automatically through x402.

    6.6k GitHub stars~2.1k tokensUpdated 4 days ago
    Media & CreativeAuto-check passed
  • Antigravity Gemini Image

    uluckyXH/OpenMOSS

    Generate or edit images using the Antigravity-hosted Gemini image model via the local gateway.

    1.3k GitHub stars~730 tokensUpdated 3 mo ago
    Media & CreativeAuto-check: notes

More from Supreme-Ultimate/novel-to-script-team

All 17 skills in this repo
  • Production Art Prompt Designer

    Supreme-Ultimate/novel-to-script-team

    Turns the character and scene lists from a director analysis into detailed text-to-image prompts for character sheets, scenes and props, after confirming a visual style with you.

    175 GitHub stars~1.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Art Direction Review

    Supreme-Ultimate/novel-to-script-team

    Reviews costume, makeup and prop design prompts for characters and scenes in a novel-to-film pipeline, scoring each one and returning PASS or FAIL with a problem list.

    175 GitHub stars~918 tokensUpdated 5 mo ago
    Auto-check passed
  • Script Comparative Review Against Hits

    Supreme-Ultimate/novel-to-script-team

    Chinese-language skill that scores a generated short-drama script against a reference hit script on rhythm, dialogue style, emotional impact and structure, with PASS/FAIL thresholds.

    175 GitHub stars~1.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Director Script Breakdown for Seedance

    Supreme-Ultimate/novel-to-script-team

    Breaks a script or outline into plot points and writes a director's walkthrough, character list and scene list sized for Seedance video generation.

    175 GitHub stars~1.3k tokensUpdated 5 mo ago
    Auto-check passed
  • Film Storyboard Prompt Builder

    Supreme-Ultimate/novel-to-script-team

    Turns a script, synopsis or scene outline into AI image prompts for storyboards, using a beat breakdown, a nine-panel Beat Board and four-panel Sequence Boards.

    175 GitHub stars~815 tokensUpdated 5 mo ago
    Auto-check passed
  • Hit Script Retrieval Skill

    Supreme-Ultimate/novel-to-script-team

    爆款剧本检索技能。使用混合搜索(语义+关键词)检索最相关的爆款剧本,为生成提供参考. An agent skill from Supreme-Ultimate/novel-to-script-team.

    175 GitHub stars~1.6k tokensUpdated 5 mo ago
    Auto-check passed

Works with

Questions about Image Generation Skill

What does Image Generation Skill do?

调用 nano banana API(gemini-3.1-flash-image-preview)生成图片。支持纯文本生图和参考图生图。. Image Generation Skill is an agent skill from Supreme-Ultimate/novel-to-script-team.

When should I use Image Generation Skill?

Image Generation Skill fits situations like: tasks that involve Image generation.

How do I install Image Generation Skill in Claude Code?

Run `npx skills add Supreme-Ultimate/novel-to-script-team --skill image-generation-skill -a claude-code`. Or copy the skill folder (skills/image-generation-skill in Supreme-Ultimate/novel-to-script-team) into .claude/skills/image-generation-skill in your project. Claude Code loads it when a task matches its description.

How do I install Image Generation Skill in Codex?

Run `npx skills add Supreme-Ultimate/novel-to-script-team --skill image-generation-skill -a codex`. Or copy the skill folder (skills/image-generation-skill in Supreme-Ultimate/novel-to-script-team) into .agents/skills/image-generation-skill in your project. Codex loads it when a task matches its description.

Can I use Image Generation Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Supreme-Ultimate/novel-to-script-team --skill image-generation-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/image-generation-skill, .gemini/skills/image-generation-skill, .github/skills/image-generation-skill and .opencode/skills/image-generation-skill in your project.

What does Image Generation Skill need to run?

Going by SKILL.md and its folder, Image Generation Skill needs the command-line tools its instructions call (python and pip) and credentials named NANO_BANANA_API_KEY. Our summary lists: Python 3; A credential in NANO_BANANA_API_KEY.

Does Image Generation Skill access the network?

SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Image Generation Skill safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Image Generation Skill use?

Image Generation Skill is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Image Generation Skill use?

About 640 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Image Generation Skill?

Skills that share tags, products or a category with Image Generation Skill: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), Logo Generator (op7418/logo-generator-skill, 2.2k stars), Gemini Web Reverse-Engineered Client (JimLiu/baoyu-skills, 26k stars) and SEO Image Generator (AgriciDaniel/claude-seo, 19k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Image Generation Skill?

Supreme-Ultimate (a GitHub organization) maintains it in Supreme-Ultimate/novel-to-script-team, which has 175 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on May 2, 2026.

Source: Supreme-Ultimate/novel-to-script-team on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.