What problem does it solve? Porting a generative image model from PyTorch/diffusers into the MLX-based mflux codebase is error-prone: weight key mismatches, RNG differences, silent LoRA load failures, and missed integration surfaces (ModelConfig, CLI registration, CI manifests) repeatedly cause regressions. This Skill provides a repeatable, correctness-first workflow that locks parity with deterministic tests before any refactoring. ## Core Features & Use Cases - Backwards porting workflow: Validate VAE decode in pixel space first, then the transformer loop and schedulers, then the text encoder, committing milestone checkpoints after each validated component. - Deterministic validation: Export exact initial latents from the reference implementation, load them in MLX, and lock outputs with deterministic image/tensor tests run via MFLUX_PRESERVE_TEST_OUTPUT=1 uv run <test command>. - Integration checklist: Tick-list covering pyproject.toml CLI entries, ModelConfig aliases, weight definitions/mappings, LoRA key conventions, training adapters, golden tests, and README structure. - Use Case: When adding a new model family (e.g., a new FLUX variant) to mflux, follow the checklist to mirror the diffusers reference, prove parity with seeded latent injection, then refactor toward shared mflux components without regressions. ## Quick Start Ask the AI to port a new image model from the local diffusers repository into mflux following the mflux-model-porting workflow, starting with VAE validation.