跳到正文
Skillpedia
图片与图标6.1k · #14432

cowart-image-edit

它能做什么

这项技能读取你从 Cowart 画布发送的标注截图,并为每张截图生成一张新的 AI 图片。新图片会放在原图旁边,现有的图片和备注保持不变。

适用场景

  • ✓当你在 Cowart 画布上标注了一张图片,并想要它的修改版本时。
  • ✓当你想把多张标注截图分别生成为新图片的时候。
  • ✓当你希望修改后的图片放在原图旁边,而不是覆盖原图时。

技能链接

https://github.com/zhongerxin/Cowart/blob/main/skills/cowart-image-edit/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/zhongerxin/Cowart/blob/main/skills/cowart-image-edit/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请根据这张截图上我的红色备注,做一个新版本的海报,并把它放在原图旁边。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体把每张标注截图当作需求说明,据此生成一张新图片,并把结果放在画布上对应原图的旁边。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Cowart Image Edit

Use this skill to turn user-provided Cowart 批注 screenshots into revised AI-generated bitmaps placed next to the corresponding original images.

Preconditions

Ensure the cowart_mcp tools required by this workflow are available. Do not call render_cowart_canvas_widget as a routine prerequisite: annotation requests sent from the Cowart widget already have an open canvas, and the existing widget synchronizes inserted results from MCP-backed storage. If the user separately asks to open, reopen, or explicitly refresh the canvas, handle that request once with the canvas-opening workflow.

Cowart state is read and written through Cowart MCP tools, not through a localhost browser service.

The user is responsible for providing the relevant screenshot(s). Do not auto-capture the current canvas and do not scan the whole canvas to infer edit requests; a canvas may contain many images with different annotations.

Workflow

For a follow-up from Cowart's sidebar canvas, use the exact projectDir and canvasDir in the Cowart context/message for all Cowart tools. These paths can differ from the conversation working directory. In ordinary project conversations, keep using the active user project as before.

  1. Read the user-provided screenshot(s).

    Treat each screenshot as the authoritative edit brief for one output image unless the user says multiple screenshots belong to the same image.

    If the user provides multiple screenshots, process them independently and keep their generated outputs separate. Do not merge annotations across screenshots unless explicitly requested.

  2. Extract the edit requirements from each screenshot.

    Read visible 批注 labels, arrows, and nearby edit notes from the screenshot itself. Use the arrow tip or marked region to understand where each note applies.

    Ignore editor chrome such as toolbars, blue selection outlines, resize handles, cursor icons, and unrelated neighboring images.

  3. Choose the source image for generation.

    Use the clean underlying image content visible in the provided screenshot as the visual base whenever possible.

    If the screenshot is too cropped, obstructed, or low-resolution to serve as a good image base, ask the user for the original image export or a cleaner screenshot of that specific image.

    Do not read the current Cowart canvas to discover edit intent. Use the screenshot for the requested changes. Cowart state may be read later only to place the generated result without covering existing content.

  4. Prepare image-generation input.

    Use the provided screenshot, plus a cleaner source image if the user supplied one.

    The generation prompt should:

    • apply the 批注 text as edit instructions
    • preserve the original image's subject, composition, aspect ratio, and style unless an annotation asks otherwise
    • remove all annotation artifacts from the output, including red arrows, labels, blue selection outlines, handles, and tool UI
    • output only the revised clean image
  5. Generate a new bitmap.

    Use the built-in image generation flow available in the current environment. Do not overwrite the source image file. Save the new bitmap with a timestamped filename, for example:

    annotation-edit-20260620-153012.png
    

    Resolve the actual local output image carefully before inserting it into Cowart. Do not assume the built-in image generation flow always writes a fresh file under $CODEX_HOME/generated_images.

    Preferred resolution order:

    • Use the exact local image path returned by the current image generation tool call when one is available.
    • If no new file path is returned, inspect the current Codex session JSONL for the current request and extract the PNG/base64 payload from the latest image_generation_call.result, then write it to the timestamped output filename.
    • Use $CODEX_HOME/generated_images only when you can prove the file was created by the current request, for example by matching its timestamp after this generation step. Never pick an older image merely because it is the newest file in a stale generated_images directory.

    Before inserting the resolved file into Cowart, visually inspect the local bitmap and confirm it is the newly generated revised image for this screenshot, not a stale generated asset.

  6. Insert the revised image beside the original with Cowart MCP.

    Prefer the Cowart MCP insert_cowart_image tool. Do not hand-write tldraw asset / shape r

常见问题

它会替换我的原图吗?

不会。原图及其备注保持原位,新图片会被添加在它旁边。

它会自己扫描整个画布吗?

不会。它只根据你提供的截图工作,因为一个画布可能包含许多带有不同备注的图片。

我需要先打开画布吗?

通常不需要。从 Cowart 画布发出的请求,画布已经打开。

详情

作者的原始描述

Generate revised AI images from user-supplied Cowart annotation screenshots and place each result beside its original without replacing, moving, hiding, or deleting existing images or annotations.

repo: zhongerxin/Cowart

热度

GitHub 星标
6.1k
排名
#14432
许可证
MIT
更新时间
2026/10/8

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能