image-generation
Qué hace
Enseña a tu agente a crear imágenes con una herramienta de imágenes y a revisarlas a lo largo de varias interacciones. Está pensada para personas que quieren crear o cambiar imágenes describiendo lo que quieren.
Cuándo usarla
- ✓Cuando pides que se dibuje una imagen, ilustración o diseño a partir de una descripción.
- ✓Cuando quieres cambiar una imagen guardada, como su fondo o su iluminación.
- ✓Cuando quieres otra versión de la última imagen que generaste.
Link de la skill
https://github.com/HKUDS/nanobot/blob/main/nanobot/skills/image-generation/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Puedes dibujar una ilustración acogedora de una cafetería con colores cálidos y después hacer el fondo más brillante?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente escribe una petición detallada a partir de lo que pides y llama a la herramienta de imágenes. Las imágenes generadas se guardan como archivos, y el agente te las envía de vuelta.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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"
)
Preguntas frecuentes
¿La generación de imágenes siempre está activada?
No. La skill indica que el agente debe avisarte si la herramienta de imágenes no está habilitada en esta instancia.
¿Puede editar una foto que subo?
Sí. Puedes pasar una imagen guardada o una imagen tuya como referencia para editarla.
¿Qué hace buena una petición de imagen?
La skill sugiere indicar el sujeto, la composición, el estilo, la iluminación, los colores y cualquier texto exacto que deba aparecer.
Detalles
Descripción original del autor
Generate images and iteratively edit saved image artifacts.
repo: HKUDS/nanobot
Popularidad
- Estrellas en GitHub
- 50 mil
- Posición en el ranking
- #3598
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
clawhub
50 milPermite que tu agente busque skills de IA en un registro público y después instale, actualice o liste las que ya tienes.
github
50 milPermite que tu agente revise pull requests y ejecuciones de CI de GitHub, lea registros de compilaciones fallidas y consulte datos de repositorios con la herramienta gh.
memory
50 milPermite que tu agente busque en su propio registro de conversaciones pasadas, para encontrar lo que se dijo sobre un tema o una fecha.
my
50 milAyuda a tu agente a revisar su propio estado de ejecución, ajustar algunos parámetros con cuidado y guardar notas breves entre sesiones.
Skills parecidas
gifgrep
394 milPermite que tu agente busque GIF en bibliotecas, vea una vista previa de los resultados, descargue un GIF y extraiga un fotograma fijo o una hoja de contacto de fotogramas.
meme-maker
394 milPermite que tu agente elija una plantilla de meme, añada tus propios textos y cree el meme como imagen SVG o PNG.
ios-icon-gen
280 milPermite a tu agente generar iconos para apps de iOS. Usa símbolos de Apple u otras fuentes para crear los archivos correctos.