AI SDK Development
trypostit/trypost
TRIGGER when working with ai-sdk which is Laravel official first-party AI SDK.
MLX Swift LM - Run LLMs and VLMs on Apple Silicon using MLX.
$ npx skills add kellyvv/PhoneClaw --skill swift-mlx-lm -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install kellyvv/PhoneClaw swift-mlx-lm --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/kellyvv/PhoneClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/Packages/InferenceKit/skills/mlx-swift-lm .claude/skills/swift-mlx-lm && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "swift-mlx-lm" agent skill from https://github.com/kellyvv/PhoneClaw/tree/main/Packages/InferenceKit/skills/mlx-swift-lm into .claude/skills/swift-mlx-lm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-mlx-lm", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/kellyvv/PhoneClaw/tree/main/Packages/InferenceKit/skills/mlx-swift-lmType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add kellyvv/PhoneClaw --skill swift-mlx-lm -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install kellyvv/PhoneClaw swift-mlx-lm --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kellyvv/PhoneClaw.git skills-src && mkdir -p .agents/skills && cp -r skills-src/Packages/InferenceKit/skills/mlx-swift-lm .agents/skills/swift-mlx-lm && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "swift-mlx-lm" agent skill from https://github.com/kellyvv/PhoneClaw/tree/main/Packages/InferenceKit/skills/mlx-swift-lm into .agents/skills/swift-mlx-lm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-mlx-lm", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kellyvv/PhoneClaw --skill swift-mlx-lm -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install kellyvv/PhoneClaw swift-mlx-lm --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kellyvv/PhoneClaw.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/Packages/InferenceKit/skills/mlx-swift-lm .cursor/skills/swift-mlx-lm && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "swift-mlx-lm" agent skill from https://github.com/kellyvv/PhoneClaw/tree/main/Packages/InferenceKit/skills/mlx-swift-lm into .cursor/skills/swift-mlx-lm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-mlx-lm", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/kellyvv/PhoneClaw.git --path Packages/InferenceKit/skills/mlx-swift-lm--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add kellyvv/PhoneClaw --skill swift-mlx-lm -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install kellyvv/PhoneClaw swift-mlx-lm --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kellyvv/PhoneClaw.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/Packages/InferenceKit/skills/mlx-swift-lm .gemini/skills/swift-mlx-lm && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "swift-mlx-lm" agent skill from https://github.com/kellyvv/PhoneClaw/tree/main/Packages/InferenceKit/skills/mlx-swift-lm into .gemini/skills/swift-mlx-lm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-mlx-lm", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install kellyvv/PhoneClaw swift-mlx-lmInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add kellyvv/PhoneClaw --skill swift-mlx-lm -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/kellyvv/PhoneClaw.git skills-src && mkdir -p .github/skills && cp -r skills-src/Packages/InferenceKit/skills/mlx-swift-lm .github/skills/swift-mlx-lm && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "swift-mlx-lm" agent skill from https://github.com/kellyvv/PhoneClaw/tree/main/Packages/InferenceKit/skills/mlx-swift-lm into .github/skills/swift-mlx-lm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-mlx-lm", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kellyvv/PhoneClaw --skill swift-mlx-lm -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install kellyvv/PhoneClaw swift-mlx-lm --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kellyvv/PhoneClaw.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/Packages/InferenceKit/skills/mlx-swift-lm .opencode/skills/swift-mlx-lm && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "swift-mlx-lm" agent skill from https://github.com/kellyvv/PhoneClaw/tree/main/Packages/InferenceKit/skills/mlx-swift-lm into .opencode/skills/swift-mlx-lm/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "swift-mlx-lm", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
swift-mlx-lmMLX Swift LM - Run LLMs and VLMs on Apple Silicon using MLX.
Swift Mlx Lm is an agent skill from kellyvv/PhoneClaw. MLX Swift LM - Run LLMs and VLMs on Apple Silicon using MLX. Covers local inference, streaming, wired memory coordination, tool calling, LoRA fine-tuning, embeddings, and model porting.
Its SKILL.md is about 3.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 13 other files, including reference files (for example `references/concurrency.md`, `references/embeddings.md` and `references/generation.md`).
It sits in AI & LLM Engineering, covering iOS development, Fine-tuning and Structured output and tool calling. It works with iOS and Ollama. The repository describes itself as: PhoneClaw turns phones into local AI agent runtimes with on-device models, native mobile Skills, LiveLand, and optional Mac Gateway inference. The licence is Apache-2.0.
9 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 31bf61d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are swift).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Swift Mlx Lm loads about 3.7k tokens when it runs, and up to ~28k if it reads all its reference files. Until then it costs about 50 tokens; SKILL.md has 565 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from kellyvv/PhoneClaw at commit 31bf61d, republished under its Apache-2.0 licence (© kellyvv). 565 words, ~3,695 tokens.
.claude/skills/swift-mlx-lm/SKILL.md (or your agent's skills folder). This skill also uses 12 other files; get the full folder from GitHub.mlx-swift-lm is a Swift package for running Large Language Models (LLMs) and Vision-Language Models (VLMs) on Apple Silicon using MLX. It supports local inference, streaming generation, wired-memory coordination, tool calling, LoRA/DoRA fine-tuning, and embeddings.
MLXLMCommon - Core infra (ModelContainer, ChatSession, Evaluate, KVCache, wired memory helpers)
MLXLLM - Text-only LLM support (Llama, Qwen, Gemma, Phi, DeepSeek, etc.)
MLXVLM - Vision-Language Models (Qwen-VL, PaliGemma, Gemma3, etc.)
MLXEmbedders - Embedding models and pooling utilities| Purpose | File Path |
|---|---|
| Thread-safe model wrapper | Libraries/MLXLMCommon/ModelContainer.swift |
| Simplified chat API | Libraries/MLXLMCommon/ChatSession.swift |
| Generation & streaming APIs | Libraries/MLXLMCommon/Evaluate.swift |
| KV cache types | Libraries/MLXLMCommon/KVCache.swift |
| Wired-memory policies | Libraries/MLXLMCommon/WiredMemoryPolicies.swift |
| Wired-memory measurement helpers | Libraries/MLXLMCommon/WiredMemoryUtils.swift |
| Model configuration | Libraries/MLXLMCommon/ModelConfiguration.swift |
| Chat message types | Libraries/MLXLMCommon/Chat.swift |
| Tool call processing | Libraries/MLXLMCommon/Tool/ToolCallFormat.swift |
| Concurrency utilities | Libraries/MLXLMCommon/Utilities/SerialAccessContainer.swift |
| LLM factory & registry | Libraries/MLXLLM/LLMModelFactory.swift |
| VLM factory & registry | Libraries/MLXVLM/VLMModelFactory.swift |
| LoRA configuration | Libraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift |
| LoRA training | Libraries/MLXLLM/LoraTrain.swift |
import MLXLLM
import MLXLMCommon
import MLXLMHuggingFace // from swift-huggingface-mlx
import MLXLMTokenizers // from swift-tokenizers-mlx
let modelContainer = try await LLMModelFactory.shared.loadContainer(
from: HubClient.default,
using: TokenizersLoader(),
configuration: .init(id: "mlx-community/Qwen3-4B-4bit")
)
let session = ChatSession(modelContainer)
let response = try await session.respond(to: "What is Swift?")
print(response)
for try await chunk in session.streamResponse(to: "Explain structured concurrency") {
print(chunk, terminator: "")
}import MLXVLM
import MLXLMCommon
import MLXLMHuggingFace // from swift-huggingface-mlx
import MLXLMTokenizers // from swift-tokenizers-mlx
let modelContainer = try await VLMModelFactory.shared.loadContainer(
from: HubClient.default,
using: TokenizersLoader(),
configuration: .init(id: "mlx-community/Qwen2-VL-2B-Instruct-4bit")
)
let session = ChatSession(modelContainer)
let image = UserInput.Image.url(imageURL)
let response = try await session.respond(
to: "Describe this image",
image: image,
video: nil
)import MLXEmbedders
import MLXEmbeddersHuggingFace // from swift-huggingface-mlx
import MLXLMTokenizers // from swift-tokenizers-mlx
let container = try await loadModelContainer(
from: HubClient.default,
using: TokenizersLoader(),
configuration: ModelConfiguration(id: "mlx-community/bge-small-en-v1.5-mlx")
)
let embeddings = await container.perform { model, tokenizer, pooler in
let tokens = tokenizer.encode(text: "Hello world")
let input = MLXArray(tokens).expandedDimensions(axis: 0)
let output = model(input)
let pooled = pooler(output, normalize: true)
eval(pooled)
return pooled
}ChatSession manages conversation history and KV cache automatically:
let session = ChatSession(
modelContainer,
instructions: "You are a helpful assistant",
generateParameters: GenerateParameters(maxTokens: 500, temperature: 0.7)
)
let r1 = try await session.respond(to: "What is 2+2?")
let r2 = try await session.respond(to: "And if you multiply that by 3?")
await session.clear()ModelContainer.generate(...)For lower-level control, prepare UserInput and generate directly:
let userInput = UserInput(prompt: "Hello")
let lmInput = try await modelContainer.prepare(input: userInput)
let stream = try await modelContainer.generate(
input: lmInput,
parameters: GenerateParameters()
)
for await generation in stream {
switch generation {
case .chunk(let text):
print(text, terminator: "")
case .toolCall(let call):
print("Tool call: \(call.function.name)")
case .info(let info):
print("\nStop reason: \(info.stopReason)")
print("\(info.tokensPerSecond) tok/s")
}
}Use these depending on your control needs:
generate(input:..., context:..., wiredMemoryTicket:) -> AsyncStream<Generation>: decoded text + tool calls.generateTask(..., wiredMemoryTicket:) -> (AsyncStream<Generation>, Task<Void, Never>): same output, plus task handle for deterministic cleanup when consumers stop early.generateTokens(..., wiredMemoryTicket:) -> AsyncStream<TokenGeneration>: raw token IDs.generateTokensTask(..., wiredMemoryTicket:) -> (AsyncStream<TokenGeneration>, Task<Void, Never>): raw tokens + task handle.GenerateStopReason: .stop, .length, .cancelled in final .info.See references/generation.md for full patterns.
struct WeatherInput: Codable { let location: String }
struct WeatherOutput: Codable { let temperature: Double; let conditions: String }
let weatherTool = Tool<WeatherInput, WeatherOutput>(
name: "get_weather",
description: "Get current weather",
parameters: [.required("location", type: .string, description: "City name")]
) { _ in
WeatherOutput(temperature: 22.0, conditions: "Sunny")
}
let userInput = UserInput(
prompt: .text("What's the weather in Tokyo?"),
tools: [weatherTool.schema]
)
let lmInput = try await modelContainer.prepare(input: userInput)
let stream = try await modelContainer.generate(input: lmInput, parameters: GenerateParameters())
for await generation in stream {
switch generation {
case .chunk(let text):
print(text, terminator: "")
case .toolCall(let call):
let result = try await call.execute(with: weatherTool)
print("\nWeather: \(result.conditions)")
case .info:
break
}
}See references/tool-calling.md for multi-turn tool loops.
let params = GenerateParameters(
maxTokens: 1000, // nil = unlimited
maxKVSize: 4096, // Sliding window (RotatingKVCache)
kvBits: 4, // Quantized cache (4 or 8)
kvGroupSize: 64, // Quantization group size
quantizedKVStart: 0, // Token index to start KV quantization
temperature: 0.7, // 0 = greedy / argmax
topP: 0.9, // Nucleus sampling
repetitionPenalty: 1.1, // Penalize repeats
repetitionContextSize: 20, // Penalty window
prefillStepSize: 512 // Prompt prefill chunk size
)Use policy tickets to coordinate concurrent inference memory:
let policy = WiredSumPolicy()
let ticket = policy.ticket(size: estimatedBytes, kind: .active)
let userInput = UserInput(prompt: "Summarize this text")
let lmInput = try await modelContainer.prepare(input: userInput)
let stream = try await modelContainer.generate(
input: lmInput,
parameters: GenerateParameters(),
wiredMemoryTicket: ticket
)
for await generation in stream {
if case .chunk(let text) = generation {
print(text, terminator: "")
}
}For policy selection, reservations, and measurement-based budgeting, see references/wired-memory.md.
let history: [Chat.Message] = [
.system("You are helpful"),
.user("Hello"),
.assistant("Hi there!")
]
let session = ChatSession(modelContainer, history: history)let imageFromURL = UserInput.Image.url(fileURL)
let imageFromCI = UserInput.Image.ciImage(ciImage)
let imageFromArray = UserInput.Image.array(mlxArray)let videoFromURL = UserInput.Video.url(videoURL)
let videoFromAsset = UserInput.Video.avAsset(avAsset)
let videoFromFrames = UserInput.Video.frames(videoFrames)
let response = try await session.respond(to: "What happens in this video?", video: videoFromURL)let images: [UserInput.Image] = [.url(url1), .url(url2)]
let response = try await session.respond(to: "Compare these two images", images: images, videos: [])let session = ChatSession(
modelContainer,
processing: UserInput.Processing(resize: CGSize(width: 512, height: 512))
)// DO: Prefer ChatSession for multi-turn chat UX
let session = ChatSession(modelContainer)
// DO: Prepare UserInput before container-level generation
let userInput = UserInput(prompt: "Hello")
let lmInput = try await modelContainer.prepare(input: userInput)
// DO: Use task-handle variants for early-stop scenarios
let (stream, task) = generateTask(
promptTokenCount: lmInput.text.tokens.size,
modelConfiguration: context.configuration,
tokenizer: context.tokenizer,
iterator: iterator
)
for await item in stream {
if shouldStop { break }
}
await task.value
// DO: Use wired tickets when coordinating concurrent workloads
let ticket = WiredSumPolicy().ticket(size: estimatedBytes)
let _ = try await modelContainer.generate(input: lmInput, parameters: params, wiredMemoryTicket: ticket)// DON'T: Skip prepare(input:) before container-level generation.
// ModelContainer.generate expects LMInput, not UserInput.
// DON'T: Share MLXArray across tasks (not Sendable)
let array = MLXArray(...)
Task { _ = array.sum() } // wrong
// DON'T: Ignore task completion after early-break on low-level streams
for await item in stream {
if shouldStop { break }
}
// await task.value is required for deterministic cleanupModelContainer is Sendable and thread-safe.ChatSession is not thread-safe; use one session per task/flow.MLXArray is not Sendable; keep it inside one isolation domain or use SendableBox transfer patterns.let slidingWindow = GenerateParameters(maxKVSize: 4096)
let quantizedKV = GenerateParameters(kvBits: 4, kvGroupSize: 64)
await session.clear()| Reference | When to Use |
|---|---|
| references/model-container.md | Loading models, ModelContainer API, ModelConfiguration |
| references/generation.md | generate, generateTask, raw token streaming APIs |
| references/wired-memory.md | Wired tickets, policies, budgeting, reservations |
| references/kv-cache.md | Cache types, memory optimization, cache serialization |
| references/concurrency.md | Thread safety, SerialAccessContainer, async patterns |
| references/tool-calling.md | Function calling, tool formats, ToolCallProcessor |
| references/tokenizer-chat.md | Tokenizer, Chat.Message, EOS tokens |
| references/supported-models.md | Model families, registries, model-specific config |
| references/lora-adapters.md | LoRA/DoRA/QLoRA, loading adapters |
| references/training.md | LoRATrain API, fine-tuning |
| references/embeddings.md | EmbeddingModel, pooling, use cases |
| references/model-porting.md | Porting models from Python MLX-LM to Swift |
| If you see... | Use instead... |
|---|---|
generate(... didGenerate:) callback | AsyncStream-based generation APIs |
perform { model, tokenizer in } | perform { context in } |
TokenIterator(prompt: MLXArray) | TokenIterator(input: LMInput) |
ModelRegistry typealias | LLMRegistry or VLMRegistry |
createAttentionMask(h:cache:[KVCache]?) | createAttentionMask(h:cache:KVCache?) |
| Feature | Details |
|---|---|
| EOS token loading | Loaded from config.json |
| EOS override | generation_config.json > config.json > defaults |
| EOS merging | All sources merged at generation time |
| EOS detection | Stops generation when EOS encountered |
| Chat template application | Applied by tokenizer / processor path |
| Tool call format detection | Inferred from model_type in config.json |
| Cache type selection | Driven by GenerateParameters (maxKVSize, kvBits) |
| Tokenizer loading | Loaded automatically from model assets |
| Model weight loading | Downloaded and loaded from Hugging Face/local directory |
| Feature | When to Configure |
|---|---|
extraEOSTokens | Model has unlisted stop tokens |
toolCallFormat | Override auto-detected tool parser format |
maxKVSize | Enable sliding window cache |
kvBits, kvGroupSize, quantizedKVStart | Enable and tune KV quantization |
prefillStepSize | Tune prompt prefill chunking/perf tradeoff |
wiredMemoryTicket | Coordinate policy-based wired-memory limits |
© kellyvv, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 12 other files (references) in Packages/InferenceKit/skills/mlx-swift-lm of kellyvv/PhoneClaw.
Open the folder on GitHubat commit 31bf61d
Swift Mlx Lm next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Swift Mlx Lm this skillkellyvv/PhoneClaw | 1.3k | — | ~3.7k | Automated safety check: Pass | Apache-2.0 | |
| AI SDK Developmenttrypostit/trypost | 692 | 1 repos | ~3.5k | Automated safety check: Pass | MIT | |
| Foundation Models App Builderrryam/FoundationModelsKit | 162 | — | ~1.1k | Automated safety check: Pass | MIT | |
| Paperkitdpearson2699/swift-ios-skills | 1.2k | — | ~4.2k | Automated safety check: Pass | Custom licence | |
| Pdfkitdpearson2699/swift-ios-skills | 1.2k | — | ~3.5k | Automated safety check: Pass | Custom licence | |
| LLM Integrationyonatangross/orchestkit | 292 | — | ~2.7k | Automated safety check: Pass | MIT |
trypostit/trypost
TRIGGER when working with ai-sdk which is Laravel official first-party AI SDK.
rryam/FoundationModelsKit
Build or modify Apple Foundation Models features in Swift, SwiftUI, iOS, and macOS apps.
dpearson2699/swift-ios-skills
Add drawings, shapes, and a consistent markup experience using PaperKit.
dpearson2699/swift-ios-skills
Display and manipulate PDF documents using PDFKit. An agent skill from dpearson2699/swift-ios-skills.
yonatangross/orchestkit
LLM integration patterns for function calling, streaming responses, local inference with Ollama, and fine-tuning customization.
gustavscirulis/snapgrid
WebKit integration in SwiftUI using WebView and WebPage for embedding web content, navigation, JavaScript interop, and customization.
kellyvv/PhoneClaw
MLX Swift - High-performance ML framework for Apple Silicon with lazy evaluation, automatic differentiation, and unified memory
Categories
MLX Swift LM - Run LLMs and VLMs on Apple Silicon using MLX. Swift Mlx Lm is an agent skill from kellyvv/PhoneClaw. MLX Swift LM - Run LLMs and VLMs on Apple Silicon using MLX.
Swift Mlx Lm fits situations like: tasks that involve iOS development; tasks that involve Fine-tuning; tasks that involve Structured output and tool calling.
Run `npx skills add kellyvv/PhoneClaw --skill swift-mlx-lm -a claude-code`. Or copy the skill folder (Packages/InferenceKit/skills/mlx-swift-lm in kellyvv/PhoneClaw) into .claude/skills/swift-mlx-lm in your project. Claude Code loads it when a task matches its description.
Run `npx skills add kellyvv/PhoneClaw --skill swift-mlx-lm -a codex`. Or copy the skill folder (Packages/InferenceKit/skills/mlx-swift-lm in kellyvv/PhoneClaw) into .agents/skills/swift-mlx-lm in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kellyvv/PhoneClaw --skill swift-mlx-lm -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/swift-mlx-lm, .gemini/skills/swift-mlx-lm, .github/skills/swift-mlx-lm and .opencode/skills/swift-mlx-lm in your project.
SKILL.md names no scripts, command-line tools or credentials: Swift Mlx Lm is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Swift Mlx Lm is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.7k tokens (SKILL.md is roughly 15k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 24k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Swift Mlx Lm: AI SDK Development (trypostit/trypost, 692 stars), Foundation Models App Builder (rryam/FoundationModelsKit, 162 stars), Paperkit (dpearson2699/swift-ios-skills, 1.2k stars) and Pdfkit (dpearson2699/swift-ios-skills, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
kellyvv (a GitHub user) maintains it in kellyvv/PhoneClaw, which has 1,268 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on August 6, 2026.
Source: kellyvv/PhoneClaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.