Source profileQuality 85/100Review permissions

artokun/comfyui-mcp/plugin/skills/comfyui-core/SKILL.md

comfyui-core

Core ComfyUI knowledge — workflow format, node types, pipeline patterns, and MCP tool usage

Source repository stars
485
Declared platforms
0
Static risk flags
2
Last source update
2026-08-04
Source checked
2026-08-04

Decision brief

What it does—and where it fits

Core ComfyUI knowledge — workflow format, node types, pipeline patterns, and MCP tool usage

Best for

    Not for

    • Wrong connection format: Use ["1", 0] not [1, 0] — node IDs are strings
    • Web UI format: Don't pass { nodes: [], links: [] } — use API format

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/artokun/comfyui-mcp --skill "plugin/skills/comfyui-core"
    Safe inspection promptEditorial

    Inspect the Agent Skill "comfyui-core" from https://github.com/artokun/comfyui-mcp/blob/0852abe2c68d9fe9e2af89c54cd039357f08ae6c/plugin/skills/comfyui-core/SKILL.md at commit 0852abe2c68d9fe9e2af89c54cd039357f08ae6c. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Workflow JSON Format (API Format)

      ComfyUI workflows are JSON objects mapping string node IDs to node definitions:

      Node IDs are strings of integers ("1", "2", etc.)classtype is the exact Python class name of the nodeinputs contains both widget values (scalars) and connections (arrays)
    2. 02

      Workflow Library Tools

      analyzeworkflow(filename) — use this first to understand any saved workflow. Returns a structured text summary with sections, node IDs, key settings, virtual wires, and connection graph. No raw JSON — just what you need…

      analyzeworkflow(filename) — use this first to understand any saved workflow. Returns a structured text summary with sections, node IDs, key settings, virtual wires, and connection graph. No raw JSON — just what you need…listworkflows — list all saved workflows in ComfyUI's user librarygetworkflow(filename) — load raw workflow JSON. Only use when you need the actual JSON for enqueueworkflow, modifyworkflow, or saveworkflow. Use analyzeworkflow instead for understanding. For saveworkflow, request forma…
    3. 03

      MCP Tool Usage Guide

      1. createworkflow with template "txt2img" and your params 2. enqueueworkflow with the returned JSON — returns promptid immediately 3. Poll queue (action:"status") with the promptid until done is true 4. Use listoutputimages (limit 1) to find the generated image, then Read to dis…

      createworkflow with template "txt2img" and your paramsenqueueworkflow with the returned JSON — returns promptid immediatelyPoll queue (action:"status") with the promptid until done is true
    4. 04

      Workflow Execution

      enqueueworkflow submits to ComfyUI's queue and returns promptid + queue position immediately. It does NOT block.

      enqueueworkflow submits to ComfyUI's queue and returns promptid + queue position immediately. It does NOT block.
    5. 05

      Key Rules

      Node IDs are strings of integers ("1", "2", etc.)

      Node IDs are strings of integers ("1", "2", etc.)classtype is the exact Python class name of the nodeinputs contains both widget values (scalars) and connections (arrays)

    Permission review

    Static risk signals and limitations

    Network access

    medium · line 155

    The documentation includes network, browsing, or remote request actions.

    Search: `GET https://civitai.com/api/v1/models?query={query}&types=Checkpoint&sort=Most+Downloaded&limit=5`

    Network access

    medium · line 157

    The documentation includes network, browsing, or remote request actions.

    Download: `GET https://civitai.com/api/download/models/{modelVersionId}?token={token}`

    Runs scripts

    medium · line 178

    The documentation asks the agent to run terminal commands or scripts.

    Bash(run_in_background: true):

    Runs scripts

    medium · line 179

    The documentation asks the agent to run terminal commands or scripts.

    node "${CLAUDE_PLUGIN_ROOT}/scripts/monitor-progress.mjs" <prompt_id>

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score85/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars485SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    artokun/comfyui-mcp
    Skill path
    plugin/skills/comfyui-core/SKILL.md
    Commit
    0852abe2c68d9fe9e2af89c54cd039357f08ae6c
    License
    MIT
    Collected
    2026-08-04
    Default branch
    main
    View the original SKILL.md

    ComfyUI Core Knowledge

    Workflow JSON Format (API Format)

    ComfyUI workflows are JSON objects mapping string node IDs to node definitions:

    {
      "1": {
        "class_type": "CheckpointLoaderSimple",
        "inputs": { "ckpt_name": "sd_xl_base_1.0.safetensors" },
        "_meta": { "title": "Load Checkpoint" }
      },
      "2": {
        "class_type": "CLIPTextEncode",
        "inputs": { "text": "a cat", "clip": ["1", 1] },
        "_meta": { "title": "Positive Prompt" }
      }
    }
    

    Key Rules

    • Node IDs are strings of integers ("1", "2", etc.)
    • class_type is the exact Python class name of the node
    • inputs contains both widget values (scalars) and connections (arrays)
    • Connections use the format ["sourceNodeId", outputIndex] — a 2-element array where:
      • First element: string node ID of the source node
      • Second element: integer index into the source node's output list (0-based)
    • _meta is optional, used for display titles only

    Connection Examples

    "model": ["1", 0]       // Connect to node 1's first output (MODEL)
    "clip": ["1", 1]        // Connect to node 1's second output (CLIP)
    "vae": ["1", 2]         // Connect to node 1's third output (VAE)
    "positive": ["2", 0]    // Connect to node 2's first output (CONDITIONING)
    "samples": ["5", 0]     // Connect to node 5's first output (LATENT)
    "images": ["6", 0]      // Connect to node 6's first output (IMAGE)
    

    Important: API Format vs Web UI Format

    • API format (for execution/analysis): { "1": { class_type, inputs }, "2": { ... } } — compact, used by enqueue_workflow, validate_workflow, modify_workflow, etc.
    • Web UI format (for saving and frontend editing): { "nodes": [...], "links": [...] } — includes layout positions, sizes, groups, and visual metadata so ComfyUI's canvas can open and edit it
    • Execution tools expect and return API format
    • Save in Web UI format so saved workflows stay readable and editable in the ComfyUI frontend. A raw API-format save is NOT canvas-editable — it "exists" in the library but loads blank in the canvas, which strands users (and tempts agents into creating yet another new workflow instead of reopening the old one). Because of this, save_workflow auto-converts API-format input to Web UI format with a generated layout — but prefer passing real Web UI format (from get_workflow format="ui") since a generated layout loses the original node positions/groups
    • get_workflow defaults to format="api" for analysis/execution; use format="ui" when loading a workflow to re-save or edit in the canvas
    • Muted/bypassed nodes are preserved with _meta.mode: "muted" — these are inactive but visible for understanding the workflow
    • Get/Set virtual wire nodes are preserved with _meta.title and Constant key for tracing data flow

    Workflow Library Tools

    • analyze_workflow(filename)use this first to understand any saved workflow. Returns a structured text summary with sections, node IDs, key settings, virtual wires, and connection graph. No raw JSON — just what you need to reason about the workflow. Supports views: summary (default), overview (mermaid), detail (section mermaid), list, flat.
    • list_workflows — list all saved workflows in ComfyUI's user library
    • get_workflow(filename) — load raw workflow JSON. Only use when you need the actual JSON for enqueue_workflow, modify_workflow, or save_workflow. Use analyze_workflow instead for understanding. For save_workflow, request format="ui" so the workflow stays editable in the frontend.
    • save_workflow(filename, workflow) — save a workflow to the user library. Pass Web UI format ({ nodes, links }) so it keeps its real layout in ComfyUI's canvas. API-format graphs are accepted and are auto-converted to Web UI format (with a generated layout) precisely because a raw API-format save is not canvas-editable — the frontend cannot open it. When re-saving an existing workflow, load it with get_workflow format="ui" and edit that, so positions/groups survive.

    Data Types

    ComfyUI nodes pass typed data through connections:

    TypeDescriptionCommon Source
    MODELDiffusion model weightsCheckpointLoaderSimple (output 0)
    CLIPText encoderCheckpointLoaderSimple (output 1)
    VAEVariational autoencoderCheckpointLoaderSimple (output 2)
    CONDITIONINGEncoded text promptCLIPTextEncode (output 0)
    LATENTLatent space tensorEmptyLatentImage, KSampler, VAEEncode
    IMAGEPixel image tensor (BHWC)VAEDecode, LoadImage, SaveImage
    MASKSingle-channel maskLoadImage (output 1)
    UPSCALE_MODELUpscaling modelUpscaleModelLoader

    Standard Pipeline Patterns

    Text-to-Image (txt2img)

    CheckpointLoaderSimple → MODEL, CLIP, VAE
      ├─ CLIP → CLIPTextEncode (positive) → CONDITIONING
      ├─ CLIP → CLIPTextEncode (negative) → CONDITIONING
      │
    EmptyLatentImage → LATENT
      │
    KSampler (model, positive, negative, latent_image) → LATENT
      │
    VAEDecode (samples, vae) → IMAGE
      │
    SaveImage (images)
    

    Node IDs typically: 1=Checkpoint, 2=Positive, 3=Negative, 4=EmptyLatent, 5=KSampler, 6=VAEDecode, 7=SaveImage

    Image-to-Image (img2img)

    Same as txt2img but replace EmptyLatentImage with:

    LoadImage → IMAGE
    VAEEncode (pixels, vae) → LATENT → KSampler.latent_image
    

    Set KSampler.denoise to 0.5–0.8 (lower = closer to input image).

    Upscale

    LoadImage → IMAGE
    UpscaleModelLoader → UPSCALE_MODEL
    ImageUpscaleWithModel (upscale_model, image) → IMAGE
    SaveImage (images)
    

    Inpaint

    LoadImage (image) → IMAGE → VAEEncode → LATENT
    LoadImage (mask) → MASK
    SetLatentNoiseMask (samples, mask) → LATENT → KSampler.latent_image
    

    MCP Tool Usage Guide

    Quick Generation

    1. create_workflow with template "txt2img" and your params
    2. enqueue_workflow with the returned JSON — returns prompt_id immediately
    3. Poll queue (action:"status") with the prompt_id until done is true
    4. Use list_output_images (limit 1) to find the generated image, then Read to display it

    Inspect & Modify

    • get_node_info — query what nodes are available and their schemas
    • modify_workflow — patch an existing workflow (set_input, add_node, remove_node, connect, insert_between)
    • visualize_workflow — see a workflow as a mermaid diagram

    Reverse Engineering

    • visualize_workflow — workflow JSON → mermaid diagram
    • mermaid_to_workflow — mermaid diagram → workflow JSON (uses /object_info for schema resolution)

    Model Management

    • list_local_models — see what's installed
    • search_models — find models on HuggingFace
    • download_model — download to ComfyUI's models directory

    Important: Never ask the user to manually download models. If a required model is missing, proactively search for it and download it yourself:

    1. Check list_local_models first
    2. If missing, search HuggingFace via search_models or CivitAI via their REST API
    3. Use download_model to install it directly to the correct subfolder

    CivitAI API (when CIVITAI_API_TOKEN env var is available):

    • Search: GET https://civitai.com/api/v1/models?query={query}&types=Checkpoint&sort=Most+Downloaded&limit=5
    • Details: GET https://civitai.com/api/v1/models/{modelId}
    • Download: GET https://civitai.com/api/download/models/{modelVersionId}?token={token}

    CivitAI is preferred for fine-tuned models, community-rated checkpoints, and specialized LoRAs. HuggingFace is preferred for official/base models (SDXL, Flux, SD 1.5).

    Custom Nodes

    • search_custom_nodes — search the ComfyUI Registry
    • get_node_pack_details — get details about a specific pack
    • generate_node_skill — auto-generate a skill file for a node pack

    Workflow Execution

    enqueue_workflow submits to ComfyUI's queue and returns prompt_id + queue position immediately. It does NOT block.

    Background Progress Monitoring

    After enqueuing one or more workflows, use a background Bash task to monitor progress silently:

    # Single job
    Bash(run_in_background: true):
    node "${CLAUDE_PLUGIN_ROOT}/scripts/monitor-progress.mjs" <prompt_id>
    
    # Multiple jobs (batch)
    Bash(run_in_background: true):
    node "${CLAUDE_PLUGIN_ROOT}/scripts/monitor-progress.mjs" <id1> <id2> <id3>
    

    The script connects to ComfyUI's WebSocket and reports:

    • Step-by-step progress (e.g., KSampler step 12/20 (60%))
    • Success with output filenames and timing
    • Errors with node details and messages

    Standard generation pattern:

    1. create_workflow or build workflow JSON + enqueue_workflow (repeat for batch)
    2. Start background monitor with all prompt_ids
    3. Continue conversation — results appear when jobs finish
    4. Use list_output_images or Read to display the generated images

    Do NOT poll queue (action:"status") in a loop. The background monitor replaces polling entirely.

    Fallback: If the monitor script is unavailable, use queue (action:"status") to poll until done is true.

    Queue Management

    One tool, queue, driven by its action parameter:

    • queue (action:"list") — shows running/pending job counts and prompt_ids
    • queue (action:"status") — check if a specific prompt_id is running, pending, or done
    • queue (action:"cancel") — interrupt a running job (pass optional prompt_id to target a specific one)
    • queue (action:"cancel_queued") — remove a specific pending job from the queue by prompt_id
    • queue (action:"clear") — remove all pending jobs (does NOT stop the currently running job)

    When to use queue tools:

    • To check status: queue (action:"status") for a quick boolean check (prefer background monitor for ongoing tracking)
    • To abort: queue (action:"cancel") stops what's running now; queue (action:"cancel_queued") removes a pending one
    • To start fresh: queue (action:"clear") then optionally queue (action:"cancel")

    Monitoring & Recovery

    • get_system_stats — GPU, VRAM, Python version, OS details
    • queue (action:"list") — see running/pending jobs (also listed above under Queue Management)

    When ComfyUI is unresponsive or crashed:

    1. Try get_system_stats — if it fails, ComfyUI is down
    2. Use restart_comfyui to restart it (preserves launch args from prior stop_comfyui)
    3. If restart fails (no saved process info), use start_comfyui or ask the user to start it manually
    4. After ComfyUI is back, re-enqueue any failed/lost workflows

    When a job appears hung (monitor shows [STALL]):

    1. Check get_system_stats — look at VRAM usage (OOM causes hangs)
    2. Try queue (action:"cancel") to interrupt the stuck job
    3. If cancel fails, use restart_comfyui to force-restart
    4. Use clear_vram after restart to free GPU memory before retrying

    KSampler Parameters

    ParameterTypeCommon Values
    seedintRandom (0 to 2^48). Omit to auto-randomize.
    stepsint20 (standard), 4-8 (turbo/lightning models)
    cfgfloat7-8 (SD 1.5/SDXL), 1.0 (Flux), 3.5 (turbo)
    sampler_namestring"euler", "euler_ancestral", "dpmpp_2m", "dpmpp_sde"
    schedulerstring"normal", "karras", "sgm_uniform"
    denoisefloat1.0 (txt2img), 0.5-0.8 (img2img), 0.75-0.9 (inpaint)

    Mermaid Visualization Conventions

    The visualize_workflow tool produces mermaid flowcharts with:

    • Subgraphs grouping nodes by category: loading, conditioning, sampling, image, output
    • Edge labels showing data types: -->|MODEL|, -->|CLIP|, -->|LATENT|, etc.
    • Node labels showing class_type and optionally widget values
    • Direction: LR (left-to-right) by default, TB (top-to-bottom) for large workflows

    The mermaid_to_workflow tool parses mermaid back into workflow JSON, using connection type labels to resolve the correct input/output slots via /object_info schemas.

    Common Mistakes to Avoid

    1. Wrong connection format: Use ["1", 0] not [1, 0] — node IDs are strings
    2. Web UI format: Don't pass { nodes: [], links: [] } — use API format
    3. Missing VAE: CheckpointLoaderSimple has 3 outputs — MODEL(0), CLIP(1), VAE(2)
    4. Wrong output index: Check the node's output list order via get_node_info
    5. Seed handling: enqueue_workflow randomizes seeds by default unless disable_random_seed: true

    Alternatives

    Compare before choosing

    Computed 9929,558

    HKUDS/Vibe-Trading

    strategy-generate

    Create, modify, and optimize quantitative trading strategies, then backtest and evaluate them.

    Computed 97106

    AI-Unified-Process/marketplace

    browserless-test

    Creates Vaadin Browserless server-side unit tests for Vaadin views covering navigation, component interactions, form validation, grid operations, and notifications. Use when the user asks to "write Browserless tests", "write Vaadin UI unit tests", "unit test a Vaadin view without a browser", "create view tests with the official Vaadin testing framework", or mentions Browserless testing, SpringBrowserlessTest, browserless-test-junit6, UI Unit Testing, or server-side Vaadin testing.

    Computed 9723

    freenet/freenet-agent-skills

    dapp-builder

    Build and maintain decentralized applications on Freenet using river as a template. Guides through designing contracts (shared state), delegates (private state), and UI, and through upgrading a live dApp safely. Use when user wants to create a new Freenet dApp, design contract state, implement delegates, build a Freenet-connected UI, OR upgrade an existing dApp — bump freenet-stdlib, ship a new contract/delegate version (v2), fix a bug that re-keys the WASM, or migrate state across a contract/de

    Computed 976

    mgiovani/cc-arsenal

    team-review

    Multi-agent review team: architecture, security, performance, testing, style, docs/UX, plus an adversary that cross-examines the other 6, for security-sensitive, architectural, or large PRs (15+ files) where a single-agent pass risks missing cross-cutting issues. Use for auth/payments/PII changes, schema/pattern changes, compliance sign-off, or when asked to 'get the review team on this' / 'multi-agent review' / 'thorough review before merge'. For a standard PR or a quick pre-merge check, use /r