Skip to content
Skillpedia
Images & icons6.1k · #14432

cowart-image-edit

What it does

This skill reads the markup screenshots you send from the Cowart canvas and creates a new AI image for each one. The new image sits beside the original, and existing images and notes are left as they are.

When to use it

  • ✓When you have marked up an image on the Cowart canvas and want a revised version of it.
  • ✓When you want several annotated screenshots turned into separate new images.
  • ✓When you want the revised image placed next to the original rather than over it.

Skill link

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

Copy 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

Use this skill to help me: https://github.com/zhongerxin/Cowart/blob/main/skills/cowart-image-edit/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Use my red notes on this screenshot to make a new version of the poster and put it next to the original.”

5 new skills a week. 1 minute to read.

How it works

The agent reads each annotation screenshot as the brief, creates a new image from it, and places the result beside the matching original on the canvas.

Technical content (original SKILL.md)

Original text by the author, straight from 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

FAQ

Will it replace my original image?

No. The original image and its notes stay where they are, and the new image is added next to it.

Does it scan my whole canvas on its own?

No. It works only from the screenshots you provide, since a canvas can hold many images with different notes.

Do I need to open the canvas first?

Usually not. Requests sent from the Cowart canvas already have it open.

Details

Original description by the author

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

Popularity

GitHub stars
6.1k
Ranking position
#14432
License
MIT
Updated
10/8/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills