ComfyUI-to-Python Extension

SkillProductivity

"Route ComfyUI Save As Script and workflow export tasks into the

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the ComfyUI-to-Python Extension skill

What this skill tells your AI

The instructions your AI receives, as published by vectorspacelab/arex-skill in skills/repositories/repo-skills/comfyui-to-python-extension/SKILL.md and read by ahel’s review.

Use this router for the repository that turns ComfyUI node graphs into runnable Python and adds the in-UI Save As Script extension command.

Start here

Route to cli-export

Go to sub-skills/cli-export/SKILL.md when the task is about any of these:

  • converting workflow_api.json or another API-format workflow into Python
  • running python -m comfyui_to_python or the legacy comfyui_to_python.py wrapper
  • choosing --input_file, --output_file, or --queue_size
  • understanding the generated script layout, bootstrap, cleanup, or seed handling
  • running exported Python with ComfyUI, torch, or model files
  • debugging COMFYUI_PATH, No module named 'torch', custom-node import, or generated-script runtime failures
  • smoke-testing export behavior with a tiny workflow

Route to web-ui-extension

Go to sub-skills/web-ui-extension/SKILL.md when the task is about any of these:

  • installing the repo as a ComfyUI custom node
  • making File -> Save As Script appear in the ComfyUI UI
  • understanding __init__.py, the /saveasscript route, or the frontend menu command
  • using extra_model_paths.yaml, symlinks, or ComfyUI/custom_nodes discovery
  • diagnosing why the extension does not show up after restart
  • the browser-side download flow and the default workflow_api.py filename

Shared facts

  • The project targets Python 3.12+.
  • black is required by the exporter path.
  • COMFYUI_PATH is the primary runtime locator when ComfyUI is not already discoverable from the current working directory.
  • Generated scripts still need a real ComfyUI runtime, not just this repository checkout.

Working rules

  • Keep generated guidance self-contained. Use the bundled references and scripts under this skill tree instead of pointing back to the source checkout.
  • Prefer the narrowest sub-skill that matches the request.
  • If the user mixes UI installation and CLI export concerns, answer from the more specific route first and cross-reference the other route only when needed.

Signals

GitHub stars
266
Forks
21
Last commit
Sep 2026

ahel review

  • K1binfo
    installs-packages (in references/troubleshooting.md)

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Catalog kind
skill
Gateway key
comfyui-to-python-extension
Source
github.com/vectorspacelab/arex-skill