upscale-image

upscale-image is a command for Claude Code from Comfy-Org/comfy-skills. It costs 8 tokens per session (1,066 once invoked), scanned A, original, MIT.

A command for enlarging an image with Comfy Cloud, a cloud service that runs ComfyUI image workflows.

In plain words
What is it for?
It uploads an input image, selects or builds an upscaling workflow, and can use a second image-to-image pass to add detail.
Why use it?
It provides a defined workflow for increasing image size and finding a suitable upscaling model when needed.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the comfy-cloud plugin — 12 skills, 12 commands, 1 MCP server shipped together

Good fit It uploads an input image, selects or builds an upscaling workflow, and can use a second image-to-image pass to add detail.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/comfy-org/comfy-skills/upscale-image
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Comfy-Org/comfy-skills

Made for: Claude Code.

Or install comfy-cloud, the plugin that ships this one along with the rest of its 12 skills, 12 commands, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for upscale-image

README.md
[![agentmods](https://agentmods.dev/badge/commands/comfy-org/comfy-skills/upscale-image/github.svg)](https://agentmods.dev/commands/comfy-org/comfy-skills/upscale-image)
Your own site
<a href="https://agentmods.dev/commands/comfy-org/comfy-skills/upscale-image"><img src="https://agentmods.dev/badge/commands/comfy-org/comfy-skills/upscale-image/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for upscale-image

Your own site · 80×15
<a href="https://agentmods.dev/commands/comfy-org/comfy-skills/upscale-image"><img src="https://agentmods.dev/badge/commands/comfy-org/comfy-skills/upscale-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,066 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00008 $0.01066
Opus 5.5 $0.00003 $0.00426
Sonnet 5.5 $0.00002 $0.00213
Haiku 4.5 $0.00001 $0.00107

Measured 20d ago against content hash 77575cbda355, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

upscale-image scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

8. Call `get_output` to retrieve the upscaled image. Pass a short `description` parameter (e.g. "upscaled-photo") so the suggested filename is descriptive, then run the returned curl command in the user's shell to downlo
claude-code/commands/upscale-image.md · 36 lines

How it starts

The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Upscale an image using Comfy Cloud: $ARGUMENTS

Follow these steps exactly:

  1. Use search_templates with queries like "upscale", "super resolution", or "image upscaler" to find a pre-built upscaling workflow template. If a good template exists, use it as the base workflow instead of building from scratch.

  2. If no suitable template was found, use search_models with type "upscale_models" to find an appropriate upscaler model. Popular options: 4x-UltraSharp (general purpose), RealESRGAN_x4plus (photorealistic), RealESRGAN_x4plus_anime_6B (anime/illustration), 4x_NMKD-Siax_200k (balanced). For 2x upscale, look for 2x models.

  3. The user must provide an input image. Use upload_file to upload it to Comfy Cloud. Use the returned filename in a LoadImage node.

  4. Build a ComfyUI API-format workflow JSON for upscaling. A standard upscale workflow uses: LoadImage → UpscaleModelLoader → ImageUpscaleWithModel → SaveImage. For higher quality results with more control, you can use a two-pass approach: upscale first, then run through img2img with a checkpoint at low denoise (0.2-0.4) to add detail. Give EVERY node a _meta.title that names its role in plain words (e.g. "Load driving video", "Remove background", "Overlay graphic 1", "Save video"). The canvas shows these titles; without them the user sees only class names.

  5. Validate the workflow has inputs and outputs before submitting. Confirm the JSON contains:

    • At least one input node (LoadImage for the source image).
    • At least one output/save node wired to the upscaled image (SaveImage, or the partner node's own save output).

    Without an output node the job runs successfully but produces nothing retrievable, wasting compute. Do not skip this check.

  6. Call submit_workflow with the workflow JSON.

  7. Poll get_job_status every 3 seconds until the job is completed. Show the user a brief status update while waiting. If the user asks to cancel, use cancel_job with the prompt_id.

  8. Call get_output to retrieve the upscaled image. Pass a short description parameter (e.g. "upscaled-photo") so the suggested filename is descriptive, then run the returned curl command in the user's shell to download the file.

  9. Display the result to the user. Mention the output resolution compared to the input if known.

  10. If the user asked to BUILD or CREATE a workflow (not just for an output), after the run completes call save_workflow with the same JSON, a descriptive name, and overwrite: false — on a name collision choose a new name rather than replacing the user's existing workflow. Then call get_workflow_canvas_url with the workflow_id from the save result; if the save result omits workflow_id, find it with list_saved_workflows — never pass the filename (saved_workflow_filename publishes a PUBLIC share snapshot). If you ran a template with run_template, call get_template, apply the same input_overrides you ran with to that body (same node ids or slot paths; inputs you did not override keep the template defaults), and save_workflow the result instead, so the canvas matches the run. If you adjusted the run with submit_workflow + from_prompt_id reruns, apply each rerun's input_overrides on top, in run order, to whichever JSON you save (the built workflow or the template body), so the saved workflow matches the latest run rather than the first one. Give the user the canvas link. Mention that the saved layout is auto-generated and may need tidying. If you ran a subgraph template instead, tell the user the canvas shows one collapsed subgraph node and how to open it (double-click the node body, not its title, to step inside it, or right-click it and choose Unpack Subgraph to flatten it onto the canvas).

  11. If the user asks for a different strength/model (e.g. a different upscaler model or scale factor), rerun via submit_workflow with from_prompt_id set to the prompt_id of the run being adjusted and input_overrides holding ONLY the changed inputs ({nodeId: {inputName: value}}); do not re-upload the source and do not rebuild the workflow. If you do not know the node id, call get_job_status with include_workflow: true on that prompt_id first. Then continue from step 7.

Read the full file on GitHub · 36 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago Changed 77575cbda355
  2. 21d ago Changed · +2 lines 1f664f6c4168
  3. 1mo ago Changed · +2 lines 669f340327c6
  4. 3mo ago First seen · 32 lines · 8 tokens per session scan A eeb3cc54f862

Subscribe to this mod's changes

upscale-image is a command published in the GitHub repository Comfy-Org/comfy-skills (274 stars, last pushed today), licensed MIT. It adds 8 tokens to every session and 1,066 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

upscale-image compared with commands from other repositories

upscale-image next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
upscale-imageComfy-Org/comfy-skillsCommand274todayMITA8Claude Code
cancel-ralphanthropics/claude-plugins-officialCommand49ktodayApache-2.0A4Claude Code
constraintsvinvcn/addyosmani-agent-skills-zhCommand591mo agoMITA20Claude Code
releasekomunite/kalfaCommand2467mo agoMITA13Claude Code
rclone_config_dumpchaunsin/agent-skillsCommand212d agoApache-2.0A7Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code