yuhuabillchen/justfit-mlx/contributing
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use this skill when the user wants to contribute to MLX-VLM — opening a PR, where model code/config/tests go, backward-compatible config args, running the test suite, code formatting and the pre-commit hooks (black, clang-format), and PR expectations (tests, review, perf evidence). Use it to set up a change so it passes review.
Install
npx vskill@latest install yuhuabillchen/justfit-mlx/contributingSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Contributing to MLX-VLM
Use this workflow to shape a contribution so it lands cleanly. It reflects the current mlx_vlm/ layout (note: CONTRIBUTING.md still points at an older src/ layout — the real paths are below).
Setup
Where things go
- Model code:
mlx_vlm/models/<model_type>/, and the file name matches theconfig.jsonmodel_type(e.g.llava). A new kernel or helper goes in its own file in that model directory, not bolted intolanguage.py. To add a whole new model, useSkill("mlx-vlm-skills:add-new-model"). - Config args: add to the model's
ModelConfig(in<model>/config.py) with an inline# comment, and keep them backward-compatible — a default ofNone/0/Falsemust reproduce the original behavior so existing checkpoints and configs are unaffected. Gate new features so they are opt-in. - Tests: add to
mlx_vlm/tests/test_models.pyas a class per feature (e.g.TestMyFeature). Do not create a standalonetest_<feature>.py— repo convention keeps model tests intest_models.py. Prefer cheap synthetic/random-weight tests (tiny configs) and check exactness against the original path in the degenerate limit (feature disabled == baseline).
Run the tests
Formatting — install and run pre-commit
Before opening a PR, install the pre-commit hooks once and run them. The repo uses pre-commit (black for Python, clang-format for C++); PRs are expected to be hook-clean.
You can also format a single file directly:
Reminder: run pre-commit run --all-files (or at least on your changed files) as the last step before pushing — an unformatted diff will fail CI/review.
PR expectations
- Fork and open the PR against
main. - New code that should be tested comes with tests (see above).
- Every PR needs passing tests and at least one review.
- Include perf evidence for anything performance-sensitive — a self-contained, reproducible benchmark. Use
Skill("mlx-vlm-skills:benchmarking")for the fork-vs-main table format. - Keep the change scoped and opt-in; don't regress existing checkpoints.
Routing
- Adding a model →
Skill("mlx-vlm-skills:add-new-model"). - Converting/quantizing weights →
Skill("mlx-vlm-skills:convert-quantize"). - Perf numbers for the PR →
Skill("mlx-vlm-skills:benchmarking"). - Filing a bug found while contributing →
Skill("mlx-vlm-skills:reproducible-github-issues").
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/skills/contributing/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yuhuabillchen/justfit-mlx/contributing)