imagegen
Skill này làm gì
Cho phép trợ lý tạo hình ảnh gốc, visual sản phẩm hoặc sơ đồ, và chỉnh sửa các ảnh bạn đã chia sẻ. Dành cho người cần ảnh raster mới.
Khi nào nên dùng
- ✓Khi bạn yêu cầu một bức ảnh, minh họa hoặc visual sản phẩm mới.
- ✓Khi bạn muốn chỉnh sửa một ảnh đã đính kèm trong cuộc trò chuyện.
- ✓Khi bạn muốn vài biến thể của cùng một ý tưởng ảnh để chọn.
Liên kết skill
https://github.com/NanmiCoder/cc-haha/blob/main/src/skills/bundled/imagegen/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
“Tạo một ảnh sản phẩm gọn gàng về chiếc cốc gốm xanh trên nền trắng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Trợ lý gọi công cụ tạo ảnh cho hình ảnh mới, hoặc công cụ chỉnh sửa cho ảnh có sẵn. Mỗi ý tưởng riêng có một yêu cầu riêng, và ứng dụng desktop lo nhà cung cấp và lưu trữ.
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 built-in ImageGen and ImageEdit tools. Provider authentication, model routing, output storage, and secrets are managed by the desktop host; never ask the user to put an API key in this skill or in the prompt.
Decide the request shape
- Treat a brand-new visual as generation and call
ImageGen. Its schema intentionally has no image-path argument. - Treat a request that preserves, combines, or changes an existing visual as an edit and call
ImageEdit. - One distinct prompt equals one tool call.
- Use
countonly for multiple variations of the same prompt. For different concepts, make separate calls. ImageEditrequiresreferenced_image_paths: populate it with ordered, exact paths to images the user supplied in this conversation — a path surfaced by[Image source: ...], a file the user attached with@, or a path returned by an earlierImageGencall. Never invent, search for, or substitute another filesystem path, and never read an image off disk yourself to use it as an input; if the user means an image you have no path for, ask them to attach it. The first image is the primary canvas unless the user says otherwise.- For multi-turn editing, use the latest selected output as the next turn's
edit_target. Repeat all identity, layout, text, and unchanged-region constraints on every turn so edits do not drift. - To edit several images independently, make one call per image. Put multiple images in one call only when the user wants them combined or used together as references. A single call accepts at most three source images.
- Prefer a useful default composition when the user leaves details open. Do not invent branding, logos, or people they did not request.
- Provider and image model selection come from the current desktop session; do not add either to the tool arguments.
- If the provider returns an error, do not retry the image tool automatically. Explain the failure and let the user decide whether to retry or change providers.
Build the prompt
Turn the request into a complete art-direction brief. Preserve all relevant user-specified detail.
- use case and image type
- subject, action, and important attributes
- environment and context
- composition, framing, and camera angle
- lighting and mood
- visual style or medium
- color palette
- exact text, only when text must appear in the image
- constraints and elements to avoid
For edits, start the prompt with each input's numbered role, then say change only X; keep Y unchanged. For a composite, specify which subject or visual property comes from each numbered image and preserve the requested identities. Do not rely on conversational pronouns such as "it" or "the previous one" inside the tool prompt.
Preserve the user's intent and wording for names or required on-image text. For diagrams, specify hierarchy, reading order, labels, and connections. For photorealistic work, describe lens, depth of field, lighting direction, and material detail when they matter.
Output options
- Use
aspect_ratiowhen the user describes a layout such as square, portrait, landscape, banner, or phone wallpaper. - Use
resolution: "2k"only when higher resolution is useful and supported. - Use transparent background only when requested or clearly needed for a reusable asset.
- The host displays one placeholder per requested image and replaces each slot as the saved image becomes available.
After a successful call, briefly summarize what was created or changed. The host card already displays and opens the saved images, so do not repeat, link, or embed the returned local paths in the final answer. Do not include base64 data in the conversation.
Câu hỏi thường gặp
Tôi có cần đưa khóa API cho trợ lý không?
Không. Máy chủ desktop quản lý nhà cung cấp ảnh, nên bạn không bao giờ cần đưa khóa vào prompt.
Nó có thể chỉnh sửa mọi ảnh trên máy tính của tôi không?
Không. Nó chỉ chỉnh sửa các ảnh bạn cung cấp trong cuộc trò chuyện, và sẽ yêu cầu bạn đính kèm nếu không tìm thấy ảnh.
Nó có thể tạo bao nhiêu phiên bản?
Nó có thể tạo vài biến thể của một prompt, nhưng các ý tưởng khác nhau cần các yêu cầu riêng.
Chi tiết
Mô tả gốc của tác giả
Generate original images, artwork, product visuals, diagrams, or other raster assets with the desktop's configured image provider. Use whenever the user asks to create or generate an image.
repo: NanmiCoder/cc-haha
Độ phổ biến
- Sao GitHub
- 15k
- Vị trí xếp hạng
- #10919
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-desktop-ffi
15kGiúp lập trình viên gọi thư viện tự động hóa agent-desktop trực tiếp từ Python, Swift, Node, Go hoặc C++, không cần chạy dòng lệnh cho mỗi thao tác.
agent-desktop-linux
15kDạy agent cách điều khiển ứng dụng desktop Linux bằng agent-desktop, gồm những gì chạy trên X11 và Wayland và cách sửa lỗi chạy lần đầu thường gặp.
agent-desktop-macos
15kChỉ cho agent cách tự động hóa ứng dụng Mac, gồm cấp quyền cần thiết và làm việc với menu, hộp thoại cùng ứng dụng Chromium hoặc Electron.
agent-desktop-windows
15kChỉ cho agent cách tự động hóa ứng dụng Windows: những gì hoạt động, trích dẫn trong PowerShell, cửa sổ thu nhỏ và giới hạn với ứng dụng nâng quyền.
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.