This repo packages a skill for agentic coding tools (Claude Code, Codex, Droid, etc.) to help with the MLX-Swift-LM library. The skill provides usage guidance, best practices, and reference notes for local LLM/VLM inference on Apple Silicon.
Source library: https://github.com/ml-explore/mlx-swift-lm/
- Local LLM and VLM inference with MLX-Swift-LM
- Streaming generation and tool calling
- LoRA and adapter training flows
- Embeddings and RAG-friendly patterns
- Concurrency, cache, and tokenizer usage
mlx-swift-lm/skill.md # Skill definition, triggers, and overview
mlx-swift-lm/references/ # Topic-specific deep dives
README.md # This file
LICENSE
References included:
references/model-container.mdreferences/kv-cache.mdreferences/tokenizer-chat.mdreferences/concurrency.mdreferences/tool-calling.mdreferences/supported-models.mdreferences/lora-adapters.mdreferences/training.mdreferences/embeddings.md
- Copy or symlink the
mlx-swift-lmfolder into your tool's skills directory. - Restart or refresh your tool so it discovers the new skill.
Common locations:
- Codex CLI:
$CODEX_HOME/skills(default:~/.codex/skills) - Claude Code: default
~/.claude/skills - Droid: default
~/.factory/skills
Skill name: swift-mlx-lm
You can invoke it directly, or rely on triggers like:
mlx, mlx-swift, mlx-lm, apple silicon llm, local llm swift, vision language model swift, lora training swift
Example prompts:
- "Use the swift-mlx-lm skill to add streaming generation to my Swift app."
- "With the MLX-Swift-LM skill, show how to run Qwen2-VL with an image."
- "Use swift-mlx-lm to explain LoRA adapter loading for MLX-Swift-LM."
Pull the repo and re-sync the mlx-swift-lm folder in your skills directory.
Edit mlx-swift-lm/skill.md for the main skill instructions and add new topic docs under mlx-swift-lm/references/.