用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mflux-community/mflux --skill mflux-testing命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | mflux-testing |
| description | Run tests in mflux (fast/slow/full), preserve image outputs, and handle golden image diffs safely. |
This repo uses pytest with image-producing tests. Always preserve outputs for inspection and never update reference images unless explicitly asked.
just test-fast (fast tests, no image generation)just test-slow (slow tests, image generation)just test (default selection, skips slow model tests)just test-all (all except high-memory tests; slow tests download model weights)MFLUX_PRESERVE_TEST_OUTPUT=1 on test runs (already built into the justfile test recipes).Golden tests compare generated PNGs to tests/resources/reference_*.png (typically 15% mismatch threshold).
When to update (only with explicit user approval):
MFLUX_PRESERVE_TEST_OUTPUT=1mflux-debugging)Workflow:
tests/resources/output_*.png vs reference_*.pngtest(<model>): update golden images for local hardware)Important: Golden tests lock mflux-native sampling (mx.random + mflux schedulers), not diffusers pixel parity. A good diffusers side-by-side or injected-latent run builds confidence in the model code; the golden still reflects mflux’s full recipe on CI hardware.
Use when a change touches model config resolution, mflux-save, or the model’s generate CLI, or when a PR fixes local model-path handling for the model under investigation. Refer to the mflux-cli skill to find the correct generate command for the model you are testing.
mflux-cli skill to look up the correct command and flags.--help before running it.mflux-cli skill to find the generate command and required flags.--help before running it.Remediates GitHub Dependabot alerts for mflux in one dependency-security change. Use when auditing, clamping, or upgrading Python dependencies in pyproject.toml and uv.lock, or when validating whether a branch will close Dependabot findings before opening a PR.
Write a hermetic "tiny" model-saving test for an mflux model — a fast twin of the slow save/load test that runs the real ModelSaver/WeightLoader/WeightApplier seam on real component classes at toy dimensions, with no downloads or image generation. Use when asked to "make tiny test for <model>".
Set up and work in the mflux dev environment (arm64 expectation, uv, justfile recipes, lint/format/test).
基于 SOC 职业分类