comfyui-screenshot-pipeline
Containerized README-screenshot pipeline (Docker + Playwright) for ComfyUI custom-node packs. Use when generating pack screenshots, adding `just screenshots`…
от 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
- Tailor
capture.mjs+workflow.json. The generic infra is done; the capture is pack-specific. Formodal, the placeholders are filled from your flags but verify the widget name, patch flag, and the--readyinner selector against the real pack JS. For the gesture variants, the
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(python3 ${CLAUDE_SKILL_DIR}/add_screenshots.py *) - 02
Bash(docker build *) - 03
Bash(just screenshots *) - 04
Read - 05
Write - 06
Edit - 07
Grep - 08
Glob - 09
TodoWrite
Вложенные файлы
- 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…