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.
No other account needed.
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
- Read
references/install-and-setup.mdwhen the user asks how to install, expose, or run the extension. - Read
references/api-reference.mdwhen you need exact public class, function, or module names. - Read
references/configuration.mdwhen the question is aboutCOMFYUI_PATH, default filenames, queue size, or generated-script runtime switches. - Read
references/troubleshooting.mdfor shared failure modes before you route into a sub-skill. - Read
references/repo-provenance.mdif you need to check freshness or source state. - Read
references/repo-routing-metadata.jsonif you need the router placement metadata for import.
Route to cli-export
Go to sub-skills/cli-export/SKILL.md when the task is about any of these:
- converting
workflow_api.jsonor another API-format workflow into Python - running
python -m comfyui_to_pythonor the legacycomfyui_to_python.pywrapper - 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/saveasscriptroute, or the frontend menu command - using
extra_model_paths.yaml, symlinks, orComfyUI/custom_nodesdiscovery - diagnosing why the extension does not show up after restart
- the browser-side download flow and the default
workflow_api.pyfilename
Shared facts
- The project targets Python 3.12+.
blackis required by the exporter path.COMFYUI_PATHis 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