Command Palette

Search for a command to run...

Назад к скиллам
скилл № 27697

comfyui-screenshot-pipeline

Containerized README-screenshot pipeline (Docker + Playwright) for ComfyUI custom-node packs. Use when generating pack screenshots, adding `just screenshots`…

БесплатноЗапускает вложенные скрипты
laurigatesот laurigates★ 61 звезда на GitHub

Установить comfyui-screenshot-pipeline в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

comfyui-screenshot-pipeline

Add the containerized README-screenshot generator to a ComfyUI usability pack. It is the deferred piece from comfyui-node-scaffold (which intentionally does not emit it). The same pattern ships in comfyui-gallery-loader, comfyui-sampler-info, comfyui-touch-numeric, comfyui-prompt-editor, comfyui-model-gallery, comfyui-touch-resize, and comfyui-touch-connect — those are the living reference implementations.

When to Use This Skill

Use this skill when... Use the alternative when...
Adding a reproducible README-screenshot generator to an existing ComfyUI pack — Docker + Playwright driver, just screenshots, committed docs/<out>.png Bootstrapping a brand-new pack repo → comfyui-node-scaffold (it intentionally defers the screenshot pipeline)
Capturing the pack's real frontend deterministically (modal dialog, gesture affordance, or transient overlay) Running the full idea→registry lifecycle → comfy-node

Why containerized

The shot must not depend on whatever models / theme / frontend a dev machine happens to have. A Docker image pins the ComfyUI release (hence the frontend bundle) and the Playwright/Chromium revision (the largest source of cross-host font-rendering drift), boots ComfyUI headless on CPU with no models, drives the pack's real public surface, and writes a PNG to a mounted docs/. Re-runs are deterministic.

Pick the archetype

Archetype Use when the pack… What the driver does
modal opens an HTML dialog over a widget (the modal "vein": gallery-loader, sampler-info, touch-numeric, prompt-editor, model-gallery) load a workflow with the target node, wait for the pack's patch flag on the widget, invoke widget.onPointerDown, wait for .cmp-dialog, screenshot it
gesture-affordance is a canvas gesture whose only static surface is a painted affordance (touch-resize's corner-hint bracket) select a node directly (no selectNode → no Vue toolbox) so onDrawForeground paints, optionally inject an illustrative callout overlay, clip the canvas region around the node
gesture-overlay shows a transient overlay only during a live gesture that can't run headlessly (touch-connect's magnifier loupe) force the canvas state (connecting_links etc.), dispatch a synthetic touch pointer the pack listens for, then screenshot the activated overlay element

For a backend model pack (model-gallery), add --seed-models: a fresh ComfyUI has empty model dirs, so the grid renders empty. The generator emits seed_models.py that drops zero-byte placeholder files (the /list endpoint enumerates names only, never reads contents) across a couple of subfolders.

How to run

add_screenshots.py is stdlib-only. Run it from the pack repo root (or pass --dir <pack>). The script ships with this skill, so reference it via ${CLAUDE_SKILL_DIR}:

# Modal pack (seed keypad over the `seed` widget)
python3 ${CLAUDE_SKILL_DIR}/add_screenshots.py --name comfyui-touch-numeric --variant modal --node KSampler --widget seed --flag _touchNumericPatched --ready .tn-keypad --out seed.png

# Backend model pack (seed placeholder models first)
python3 ${CLAUDE_SKILL_DIR}/add_screenshots.py --name comfyui-model-gallery --variant modal --node CheckpointLoaderSimple --widget ckpt_name --flag _modelGalleryPatched --ready .mg-card --out picker.png --seed-models

# Gesture pack — painted affordance
python3 ${CLAUDE_SKILL_DIR}/add_screenshots.py --name comfyui-touch-resize --variant gesture-affordance --node KSampler --out hint.png

# Gesture pack — forced overlay
python3 ${CLAUDE_SKILL_DIR}/add_screenshots.py --name comfyui-touch-connect --variant gesture-overlay --out loupe.png

Flags: --name (pack dir name = the served URL segment, used as the Docker COPY target — must match the real dir), --variant, --out (PNG filename, also the EXPECTED_OUTPUTS the entrypoint asserts), --node/--widget/--flag/ --ready (modal capture placeholders — the node type, the widget name the pack patches, the pack's per-widget patch-guard property, and an inner dialog selector that proves the body rendered), --seed-models, --dir, --comfy-ref (default v0.22.0), --playwright (default 1.49.1). It refuses to overwrite an existing screenshots/ unless --force.

It writes screenshots/{Dockerfile,Dockerfile.dockerignore,entrypoint.sh,package.json,capture.mjs,workflow.json,README.md} (+ seed_models.py with --seed-models), and appends a screenshots recipe to the pack's justfile if one isn't already there.

After running: tailor, iterate, embed

  1. Tailor capture.mjs + workflow.json. The generic infra is done; the capture is pack-specific. For modal, the placeholders are filled from your flags but verify the widget name, patch flag, and the --ready inner selector against the real pack JS. For the gesture variants, the
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash(python3 ${CLAUDE_SKILL_DIR}/add_screenshots.py *)
  2. 02Bash(docker build *)
  3. 03Bash(just screenshots *)
  4. 04Read
  5. 05Write
  6. 06Edit
  7. 07Grep
  8. 08Glob
  9. 09TodoWrite

Вложенные файлы

  • add_screenshots.py

FAQ

Что делает скилл comfyui-screenshot-pipeline?

Containerized README-screenshot pipeline (Docker + Playwright) for ComfyUI custom-node packs. Use when generating pack screenshots, adding `just screenshots`, or capturing modal/gesture node UI.

Как установить скилл comfyui-screenshot-pipeline?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл comfyui-screenshot-pipeline запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить comfyui-screenshot-pipeline с