comfyui-node-lifecycle

comfyui-node-lifecycle is a skill for Claude Code, Codex from sideshowroberto/vfx-agent-toolkit. It costs 50 tokens per session (2,331 once invoked), scanned A, original, MIT.

Explains the ComfyUI custom-node execution lifecycle - caching, fingerprintinputs/ISCHANGED, validateinputs, checklazystatus, execution order. Use when debugging node execution, controlling caching, or adding input validation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install with agentmods
npx agentmods add skills/sideshowroberto/vfx-agent-toolkit/comfyui-node-lifecycle
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 sideshowroberto/vfx-agent-toolkit --skill comfyui-node-lifecycle
Clone the repo
git clone --depth 1 https://github.com/sideshowroberto/vfx-agent-toolkit

Made for: Claude Code, Codex.

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-lifecycle

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sideshowroberto/vfx-agent-toolkit/comfyui-node-lifecycle"><img src="https://agentmods.dev/badge/skills/sideshowroberto/vfx-agent-toolkit/comfyui-node-lifecycle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,331 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.
Origin unknown 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.00050 $0.02331
Opus 5.5 $0.00020 $0.00932
Sonnet 5.5 $0.00010 $0.00466
Haiku 4.5 $0.00005 $0.00233

Measured today against content hash e41c0ff50c42, 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-lifecycle 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 today.

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-node-dev/skills/comfyui-node-lifecycle/SKILL.md · 346 lines

How it starts

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

ComfyUI Node Execution Lifecycle

Understanding the execution lifecycle helps build efficient, correct nodes.

Execution Flow Overview

1. Prompt received from frontend
2. Validation phase
   +-- Look up each node class
   +-- Call INPUT_TYPES() / define_schema() for input specs
   +-- Validate connections and types
   +-- Call validate_inputs() for each node
3. Build execution order (topological sort from output nodes)
4. For each node in order:
   +-- Cache check (fingerprint_inputs)
   +-- Input resolution (get upstream values)
   +-- Lazy evaluation (check_lazy_status)
   +-- Execute function
   +-- Store outputs in cache
5. Return results to frontend

Execution Order

ComfyUI executes from output nodes backward:

  1. Identifies output nodes (is_output_node=True)
  2. Builds dependency graph
  3. Topological sort determines execution order
  4. Only nodes connected to output nodes execute

Cache Control: fingerprint_inputs (V3) / IS_CHANGED (V1)

Controls when a node re-executes vs uses cached results.

class RandomNode(io.ComfyNode):
    @classmethod
    def define_schema(cls):
        return io.Schema(
            node_id="RandomNode",
            display_name="Random Value",
            category="utils",
            inputs=[
                io.Float.Input("min_val", default=0.0),
                io.Float.Input("max_val", default=1.0),
            ],
            outputs=[io.Float.Output("FLOAT")],
        )

    @classmethod
    def fingerprint_inputs(cls, min_val, max_val):
        """Return value compared to last run. Different value = re-execute."""
        # Return unique value each time to always re-execute
        import time
        return time.time()

    @classmethod
    def execute(cls, min_val, max_val):
        import random
        return io.NodeOutput(random.uniform(min_val, max_val))

How caching works:

  • Before execution, fingerprint_inputs() is called with the same args as execute()
  • Return value is compared to the previous run's return value
  • If same -> skip execution, use cached output
  • If different -> re-execute the node
  • If fingerprint_inputs is not defined -> cache based on input values

Read the full file on GitHub · 346 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. today First seen · 346 lines · 50 tokens per session scan A e41c0ff50c42

Subscribe to this mod's changes

comfyui-node-lifecycle is a skill published in the GitHub repository sideshowroberto/vfx-agent-toolkit (16 stars, last pushed 22d ago), licensed MIT. It adds 50 tokens to every session and 2,331 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-11-02.

Related

Other skills, from other repositories

dcc-diagnostics

Infrastructure skill — DCC-agnostic observability primitives: capture screenshots, query audit logs, inspect tool performance metrics, and monitor process health. Works in any DCC environment (Maya, Blender, Houdini, Unreal, etc.) or standalone Python. Use for debugging any skill failure or verifying DCC state. Not…

dcc-mcp/dcc-mcp-core · 84 tokens

qt-ui-inspector

Infrastructure skill — DCC-agnostic Qt UI introspection: list top-level windows, find widgets by name/class, describe widget properties, walk the widget tree, and poll for availability. Works in any DCC with a Qt binding (Maya, Blender, Houdini, Unreal, etc.). All tools are read-only and lazy-loaded.

dcc-mcp/dcc-mcp-core · 74 tokens

comfyui-workflow-repair

A diagnostic and repair workflow for ComfyUI workflows, which are saved graphs of image-generation nodes and their connections. It checks for missing or outdated nodes, invalid links, and parameter problems, and can migrate workflows between versions.

IvanYangYangXi/artclaw_bridge · 85 tokens

comfyui-workflow-validator

A checker for ComfyUI workflows, which are sets of connected image-generation steps. It checks whether every node type used by a workflow is available in the current ComfyUI setup.

IvanYangYangXi/artclaw_bridge · 67 tokens

ue5-debug-validation

UE5.6/UE5.7 debugging and validation workflow for logs, asset checks, and regression triage. Use when requests involve troubleshooting why gameplay does not work, validating expected output, narrowing minimal repro, and producing concrete fix steps.

IvanYangYangXi/artclaw_bridge · 54 tokens

troubleshooting

Common ComfyUI errors and fixes. OOM, missing nodes, dtype mismatches, black images, and debugging strategies.

artokun/comfyui-mcp · 28 tokens