artokun/comfyui-mcp/comfyui-node-registry
Claude Code and agent skill by artokun/comfyui-mcp
- community
Checking that the SKILL.md file is still in the repository.
Authoring & publishing ComfyUI custom nodes to the Comfy Registry, covering node structure, pyproject.toml spec, comfy-cli publishing, and CI
Install
npx vskill@latest install artokun/comfyui-mcp/comfyui-node-registrySKILL.md
The same SKILL.md was published earlier as artokun/comfyui-mcp/comfyui-node-registry.
Authoring & Publishing ComfyUI Custom Nodes
This skill covers writing a ComfyUI custom node pack and publishing it to the Comfy Registry (registry.comfy.org), the public catalog that powers ComfyUI-Manager. For using existing nodes in workflows, see the comfyui-core skill instead.
Minimal Node Pack Structure
A node pack is a Python package placed under ComfyUI/custom_nodes/<name>/. The package __init__.py must export NODE_CLASS_MAPPINGS and NODE_DISPLAY_NAME_MAPPINGS; WEB_DIRECTORY is optional (only if the pack ships frontend JS).
__init__.py
A minimal node class (nodes.py)
Node class contract
| Member | Required | Purpose | |
|---|---|---|---|
INPUT_TYPES | yes | @classmethod returning {"required": {...}, "optional": {...}}. Each input is (TYPE,) or (TYPE, {opts}). | |
RETURN_TYPES | yes | Tuple of output type strings (e.g. ("IMAGE", "MASK")). Single output still needs a trailing comma. | |
FUNCTION | yes | String name of the method to execute. | |
CATEGORY | yes | Menu path string for the Add Node menu. | |
RETURN_NAMES | no | Friendly names for outputs (defaults to lowercased types). | |
OUTPUT_NODE | no | True marks a terminal node that produces a result (save/preview). |
The options dict drives the UI widget for each input type:
("INT", {"default": 0, "min": 0, "max": 100, "step": 1})("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.1})("STRING", {"default": "", "multiline": True})(["a", "b", "c"],), a literal list, becomes a dropdown("IMAGE",),("LATENT",),("MODEL",)etc. are typed connections (no widget)
The executing method must return a tuple matching RETURN_TYPES, even for a single output (return (result,)).
pyproject.toml — Registry Metadata
Required to publish. comfy node init scaffolds this file. See references/pyproject.toml for a fully-commented example.
Field rules (verified against the live spec)
| Field | Section | Notes | |
|---|---|---|---|
name | [project] | Unique and immutable once published. <100 chars; alphanumeric + - _ .; no consecutive special chars; can't start with a number/special char; case-insensitive. Don't prefix with "ComfyUI". | |
version | [project] | Semantic X.Y.Z — X breaking, Y backwards-compatible feature, Z bug fix. Each value is published once and is immutable. | |
description | [project] | Short summary (recommended). | |
license | [project] | { file = "LICENSE" } or { text = "MIT License" }. | |
requires-python | [project] | e.g. ">=3.10" (recommended). | |
dependencies | [project] | PEP 508 requirement strings; can pin comfyui-frontend-package. | |
Repository | [project.urls] | Required — valid GitHub repo URL. | |
PublisherId | [tool.comfy] | Required — your publisher id (after the @ on your profile). | |
DisplayName | [tool.comfy] | Friendly registry name (optional). | |
Icon | [tool.comfy] | URL to a square image, max 400×400px; SVG/PNG/JPG/GIF. | |
Banner | [tool.comfy] | URL to a 21:9 banner image; SVG/PNG/JPG/GIF (optional). | |
requires-comfyui | [tool.comfy] | ComfyUI version range using < > <= >= ~= != (optional). | |
includes | [tool.comfy] | Array forcing extra folders into the published archive. |
Controlling the published archive
.comfyignoreuses.gitignoresyntax; files listed are excluded from the published archive. Use it to drop tests, examples, large assets, and dev files.[tool.comfy].includesis the inverse: it force-includes folders that would otherwise be skipped (e.g. a bundledweb/dist).
Registry Setup (one-time)
- Go to registry.comfy.org and create a publisher.
- Your Publisher ID is the value after the
@on your profile page. It is globally unique and cannot be changed. Use it forPublisherIdinpyproject.toml. - In the publisher's section, create an API key. Name it and save it somewhere safe. If you lose it you must create a new one; it is not recoverable.
CLI Publishing Flow
Install comfy-cli (requires Python 3.10+; a virtualenv is recommended):
| Command | What it does | |
|---|---|---|
comfy node init | Scaffolds pyproject.toml with registry metadata in the current node pack folder. Fill in the required fields (esp. PublisherId and Repository). | |
comfy node publish | Validates and uploads the current version to the registry. Prompts for your API key. Prints the registry URL on success. |
Versions are immutable. Once a version is published it cannot be modified or overwritten. To ship changes, bump version and publish again. To pull a bad version, deprecate it on the website (More Actions > Deprecate), which prompts users to upgrade rather than deleting it.
CI Publishing (GitHub Actions)
Automate publishing on every version bump. Add the API key as a repo secret named REGISTRY_ACCESS_TOKEN (Settings > Secrets and variables > Actions), then create .github/workflows/publish_action.yml:
- Triggers on push to
mainbut only whenpyproject.tomlchanges (i.e. when you bumpversion).workflow_dispatchallows manual runs. - If your default branch isn't
main, update thebranches:list. - The action reads the version from
pyproject.tomland publishes it, so the typical flow is bumpversion, commit, push tomain, done.
Optional Frontend Extension
If your pack adds custom UI (widgets, sidebar tabs, menu items), set WEB_DIRECTORY in __init__.py and ship JS there. New frontend extensions should target the modern @comfyorg/extension-api rather than poking at legacy globals; pull in @comfyorg/comfyui-frontend-types for TypeScript types (npm install -D @comfyorg/comfyui-frontend-types). For the full frontend authoring workflow (defineExtension/defineNode/defineWidget and the defineSidebarTab/defineCommand/defineSetting shell APIs), see the sibling comfyui-frontend-extensions skill.
Common Mistakes
- Forgetting the return tuple. The
FUNCTIONmethod mustreturn (value,), notreturn value, even for one output. - Single-element `RETURN_TYPES` without a comma.
("IMAGE")is a string, not a tuple. Write("IMAGE",). - `INPUT_TYPES` not a `@classmethod`. ComfyUI calls it on the class; missing the decorator breaks node loading.
- Trying to overwrite a published version. Versions are immutable. Bump
versioninstead; deprecate bad ones on the website. - Renaming `name` after publishing. It's immutable and globally unique. Pick a good name (no "ComfyUI" prefix) up front.
- Missing `[project.urls].Repository`. It's required; publishing fails without a valid repo URL.
- Wrong `PublisherId`. Use the id after the
@on your profile, not your display name. - Oversized icon. Must be square and ≤ 400×400px; larger images are rejected.
- Renaming class keys in `NODE_CLASS_MAPPINGS`. The key is the
class_typestored in workflow JSON. Changing it breaks every saved workflow that used the node. - Committing the API key. Store it as the
REGISTRY_ACCESS_TOKENsecret; never inpyproject.tomlor the repo.
Sources
- Official: Comfy Registry at https://registry.comfy.org and comfy-cli publishing docs used by
comfy node publish. - Empirical: field-rule notes verified against the live spec; common-mistakes list is from observed publish failures.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugin/skills/comfyui-node-registry/SKILL.md
Popularity
- Repository stars
- 651
- Repository forks
- 101
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/artokun/comfyui-mcp/comfyui-node-registry)