imagegen
What it does
Lets the assistant generate original images, product visuals or diagrams, and make edits to pictures you have shared. It is for people who need new raster images.
When to use it
- ✓When you ask for a new picture, illustration or product visual.
- ✓When you want changes made to an image you have already attached in the conversation.
- ✓When you want several variations of the same image idea to choose from.
Skill link
https://github.com/NanmiCoder/cc-haha/blob/main/src/skills/bundled/imagegen/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
“Generate a clean product photo of a green ceramic mug on a white background.”
5 new skills a week. 1 minute to read.
How it works
The assistant calls an image generation tool for new visuals, or an edit tool for existing ones. Each distinct idea gets its own request, and the desktop app handles the provider and storage.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
FAQ
Do I need to give the assistant an API key?
No. The desktop host manages the image provider, so you never need to put a key in the prompt.
Can it edit any image on my computer?
No. It only edits images you supplied in the conversation, and it asks you to attach any it cannot find.
How many versions can it make?
It can make several variations of one prompt, but different ideas need separate requests.
Details
Original description by the author
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
Popularity
- GitHub stars
- 15k
- Ranking position
- #10919
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agent-desktop-ffi
15kHelps developers call the agent-desktop automation library directly from Python, Swift, Node, Go or C++, without starting the command-line tool for every action.
agent-desktop-linux
15kTeaches your agent how to control Linux desktop apps with agent-desktop, including what works on X11 and Wayland and common first-run fixes.
agent-desktop-macos
15kShows your agent how to automate Mac apps, including granting the needed permissions and working with menus, dialogs and Chromium or Electron apps.
agent-desktop-windows
15kShows your agent how to automate Windows apps, covering what works, PowerShell quoting, minimized windows and elevated-app limits.
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.