comfyui-node-basics

comfyui-node-basics is a skill for Claude Code from jtydhr88/comfyui-custom-node-skills. It costs 49 tokens per session (1,577 once invoked), scanned A, original, MIT.

A guide to ComfyUI custom nodes, which are reusable Python components in the ComfyUI visual workflow tool. It covers the current V3 structure, including inputs, outputs, registration, and execution.

In plain words
What is it for?
Use it when building a new ComfyUI node, defining its settings and results, or starting a custom-node project.
Why use it?
It explains the required parts of a node so you can create one without guessing how ComfyUI connects and runs it.

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 when building a new ComfyUI node, defining its settings and results, or starting a custom-node project.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jtydhr88/comfyui-custom-node-skills/comfyui-node-basics"><img src="https://agentmods.dev/badge/skills/jtydhr88/comfyui-custom-node-skills/comfyui-node-basics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,577 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.00049 $0.01577
Opus 5.5 $0.00020 $0.00631
Sonnet 5.5 $0.00010 $0.00315
Haiku 4.5 $0.00005 $0.00158

Measured 21d ago against content hash f0117dc6540c, 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-basics 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/comfyui-custom-nodes/skills/comfyui-node-basics/SKILL.md · 192 lines

How it starts

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

ComfyUI Custom Node Basics (V3 API)

ComfyUI uses Python classes to define nodes. The V3 API is the current recommended approach. Nodes inherit from io.ComfyNode and define a schema + execute method.

Quick Start

from comfy_api.latest import ComfyExtension, io

class MyNode(io.ComfyNode):
    @classmethod
    def define_schema(cls):
        return io.Schema(
            node_id="MyNode",
            display_name="My Custom Node",
            category="my_category",
            inputs=[
                io.Image.Input("image"),
                io.Float.Input("strength", default=1.0, min=0.0, max=1.0, step=0.01),
            ],
            outputs=[
                io.Image.Output("IMAGE"),
            ],
        )

    @classmethod
    def execute(cls, image, strength):
        result = image * strength
        return io.NodeOutput(result)

V3 Node Class Structure

Every V3 node requires:

  1. Inherit from io.ComfyNode
  2. define_schema(cls) - classmethod returning io.Schema
  3. execute(cls, ...) - classmethod performing the computation
from typing_extensions import override
from comfy_api.latest import ComfyExtension, io

class ImageBrighten(io.ComfyNode):
    @classmethod
    def define_schema(cls):
        return io.Schema(
            node_id="ImageBrighten",          # unique identifier
            display_name="Brighten Image",     # shown in UI
            category="image/adjust",           # menu path
            description="Adjusts image brightness",
            inputs=[
                io.Image.Input("image"),
                io.Float.Input("factor", default=1.2, min=0.0, max=3.0, step=0.1),
            ],
            outputs=[
                io.Image.Output("IMAGE"),
            ],
        )

    @classmethod
    def execute(cls, image, factor):
        result = torch.clamp(image * factor, 0.0, 1.0)
        return io.NodeOutput(result)

io.Schema Fields

io.Schema(
    node_id="UniqueNodeID",            # required: unique string ID
    display_name="Display Name",        # optional: shown in UI menus
    category="category/subcategory",    # menu hierarchy (default "sd")
    description="Node description",     # optional: tooltip text
    inputs=[...],                       # list of Input objects
    outputs=[...],                      # list of Output objects
    hidden=[...],                       # list of Hidden enum values
    is_output_node=False,               # True for nodes with side effects (save, preview)
    is_experimental=False,              # marks as experimental
    is_deprecated=False,                # marks as deprecated
    is_dev_only=False,                  # hidden unless dev mode enabled
    is_api_node=False,                  # marks as API-only node
    is_input_list=False,                # receive full lists instead of individual items
    not_idempotent=False,               # no cache sharing between identical instances (see lifecycle)
    accept_all_inputs=False,            # accept arbitrary inputs via **kwargs
    enable_expand=False,                # allow node expansion (subgraphs)
    search_aliases=["alias1", "alias2"],# alternative search terms
    essentials_category="Basic",        # optional: Essentials tab category
    price_badge=None,                   # optional: PriceBadge for API nodes
    has_intermediate_output=False,      # True for nodes with interactive UI that produce intermediate outputs
    loop_boundary=None,                 # "start"/"end": core loop validation (v0.36+, experimental)
)

Read the full file on GitHub · 192 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 · +1 lines f0117dc6540c
  2. 2mo ago First seen · 191 lines · 49 tokens per session scan A 92ee0636f366

Subscribe to this mod's changes

comfyui-node-basics is a skill published in the GitHub repository jtydhr88/comfyui-custom-node-skills (317 stars, last pushed 21d ago), licensed MIT. It adds 49 tokens to every session and 1,577 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-basics compared with skills from other repositories

comfyui-node-basics next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
comfyui-node-basicsjtydhr88/comfyui-custom-node-skillsSkill31721d agoMITA49Claude Code
accelerateNousResearch/hermes-agentSkill261kyesterdayMITA13Claude Code, Codex
pytorch-patternsaffaan-m/ECCSkill298k4d agoMITA32Claude Code, Kiro
optimize-for-gpuK-Dense-AI/scientific-agent-skillsSkill56k4d agoMITA151Claude Code, Codex
developing-genkit-pythongoogle/skillsSkill22kyesterdayApache-2.0A49Claude Code, Codex
marimo-pairmarimo-team/marimoSkill23kyesterdayApache-2.0A57Claude Code, Codex
azure-mgmt-fabric-pymicrosoft/skillsSkill3.2kyesterdayMITA51Claude Code