Agent SkillsMemTensor/memmy-agent › image-generation

image-generation

GitHub

用于生成图像及迭代编辑已保存的图像工件。支持文本转图像、基于参考图的修改,并规范了提示词编写与元数据管理流程。

App/memmy-agent/src/skills/image-generation/SKILL.md MemTensor/memmy-agent

触发场景

用户请求创建或绘制新图片 用户要求对已有图片进行风格或内容修改

安装

npx skills add MemTensor/memmy-agent --skill image-generation -g -y
更多选项

非标准路径

npx skills add https://github.com/MemTensor/memmy-agent/tree/main/App/memmy-agent/src/skills/image-generation -g -y

不安装直接使用

npx skills use MemTensor/memmy-agent@image-generation

指定 Agent (Claude Code)

npx skills add MemTensor/memmy-agent --skill image-generation -a claude-code -g -y

安装 repo 全部 skill

npx skills add MemTensor/memmy-agent --all -g -y

预览 repo 内 skill

npx skills add MemTensor/memmy-agent --list

SKILL.md

Frontmatter
{
    "name": "image-generation",
    "description": "Generate images and iteratively edit saved image artifacts."
}

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 memmy instance.

When To Use

  • Text-to-image: call generate_image with a concrete prompt.
  • 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 message tool with the artifact paths in the media parameter 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 memmy's media directory and returns structured metadata:

  • id: generated image id, such as img_ab12cd34ef56.
  • path: local file path for internal follow-up edits.
  • mime: image MIME type.
  • prompt, model, and source_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 memmy: 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=["~/.memmy/media/generated/2026-05-08/img_ab12cd34ef56.png"],
  aspect_ratio="1:1",
  image_size="1K"
)

版本历史

  • 211d521 当前 2026-08-02 21:47

同 Skill 集合

App/memmy-agent/src/skills/agent-memory-onboarding/SKILL.md
App/memmy-agent/src/skills/github/SKILL.md
App/memmy-agent/src/skills/goal/SKILL.md
App/memmy-agent/src/skills/skill-creator/SKILL.md
App/memmy-agent/src/skills/summarize/SKILL.md
App/memmy-agent/src/skills/tmux/SKILL.md
App/memmy-agent/src/skills/ui-craft/SKILL.md
App/memmy-agent/src/skills/weather/SKILL.md
Memory/src/cli/skills/memmy-memory/SKILL.md
App/memmy-agent/src/skills/cron/SKILL.md

元信息

文件数
0
版本
211d521
Hash
98c6e200
收录时间
2026-08-02 21:47

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-03 17:09
浙ICP备14020137号-1 $访客地图$