image-generation
Skill này làm gì
Skill này dạy agent tạo hình ảnh bằng một công cụ hình ảnh và chỉnh sửa chúng qua nhiều lượt. Skill dành cho người muốn có tranh hoặc hình được tạo hoặc thay đổi bằng cách mô tả điều mình muốn.
Khi nào nên dùng
- ✓Khi bạn yêu cầu vẽ một bức tranh, minh họa hoặc thiết kế từ một mô tả.
- ✓Khi bạn muốn sửa một hình đã lưu, chẳng hạn nền hoặc ánh sáng.
- ✓Khi bạn muốn một phiên bản khác của hình cuối cùng agent đã tạo.
Liên kết skill
https://github.com/HKUDS/nanobot/blob/main/nanobot/skills/image-generation/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Bạn có thể vẽ một minh họa quán cà phê ấm cúng với tông màu ấm, rồi làm nền sáng hơn không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent viết một prompt chi tiết từ yêu cầu của bạn và gọi công cụ hình ảnh. Các hình được tạo được lưu thành file và agent gửi lại cho bạn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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"
)
Câu hỏi thường gặp
Việc tạo hình ảnh có luôn được bật không?
Không. Skill cho biết agent phải báo cho bạn nếu công cụ hình ảnh chưa được bật cho phiên này.
Nó có sửa được ảnh tôi tải lên không?
Có. Bạn có thể đưa một ảnh đã lưu hoặc ảnh của chính bạn làm tham chiếu để chỉnh sửa.
Một prompt hình ảnh tốt gồm những gì?
Skill gợi ý nêu chủ thể, bố cục, phong cách, ánh sáng, màu sắc và mọi chữ chính xác cần xuất hiện.
Chi tiết
Độ phổ biến
- Sao GitHub
- 50k
- Vị trí xếp hạng
- #3598
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
clawhub
50kGiúp agent của bạn tìm kiếm trong một kho skill AI công khai, rồi cài đặt, cập nhật hoặc liệt kê các skill bạn đã có.
github
50kGiúp agent của bạn kiểm tra pull request và lượt chạy CI trên GitHub, đọc log build thất bại và truy vấn dữ liệu repository bằng công cụ gh.
memory
50kGiúp agent của bạn tìm lại các cuộc trò chuyện cũ trong nhật ký lịch sử, để biết đã nói gì về một chủ đề hoặc vào một ngày nhất định.
my
50kGiúp agent của bạn kiểm tra trạng thái runtime của mình, chỉnh vài cài đặt một cách cẩn thận và giữ ghi chú ngắn qua các phiên làm việc.
Skill tương tự
gifgrep
394kCho phép agent của bạn tìm thư viện GIF, xem trước kết quả, tải một GIF, và lấy một khung hình tĩnh hoặc bảng ghép nhiều khung hình.
meme-maker
394kCho phép agent của bạn chọn một mẫu meme, thêm chú thích của riêng bạn và tạo meme dưới dạng ảnh SVG hoặc PNG.
ios-icon-gen
280kGiúp agent tạo biểu tượng cho ứng dụng iOS. Dùng biểu tượng của Apple hoặc từ các nguồn khác để tạo đúng định dạng tệp.