image-generation
What it does
It teaches your agent to make images with an image tool and to revise them over several turns. It is for people who want pictures created or changed by describing what they want.
When to use it
- ✓When you ask for a picture, illustration, or design to be drawn from a description.
- ✓When you want a saved image changed, such as its background or lighting.
- ✓When you want another version of the last image you generated.
Skill link
https://github.com/HKUDS/nanobot/blob/main/nanobot/skills/image-generation/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you draw a cozy cafe illustration in warm colors, then make the background brighter?”
5 new skills a week. 1 minute to read.
How it works
The agent writes a detailed prompt from your request and calls the image tool. The generated images are saved as files, and the agent sends them back to you.
Technical content (original SKILL.md)
Original text by the author, straight from 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"
)
FAQ
Is image generation always turned on?
No. The skill says the agent must tell you if the image tool is not enabled for this instance.
Can it edit a photo I upload?
Yes. You can pass a saved image or your own image as a reference for editing.
What makes a good image prompt?
The skill suggests stating the subject, composition, style, lighting, colors, and any exact text that should appear.
Details
Original description by the author
Generate images and iteratively edit saved image artifacts.
repo: HKUDS/nanobot
Popularity
- GitHub stars
- 50k
- Ranking position
- #3598
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
clawhub
50kLets your agent search a public registry for AI skills, then install, update, or list the ones you already have.
github
50kLets your agent check GitHub pull requests and CI runs, read failed build logs, and query repository data with the gh tool.
memory
50kLets your agent search its own past conversations in the history log, so it can find what was said about a topic or date.
my
50kHelps your agent check its own runtime state, adjust a few settings with care, and keep short notes across sessions.
Similar skills
gifgrep
394kLets your agent search GIF libraries, preview results, download a GIF, and pull out a still frame or a contact sheet of frames.
meme-maker
394kLets your agent pick a meme template, add your own captions, and create the meme as an SVG or PNG image.
ios-icon-gen
280kLets your agent generate icons for iOS apps. It uses Apple symbols or icons from other sources to create the correct files.