image-generation-skill

image-generation-skill is a skill for Claude Code, Codex from Supreme-Ultimate/novel-to-script-team. It costs 35 tokens per session (1,145 once invoked), scanned A, original, MIT.

An image-generation tool that uses the Nano Banana API to create PNG images from text prompts, with optional reference images. It can generate character, scene, and prop images.

In plain words
What is it for?
Use it to generate character images, scene images, and prop images from prompt files or individual prompts, provided the required API settings are available.
Why use it?
It turns clothing, character, location, and storyboard descriptions into visual references. Reference images can be supplied when the new image needs to follow an existing visual example.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/generate_image.py \.

Good fit Use it to generate character images, scene images, and prop images from prompt files or individual prompts, provided the required API settings are available.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Supreme-Ultimate/novel-to-script-team
agentmods
npx agentmods add skills/supreme-ultimate/novel-to-script-team/image-generation-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for image-generation-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/supreme-ultimate/novel-to-script-team/image-generation-skill/github.svg)](https://agentmods.dev/skills/supreme-ultimate/novel-to-script-team/image-generation-skill)
Your own site
<a href="https://agentmods.dev/skills/supreme-ultimate/novel-to-script-team/image-generation-skill"><img src="https://agentmods.dev/badge/skills/supreme-ultimate/novel-to-script-team/image-generation-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for image-generation-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/supreme-ultimate/novel-to-script-team/image-generation-skill"><img src="https://agentmods.dev/badge/skills/supreme-ultimate/novel-to-script-team/image-generation-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,145 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.01145
Opus 5 $0.00017 $0.00573
Sonnet 5 $0.00007 $0.00229
Haiku 4.5 $0.00003 $0.00114

Measured 10d ago against content hash 781e4b77a74c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

image-generation-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/image-generation-skill/SKILL.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

image-generation-skill

概述

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

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

前置条件

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

输入

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

输出

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

执行流程

步骤1:环境检查

确认 .env 中有 NANO_BANANA_API_KEYNANO_BANANA_BASE_URL

test -f .env && grep -q "NANO_BANANA_API_KEY" .env && grep -q "NANO_BANANA_BASE_URL" .env

步骤2:生成角色图(第一批,无外部依赖)

python scripts/generate_image.py \
  --prompt-file "outputs/{剧本名}/assets/character-prompts.md" \
  --output-dir "outputs/{剧本名}/images/characters" \
  --prefix char

步骤3:生成物品图(第二批,白底独立策略,仅同族物品间有依赖)

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 跨文件引用)

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。帧图按集组织,不跨集累积。

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-首帧模式,锁定开场构图
  • 尾帧图:用于首尾帧模式,锁定结束画面
  • 分镜参考图:用于多参考模式多时段,引导各时段画面

Read the full file on GitHub · 104 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 104 lines · 35 tokens per session scan A 781e4b77a74c

Subscribe to this mod's changes

image-generation-skill is a skill published in the GitHub repository Supreme-Ultimate/novel-to-script-team (163 stars, last pushed 4mo ago), licensed MIT. It adds 35 tokens to every session and 1,145 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens