mflux: Skill for Cursor

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

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

A navigation guide to the MFLUX command-line tool and its supported commands. It helps locate current command implementations instead of relying only on possibly outdated examples.

In plain words
What is it for?
It is for listing CLI capabilities, finding model-specific commands, and constructing verified inference commands.
Why use it?
It reduces the chance of suggesting commands or options that the installed version does not support.

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,311 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-cli/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-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/mflux-community/mflux/mflux-cli.svg)](https://agentmods.dev/skills/mflux-community/mflux/mflux-cli)
Your own site
<a href="https://agentmods.dev/skills/mflux-community/mflux/mflux-cli"><img src="https://agentmods.dev/badge/skills/mflux-community/mflux/mflux-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 749 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.
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.00021 $0.00749
Opus 5 $0.00010 $0.00375
Sonnet 5 $0.00004 $0.00150
Haiku 4.5 $0.00002 $0.00075

Measured 7d ago against content hash 1c7044894e1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

mflux-cli 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 7d 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-cli/SKILL.md · 86 lines

How it starts

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

mflux CLI navigation

Use this skill to inventory CLI capabilities, summarize what the CLI supports, and guide where to look for commands without relying on brittle file paths. Because README examples can drift, prefer verifying support against the current CLI entrypoints.

When to use

  • You need to list supported CLI features or commands.
  • You need to find where a capability is implemented in the CLI.
  • You are documenting or refactoring CLI features and want a stable map.
  • A user asks for CLI help, e.g., “Can you help me generate an image using z-image?”, “Which model is best?”, etc.

How to find commands (structure, not exact paths)

  • Common/shared CLI arguments live in the central CLI parser module.
  • Model-specific CLI entrypoints live under each model's CLI package.
  • Repo-level CLI helpers (completions, defaults) live under the shared CLI package.
  • Utilities may add standalone CLIs (e.g., metadata info, LoRA library).

Best practices when constructing CLI calls

  • Inference steps: When constructing a CLI call for any model, always check MODEL_INFERENCE_STEPS and use the model's default/recommended step count unless the user explicitly asks for a different value. This is especially important for distilled/non-base variants (for example fibo-lite, z-image-turbo, and other *-turbo/*-lite models), where using full/base-model step counts is usually counterproductive.
  • Resource/inspection flags: Mention --low-ram to reduce memory usage and --stepwise-image-output-dir for stepwise outputs when useful.
  • Python API requests: If a user asks for the Python API, treat the equivalent CLI script as the best starting reference for the underlying parameters and defaults.
  • CLI implementation changes: When adding or changing CLI behavior, prefer extending shared parser methods and shared helpers before adding manual one-off arguments or save paths in a model CLI.
  • Docs/examples drift: If CLI defaults, supported flags, or recommended usage changed, update the matching README examples in the same pass.

Read the full file on GitHub · 86 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. 7d ago First seen · 86 lines · 21 tokens per session scan A 1c7044894e1b

Subscribe to this mod's changes

mflux-cli is a skill published in the GitHub repository mflux-community/mflux (2,311 stars, last pushed 3d ago), licensed MIT. It adds 21 tokens to every session and 749 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

dataset-discovery

Multi-source ML dataset discovery.

LigphiDonk/Oh-my--paper · 10 tokens

diffusers-ascend-pipeline

A guide for running image and video generation pipelines on Huawei Ascend NPUs with the Diffusers library. Diffusers is a software library for using generative models, and the guide covers model pipelines, memory settings, LoRA adapters, and multi-card inference.

ascend-ai-coding/awesome-ascend-skills · 134 tokens

diffusers-ascend-weight-prep

A model-weight preparation tool for Diffusers, a library for running image and other generative models, on Huawei Ascend NPU hardware. It downloads weights from Hugging Face or ModelScope and can create placeholder weights from configuration files for business testing.

ascend-ai-coding/awesome-ascend-skills · 76 tokens

gguf-quantization

GGUF format and llama.cpp quantization for efficient CPU/GPU inference. Use when deploying models on consumer hardware, Apple Silicon, or when needing flexible quantization from 2-8 bit without GPU requirements.

davila7/claude-code-templates · 48 tokens

llama-cpp

Runs LLM inference on CPU, Apple Silicon, and consumer GPUs without NVIDIA hardware. Use for edge deployment, M1/M2/M3 Macs, AMD/Intel GPUs, or when CUDA is unavailable. Supports GGUF quantization (1.5-8 bit) for reduced memory and 4-10× speedup vs PyTorch on CPU.

davila7/claude-code-templates · 76 tokens

deploy-docker-compose

Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…

omnigent-ai/omnigent · 84 tokens