Skip to main content
Glama

generate_node_skill

Generate a SKILL.md file documenting a ComfyUI custom node pack from its registry ID or GitHub URL. Supports caching and optional direct disk write.

Instructions

Generate a Claude skill (SKILL.md) documenting a ComfyUI custom node pack: its nodes, inputs/outputs, and example workflows. Accepts a ComfyUI Registry ID (resolved via api.comfy.org) or a GitHub repository URL. Uses a read-through cache under ~/.comfyui-mcp/skill-cache (override COMFYUI_SKILL_CACHE_DIR); set refresh:true to bypass it. On cache miss, fetches the repo README and scans its Python NODE_CLASS_MAPPINGS and example workflows over the network (uses GITHUB_TOKEN if set to avoid rate limits), so internet access is required. If a ComfyUI server is reachable it enriches node input/output types from /object_info, but the server is optional. Returns the SKILL.md markdown with structured cache metadata; if install_in is set, also creates that directory (recursively) and writes SKILL.md there, overwriting any existing file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesComfyUI Registry node ID (e.g. 'comfyui-impact-pack') or GitHub repository URL
install_inNoOptional directory to write the generated SKILL.md into. Created recursively if missing; an existing SKILL.md is overwritten. Omit to only return the markdown without touching disk.
refreshNoBypass the read-through cache and regenerate the SKILL.md, overwriting the cached entry.
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description fully discloses all behaviors: read-through caching, network operations (fetching README, scanning Python code, using GITHUB_TOKEN), optional server enrichment, and file writing side effects. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the main purpose and progressively adds details. Every sentence is informative, though slightly longer than necessary. It is well-structured and concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (3 params, no output schema), the description covers functionality, side effects, and dependencies well. The return format is mentioned but not fully detailed; still sufficient for an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds valuable context beyond schema: cache behavior for refresh, recursive directory creation for install_in, and dual nature of source. This enriches agent understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool generates a SKILL.md documenting a ComfyUI custom node pack, specifying the source as registry ID or GitHub URL. This is a specific verb+resource that distinguishes it from siblings like scaffold_custom_node or get_node_pack_details.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explains when to use the tool (to document a custom node pack) and details options like cache bypass and install_in. It mentions prerequisites (internet access, optional GITHUB_TOKEN) but does not explicitly state when not to use it or suggest alternatives, though the tool's uniqueness mitigates this.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/artokun/comfyui-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server