comfyui-node-migration

comfyui-node-migration is a skill for Claude Code from jtydhr88/comfyui-custom-node-skills. It costs 52 tokens per session (3,930 once invoked), scanned A, original, MIT.

A migration guide for converting ComfyUI custom nodes from version 1 of its programming interface to version 3. ComfyUI is a visual tool that connects image-generation steps as nodes.

In plain words
What is it for?
Use it to update node classes, input and output definitions, execution methods, validation, change detection, hidden inputs, and extension registration.
Why use it?
It explains the code and registration changes needed when an older custom node uses the newer API. This reduces uncertainty when modernizing existing nodes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the comfyui-custom-nodes plugin — 9 skills shipped together

Good fit Use it to update node classes, input and output definitions, execution methods, validation, change detection, hidden inputs, and extension registration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jtydhr88/comfyui-custom-node-skills/comfyui-node-migration
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.

Any agent
npx skills add jtydhr88/comfyui-custom-node-skills --skill comfyui-node-migration
Clone the repo
git clone --depth 1 https://github.com/jtydhr88/comfyui-custom-node-skills

Made for: Claude Code.

Or install comfyui-custom-nodes, the plugin that ships this one along with the rest of its 9 skills.

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 comfyui-node-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/jtydhr88/comfyui-custom-node-skills/comfyui-node-migration/github.svg)](https://agentmods.dev/skills/jtydhr88/comfyui-custom-node-skills/comfyui-node-migration)
Your own site
<a href="https://agentmods.dev/skills/jtydhr88/comfyui-custom-node-skills/comfyui-node-migration"><img src="https://agentmods.dev/badge/skills/jtydhr88/comfyui-custom-node-skills/comfyui-node-migration/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 comfyui-node-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/jtydhr88/comfyui-custom-node-skills/comfyui-node-migration"><img src="https://agentmods.dev/badge/skills/jtydhr88/comfyui-custom-node-skills/comfyui-node-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,930 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00052 $0.03930
Opus 5.5 $0.00021 $0.01572
Sonnet 5.5 $0.00010 $0.00786
Haiku 4.5 $0.00005 $0.00393

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

Security

Grade A, and why

comfyui-node-migration 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 21d 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.

plugins/comfyui-custom-nodes/skills/comfyui-node-migration/SKILL.md · 402 lines

How it starts

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

ComfyUI V1 → V3 Migration Guide

Migrate existing V1 nodes to the modern V3 API. V3 uses classmethods, typed inputs/outputs, and ComfyExtension registration.

Migration Checklist

  1. Change base class to io.ComfyNode
  2. Replace INPUT_TYPES() with define_schema() returning io.Schema
  3. Rename execution function to execute and make it a @classmethod
  4. Replace return tuples with io.NodeOutput(...)
  5. Replace IS_CHANGED with fingerprint_inputs
  6. Replace VALIDATE_INPUTS with validate_inputs
  7. Convert check_lazy_status to @classmethod
  8. Replace NODE_CLASS_MAPPINGS with ComfyExtension + comfy_entrypoint()
  9. Access hidden inputs via cls.hidden instead of kwargs
  10. Remove __init__ methods (no instance state in V3)

Side-by-Side Comparison

V1 (Before)

import torch

class ImageInvertV1:
    CATEGORY = "image"
    FUNCTION = "invert"
    RETURN_TYPES = ("IMAGE",)
    RETURN_NAMES = ("image",)
    OUTPUT_TOOLTIPS = ("The inverted image",)
    DESCRIPTION = "Inverts image colors"

    @classmethod
    def INPUT_TYPES(s):
        return {
            "required": {
                "image": ("IMAGE",),
                "strength": ("FLOAT", {
                    "default": 1.0,
                    "min": 0.0,
                    "max": 1.0,
                    "step": 0.01,
                }),
            },
            "optional": {
                "mask": ("MASK",),
            },
            "hidden": {
                "unique_id": "UNIQUE_ID",
            },
        }

    @classmethod
    def IS_CHANGED(s, image, strength, mask=None, unique_id=None):
        return strength

    @classmethod
    def VALIDATE_INPUTS(s, image, strength, mask=None, unique_id=None):
        if strength < 0:
            return "Strength must be non-negative"
        return True

    def invert(self, image, strength, mask=None, unique_id=None):
        inverted = 1.0 - image
        result = image * (1 - strength) + inverted * strength
        if mask is not None:
            result = image * (1 - mask.unsqueeze(-1)) + result * mask.unsqueeze(-1)
        return (result,)

NODE_CLASS_MAPPINGS = {"ImageInvertV1": ImageInvertV1}
NODE_DISPLAY_NAME_MAPPINGS = {"ImageInvertV1": "Invert Image"}

Read the full file on GitHub · 402 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. 21d ago Changed · +5 lines da08b5257069
  2. 2mo ago First seen · 397 lines · 52 tokens per session scan A 0496193198ee

Subscribe to this mod's changes

comfyui-node-migration is a skill published in the GitHub repository jtydhr88/comfyui-custom-node-skills (317 stars, last pushed 21d ago), licensed MIT. It adds 52 tokens to every session and 3,930 once invoked, about $0.0002 per session on Opus 5.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

comfyui-node-migration compared with skills from other repositories

comfyui-node-migration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
comfyui-node-migrationjtydhr88/comfyui-custom-node-skillsSkill31721d agoMITA52Claude Code
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code