RULE
Apple MLX native implementations of state-of-the-art generative image & video models
Install / Use
npx skills add mflux-community/mfluxInstalls into whichever agent you are using.
Cursor Rules
Cursor IDE rules (v2)
Quality Score
Category
AutomationSupported Platforms
Our assessment of RULE
RULE scores 66/100 on our quality scale, 2697th of 2,873 Automation skills we index.
Its Cursor Rules is 5.4 KB long, well organised into 10 sections and no code examples: a solid amount of guidance for an agent.
It has no GitHub stars yet, so there is no community track record; judge it on its content.
Maintenance, license and trust
- The repository was last updated 3 days ago, so RULE is actively maintained.
- Our last check on 2026-09-16 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 80/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
RULE compared with similar skills
All 4 of these similar skills score higher than RULE; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| RULE (this skill)by mflux-community | 66 | 0 | 3d ago | Cursor Rules |
| Agent-Reachby Panniantong | 100 | 102.9k | 1d ago | CLAUDE.md |
| taste-skillby Leonxlnx | 100 | 102.7k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 89.8k | today | MCP Server |
| LocalAIby mudler | 100 | 50.0k | today | MCP Server |
Frequently asked questions
- How do I install RULE?
- Run
npx skills add mflux-community/mflux. The install tabs above show the steps for each supported agent. - Which AI agents does RULE work with?
- It is written for Cursor and Zed, as a Cursor Rules file. Other agents that read the same format can often use it too.
- Is RULE safe to use?
- It declares no license and scores 80/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is RULE still maintained?
- The repository was last updated 3 days ago, so RULE is actively maintained.
Skill content
View source on GitHubmflux – Cursor Agent Rules (Project Rules)
These rules exist to make agent work in this repo predictable, verifiable, and low-drama.
Commands / environment
- Always use uv for dependency management and running code.
- Run scripts/binaries with
uv run <command>. - Prefer
uv run python -m ...for local modules. - Manage deps with
uv add <pkg>/uv remove <pkg>.
- Run scripts/binaries with
- Tool installs (CLI executables):
- When you need to (re)install the local checkout as a
uv tool(e.g. after changing CLI code), prefer an editable install:uv tool install --force --editable --reinstall .
- When you need to (re)install the local checkout as a
- Prefer Makefile targets when they exist (they encode project-specific setup):
make install,make lint,make format,make test-fast,make test,make build.
Tests (goldens / image output)
- Always preserve test outputs (for visual inspection): run tests with
MFLUX_PRESERVE_TEST_OUTPUT=1(the Makefile test targets already do this). - Do not update reference (“golden”) images unless explicitly asked.
- Prefer faster scopes first (
make test-fast→make test-slow→make test). - For the full playbook (how to handle failures and golden diffs), use the
mflux-testingskill.
Lint / format
- Use the Makefile targets for repo workflows:
make lint,make format,make check.
Code style
- Avoid docstrings; prefer clear naming and focused helpers.
- Add comments only when logic is non-obvious; keep them short.
- Consider deeper modules and clear APIs over over-fragmented tiny functions; weigh the tradeoff.
- Prefer composition over inheritance when practical; avoid deep class hierarchies.
- Static methods are fine when they clarify stateless helpers.
- Avoid free-standing helper functions in Python modules; prefer placing helpers on proper classes (even if static). Thin module-level entrypoints like CLI
main()functions are fine. - Keep private methods (leading underscore) at the bottom of classes; public APIs at the top.
- Use type hints consistently for public APIs.
- Keep CLI entrypoints thin: parse args, resolve config, construct the model, register callbacks, run, save.
- Prefer extending existing shared abstractions over adding model-specific one-off paths unless the model truly needs a new abstraction.
- Reuse shared plumbing before adding bespoke code paths:
CommandLineParser,ModelConfig,CallbackManager,DimensionResolver, shared schedulers, and existing save/metadata helpers. - Keep public model APIs small and obvious; prefer a clear top-level method like
generate_image(...)with implementation details pushed into private helpers. - Keep one clear source of truth for model defaults and reflect those defaults consistently in CLI behavior, Python API examples, and README docs.
- Treat README examples as part of the API contract. If behavior, defaults, or flags change, update the relevant examples in the same pass.
Releases
- When preparing a release, prefer the
mflux-releaseskill. - Tagging/publishing is handled by an external GitHub Action.
Git safety
- Never push or force-push to the remote repository without explicit user approval for each push.
- Committing locally is fine and encouraged for progress tracking.
- Before any major squash/rewrite of local branch history, create a local backup branch at the current
HEADfirst (for examplebackup/<branch>-pre-squash-YYYYMMDD-HHMMso repeated backups stay unique to the minute). - That backup branch is intentionally local-only for safety and rollback; do not push it unless the user explicitly asks.
Agent workflow norms (modern Cursor best practices)
- For multi-file or high-risk work, start with a short plan (bullets: goals, constraints, files to touch, how you’ll verify).
- Plan Mode Enforcement: For any non-trivial task or high architectural risk, save your plan to
.cursor/plans/YYYY-MM-DD-feature-name.mdand ask for approval before coding. - Keep changes tight, and prefer verifiable goals (tests/lint/build) over speculation.
- If the task scope changes materially, stop and re-align rather than continuing in a confused state.
- When users ask for CLI usage (e.g., “Can you help me generate an image using z-image?”), use the
mflux-cliskill. - For new models or major feature additions, the definition of done usually includes shared config wiring, a thin CLI entrypoint, verification coverage, and a README/example update that matches existing model docs.
Bug/behavior reporting format (chat)
- When reporting bugs or behaviors, always use a simple story format.
- Use separate "Scenario" sections for separate issues.
- Each scenario must be step-by-step and end with a one-line "Fix:".
Example: Scenario — Late preview crash
- User starts edit training without data/preview.*.
- Run crashes on first preview step. Fix: Validate preview image at config load.
Skills
- For image generation requests, always use
mflux-clito find the right command and flags. - Use
mflux-clifor CLI capability discovery and usage help. - Use
mflux-dev-envfor setup, uv usage, and Makefile targets. - Use
mflux-testingfor running tests and handling golden images. - Use
mflux-manual-testingfor validating CLI outputs manually. - Use
mflux-debuggingfor MLX vs PyTorch/diffusers comparisons. - Use
mflux-model-portingwhen porting models into MLX. - Use
mflux-releasefor release preparation steps. - Use
mflux-prfor preparing clean PRs.
Related Skills
Agent-Reach
102.9kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
taste-skill
102.7kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Scrapling
89.8k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
LocalAI
50.0kLocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
