comfy-diffusion-reference
Installation
SKILL.md
comfy_diffusion — Project Conventions and Public API Reference
This document is the canonical skill reference for AI agents working with the
comfy_diffusion package. It covers coding conventions, data format contracts,
and complete public signatures for every module.
Runtime Bootstrap (mandatory first step)
Always call check_runtime() before any other comfy_diffusion API. It bootstraps
the ComfyUI runtime (vendored at vendor/ComfyUI), validates device availability, and
returns an error dict instead of raising — so you can detect failure explicitly.
from comfy_diffusion import check_runtime