comfyui-assets
Stage ComfyUI workflow input media through server uploads, use returned server names instead of guessed paths, extract all file-shaped outputs from history, download outputs safely, and keep project-r
SKILL.mdskills/comfyui-assets/SKILL.md
GitHubComfyUI Assets
Read
../../references/COMFYUI_NATIVE_API.md../../references/COMFYUI_SECURITY.md
Input procedure
- Confirm the local source file exists.
- Upload it as an input asset.
- Record the returned
name,subfolder, andtype. - Patch the workflow input using those returned values or the exact loader format required by the live node schema.
- Do not copy arbitrary host filesystem paths into workflow JSON.
Bundled command:
python scripts/comfyui_control.py upload PATH --subfolder project-inputs
Output procedure
- Read the completed history record.
- Inspect every node output for file-shaped records containing
filename. - Preserve the producing node ID.
- Download through
/viewusing filename, subfolder, and type. - Sanitize local filenames and keep results under the project output directory requested by the user.
Bundled commands:
python scripts/comfyui_control.py outputs PROMPT_ID
python scripts/comfyui_control.py download PROMPT_ID --out-dir 04_generation/comfyui/outputs
Done
Inputs use server-recognized references and outputs are downloaded without arbitrary path construction or loss of producing-node identity.