本文へ移動
cccskills
無料GitHub で公開

image-gen

Generate a single image from a text prompt using the MiniMax image generation API. Use when the user asks to create, generate, or render an image from a prompt and explicit width/height.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md3.6 KB
  • scripts/image-gen.py779 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

image-gen

Generate one image from a text prompt via MiniMax image-01 model. The output file is written to the filename you pass as the 4th argument (relative to the caller's cwd).

The script path is resolved relative to this SKILL.md (not the caller's cwd), so it works from any directory. It accepts exactly four positional arguments: prompt, width, height, output_filename.

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
python3 "$SCRIPT_DIR/scripts/image-gen.py" "<prompt>" <width> <height> <output_filename>
ArgumentTypeConstraints
promptstring≤ 1500 chars; describe subject + style + mood
widthint512–2048, must be a multiple of 8
heightint512–2048, must be a multiple of 8
output_filenamestringFilename to write the image to, relative to cwd (e.g. img1.png). The file extension is preserved as-is.

Output

  • File: <output_filename> (relative to cwd — the directory the command is invoked from)
  • Format: raw image bytes base64-decoded from the API response; extension is whatever you pass (e.g. .png, .jpeg)
  • Always overwrites an existing file at the same path

After running, confirm the file exists with ls -lh <output_filename> and report the absolute path to the user.

Prompt writing tips

Be explicit about style to avoid photorealistic defaults. Example style keywords:

  • Flat / UI / vector: UI style, flat illustration, vector art, minimalist, clean cut-and-paste aesthetic, no photography no realistic textures
  • Collage / cut-and-paste: paper cut collage, layered flat cut-out shapes, torn paper edges, mixed media
  • Vintage / retro: vintage paper collage, sun-faded tones, retro travel poster
  • Photorealistic: photorealistic, documentary photography, film grain

Combine subject + style + palette. Example structure: "<style keywords>: <subject>, <key visual elements>, <color palette>, <negative constraints>"

Examples

1. Santorini paper-cut collage (UI style, non-photorealistic)

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
python3 "$SCRIPT_DIR/scripts/image-gen.py" "UI style paper cut collage of Santorini, Greece: whitewashed houses with blue domes, ancient Greek columns, olive branches, terracotta rooftops, layered flat cut-out shapes with torn paper edges, clean vector illustration, minimalist cut-and-paste aesthetic, pastel color palette, no photography no realistic textures" 512 512 santorini.png

2. Square UI icon (1:1)

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
python3 "$SCRIPT_DIR/scripts/image-gen.py" "flat vector icon of a paper airplane, minimal geometric shapes, soft blue and white palette, clean UI illustration, no shadows no gradients" 512 512 airplane.png

3. Landscape banner (16:9)

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
python3 "$SCRIPT_DIR/scripts/image-gen.py" "minimalist flat illustration of mountains at sunset, layered geometric shapes, warm orange and purple palette, clean vector style, no texture no realism" 1280 720 mountains.png

4. Portrait poster (2:3)

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
python3 "$SCRIPT_DIR/scripts/image-gen.py" "vintage paper collage portrait of a woman in 1920s fashion, torn paper layers, muted sepia and teal tones, art deco cut-out shapes, mixed media aesthetic" 832 1248 portrait.png

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

architect

無料

Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape.

日本語の概要は準備中です。原文の説明を表示しています。

Sma1lboy/rove1712026年10月12日 更新

arena

無料

Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape.

日本語の概要は準備中です。原文の説明を表示しています。

Sma1lboy/rove1712026年10月12日 更新

在 rove 仓库内跑 auto-motion——把 transcription.srt 拆成多段 MG 动画镜头并拼接成竖屏视频(storyboard 分镜 + theme.md 全片主题 + 逐镜头 claude -p 子进程 + ffmpeg 拼接)。本 skill 是薄 wrapper:解析 auto-motion 模板根,继承 rove 品牌 theme,执行逻辑以 auto-motion 仓库的 canonical SKILL.md 为准。当用户说"跑 auto-motion"、"把这个字幕稿/口播稿做成视频"、"给 rove 做一条 MG 宣传片"时使用。

日本語の概要は準備中です。原文の説明を表示しています。

Sma1lboy/rove1712026年10月12日 更新

Find what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of writing it up. Use for 'blast radius of X', 'what could this break', or reviewing a small diff you don't trust.

日本語の概要は準備中です。原文の説明を表示しています。

Sma1lboy/rove1712026年10月12日 更新

Draft Rove release notes as Changesets. Writes user-facing entries as `.changeset/*.md` files for `@sma1lboy/rove` (consumed into `packages/rove/CHANGELOG.md` at release time). Use when the user asks for "changelog", "release notes", "what changed", "add a changeset", or before cutting a version. Enforces Rove's no-soft-wrap rule so GitHub release pages render flowing text.

日本語の概要は準備中です。原文の説明を表示しています。

Sma1lboy/rove1712026年10月12日 更新

Design an auditable playbook when no narrower one fits: a large migration, an ambitious multi-part change, or work a human reviews after stepping away. Scales rigor to the task, runs a hypothesis loop, and logs decisions via show-me-your-work. Use for /figure-it-out, 'figure it out', a large migration, or when no narrower playbook applies.

日本語の概要は準備中です。原文の説明を表示しています。

Sma1lboy/rove1712026年10月12日 更新

Sma1lboy のスキルをすべて見る

このスキルの問題を報告する