Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

comfyui-node-scaffold

БесплатноЗапускает вложенные скриптыНе проверен

Local files only: a new ComfyUI node pack tree (TypeScript + bun build, CI, release-please, vitest+pytest) on @laurigates/comfy-modal-kit; no GitHub repo. Use…

laurigatesот laurigates★ 61 звезда на GitHub

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

comfyui-node-scaffold

Bootstrap a new ComfyUI custom-node pack that matches the established mobile-first TypeScript + bun build architecture of comfyui-gallery-loader, comfyui-sampler-info, and comfyui-touch-numeric, leaving only the actual node logic to implement.

Supporting material is split across references/ by the path that needs it; see REFERENCE.md for the index.

When to Use This Skill

Use this skill when... Use the alternative when...
Starting a new ComfyUI usability pack repo — CI-green TS toolchain, Comfy Registry publish, and the widget-intercept/gesture skeleton before writing pack logic You want the full pipeline (repo created + seeded + gitops-adopted) → comfy-node
Spinning up a project:comfyui-nodes backlog idea (touch-numeric, prompt-editor, model-gallery…) Adding a node to an existing pack — this creates a new repo

The architecture it scaffolds

TypeScript source in src/ (entry src/index.ts), built to web/dist/ via bun build — typed authoring against @comfyorg/comfyui-frontend-types, browser-ESM output, the /scripts/app.js runtime import left unbundled. This supersedes the old vanilla-JS (web/js/*.js + copied modal primitives) template. The generated pack starts with an ADR (docs/blueprint/adrs/0001-…) recording the decision, mirroring sampler-info's ADR-0010.

  • Type gate: bun run typecheck → tsc --noEmit (never emits).
  • Emit: bun build ./src/index.ts --target browser --format esm --outdir web/dist --external '/scripts/*'. If the pack ships a static data corpus, append && cp -R web/data web/dist/data.
  • Serve: __init__.py sets WEB_DIRECTORY = "./web/dist"; ComfyUI serves that tree at /extensions/<name>/.
  • Distribute: web/dist/ is committed (tracked) so git clone/update carries the served bundle; [tool.comfy] includes = ["web/dist"] also force-ships it to the registry, and publish.yml runs bun run build first.
  • The /scripts/app.js type shim: a paths mapping in tsconfig.json points the rooted import at src/comfyui-shims.d.ts (TypeScript will not match an ambient declare module against a /… specifier). The emitted import string stays /scripts/app.js and --external '/scripts/*' keeps it unbundled.

The vein

A frontend extension that intercepts widget.onPointerDown (modern Vue frontend, comfyui-frontend-package >= 1.40) and opens a touch-friendly HTML modal in place of a clunky native LiteGraph control. Widgets are matched by name (generic across node packs); the enhancement is additive (graceful fallback, never breaks serialized workflows); the modal is touch-first (16px inputs, big tap targets, momentum scroll). The modal primitives come from @laurigates/comfy-modal-kit (openModalShell / fuzzyRank / highlightMatches) — imported, not copied — and bun build inlines them.

Name-matching needs a gate when the modal's content is external. The emitted TARGET_WIDGETS set matches on name alone, which is correct for a modal that renders the widget's own options.values. If your pack instead fills the modal from a folder_paths listing, an endpoint, or a corpus, a node that hardcodes a combo under the same name (RIFE VFI's ckpt_name) has its only valid choices replaced with values it rejects — see comfyui-node-authoring § "A widget name is not proof of its option source" for the overlap gate.

Four variants

Variant Use when Shape Modal kit
frontend (default) No Python needed — pure widget UX (seed/numeric keypad, prompt editor, tooltips, enum recipes). Empty NODE_CLASS_MAPPINGS; widget-intercept modal in src/index.ts. Like sampler-info / touch-numeric. imports the kit
backend Needs to read disk / serve thumbnails / add a node (model thumbnails, file listings). Adds <module>.py (node + aiohttp endpoints, ComfyUI-bundled libs only) + a tests/conftest.py that stubs aiohttp/server so pytest is green. Like gallery-loader. imports the kit
gesture The UX is a canvas interaction, not a widget — drag/long-press on nodes or groups (resize, move, region-box). Must be recognizable on the first pointerdown — see the contract in variants.md. Empty NODE_CLASS_MAPPINGS; a canvas pointer layer in src/index.ts with exported pure geometry helpers. Like touch-resize's corner grab-handles. no kit
shim The pack's whole job is injecting scoped CSS / registering commands to paper over upstream frontend bugs — no modal, no widget hook. Empty NODE_CLASS_MAPPINGS; a SHIMS registry in src/index.ts with applyCssShim/removeCssShim, one managed <style> per shim driven by a boolean setting, + a jsdom lifecycle smoke test. Like comfyui-touch-shim. no kit

Decision rule: frontend/backend with --widgets for a per-widget modal; frontend/`backen

Полный SKILL.md на GitHub

Установить comfyui-node-scaffold в Claude Code и Claude Desktop

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

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

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

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

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

Bash(python3 ${CLAUDE_SKILL_DIR}/scaffold.py *)
Bash(python3 ${CLAUDE_SKILL_DIR}/scripts/check-fleet-drift.py *)
Bash(git init -b main)
Bash(uv sync *)
Bash(just check *)
Bash(just assets *)
Bash(bun run build *)
Bash(npm view *)
Read
Write
Edit
Grep
Glob
TodoWrite

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

REFERENCE.mdfleet-policy.tomlreferences/implementing-the-pack.mdreferences/invocation.mdreferences/registry-readiness.mdreferences/template-upkeep.mdreferences/variants.mdscaffold.pyscripts/check-fleet-drift.py

FAQ

Что делает скилл comfyui-node-scaffold?

Local files only: a new ComfyUI node pack tree (TypeScript + bun build, CI, release-please, vitest+pytest) on @laurigates/comfy-modal-kit; no GitHub repo. Use when generating a new pack's files.

Как установить скилл comfyui-node-scaffold?

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

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

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

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

Сравнить comfyui-node-scaffold с