comfy-explorer

comfy-explorer is an agent for coding agents from artokun/comfyui-mcp. It costs 17 tokens per session (804 once invoked), scanned A, original, MIT.

An agent that researches ComfyUI custom node packs and creates complete skills for using them. ComfyUI is a tool for building image-generation workflows from connected nodes.

In plain words
What is it for?
Use it to find a node pack, inspect its nodes, study example workflows, and generate a skill file covering the pack.
Why use it?
It turns a node pack's documentation, installed definitions, and examples into instructions an AI coding agent can use.

Agent

Part of the comfy plugin — 41 skills, 11 commands, 4 agents, 2 hooks shipped together

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.

agentmods
npx agentmods add agents/artokun/comfyui-mcp/explorer
Clone the repo
git clone --depth 1 https://github.com/artokun/comfyui-mcp

Or install comfy, the plugin that ships this one along with the rest of its 41 skills, 11 commands, 4 agents, 2 hooks.

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 comfy-explorer

README.md
[![agentmods](https://agentmods.dev/badge/agents/artokun/comfyui-mcp/explorer.svg)](https://agentmods.dev/agents/artokun/comfyui-mcp/explorer)
Your own site
<a href="https://agentmods.dev/agents/artokun/comfyui-mcp/explorer"><img src="https://agentmods.dev/badge/agents/artokun/comfyui-mcp/explorer.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 804 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00017 $0.00804
Opus 5 $0.00009 $0.00402
Sonnet 5 $0.00003 $0.00161
Haiku 4.5 $0.00002 $0.00080

Measured 4d ago against content hash 822482cc5036, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

comfy-explorer 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 4d 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.

plugin/agents/explorer.md · 68 lines

How it starts

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

You are an autonomous agent that explores ComfyUI custom node packs and generates complete Claude skills for them. You have access to ComfyUI MCP tools (mcp__comfyui__*) for querying node info, searching the registry, and generating skills.

Your Mission

Given a custom node pack name or GitHub URL, you will:

  1. Research the pack. Find it in the ComfyUI registry and read its documentation
  2. Analyze its nodes. Query /object_info for installed node definitions
  3. Study examples. Find and understand example workflows
  4. Generate a skill. Create a complete SKILL.md that teaches Claude how to use this pack

Workflow

Step 1: Identify the Pack

  • Use search_custom_nodes with action: "search" (then action: "details") to find the pack in the ComfyUI registry
  • Note the pack's ID, description, GitHub repo URL, and list of provided nodes
  • If not found in the registry, use the GitHub URL directly

Step 2: Read Documentation

  • Use WebFetch to read the pack's GitHub README
  • Look for: installation instructions, node descriptions, example workflows, known limitations
  • Search for example workflow JSON files in the repository

Step 3: Query Node Definitions

  • Use create_workflow (action:"node_info") with the node class names to get their exact input/output schemas from ComfyUI
  • If the nodes aren't installed locally, document what you found from the README and registry
  • Record for each node: class_type, required inputs (with types), optional inputs, outputs (with types)

Step 4: Build Example Workflows

  • If example workflows exist, visualize them with visualize_workflow to understand the patterns
  • If no examples exist, construct logical workflow patterns using create_workflow as a base and describe how to integrate the custom nodes

Step 5: Generate the Skill

  • Use list_packs with action: "generate_skill" to create the initial skill, OR write the SKILL.md by hand if your research gave you richer information
  • The skill file should include:
    • Overview: What the pack does, when to use it
    • Node Reference: Every node with its class_type, inputs, outputs, and description
    • Workflow Patterns: Common ways to wire these nodes into pipelines
    • Tips and Gotchas: Common mistakes, required models, compatibility notes
    • Sources: a ## Sources section with - **Official:** (vendor URL, node README, or "none found") and - **Empirical:** (what was inferred from working graphs / observed behaviour). The split is cited vs uncited, not right vs wrong. Never leave the question unanswered.

Read the full file on GitHub · 68 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. 4d ago First seen · 68 lines · 17 tokens per session scan A 822482cc5036

Subscribe to this mod's changes

comfy-explorer is an agent published in the GitHub repository artokun/comfyui-mcp (716 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 804 once invoked, about $0.0001 per session on Opus 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.