/comfyui-docker:comfy-manifestfrom comfyui-docker
Authors comfy.yaml manifest files and generates comfy-lock.yaml for ComfyUI model dependencies. Covers source forms, profile composition, and silent failure modes.
Ships in comfyui-docker. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
comfy.yamlcomfy.yaml is hand-authored and declares intent. comfy-lock.yaml records
the resolution and is generated — never hand-edit a lock (its custom_nodes
section aside: see Mistakes that fail quietly).
models/ --comfyctl fetch build--> comfy.yaml --comfyctl fetch resolve--> comfy-lock.yaml --comfyctl fetch fetch--> disk
The command is comfyctl fetch <verb>. Up to 3.x it was comfyfetch <verb>, with
the same verbs and flags. 4.0.0 removed that command and left no alias, so
rewrite any old invocation you find. Without installing anything, pinned to a tag:
uvx --from 'git+https://github.com/pixeloven/[email protected]#subdirectory=services/comfyctl' comfyctl fetch --help.
An older …#subdirectory=services/fetch line is gone with 6.0.0: use services/comfyctl.
Never install comfyctl from a package index. It isn't registered on PyPI.
Use the uvx line above, or install the release's comfyctl wheel by its URL:
one wheel since 6.0.0, with no --with (there is no comfyfetch wheel any more).
For a reproducible install with every dependency hash-checked too, use the
release's comfyctl-<ver>-requirements.txt, which names the wheel and every
dependency by hash, in a venv of its own:
python3 -m venv ~/.local/share/comfyctl && ~/.local/share/comfyctl/bin/pip install --require-hashes -r "https://github.com/pixeloven/ComfyUI-Docker/releases/download/v${v}/comfyctl-${v}-requirements.txt"
(with v=6.0.0, say). uv tool install --constraints with that file is not
equivalent: it ignores the hashes.
In a container, run the ghcr.io/pixeloven/comfyui/comfyctl image, whose
entrypoint is comfyctl: <image> fetch fetch /lock.yaml /app --apply. It
replaced the fetch image in 6.0.0.
fetch is a dry run by default. comfyctl fetch fetch <lock> <ComfyUI root>
only reports; add --apply to download. The root is the ComfyUI root, not
models/, because lock paths begin models/. An entry with no SHA256 is
refused, counted as failed, and the run exits 1.facts writes a <lineage>.facts.yaml sidecar per source file, recording
what the safetensors header says against what the publisher claims for the
file's hash: comfyctl fetch facts models/ comfy-lock.yaml --store <ComfyUI root>
(or --headers <json>). It needs the network. --store is the ComfyUI root,
not models/, as for fetch; given models/ it exits 2. Its files: are
keyed by install path (models/loras/x.safetensors), not basename, and so
are a --headers file's keys, which must start models/; regenerate a
sidecar from before 6.0.0. comfyctl fetch facts models/ --check is the
offline gate for committed sidecars: it exits 1 when one names a file its
lineage no longer declares.-o json on any verb (after the verb, not after fetch) prints the result as
stable JSON on stdout. Every non-zero exit still prints one JSON object, with
"ok": false and its reasons in problems (fetch and resolve keep their
counters beside them); the reasons also go to stderr. Progress stays on
stderr, so the output parses. Only a command line the CLI can't parse at all,
such as an unknown option, exits 2 with usage text on stderr and no JSON.0 did what was asked, 1 a real failure (an input that isn't
valid YAML or JSON, or fails its schema or the semantic checks; an unresolved
source, two groups installing different files at one path, a hash mismatch,
a lock entry with no SHA256, manifest and lock disagree), 2 a bad request (a
missing file or directory, an unknown profile, bad or conflicting flags, a
--store that isn't a ComfyUI root, an -O that names a directory, an
unwritable directory or an input file). Before it resolves anything,
resolve validates the manifest, and a --from-lock parent, exactly as
check does, and exits 1 if either fails, listing the problems.comfy.yaml may itself be generated. Past a few hundred lines a single manifest
stops working — every family conflicts with every other on edit — so build
assembles it from one file per lineage under a directory you lay out:
comfyctl fetch build models/ -O comfy.yaml
comfyctl fetch build models/ -O comfy.yaml --check # CI; the manifest is committed
A source file may carry summary: — the judgement a file list cannot
express ("two generations, NOT interchangeable"). build re-attaches it above
that lineage's groups so it reaches the artifact, which is where the manifest is
actually read.
models:
- name: qwen-image # capability name; profiles reference this
files:
- source: hf:Comfy-Org/Qwen-Image_ComfyUI
file: split_files/vae/qwen_image_vae.safetensors
install: models/vae/ # a DIRECTORY, must start `models/` and end `/`, no `..`
type: vae
install is a directory because a human says "put it in vae"; the lock records
the resolved full path. as: names the file under install, and may include
a subdirectory (as: sub/x.safetensors), but never ends in /. No path may
hold an empty, . or .. segment or a \, and fetch refuses a lock path
that would land outside the root it was given. A symlinked directory under the
root is followed, by design.
| form | needs | hash comes from |
|---|---|---|
hf:<owner>/<repo> | file: | x-linked-etag header |
gh:<owner>/<repo>@<tag> | file: (asset name) | release asset digest, else download-and-hash |
civitai:<modelVersionId> | as: | files[0].hashes.SHA256 |
https://… | sha256: and as: (or file:) | nothing — you must state it |
Note the two that need something extra, because both fail in confusing ways:
civitai: requires as:. The filename comes from the API, so without it
the install path is not knowable offline — and check cannot run without
network. The schema enforces this.sha256:, and as: or file:. Nothing about a
bare URL can be resolved from headers, so a lock entry without the hash would
verify nothing. The schema refuses an entry missing either, so check and
resolve both exit 1 on it, offline. Up to 6.1.0 check passed a URL with no
sha256: that resolve then refused. The name says what the installed file is
called, and check derives the path from it offline. Up to 5.x a URL with
neither locked the install directory as the path, and fetch wrote the file
over it.Use as: too whenever the local filename should differ from upstream's — e.g.
upstream 4x-UltraSharp.pth stored as 4xUltrasharp_4xUltrasharpV10.pt.
revision: is the unresolved part revision: main # default; the lock pins this to a commit
This is the ^18 → 18.3.1 moment. Re-resolving after upstream moves is
supposed to produce a new commit and a new hash — which is why CI never
re-resolves as a drift check.
profiles:
common: [upscalers, shared-encoders]
sdxl: [common, sdxl-base] # a member may be another profile
everything: [sdxl, flux]
No inheritance, no overrides, no diamonds — none of it is needed because the fetch is content-addressed: a model shared between profiles is declared once and installed once.
Generate the full lock first, then derive the others so every profile pins identical commits:
comfyctl fetch resolve comfy.yaml -O comfy-lock.yaml
comfyctl fetch resolve comfy.yaml --profile sdxl --from-lock comfy-lock.yaml -O locks/sdxl.yaml
Use -O/--out rather than >: it writes only once every source resolves,
so a failed resolve leaves the committed lock as it was. The shell truncates a
> target before resolve runs, so a failure there leaves an empty lock.
--header <file> prepends that file to the lock verbatim, for a provenance
comment. A symlinked -O is written through, and an existing file keeps its
permissions. -O exits 2 before resolving when it names a directory, an
unwritable or missing directory, the manifest or the --from-lock parent.
The first command rewrites comfy-lock.yaml with auth and models only, so
it drops a custom_nodes section: carry that section over by hand. A derived
--from-lock lock never carries it either.
Resolving each independently is the mistake: locks made minutes apart can legitimately pin different commits.
auth:
civitai.com: ${CIVITAI_TOKEN}
huggingface.co: ${HF_TOKEN}
Host-keyed, so no model entry carries an auth field — that is what keeps
models[] in the lock byte-for-byte comfy-cli's documented shape. Values must
be ${ENV_VAR} references; the schema rejects a literal so a token cannot be
committed.
A host listed here whose variable is unset does not block public files.
custom_nodes, a hand-written
ComfyUI-Manager snapshot that nothing in this repository generates or
applies: resolve writes only auth and models, so carry that section over
by hand when you regenerate, and whoever deploys installs the packs it lists.comfy.yaml without regenerating. The fetcher reads the lock, so
your new model is simply never fetched and nothing says so.black-forest-labs publishes as
gated: auto; without a token it answers 401, which reads as "not found".comfy.yaml is built from models/, an
edit to a source file that is never rebuilt resolves the OLD models. Nothing
errors — resolve is perfectly happy with a manifest that is merely out of
date. comfyctl fetch build --check is the only thing that says so.x- prefix (x-triggers:, x-generation:). That
rejection is deliberate — it is what makes instal: an error instead of a
silent no-op.comfyctl fetch check --parent asserts a
profile lock is a verbatim subset of the full lock. Without it, locks made
minutes apart can pin different upstream commits and every one of them passes
check on its own. A derived lock deliberately narrower than any profile adds
--subset-only: it must still be a verbatim subset and declare nothing extra,
but a declared file it lacks is reported under narrowed, not as a failure.x- keys aside), is one lock entry. Two different files at
one path are refused: resolve reports it as unresolved, and check as
CONFLICT. A lock listing a path twice fails check as DUPLICATE.flux1-krea-dev had a Civitai source that now 404s and an identical-byte copy
on HuggingFace — only the hash proved they were the same file.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub pixeloven/comfyui-docker --plugin comfyui-dockerOther plugins' skills for the same job