with one click
check-models
// Audit SD.Next model integrations end-to-end: loaders, detect/routing, reference catalogs, and pipeline API contracts.
// Audit SD.Next model integrations end-to-end: loaders, detect/routing, reference catalogs, and pipeline API contracts.
Port custom model pipeline implementations to Diffusers. Use when migrating custom or non-Diffusers pipeline code into SD.Next repo-local pipeline files such as pipelines/model_<name>.py or pipelines/<model>/pipeline.py while preserving behavior, avoiding new dependencies, and keeping device/attention handling configurable.
Port or add a model to SD.Next using existing Diffusers and custom pipeline patterns. Use when implementing a new model loader, custom pipeline, checkpoint conversion path, or SD.Next model-type integration.
Update wiki markdown docs for syntax correctness, readability, link integrity, heading hierarchy normalization, and code block language tagging. Use when a user asks to clean up markdown formatting and improve clarity while preserving technical meaning.
Maintain and validate SD.Next model reference catalogs in data/reference*.json, including schema consistency, deduplication, link checks, and thumbnail alignment.
Create or edit code that is compliant with Hugging Face diffusers conventions, including models, pipelines, schedulers, tests, docs, and PR preparation targeting diffusers.
Analyze an external model URL (typically Hugging Face) to determine implementation style and estimate SD.Next porting difficulty using the port-model workflow.
| name | check-models |
| description | Audit SD.Next model integrations end-to-end: loaders, detect/routing, reference catalogs, and pipeline API contracts. |
| argument-hint | Optionally focus on a model family, repo id, or a subset: loader, detect-routing, references, pipeline-contracts |
Run a consolidated model-integration audit that combines loader checks, detect/routing checks, reference-catalog checks, and pipeline contract checks.
This skill combines four audit surfaces:
check-loaders equivalent)check-detect-routing equivalent)check-reference-catalog equivalent)check-pipeline-contracts equivalent)pipelines/model_*.pymodules/sd_detect.pymodules/sd_models.pymodules/modeldata.pydata/reference.jsondata/reference-cloud.jsondata/reference-quant.jsondata/reference-distilled.jsondata/reference-nunchaku.jsondata/reference-community.jsonmodels/Reference/Pipeline files as needed:
pipelines/<model>/pipeline.pypipelines/<model>/model.pyFor each target model loader in pipelines/model_*.py, verify:
sd_models.path_to_repo(checkpoint_info) and sd_models.hf_auth_check(...) usagemodel_quant.get_dit_args(...) where applicabletorch_dtype)generic.load_transformer, generic.load_text_encoder, tokenizer/processor)sd_hijack_te, sd_hijack_vae) where requiredpipe.task_args defaults where neededdevices.torch_gc(...) presentFlag stale patterns, missing hooks, or conflicting load behavior.
Verify model family alignment across:
modules/sd_detect.py detection heuristicsmodules/sd_models.py load dispatch branchmodules/modeldata.py reverse classification from loaded pipeline classChecks:
Verify references for model families intended to appear in model references.
Checks:
data/reference.jsondata/reference-cloud.jsondata/reference-quant.jsondata/reference-distilled.jsondata/reference-nunchaku.jsondata/reference-community.jsonpath, preview, desc when expected)models/Reference/ (or explicitly placeholder if intentional)For custom pipelines (pipelines/<model>/pipeline.py), verify:
diffusers.DiffusionPipelinefrom_pretrained wiring is coherent with actual artifact layoutencode_prompt semantics are consistent with tokenizer/text encoder setup__call__ supports expected public args for its task and does not expose unsupported generic argsoutput_type and return_dict behavior are consistentWhen feasible:
If runtime checks are not feasible, report limitations clearly.
Return findings by severity:
For each finding include:
loader, detect-routing, reference, pipeline-contract)Also include summary counts:
A full pass requires all of the following in audited scope:
If any area is intentionally out of scope, mark as partial pass with explicit exclusions.