imagegen
できること
このスキルは、アシスタントが独創的な画像、商品のビジュアル、図を生成し、あなたが共有した写真を編集できるようにします。新しいラスター画像が必要な人向けです。
使う場面
- ✓新しい絵、イラスト、商品のビジュアルを頼むとき。
- ✓会話に既に添付した画像に変更を加えてほしいとき。
- ✓同じ画像のアイデアの複数のバリエーションから選びたいとき。
スキルのリンク
https://github.com/NanmiCoder/cc-haha/blob/main/src/skills/bundled/imagegen/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“白い背景に置いた緑色のセラミックのマグカップの、きれいな商品写真を生成してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
アシスタントは、新しいビジュアルには画像生成ツールを、既存の画像には編集ツールを呼び出します。異なるアイデアにはそれぞれ別のリクエストを送り、プロバイダーとストレージはデスクトップアプリが扱います。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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.
よくある質問
アシスタントに APIキーを渡す必要がありますか?
いいえ。デスクトップのホストが画像プロバイダーを管理するため、プロンプトにキーを入れる必要はありません。
コンピューター上のどの画像でも編集できますか?
いいえ。会話の中であなたが提供した画像だけを編集します。見つからない画像は、添付するよう尋ねます。
何バージョンまで作れますか?
1つのプロンプトから複数のバリエーションを作れますが、異なるアイデアにはそれぞれ別のリクエストが必要です。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 15k
- ランキング
- #10919
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
agent-desktop-ffi
15k開発者が、Python、Swift、Node、Go、C++から、コマンドラインツールを毎回起動せずに、デスクトップ自動化ライブラリを直接呼び出せるよう手助けします。
agent-desktop-linux
15kagent-desktopでLinuxのデスクトップアプリを操作する方法を、X11とWaylandで何が動くか、初回の一般的な修正を含めてエージェントに教えます。
agent-desktop-macos
15kエージェントがMacのアプリを自動操作する方法を示します。必要な権限の付与、メニューやダイアログの操作、ChromiumやElectronのアプリへの対応を含みます。
agent-desktop-windows
15kエージェントがWindowsのアプリを自動操作する方法を示します。動くもの、PowerShellでの引用符、最小化されたウィンドウ、昇格されたアプリの制限を扱います。