Skills for Real Engineers. Straight from my .agents directory.
comfyui-frontend-extensions
Agent skill fromartokun/comfyui-mcp
Authoring ComfyUI v2 frontend extensions with @comfyorg/extension-api, covering defineNode/defineExtension/defineWidget, shell UI (sidebar tabs, commands, hotkeys), typed events, and handles. Use when writing or editing ComfyUI web-UI extension code (custom node JS, sidebar panels, widgets).
How to install comfyui-frontend-extensions
npx skills add artokun/comfyui-mcp# or add only this skill to Claude Code: copy the folder
plugin/skills/comfyui-frontend-extensions/
# into
~/.claude/skills/comfyui-frontend-extensions/ (all projects)
.claude/skills/comfyui-frontend-extensions/ (one project)
1# ComfyUI v2 Frontend Extension API23The v2 extension API is the published npm package `@comfyorg/extension-api`. It4replaces the legacy `app.registerExtension()` / `nodeType.prototype` monkey-patching5model with a typed, tree-shakeable, import-based API.67> If you are converting an existing v1 extension, read8> [`references/migrate-v1-to-v2.md`](references/migrate-v1-to-v2.md) for a9> pattern-by-pattern mapping.1011## Mental model1213| v1 (legacy) | v2 (`@comfyorg/extension-api`) |14|-------------|-------------------------------|15| One giant `app.registerExtension({...})` call | One `defineX` per concern, each independently disposable |16| `window.app` / `app.*` globals | Direct `import` from the package; no `window.app` at module-eval time |17| `nodeType.prototype.onExecuted = ...` patching | `node.on('executed', fn)` on a `NodeHandle` |18| Mutate `widget.value`, assign `widget.callback` | `widget.setValue(v)` / `widget.on('valueChange', fn)` |19| `api.addEventListener('execution_start', fn)` | `execution.on('start', fn)` (typed namespaces) |20| Manual `removeEventListener` bookkeeping | Every subscription returns `Unsubscribe`; every `defineX` returns `DisposableHandle` |2122Core principles baked into the API:2324- **Import, don't reach for globals.** `import { defineNode } from '@comfyorg/extension-api'`. No `window.app` dependency at module evaluation time.25…
Excerpt shown under the repository's MIT license.
More skills in comfyui-mcp
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
