image-gen
它能做什么
该技能通过 Ekko Studio 已配置的图像提供方创建或修改图片。适用于希望根据文字描述或参考照片制作图片的人。
适用场景
- ✓当你想根据文字描述创建一张新图片时。
- ✓当你想把参考图重新绘制或改成新的构图时。
- ✓当你希望智能体保存生成的图片并展示给你时。
技能链接
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/image-gen/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请生成一张图片:一把哑光黑色键盘放在干净的桌面上,方形构图。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会带着你的提示词和可选的参考图片调用 Studio 辅助工具。Studio 会选择提供方并处理密钥,然后智能体返回图片文件路径。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Studio image generation
Use this Skill when the user wants to generate a new image, transform a reference image, or edit selected visual content through Ekko Studio's configured image provider.
Always use the Studio media endpoint through the bundled helper. Do not call an upstream image API directly, request an API key in chat, or fall back to a different image-generation tool when Studio reports an error. The server owns provider selection and credentials.
Helper
skill_view returns this Skill's baseDirectory. Run:
node <baseDirectory>/scripts/studio-image-gen.mjs --mode text --profile <runtime-profile> --prompt <prompt> [options]
Use the exact profile shown under Runtime Context in the Ekko system prompt. The helper resolves the local Studio URL and server token without printing the token. It outputs JSON containing output_paths on success.
Before returning an image, verify the reported file exists and reference its absolute path with Markdown image syntax.
Modes
Text to image
Use when there is no reference image:
--mode text --prompt "A matte black mechanical keyboard on a clean desk" --size 1024x1024
Image to image
Use when the user wants a new composition or redraw based on a reference:
--mode image --image-path /absolute/path/reference.png --prompt "Create a refined technology brand poster"
Image edit
Use when parts of the source should be preserved:
--mode edit --image-path /absolute/path/source.png --prompt "Change the background to blue and keep the subject unchanged"
image and edit require either --image-path or --image-url. Use a local absolute path for an attached or workspace image. Do not transmit a private local image to the configured provider unless that is necessary for the user's requested edit.
Options
--profile <name>: required in Ekko runs; use the current runtime Profile.--provider <name>: optional configured custom provider. Omit it to use the Profile's image route and server fallback.--size <width>x<height>: defaults to1024x1024. Also acceptsautowhen supported.--quality <value>: optional provider quality setting.--n <count>: number of images; defaults to1.--model <name>: optional primary-model override.--image-model <name>: optional image-tool-model override for image-to-image mode.--output-path <absolute-path>: optional requested destination. When omitted, Studio writes under its media directory.--timeout-ms <milliseconds>: request timeout; defaults to 600000 and is capped at 1800000 by the helper.
Do not invent a provider or model override. Use them only when the user requested one or the current task supplies a known configured value.
Errors
missing_fun_codex_provider: the current Profile has no defaultfun-codexprovider or configured image route.missing_apikey_image_provider: the requested provider is absent from the current Profile.profile_not_found: the Ekko Profile does not map to an existing Studio/Hermes Profile used by the media endpoint.401,403, connection failure, timeout, or any provider error: report the Studio error and stop. Do not bypass Studio or silently retry against another service.
常见问题
它使用哪个图像服务?
它使用你的 Studio 配置文件所设置的图像提供方。该技能本身不选择提供方。
如果 Studio 失败,它能换用其他图像工具吗?
不能。该技能要求报告 Studio 的错误,而不是切换到另一个图像生成器。
我可以选择图片尺寸吗?
可以。你可以设置尺寸,例如 1024 乘 1024 像素。
详情
作者的原始描述
Generate or edit images through Ekko Studio using the current Profile's configured image provider.
repo: EKKOLearnAI/ekko-studio
热度
- GitHub 星标
- 12k
- 排名
- #11569
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
1password
12k帮你的智能体使用 1Password CLI 为命令和配置文件获取机密信息,同时不在聊天、日志或已保存的文件中显示这些信息。
apple-notes
12k帮你的智能体在 Mac 上使用 memo 命令行工具创建、搜索、阅读、编辑、移动或删除 Apple 备忘录。
apple-reminders
12k帮你的智能体在 Mac 上使用 remindctl 工具列出、创建、编辑、完成或删除 Apple 提醒事项及提醒列表。
document-to-action-items
12k帮你的智能体把文档、会议记录或一组笔记,整理成一张清晰的任务、负责人、截止日期和决定的表格。