This skill allows users to create custom server-side nodes for ComfyUI V3 using Python. It's designed for developers looking to extend the functionality of the ComfyUI engine by creating custom nodes and integrating them with the Comfy API.
$ npx skills add https://github.com/jimlee2048/skills --skill comfyui-nodes-devComfyUI V3 Custom Nodes is a development skill that enables developers to create custom server-side nodes for ComfyUI V3 using Python. It provides the tools and integration points needed to extend ComfyUI engine functionality through the Comfy API. This skill is ideal for developers who need to build specialized nodes tailored to their specific workflow requirements.
Install the skill using the provided npm command.
Scaffold a custom nodepack
Implement V3 nodes with specific schema
Register and validate nodes in ComfyUI
$ npx skills add https://github.com/jimlee2048/skills --skill comfyui-nodes-devgit clone https://github.com/jimlee2048/skillsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a custom ComfyUI V3 server-side node for [TASK] using Python. The node should handle [INPUT_DATA], process it with [ALGORITHM], and output [OUTPUT_FORMAT]. Ensure the node follows ComfyUI V3's node structure and includes [REQUIRED_ATTRIBUTES]. Use the ComfyUI API to register the node and test it with a sample workflow in [COMPANY]'s [INDUSTRY] environment.
# Custom ComfyUI V3 Node: TextToImageSampler
```python
import torch
from comfy.sd import CLIP
from comfy.samplers import KSampler
class TextToImageSampler:
def __init__(self):
self.inputs = {
"text_prompt": ("STRING", {"default": "a beautiful landscape"}),
"width": ("INT", {"default": 512, "min": 64, "max": 2048}),
"height": ("INT", {"default": 512, "min": 64, "max": 2048}),
"seed": ("INT", {"default": 42, "min": 0, "max": 4294967295})
}
self.outputs = ("IMAGE",)
def process(self, text_prompt, width, height, seed):
# Initialize CLIP and KSampler
clip = CLIP()
latent_image = torch.zeros((1, 4, height // 8, width // 8))
# Encode text prompt
conditioning = clip.encode(text_prompt)
# Sample latent image
latent = KSampler.sample(
latent_image,
seed,
10, # steps
"euler", # sampler
"ddim", # scheduler
conditioning,
conditioning
)
return {"image": latent}
```
## Testing the Node
1. Save the node as `text_to_image_sampler.py` in your ComfyUI custom nodes folder.
2. Restart ComfyUI to load the node.
3. In the UI, search for `TextToImageSampler` and add it to your workflow.
4. Connect a text input and image output node to test the workflow.
5. Run the workflow to generate an image from the text prompt.Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan