comfyui-expert-skill

Guide ComfyUI custom node development with ModelPatcher and transformer_options hooks.

Updated Jun 28, 2026
One-click install
npx skills add https://github.com/ruwwww/comfyui-expert-skill --skill comfyui-expert-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: comfyui-expert-skill
Source: https://github.com/ruwwww/comfyui-expert-skill/tree/main
Command: npx skills add https://github.com/ruwwww/comfyui-expert-skill --skill comfyui-expert-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires torch, torchao, safetensors, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the difficulty of navigating ComfyUI's rapidly evolving internal architecture, preventing broken nodes and inefficient workflows caused by outdated implementation patterns.

Core Features & Use Cases

  • Internal Architecture Integration: Provides authoritative guidance on model management, attention patching, and sampling pipeline hooks.
  • Research Implementation: Offers a structured decision tree for implementing complex research papers (e.g., SAG, IP-Adapter) into ComfyUI.
  • Use Case: When you need to implement a custom attention mechanism or wrap a new model architecture like Flux or GGUF, this Skill ensures you use the correct ModelPatcher patterns and transformer_options hooks to maintain compatibility.

Quick Start

Use the comfyui-expert-skill to guide the implementation of a custom attention patch for the current model architecture.

Frequently Asked Questions about comfyui-expert-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement custom attention patching in ComfyUI without breaking existing nodes?

To implement custom attention patching in ComfyUI, use the ModelPatcher for all graph-level modifications and leverage transformer_options hooks. This maintains compatibility and prevents broken nodes.

What is the best way to integrate a new diffusion model architecture like Flux or GGUF into ComfyUI?

Integrating new diffusion model architectures like Flux or GGUF requires wrapping the model using source-based best practices and ModelPatcher patterns. This ensures proper model management and seamless architecture integration within the sampling pipeline.

How do I translate research papers like SAG or IP-Adapter into functional ComfyUI custom nodes?

Translating research papers like SAG or IP-Adapter into ComfyUI nodes involves following a structured decision tree for research implementation. You apply ModelPatcher patterns to accurately replicate the paper's mechanisms.

Do I need PyTorch and safetensors to develop advanced ComfyUI custom nodes?

Yes, developing advanced ComfyUI custom nodes requires dependencies like torch, torchao, and safetensors. These libraries provide the foundational tensor operations and model weight management needed for complex model patching.

Why do my ComfyUI custom nodes break after framework updates?

ComfyUI custom nodes often break after updates due to outdated implementation patterns that fail to adhere to the rapidly evolving internal architecture. Utilizing correct ModelPatcher patterns prevents these inefficiencies.

How do I create a custom sampler pipeline in ComfyUI?

Creating a custom sampler pipeline in ComfyUI requires utilizing sampling pipeline hooks and ModelPatcher for graph-level modifications. This ensures your custom sampler integrates correctly with the internal diffusion model architecture.