comfyui-gatewaylisted
Install: claude install-skill trku052-png/social-media-youtube-skills
# ComfyUI Gateway
## Overview
Design or review a REST gateway around an existing ComfyUI server. This skill
contains documentation only: no gateway application, package manifest, Dockerfile,
CLI, database migrations or runnable workflow templates are bundled. Obtain the
actual implementation and its version before proposing install or startup commands.
The proposed gateway routes below are not native ComfyUI endpoints.
## When to Use
Use when designing ComfyUI job submission, authenticated result delivery, worker
queues or webhook integrations. For direct ComfyUI calls, consult its native API.
## Architecture and contract
A gateway can validate requests, map reviewed workflow templates, submit work to
ComfyUI, persist job state and deliver authorized outputs. Fastify, BullMQ, Redis,
SQLite/Postgres and S3 are possible components, not installed capabilities.
| Proposed gateway operation | Required behavior |
|---|---|
| POST /jobs | Authenticate caller; validate bounded inputs; authorize workflow; return job ID |
| GET /jobs/:id | Return only jobs accessible to this principal |
| POST /jobs/:id/cancel | Authorize cancellation; distinguish requested from confirmed cancellation |
| GET /outputs/:id/:file | Enforce ownership and path containment; never trust caller file paths |
| Workflow CRUD | Require admin authorization and audit changes |
| Health/capabilities | Expose minimal operational information without secrets |
Specify one state vocabulary, for example queued,