跳到正文
cccskills
免费在 GitHub 公开

gemini-3-pro-image

Executable tool skill that ACTUALLY CALLS the GMI Cloud `gemini-3-pro-image-preview` API to generate or edit real images — it runs a bundled Python script (submit → poll → download), it is NOT a prompt writer. Activation is by MODEL NAME ONLY. Trigger EXCLUSIVELY when the user explicitly names the model: "gemini 3 pro image", "gemini-3-pro-image", "gemini 3 pro image preview", "nanobanana pro", "nano banana pro", "奈米香蕉pro", or "奈米香蕉 pro". CRITICAL — DO NOT trigger on generic image-related wording: "圖片生成", "圖片編輯", "image generation", "image editing", "九宮格 / nine-panel", "動漫化 / anime", "character sheet / 三視圖", "product photo / 產品圖", "makeup / 彩妝", "storyboard / 分鏡", "reverse / 逆向", etc. — those describe IMAGE PROMPT tasks handled by the many other prompt-writing skills in this project and are UNRELATED to this skill. Also do NOT trigger on bare "nano banana" / "奈米香蕉" WITHOUT "pro" (that is a different model). Only the explicit model name above activates this skill; if the user merely describes a picture but never names this model, do NOT use this skill.

中文简介正在准备中。当前显示原文说明。

Kouzui-HUANG/biz-ai-video-course星标 4(GitHub 4 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(4)

  • SKILL.md6.2 KB
  • docs/SKILL_zh-TW.md4.3 KB
  • generate_image.py15.5 KB
  • references/gmi-api.md2.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Gemini 3 Pro Image / Nano Banana Pro — Live Image Generation & Editing

This is an executable tool skill, not a prompt generator. It runs a bundled Python program that calls the real GMI Cloud gemini-3-pro-image-preview API, then downloads the produced image(s). By default each run produces two variants (--count 2).

⚠️ Activation guard — model name ONLY

Use this skill only when the user explicitly names the model — gemini 3 pro image / gemini-3-pro-image[-preview] / nanobanana pro / nano banana pro / 奈米香蕉pro.

This project contains MANY skills that write image prompts. Generic wording — 圖片生成 / 圖片編輯 / image generation / image editing / 九宮格 / 動漫化 / 三視圖 / 產品圖 / 彩妝 / 分鏡 / 逆向 — does NOT belong here; let the relevant prompt-writing skill handle those. If no explicit model name from the list appears, do not activate. Bare nano banana / 奈米香蕉 without pro is a different model — also do not activate.

Files

In this skill folder:

PathPurposeGit
generate_image.pyThe program (stdlib only, Python 3.8+)tracked
references/gmi-api.mdFull API spec — read when debuggingtracked
.gmi_api_keyAPI key (Bearer)gitignored

Shared media folders at the project root — one drop-zone and one results folder for all three executable generation skills (gemini-3-pro-image, gpt-image-2, seedance-2-0), wired up by .claude/lib/media_paths.py:

PathPurposeGit
uploads/Drop local reference images here (shared)gitignored
uploads/done/Reference images move here after a successful rungitignored
outputs/Generated images land here, prefixed gemini_ (shared)gitignored

Workflow

  1. Confirm activation — a model name from the list is present. If not, stop.
  2. Identify the task:
    • Text-to-image — only a prompt.
    • Image editing / reference-guided — a prompt + one or more reference images.
  3. Gather inputs:
    • prompt (required, ≤ 2000 chars). If the user gives a rough idea, you may compose a strong English prompt for them.
    • Reference images (optional):
      • public URL → --ref <url> (repeatable)
      • local file → --ref-file <path> (repeatable). The script auto-uploads it to a temp host (tmpfiles.org, ~1 h auto-delete) and uses the resulting URL. Bare filenames are looked up in the shared uploads/, then uploads/done/. Limits: ≤ 7 MB each, PNG/JPEG/WebP/HEIC/HEIF, ≤ 14 images total. (GMI accepts public URLs only — no base64/local upload to the API itself.)
  4. Parameters — apply defaults; ask the user only for a genuinely undecided necessary value:
    • --count (default 2) — unless the user explicitly asks for a specific number, keep the default: every run delivers TWO variants to choose from. Each image is a separate API request submitted in parallel (max 8).
    • --image-size 1K/2K/4K (default 2K)
    • --aspect-ratio (default 16:9). For editing, match the source image's ratio (square source → 1:1) to preserve framing.
    • --output-format png/jpeg (default png)
  5. Run it — CWD doesn't matter, the script finds the key and the shared folders on its own:
    # text-to-image
    python3 .claude/skills/gemini-3-pro-image/generate_image.py \
      --prompt "a serene Japanese garden at dawn, soft mist"
    # image editing with a local reference (bare filename → shared uploads/, auto-uploaded)
    python3 .claude/skills/gemini-3-pro-image/generate_image.py \
      --ref-file portrait.png --aspect-ratio 1:1 \
      --prompt "give her worried eyebrows while keeping the smile, same art style"
    # single image only (when the user explicitly asks for one)
    python3 .claude/skills/gemini-3-pro-image/generate_image.py --count 1 --prompt "..."
    
    For long/complex prompts, write the prompt to a temp file and pass --prompt "$(cat /tmp/p.txt)" to avoid shell-quoting issues.
  6. Show the results — the script prints each saved path under the shared outputs/ (two by default); open each with the Read tool so the user sees the images.
  7. Used references self-archive — on success the script moves the reference images it used out of uploads/ into uploads/done/, so the drop-zone only ever shows what still needs doing. Pass --keep-refs when the user wants to try several prompts on the same image. Re-runs still accept the bare filename — the lookup covers done/ too.

Notes

  • API key precedence: --api-key > $GMI_API_KEY > .gmi_api_key. The key file is already present and gitignored.
  • Privacy — --ref-file uploads to a public temp host (~1 h then auto-deleted). For sensitive images, ask the user for a private URL and use --ref instead.
  • Endpoint deprecation — the GMI image endpoint is scheduled to retire before 2026-07-17; migrate to its replacement before then.
  • Full request/response schema, status values, and limits: references/gmi-api.md.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

專為 Suno 與 Udio 設計的 AI 音樂提示詞(Prompt/Tags)生成助手。當使用者提出抽象的情緒、畫面或曲風融合需求(如:「古風結合賽博龐克」)時,請觸發此技能。它會將模糊的靈感精準轉譯為專業的音樂流派、樂器、混音與結構標籤,大幅提升 AI 音樂生成的品質與準確度。

中文简介正在准备中。当前显示原文说明。

Kouzui-HUANG/biz-ai-video-course42026年10月27日 更新

AI Short-Drama Director & Clip Prompt Architect (AI 短劇導演 × 分鏡 Clip 架構師). Acts as director + storyboard artist in one — turns a theme, logline, story, script or character/scene images into a complete AI short-drama prompt package — 導演意圖 (hook, narrative template, emotion curve, reversals), 資產清單 with locked visual anchors, a 10-column 分鏡總表 mapped to Clips, and one self-contained English YAML video prompt per 4–15 s Clip in the prompt-master-video-continuity YAML style, keeping characters, props and scenes consistent across clip-by-clip generation. Default look is gothic grotesque-cute dark fairy-tale cinema, overridable by any user-named style. Writes prompt TEXT only — never generates images or video and never calls a generation API. Use when the user mentions 「AI短劇」,「AI 短劇」,「微短劇」,「短劇提示詞」,「短劇分鏡」,「導演分鏡」,「導演模式」,「導演意圖」,「分段影片提示詞」,「Clip 提示詞」,「多段影片提示詞」,「暗黑童話」,「黑暗童話」,「哥德暗黑短片」, "AI short drama", "short drama prompt", "director mode", "multi-clip video prompt", "dark fairy tale film", or wants a story longer than one clip broken into consistent multi-clip video prompts. Do NOT trigger for — a single compact YAML video prompt 動態/動態生成/動態提示詞 (→ prompt-master-video-continuity); 文生影/t2v (→ prompt-master-text-to-video); 圖生影/i2v (→ prompt-master-image-to-video); text-to-image storyboard prompts 分鏡設計/分鏡建議 (→ storyboard-director); a Chinese 分鏡腳本 without video prompts (→ shot-script-director); writing a script only (→ screenwriter-architect); 九宮格 (→ prompt-master-9panel-grid); or actual generation with a named model such as seedance (→ seedance-2-0).

中文简介正在准备中。当前显示原文说明。

Kouzui-HUANG/biz-ai-video-course42026年10月27日 更新

Blocking Plan Director (運鏡平面圖導演). Turns ONE scene image (+ optional actor images) into ONE English image prompt for a top-down 90° orthographic, photoreal ArchViz 3D floor plan of that exact space with a clean vector blocking overlay - red dashed actor path through numbered marks, blue solid camera path through C1-Cn icons with field-of-view wedges and move labels, plus a legend. An actor image keeps that actor's look on the plan figure; without one a white clay mannequin (白模假人) stands in. Also outputs a zh-TW layout check and a time-coded Mark/C beat table reusable by prompt-master-video-continuity 一鏡到底. Generates immediately, prompt text only. Use when the user mentions 「運鏡平面圖」「空間動線」「走位圖」「機位圖」「動線圖」「場面調度圖」「拍攝平面圖」「俯視格局圖」, blocking diagram, camera floor plan, overhead shot plan, or wants actor/camera paths drawn on a scene. Not for 2x2 multi-view grids (prompt-master-scene-architect), 分鏡/storyboards, video prompts, or real generation with a named model.

中文简介正在准备中。当前显示原文说明。

Kouzui-HUANG/biz-ai-video-course42026年10月27日 更新

Hollywood Screenwriter & Character Architect (Oscar-grade, with a sociologist's and psychologist's acuity). Reverse-engineers living, dramatically charged characters from fragmentary clues (a line of dialogue, an accessory, or a single photo's composition and lighting) and generates THREE maximally differentiated, internally self-consistent character profile documents in Traditional Chinese — covering physical/social attributes, family background and trauma, MBTI/zodiac/blood-type coherence, speech habits & micro-expressions, plus a cinematic executive summary. Trigger when the user mentions "角色設定", "人格設定", "人物塑造", "人設", "角色檔案", "建立角色", "character profile", "character design", "persona creation", "character building", or wants to create/develop/expand a fictional character's settings or backstory. Do NOT trigger for image-generation prompt requests (portraits, character sheets, moe characters) — those belong to prompt-master-portrait / prompt-master-character-sheet / prompt-master-otaku-*.

中文简介正在准备中。当前显示原文说明。

Kouzui-HUANG/biz-ai-video-course42026年10月27日 更新

Chief Character Costume & Visual Design Director. Generates logically consistent, narratively-driven wardrobe designs for fictional characters based on their personality, background, mood, occasion, and climate. Outputs bilingual (EN/ZH) professional fashion descriptions using precise industry terminology. Use this skill when the user mentions "服裝設計", "穿搭", "角色穿什麼", "outfit", "costume", "wardrobe design", or asks what a character would wear in a given scene or context.

中文简介正在准备中。当前显示原文说明。

Kouzui-HUANG/biz-ai-video-course42026年10月27日 更新

Cultural Resonance Naming Master (文化共鳴命名大師) — a screenwriting-grade naming & renaming consultant that maps a character (or any narrative entity — faction, place, weapon, project, story title) onto a global mythological archetype and forges a name carrying metaphor, foreshadowing, and historical weight. Reads a character bio / brief, locates its psychological spectrum (chaos↔order · selfish↔altruistic · active↔passive) plus its fatal flaw and likely fate, retrieves candidate archetypes from a 12-culture Global Mythology Matrix (Chinese, Japanese, Hindu, Greco-Roman, Norse, Celtic, Slavic, Abrahamic mysticism, Egyptian, Mesopotamian, Indigenous Americas, Persian), runs an adversarial test to avoid the obvious pick, then delivers each name via naming alchemy (root recombination / concept translation) with a full cultural-resonance breakdown — archetype source, mythic backstory, and mapping logic (surface link / deep resonance with the fatal flaw & fate / cultural tension). Output analysis is in Traditional Chinese. Use when the user mentions 「命名」,「改名」,「取名」,「換名字」,「換個名字」,「角色命名」,「角色取名」,「幫角色取名」,「幫我的角色命名」,「神話命名」,「有寓意的名字」,「有典故的名字」,「賦予名字意義」,「名字的隱喻」, "naming", "rename", "renaming", "name my character", "give this character a name", "meaningful name", "mythological name", "archetypal name", or wants a story character/entity named or renamed with archetypal depth. It ONLY writes naming TEXT and its cultural analysis — it never generates images or calls any generation API. Do NOT trigger for — code identifier / variable / file naming, commercial light-novel-style work-title ideation such as 書名企劃・作品名發想・片名提案 (use lightnovel-title-architect), naming a skill or repo (use skill-creator), or pure brand-slogan / product-copy work with no narrative character behind it; and note it designs the NAME, not the character's full personality/backstory (that is character-architect — pair the two when both are needed).

中文简介正在准备中。当前显示原文说明。

Kouzui-HUANG/biz-ai-video-course42026年10月27日 更新

查看 Kouzui-HUANG 的全部技能

报告此技能的问题