mflux: Skill for Cursor

.cursor/skills/mflux-testing/SKILL.md

mflux-testing is a skill for Cursor from mflux-community/mflux. It costs 27 tokens per session (784 once invoked), scanned A, original, MIT.

A testing workflow for mflux, a project whose tests can create images and compare them with reference images. A golden image is a saved reference used for visual comparison.

In plain words
What is it for?
Use it to run fast, slow, full, or default test sets, investigate image differences, and report failing tests and saved output paths.
Why use it?
It keeps generated test images available for inspection and prevents reference images from being replaced accidentally.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is mflux-community/mflux's own configuration. It tells Cursor how to work on mflux itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mflux configures →

About the project

MFLUX is a native MLX implementation of generative image models that runs locally on Mac computers. It is for generating images with supported models through command-line tools or a Python API. The catalogue skills and instruction support workflows built around these image-generation models.

mflux-community/mflux · 2,315 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to mflux-community/mflux. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mflux-community/mflux/main/.cursor/skills/mflux-testing/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mflux-community/mflux

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mflux-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/mflux-community/mflux/mflux-testing.svg)](https://agentmods.dev/skills/mflux-community/mflux/mflux-testing)
Your own site
<a href="https://agentmods.dev/skills/mflux-community/mflux/mflux-testing"><img src="https://agentmods.dev/badge/skills/mflux-community/mflux/mflux-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 784 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00784
Opus 5 $0.00014 $0.00392
Sonnet 5 $0.00005 $0.00157
Haiku 4.5 $0.00003 $0.00078

Measured 9d ago against content hash b0d174ab869c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

mflux-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/skills/mflux-testing/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

mflux testing

This repo uses pytest with image-producing tests. Always preserve outputs for inspection and never update reference images unless explicitly asked.

When to Use

  • You need to run tests (fast/slow/full) or debug failing tests.
  • There are image/golden mismatches and you need to report paths/output for review.

Instructions

  • Prefer the justfile test recipes:
    • 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)
  • Always keep MFLUX_PRESERVE_TEST_OUTPUT=1 on test runs (already built into the justfile test recipes).
  • If a change affects defaults, config resolution, metadata fields, or CLI behavior, add or update tests that cover the changed behavior directly instead of relying only on manual verification.
  • If tests fail:
    • Summarize the failing test names and the key assertion output.
    • Point to any generated images/artifacts on disk for manual review.
  • Do not regenerate/replace reference (“golden”) images unless the user explicitly requests it.

Updating golden images (new model or hardware refresh)

Golden tests compare generated PNGs to tests/resources/reference_*.png (typically 15% mismatch threshold).

When to update (only with explicit user approval):

  • After validating the port on target hardware (CI Mac) via slow tests with MFLUX_PRESERVE_TEST_OUTPUT=1
  • After choosing a stable prompt/seed/settings via diffusers comparison and/or latent-injection confidence (mflux-debugging)
  • When old references used a bad prompt (e.g. ambiguous subject) or wrong seed for mflux’s RNG

Workflow:

  1. Run slow test → inspect tests/resources/output_*.png vs reference_*.png
  2. If output is correct but reference is stale, re-run generation with same test parameters and replace reference PNGs
  3. Commit test + reference images together with a clear message (e.g. test(<model>): update golden images for local hardware)

Read the full file on GitHub · 57 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 57 lines · 27 tokens per session scan A b0d174ab869c

Subscribe to this mod's changes

mflux-testing is a skill published in the GitHub repository mflux-community/mflux (2,315 stars, last pushed 5d ago), licensed MIT. It adds 27 tokens to every session and 784 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

chrome-cdp

Drive a headless Chrome over the Chrome DevTools Protocol (CDP) for browser QA — navigate, click, fill forms, read the DOM/accessibility tree, screenshot, and assert. Use whenever a task requires loading a web page and interacting with it like a user. Chrome is launched by a bash step (recipe below); this skill…

mattzcarey/shippie · 91 tokens

quality-flywheel

Evaluate and improve GenAI models and agents using the Google GenAI Evaluation SDK. Creates eval datasets (from session traces or synthetic generation), selects and configures metrics (RubricMetric, LLMMetric, CodeExecutionMetric), executes evals via client.evals.evaluate(), and analyzes results to suggest concrete…

GoogleCloudPlatform/vertex-ai-samples · 128 tokens

submit-github-bug-issue

Use when converting QA findings, black-box failures, red-team reports, regression evidence, or local bug notes into GitHub Issues for NVIDIA/TensorRT-Model-Connect. Standardizes checking issue templates, checking labels, de-duplicating existing issues, drafting a bug report, creating the issue on GitHub, applying the…

NVIDIA/TensorRT-Model-Connect · 82 tokens

transform-model

Add a Hugging Face or local checkpoint to TensorRT-Model-Connect as a self-contained family, or extend the family that already owns it.

NVIDIA/TensorRT-Model-Connect · 33 tokens

AI/ML Model Testing

Testing machine learning models including accuracy validation, bias detection, drift monitoring, A/B testing, and model regression testing.

PramodDutta/qaskills · 29 tokens

setup-trtmc-environment

Prepare a TensorRT-Model-Connect development or validation environment from a fresh checkout on a host without a known working setup.

NVIDIA/TensorRT-Model-Connect · 32 tokens