debug-render

debug-render is a skill for Claude Code, Codex from artokun/comfyui-mcp. It costs 117 tokens per session (1,661 once invoked), scanned A, original, MIT.

A method for finding the stage that causes a completed ComfyUI image or video to look wrong. ComfyUI is a visual workflow tool, and “run to node” executes only one output and the nodes leading to it.

In plain words
What is it for?
Use it to investigate artifacts, incorrect subjects or poses, color problems, blur, failed conditioning, and quality loss between pipeline stages.
Why use it?
It replaces guessing or rerunning the entire workflow with targeted checks of intermediate results. This helps separate a bad input from a faulty processing stage.

Skill for Claude CodeCodex

Part of the comfy plugin — 41 skills, 11 commands, 4 agents, 2 hooks shipped together

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.

agentmods
npx agentmods add skills/artokun/comfyui-mcp/debug-render
Any agent
npx skills add artokun/comfyui-mcp --skill debug-render
Clone the repo
git clone --depth 1 https://github.com/artokun/comfyui-mcp

Made for: Claude Code, Codex.

Or install comfy, the plugin that ships this one along with the rest of its 41 skills, 11 commands, 4 agents, 2 hooks.

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 debug-render

README.md
[![agentmods](https://agentmods.dev/badge/skills/artokun/comfyui-mcp/debug-render.svg)](https://agentmods.dev/skills/artokun/comfyui-mcp/debug-render)
Your own site
<a href="https://agentmods.dev/skills/artokun/comfyui-mcp/debug-render"><img src="https://agentmods.dev/badge/skills/artokun/comfyui-mcp/debug-render.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,661 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00117 $0.01661
Opus 5 $0.00059 $0.00830
Sonnet 5 $0.00023 $0.00332
Haiku 4.5 $0.00012 $0.00166

Measured 3d ago against content hash 951df0175c39, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

debug-render scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugin/skills/debug-render/SKILL.md · 111 lines

How it starts

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

Debugging renders with run-to-node

When a final asset looks wrong (not when it errors), don't re-roll the whole graph and hope. Localize the fault. Render only as far as one stage and look at what that stage actually produces. The wrong-looking output is downstream of a first bad step. Find that step, fix it there, and everything after it follows.

The tool for this is panel_run with to_node_id ("run to node"), which uses ComfyUI's native partial execution. Only the target output node plus everything upstream of it renders; every other branch is skipped. That makes each probe fast and cheap, and the output is delivered to you automatically, same as any run. Don't poll.

When to reach for this

  • A final image/video is wrong: artifacts, wrong subject/pose/composition, off color, soft/blurry, melted hands, wrong style.
  • A conditioner isn't "taking" (ControlNet, IPAdapter, a mask, an inpaint, a LoRA) and you can't tell if the input to it is wrong or the node is wrong.
  • A multi-stage pipeline (base → refiner, txt2img → upscale, decode → post) degrades, and you need to see which stage introduces the problem.
  • You only want to test one branch of a multi-output graph without paying for the others.

If instead the run fails (red error, OOM, missing node, black image from a crash), use the troubleshooting skill. This skill is for outputs that complete but look wrong.

The one hard rule: to_node_id must be an OUTPUT node

ComfyUI can only run to an output node: SaveImage, PreviewImage, SaveVideo, SaveAudio, etc. (these show is_output: true in panel_query_graph detail rows). A bare KSampler / VAEDecode / preprocessor is not an output node, so you can't target it directly. To inspect a point that isn't already an output, add a preview tap there:

You want to see… Wire type Tap to add Wiring
An intermediate image (post-process, refiner stage, composite) IMAGE PreviewImage image → PreviewImage.images
A latent (after a sampler, before/after upscale) LATENT VAEDecodePreviewImage latent → VAEDecode.samples; reuse the graph's VAE → VAEDecode.vae; then → PreviewImage
A mask (inpaint, segmentation, attention) MASK MaskToImagePreviewImage mask → MaskToImage.maskPreviewImage
A ControlNet/preprocessor map (depth/pose/canny) usually IMAGE already PreviewImage the preprocessor's IMAGE output → PreviewImage.images
The actual prompt/conditioning CONDITIONING (can't preview as an image) inspect widget values / the text node feeding it instead

Read the full file on GitHub · 111 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. 3d ago First seen · 111 lines · 117 tokens per session scan A 951df0175c39

Subscribe to this mod's changes

debug-render is a skill published in the GitHub repository artokun/comfyui-mcp (715 stars, last pushed today), licensed MIT. It adds 117 tokens to every session and 1,661 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cf-translate

Translate publication-ready ContentForge content into any of 15 languages at three localization levels (literal, adapted, transcreated) — preserving brand voice, keeping citation URLs and DOIs untouched, and adapting SEO keyword placements for the target market — delivered as a translated .docx plus a quality report…

indranilbanerjee/contentforge · 163 tokens

hermes-agent-compatibility

Audit Socket-to-Hermes compatibility across Agent Skills, Codex plugins, MCP, hooks, apps, agents, and Hermes extension systems. Use for skill exports, config translations, and Hermes adapter decisions.

gaelic-ghost/socket · 48 tokens

let-it-be

Anonimizacja i pseudonimizacja polskich danych osobowych (PESEL, NIP, REGON, KRS, telefon, e-mail, imiona i nazwiska, nazwy firm) w tekscie - RODO-safe, offline, deterministycznie (bez wysylania tresci do modelu). Uzywaj gdy uzytkownik chce zanonimizowac lub spseudonimizowac dokument, usunac dane osobowe z pisma…

matematicsolutions/awesome-matematic-skills-pl · 144 tokens

content-translation

Translate and localize content for international SEO. Use when the user asks to "translate content", "localize my site", "multilingual SEO", "translate to ", "international SEO", "hreflang", "multi-language website", "global content strategy", or wants to expand to new markets.

akii-technologies-ltd/akii-seo-ai-search-optimizer · 63 tokens

pdlc-i18n

Skill "pdlc-i18n" from kanfu-panda/pdlc-skills, covering 国际化(i18n), 工作流程, 前端(react/vue), 后端(java/go/python/node) and 资源文件格式.

kanfu-panda/pdlc-skills · 14 tokens

proofread-subtitles

Use this skill when the user wants to proofread a .srt subtitle file produced by Whisper or another voice-to-text engine.

yegor256/critic · 34 tokens