What problem does it solve? Running Flux image generation typically requires cloud APIs or complex environment setup. This Skill runs Flux locally through the diffusers library on Apple Silicon (MPS), keeping image generation offline and under your control. ## Core Features & Use Cases - Local Flux Inference: Generate images from text prompts using Flux weights loaded from the HuggingFace cache, with automatic device detection across MPS, CUDA, and CPU. - Configurable Generation: Control width, height, inference steps, guidance scale, seed, and model path via CLI arguments or the FLUX_MODEL_PATH environment variable. - MPS Stability Patch: Includes a scheduler monkeypatch that catches an IndexError bug specific to Apple Silicon MPS generation. - Use Case: Ask your agent to create a 1024x1024 concept illustration of a sunset over mountains; the script saves the PNG locally and prints a MEDIA line so ErnOS can attach the image in chat. ## Quick Start Ask the agent to generate an image of a sunset over mountains saved as sunset.png using the local Flux model.