Langsung ke konten
Skillpedia
Gambar & ikon50k · #3598

image-generation

Fungsinya

Skill ini mengajari agent Anda membuat gambar dengan alat gambar dan merevisinya selama beberapa giliran. Skill ini untuk orang yang ingin gambar dibuat atau diubah dengan mendeskripsikan apa yang mereka inginkan.

Kapan dipakai

  • ✓Saat Anda meminta gambar, ilustrasi, atau desain dibuat dari sebuah deskripsi.
  • ✓Saat Anda ingin gambar yang tersimpan diubah, misalnya latar belakang atau pencahayaannya.
  • ✓Saat Anda ingin versi lain dari gambar terakhir yang Anda hasilkan.

Link skill

https://github.com/HKUDS/nanobot/blob/main/nanobot/skills/image-generation/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/HKUDS/nanobot/blob/main/nanobot/skills/image-generation/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Bisakah Anda menggambar ilustrasi kafe yang hangat dengan warna-warna lembut, lalu membuat latar belakangnya lebih cerah?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menulis prompt rinci dari permintaan Anda dan memanggil alat gambar. Gambar yang dihasilkan disimpan sebagai file, dan agent mengirimkannya kembali kepada Anda.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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_image with a concrete prompt.
  • 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 message tool with the artifact paths in the media parameter 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 as img_ab12cd34ef56.
  • path: local file path for internal follow-up edits.
  • mime: image MIME type.
  • prompt, model, and source_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"
)
Pertanyaan umum

Apakah pembuatan gambar selalu aktif?

Tidak. Skill ini menyatakan agent harus memberi tahu Anda jika alat gambar tidak diaktifkan untuk instans ini.

Bisakah skill ini mengedit foto yang saya unggah?

Bisa. Anda bisa memberikan gambar tersimpan atau gambar Anda sendiri sebagai referensi untuk diedit.

Apa yang membuat prompt gambar menjadi baik?

Skill ini menyarankan untuk menyebutkan subjek, komposisi, gaya, pencahayaan, warna, dan teks persis yang harus muncul.

Detail

Deskripsi asli dari pembuat

Generate images and iteratively edit saved image artifacts.

repo: HKUDS/nanobot

Popularitas

Bintang GitHub
50k
Peringkat
#3598
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa