Skip to content
cccskills
FreePublished on GitHub

nanobanana

Gemini の画像生成モデル (nanobanana) で画像を生成する。`gemini-3.1-flash-image-preview` (デフォルト) と `gemini-3-pro-image-preview` に対応。

The English summary is being prepared. Showing the original description.

Works withGemini

Run score Not tested

See how to install

Files included (4)

  • SKILL.md3.1 KB
  • assets/flash.sh802 B
  • assets/parameters.md3.3 KB
  • assets/pro.sh696 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Gemini の画像生成モデルで画像を生成し tmp/images/ に保存する。API キーは環境変数 GEMINI_API_KEY を使用する。

パラメータの enum・モデル別の対応状況は assets/parameters.md を参照。curl サンプルは assets/flash.sh / assets/pro.sh。

  1. $ARGUMENTS から プロンプト本文 と以下のオプションを抽出する。プロンプトが空ならユーザーに質問する
    • --model (flash | pro | 任意のモデル ID) / --aspect / --size (デフォルト 1K) / --person (Flash のみ) / --thinking (Flash のみ)
    • モデルは --model で明示指定されない限り常に flash (gemini-3.1-flash-image-preview) を使う。ユーザーが暗に Pro を示唆していても確認なしに Pro へ切り替えない
    • Pro で --person / --thinking が指定されたら警告し、該当フィールドは request に含めない
    • Pro で --size 512 や Pro 非対応の --aspect(1:4 / 4:1 / 1:8 / 8:1)が指定されたらユーザーに確認
  2. 実行ごとに一意の ID を作る(例: ID=$(date +%Y%m%d-%H%M%S)-$$)。中間ファイルは tmp/images/${ID}.request.json / tmp/images/${ID}.response.json のように ID 付きで扱い、並列実行時の衝突を防ぐ
  3. 選択したモデルの curl サンプルをベースに、INSERT_INPUT_HERE をプロンプト(JSON エスケープ済み)に、imageConfig の各フィールドを指定値に差し替えて tmp/images/${ID}.request.json を生成する。Pro では thinkingConfig を含めない
  4. curl -sS -X POST -H "Content-Type: application/json" "https://generativelanguage.googleapis.com/v1beta/models/${MODEL_ID}:streamGenerateContent?key=${GEMINI_API_KEY}" -d @tmp/images/${ID}.request.json -o tmp/images/${ID}.response.json を実行
  5. レスポンス(JSON 配列)の candidates[].content.parts[].inlineData から base64 画像を取り出し、mimeType に応じた拡張子で tmp/images/${ID}.<ext> に保存する。parts[].text があれば報告に含める。抽出は jq | base64 -d を 1 パイプで行い、.b64 等の中間ファイルは作らない
  6. 画像が正常に生成できたら tmp/images/${ID}.request.json と tmp/images/${ID}.response.json を削除する(生成に失敗した場合は調査用に残す)
  7. 使用モデル・保存パス・テキスト応答をユーザーに報告する。error フィールドがあれば内容を報告

注意事項

  • GEMINI_API_KEY 未設定時は export を案内して中断。API キーをログに出力しない
  • プロンプトは JSON エスケープする(jq -Rs や heredoc + jq を推奨)
  • 生成画像には SynthID ウォーターマークが自動付与される

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

chrome-devtools-mcp の CLI (`chrome-devtools`) を使ったブラウザ操作の総合スキル。既存ブラウザへの attach / 使い捨てテストブラウザ / ログイン状態を保持する永続プロファイルのいずれかをユーザーに必ず確認した上でサーバを立ち上げ、スナップショット取得・クリック・入力・ナビゲーション・スクショ・ネットワーク監視などを行う。

The English summary is being prepared. Showing the original description.

tanabee/skills3Updated Oct 17, 2026

checklist の「UI 撮影台本」に沿って UI のスクリーンショットを撮影し、前後比較(compare.html)用の before / after 素材を保存する。「実装前の UI を撮っておいて」「after のスクショを撮って」などの依頼で発火する。

The English summary is being prepared. Showing the original description.

tanabee/skills3Updated Oct 17, 2026

Read and analyze log entries from Cloud Logging using the gcloud CLI.

The English summary is being prepared. Showing the original description.

tanabee/skills3Updated Oct 17, 2026

Codex 公式プラグイン (codex-plugin-cc) のネイティブレビューでコードレビューを実施する。PR 番号指定時は PR を、無指定時は現在ブランチとベースブランチの差分をレビューする。

The English summary is being prepared. Showing the original description.

tanabee/skills3Updated Oct 17, 2026

copy

Free

指定された内容をクリップボードにコピーするスキル。ファイルパスならその中身を、テキストならそのまま、会話中の直前の出力(コマンド結果・生成コード・URL など)を指す場合はその内容を pbcopy でコピーする。ユーザーが「コピーして」「クリップボードに入れて」などコピーの意図を示したら必ず使用する。

The English summary is being prepared. Showing the original description.

tanabee/skills3Updated Oct 17, 2026

GitHub issue から PR のタイトルと説明文を作成する。

The English summary is being prepared. Showing the original description.

tanabee/skills3Updated Oct 17, 2026

See all skills by tanabee

Report a problem with this skill