一键导入
mflux-pr
Make a clean PR in mflux (inspect diff, quick verification, commit, push, open PR) using repo conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Make a clean PR in mflux (inspect diff, quick verification, commit, push, open PR) using repo conventions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | mflux-pr |
| description | Make a clean PR in mflux (inspect diff, quick verification, commit, push, open PR) using repo conventions. |
make test-fastgh isn’t available, fall back to the GitHub web UI (or stop and ask).Use after the core port lands and you are polishing for merge. For the full integration surfaces tick list (LoRA key formats, save routing, tokenizer edge cases, etc. learned from past closed PRs), see mflux-model-porting → Integration surfaces checklist.
make lint and make test-fastMFLUX_PRESERVE_TEST_OUTPUT=1 uv run pytest tests/image_generation/test_generate_image_<model>.py -m slow -v
mflux-debugging, mflux-manual-testing)List files changed outside src/mflux/models/<model>/:
| Category | Expected |
|---|---|
pyproject.toml, cli/defaults/defaults.py, ModelConfig, mflux-save routing | Required wiring |
README.md table + attribution | Required |
Training runner.py, example JSON, .gitignore JSON exceptions | If training supported |
| Shared VAE/callback/training one-liners | Only if required; document blast radius in PR |
Personal .gitignore, unrelated formatting | Remove |
Verify quantized README disk claims with measurement:
du -sh ~/.cache/huggingface/hub/models--<org>--<Model>*
mflux-save --model <alias> --quantize 8 --path /tmp/model-q8 && du -sh /tmp/model-q8
README.md model table row (correct release date).src/mflux/assets/; may need git add -f when *.jpg is gitignored).Port ML models into mflux/MLX with correctness-first validation, then refactor toward mflux style.
Debug MLX ports by comparing against a PyTorch/diffusers reference via exported tensors/images (export-then-compare).
Manually validate mflux CLIs by exercising the changed paths and reviewing output images/artifacts.
Run tests in mflux (fast/slow/full), preserve image outputs, and handle golden image diffs safely.
Navigate MFLUX CLI capabilities, locate commands by area, and summarize supported features.
Set up and work in the mflux dev environment (arm64 expectation, uv, Makefile targets, lint/format/test).