Port custom model pipeline implementations to Diffusers using phased priorities: preserve behavior first, avoid new dependencies second, and keep device/attention handling configurable throughout. 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.
67
81%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Port an existing custom model pipeline implementation into a Diffusers-compatible pipeline class with behavior parity and SD.Next-friendly conventions. This skill targets SD.Next repo-local pipeline ports only.
pipelines/model_*.py or pipelines/<model>/.github/instructions/core.instructions.md for relevant core runtime and pipeline integration guidance before proceeding.Before implementation, confirm these required inputs with the user:
pipelines/)If any of the above are missing or ambiguous, stop and ask concise clarification questions before writing code. If the user input is invalid (for example, nonexistent path, non-Python source file, or invalid class name), report the specific validation error and request corrected input before writing code.
Priority 1 - behavior constraints:
Priority 2 - dependency constraints:
Priority 3 - runtime configurability constraints:
cpu, cuda, mps, etc.)__init__, module registration, from_pretrained and __call__ signatures aligned with existing Diffusers patterns.pipelines/<model>/transformer.py, pipelines/<model>/scheduler.py).pipelines/<model>/scheduler_<name>.py) following Diffusers scheduler conventions (step, add_noise, scale_model_input, etc.).source venv/bin/activateruff on all newly written files: pnpm ruff (or ruff check <file> --fix for targeted runs).pylint on all newly written files: pnpm pylint (or pylint <file> for targeted runs).TODO suppression comment in the source.ruff and pylint both pass cleanly on all newly written files (venv activated)Final response should include:
058a7f0
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.