agentleFS
hybridindiehybridindie/comfyui_mcp/skills/edit/SKILL.md

edit

Skill2 starsChanged 4 days agoMITView on GitHub

Edit an image with ComfyUI — img2img, inpaint, or upscale

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use daily-arxiv, exp-eval and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • skyllwtSkill

    exp-pilot-eval

    Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.

    Also in 4 projects that use this

  • skyllwtSkill

    exp-pilot-run

    Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.

    Also in 4 projects that use this

  • Yusong-EnceladusSkill

    paper-compile

    Compile LaTeX paper to PDF, fix errors, and verify output. Use when user says \"编译论文\", \"compile paper\", \"build PDF\", \"生成PDF\", or wants to compile LaTeX into a submission-ready PDF.

    Also in 5 projects that use this

  • +6 more from Lambenthan
  • +1 more from skyllwt

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Find the input: If the image is already in ComfyUI's input folder (the user named the file, or it was uploaded earlier), use that filename.

    line 20
  2. Very specific:

    If the client gave you a readable local path, base64-encode the file and call comfyui_upload_image with filename, image_data, and …

    line 21
  3. Very specific:

    If you cannot read the file, ask the user to upload it and tell you the filename.

    line 22
  4. Very specific:

    Never guess model filenames.

    line 40
  5. Distinctive:

    Do not upscale a mask, and do not use upscale as a substitute for inpainting.

    line 41

“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Edit an image

The user wants to edit an existing image. Request: "$ARGUMENTS".

Pick one mode first; do not run several unless asked:

GoalTool
Change style, lighting, or detail across the whole imagecomfyui_transform_image (img2img)
Replace or repair a selected regioncomfyui_inpaint_image
Enlarge without changing contentcomfyui_upscale_image

Steps

  1. Find the input. If the image is already in ComfyUI's input folder (the user named the file, or it was uploaded earlier), use that filename. Otherwise:
    • If the client gave you a readable local path, base64-encode the file and call comfyui_upload_image with filename, image_data, and destination="input".
    • If you cannot read the file, ask the user to upload it and tell you the filename. MCP has no attachment path of its own. For inpaint, also upload the mask with comfyui_upload_mask; the mask must match the image dimensions, white = regenerate, black = keep.
  2. Choose parameters.
    • strength (img2img/inpaint): 0.30–0.45 subtle, 0.45–0.65 balanced (the default 0.75 is strong), 0.65–0.85 a large change.
    • steps 20–30, cfg 6–8; keep the source dimensions.
    • model: leave empty for the server default, or pass an exact filename from comfyui_list_models(folder="checkpoints").
    • Upscale: pick a model from comfyui_list_models(folder="upscale_models"); the scale factor belongs to the model (RealESRGAN_x4plus = 4x).
  3. Run it with wait=True. In enforce mode, relay any warnings and wait for confirmation before submitting.
  4. Fetch the result from outputs[0] with comfyui_get_image(filename=..., subfolder=..., preview_format="webp", preview_quality=80) — the thumbnail is far cheaper context than the full PNG.
  5. Report the mode, strength/model used, and the output filename.

Notes

  • For a new scene rather than an edit, use /comfy:gen.
  • Never guess model filenames; comfyui_list_models shows what the server actually has.
  • Do not upscale a mask, and do not use upscale as a substitute for inpainting.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.