image-generation
できること
このスキルは、エージェントに画像ツールで画像を作らせ、複数回のやり取りで修正させる方法を教えます。説明することで画像を作ったり変えたりしてほしい人向けです。
使う場面
- ✓説明から、絵、イラスト、デザインを描いてほしいとき。
- ✓保存された画像の背景や照明などを変えたいとき。
- ✓直前に生成した画像の別バージョンがほしいとき。
スキルのリンク
https://github.com/HKUDS/nanobot/blob/main/nanobot/skills/image-generation/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“暖かい色調の、居心地のよいカフェのイラストを描いてください。そのあと背景を明るくしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、あなたの依頼から詳しいプロンプトを書き、画像ツールを呼び出します。生成された画像はファイルとして保存され、エージェントがあなたに返します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Image Generation
Use the generate_image tool when the user asks you to create, render, draw, design, generate, or edit an image.
If the generate_image tool is not available in the current tool list, tell the user that image generation is not enabled for this nanobot instance.
When To Use
- Text-to-image: call
generate_imagewith a concreteprompt. - Image editing: pass the saved artifact path or user image path in
reference_images. - Iterative edits in the same conversation: prefer the most recent generated image artifact if the user says things like "make it brighter", "change the background", or "try another version".
- Ambiguous edits: ask a short clarifying question if multiple recent images could be the target.
- After generating images, call the
messagetool with the artifact paths in themediaparameter to deliver them to the user.
Prompt Rules
Write prompts with enough detail for image models:
- Subject and scene.
- Composition and camera or layout.
- Style, mood, lighting, and color palette.
- Text that must appear in the image, quoted exactly.
- Constraints such as "keep the same character", "preserve the logo", or "do not change the background".
Artifact Rules
The tool stores generated images as persistent artifacts under nanobot's media directory and returns structured metadata:
id: generated image id, such asimg_ab12cd34ef56.path: local file path for internal follow-up edits.mime: image MIME type.prompt,model, andsource_images: provenance for follow-up edits.
In normal user-facing replies, do not expose local filesystem paths. Keep the reply natural, for example "Done, I generated it." You may include the short image id when it helps the user refer to a specific image, but keep raw path internal unless the user explicitly asks for debug details or a local artifact reference. Never paste base64.
For follow-up edits, pass the prior artifact path to reference_images. If the user provides a new uploaded image, use that path as the reference instead.
Do not include internal replay markers such as [Message Time: ...], [image: /local/path], generate_image(...), or message(...) in user-facing replies.
Examples
Generate a new image:
generate_image(
prompt="A minimal app icon for nanobot: friendly robot head, rounded square, soft blue and white palette, clean vector style, no text",
aspect_ratio="1:1",
image_size="1K"
)
Edit the latest generated artifact:
generate_image(
prompt="Use the reference image. Keep the same robot and composition, but change the palette to warm orange and add a subtle sunrise background.",
reference_images=["/home/user/.nanobot/media/generated/2026-05-08/img_ab12cd34ef56.png"],
aspect_ratio="1:1",
image_size="1K"
)
よくある質問
画像生成は常に有効ですか?
いいえ。画像ツールがこのインスタンスで有効でない場合、エージェントはその旨を伝えるよう定められています。
アップロードした写真を編集できますか?
はい。保存された画像やあなた自身の画像を、編集用の参照として渡せます。
良い画像プロンプトとは?
被写体、構図、スタイル、照明、色、そして画像内に入れたい正確な文字を明記することをスキルは勧めています。
詳細
人気
- GitHubのスター
- 50k
- ランキング
- #3598
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
clawhub
50kエージェントが、AIスキルの公開レジストリを検索し、既に持っているスキルをインストール、更新、一覧表示できるよう支援します。
github
50kエージェントが、ghツールでGitHubのプルリクエストとCI実行を確認し、失敗したビルドのログを読み、リポジトリのデータに問い合わせられるよう支援します。
memory
50kエージェントが、履歴ログの中から過去の会話を検索し、あるテーマや日付について何が話されたかを見つけられるよう支援します。
my
50kエージェントが、自分の実行状態を確認し、いくつかの設定を慎重に調整し、短いメモをセッションをまたいで保つよう支援します。