Agent skill

Swift Mlx Lm

by kellyvv in kellyvv/PhoneClaw

MLX Swift LM - Run LLMs and VLMs on Apple Silicon using MLX.

Apache-2.0Auto-check passedAI & LLM Engineering

Install Swift Mlx Lm

skills CLI
$ npx skills add kellyvv/PhoneClaw --skill swift-mlx-lm -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install kellyvv/PhoneClaw swift-mlx-lm --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ 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-src

Use ~/.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/

Facts

Skill name
swift-mlx-lm
GitHub stars
1.3k
Token cost
~3.7k tokens
SKILL.md length
565 words
Files
13 (incl. references)
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

MLX Swift LM - Run LLMs and VLMs on Apple Silicon using MLX.

  • Works in 9 steps: Overview & Triggers → Key File Reference → Quick Start → …
  • Tasks that involve iOS development
  • SKILL.md covers 1. Overview & Triggers, 2. Key File Reference, 3. Quick Start and 4. Primary Workflow: LLM…, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

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.

When your agent uses it

  • Tasks that involve iOS development
  • Tasks that involve Fine-tuning
  • Tasks that involve Structured output and tool calling

Example prompts

  • “/swift-mlx-lm”

Requirements

  • Python 3

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Overview & Triggers
  2. Key File Reference
  3. Quick Start
  4. Primary Workflow: LLM Inference
  5. Secondary Workflow: VLM Inference
  6. Best Practices
  7. Reference Links
  8. Deprecated Patterns Summary
  9. Automatic vs Manual Configuration

What it can do on your machine

Read from SKILL.md and the folder at commit 31bf61d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    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.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

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.

Always · name and description, kept in context so the agent knows when to use it
~50
When it runs · the whole SKILL.md, loaded when a task matches
~3.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~28k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from kellyvv/PhoneClaw at commit 31bf61d, republished under its Apache-2.0 licence (© kellyvv). 565 words, ~3,695 tokens.

Download SKILL.mdSave it as .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.
name
swift-mlx-lm
description
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.
triggers
mlx, mlx-swift, mlx-lm, apple silicon llm, local llm swift, vision language model swift, lora training swift, wired memory, wiredmemory, wired memory ticket…

mlx-swift-lm Skill

1. Overview & Triggers

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.

When to Use This Skill
  • Running LLM/VLM inference on macOS/iOS with Apple Silicon
  • Streaming text generation from local models
  • Coordinating concurrent inference with wired-memory policies and tickets
  • Tool calling / function calling with models
  • LoRA adapter training and fine-tuning
  • Text embeddings for RAG/semantic search
  • Porting model architectures from Python MLX-LM to Swift
Architecture Overview
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

2. Key File Reference

PurposeFile Path
Thread-safe model wrapperLibraries/MLXLMCommon/ModelContainer.swift
Simplified chat APILibraries/MLXLMCommon/ChatSession.swift
Generation & streaming APIsLibraries/MLXLMCommon/Evaluate.swift
KV cache typesLibraries/MLXLMCommon/KVCache.swift
Wired-memory policiesLibraries/MLXLMCommon/WiredMemoryPolicies.swift
Wired-memory measurement helpersLibraries/MLXLMCommon/WiredMemoryUtils.swift
Model configurationLibraries/MLXLMCommon/ModelConfiguration.swift
Chat message typesLibraries/MLXLMCommon/Chat.swift
Tool call processingLibraries/MLXLMCommon/Tool/ToolCallFormat.swift
Concurrency utilitiesLibraries/MLXLMCommon/Utilities/SerialAccessContainer.swift
LLM factory & registryLibraries/MLXLLM/LLMModelFactory.swift
VLM factory & registryLibraries/MLXVLM/VLMModelFactory.swift
LoRA configurationLibraries/MLXLMCommon/Adapters/LoRA/LoRAContainer.swift
LoRA trainingLibraries/MLXLLM/LoraTrain.swift

3. Quick Start

LLM Chat (Simplest API)
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: "")
}
VLM with Image
swift
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
)
Embeddings
swift
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
}

4. Primary Workflow: LLM Inference

ChatSession manages conversation history and KV cache automatically:

swift
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()
Streaming with ModelContainer.generate(...)

For lower-level control, prepare UserInput and generate directly:

swift
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")
    }
}
Generation API Surface (Evaluate.swift)

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.

Tool Calling
swift
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.

GenerateParameters
swift
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
)
Wired Memory (Optional)

Use policy tickets to coordinate concurrent inference memory:

swift
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.

Prompt Caching / History Re-hydration
swift
let history: [Chat.Message] = [
    .system("You are helpful"),
    .user("Hello"),
    .assistant("Hi there!")
]

let session = ChatSession(modelContainer, history: history)

5. Secondary Workflow: VLM Inference

Image Input Types
swift
let imageFromURL = UserInput.Image.url(fileURL)
let imageFromCI = UserInput.Image.ciImage(ciImage)
let imageFromArray = UserInput.Image.array(mlxArray)
Video Input
swift
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)
Multiple Images
swift
let images: [UserInput.Image] = [.url(url1), .url(url2)]
let response = try await session.respond(to: "Compare these two images", images: images, videos: [])
VLM-Specific Processing
swift
let session = ChatSession(
    modelContainer,
    processing: UserInput.Processing(resize: CGSize(width: 512, height: 512))
)

6. Best Practices

DO
swift
// 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
swift
// 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 cleanup
Thread Safety
  • ModelContainer 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.
Memory Management
swift
let slidingWindow = GenerateParameters(maxKVSize: 4096)
let quantizedKV = GenerateParameters(kvBits: 4, kvGroupSize: 64)
await session.clear()
Show full SKILL.md (229 more words)Show less
ReferenceWhen to Use
references/model-container.mdLoading models, ModelContainer API, ModelConfiguration
references/generation.mdgenerate, generateTask, raw token streaming APIs
references/wired-memory.mdWired tickets, policies, budgeting, reservations
references/kv-cache.mdCache types, memory optimization, cache serialization
references/concurrency.mdThread safety, SerialAccessContainer, async patterns
references/tool-calling.mdFunction calling, tool formats, ToolCallProcessor
references/tokenizer-chat.mdTokenizer, Chat.Message, EOS tokens
references/supported-models.mdModel families, registries, model-specific config
references/lora-adapters.mdLoRA/DoRA/QLoRA, loading adapters
references/training.mdLoRATrain API, fine-tuning
references/embeddings.mdEmbeddingModel, pooling, use cases
references/model-porting.mdPorting models from Python MLX-LM to Swift

8. Deprecated Patterns Summary

If you see...Use instead...
generate(... didGenerate:) callbackAsyncStream-based generation APIs
perform { model, tokenizer in }perform { context in }
TokenIterator(prompt: MLXArray)TokenIterator(input: LMInput)
ModelRegistry typealiasLLMRegistry or VLMRegistry
createAttentionMask(h:cache:[KVCache]?)createAttentionMask(h:cache:KVCache?)

9. Automatic vs Manual Configuration

Automatic Behaviors
FeatureDetails
EOS token loadingLoaded from config.json
EOS overridegeneration_config.json > config.json > defaults
EOS mergingAll sources merged at generation time
EOS detectionStops generation when EOS encountered
Chat template applicationApplied by tokenizer / processor path
Tool call format detectionInferred from model_type in config.json
Cache type selectionDriven by GenerateParameters (maxKVSize, kvBits)
Tokenizer loadingLoaded automatically from model assets
Model weight loadingDownloaded and loaded from Hugging Face/local directory
Optional Configuration
FeatureWhen to Configure
extraEOSTokensModel has unlisted stop tokens
toolCallFormatOverride auto-detected tool parser format
maxKVSizeEnable sliding window cache
kvBits, kvGroupSize, quantizedKVStartEnable and tune KV quantization
prefillStepSizeTune prompt prefill chunking/perf tradeoff
wiredMemoryTicketCoordinate 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

Files

SKILL.md and 12 other files (references) in Packages/InferenceKit/skills/mlx-swift-lm of kellyvv/PhoneClaw.

  • SKILL.md
  • references/concurrency.md
  • references/embeddings.md
  • references/generation.md
  • references/kv-cache.md
  • references/lora-adapters.md
  • references/model-container.md
  • references/model-porting.md
  • references/supported-models.md
  • references/tokenizer-chat.md
  • references/tool-calling.md
  • references/training.md
  • references/wired-memory.md

Open the folder on GitHubat commit 31bf61d

Compare with similar skills

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.

Swift Mlx Lm compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Swift Mlx Lm this skillkellyvv/PhoneClaw1.3k—~3.7kAutomated safety check: PassApache-2.0
AI SDK Developmenttrypostit/trypost6921 repos~3.5kAutomated safety check: PassMIT
Foundation Models App Builderrryam/FoundationModelsKit162—~1.1kAutomated safety check: PassMIT
Paperkitdpearson2699/swift-ios-skills1.2k—~4.2kAutomated safety check: PassCustom licence
Pdfkitdpearson2699/swift-ios-skills1.2k—~3.5kAutomated safety check: PassCustom licence
LLM Integrationyonatangross/orchestkit292—~2.7kAutomated safety check: PassMIT

Similar skills

  • AI SDK Development

    trypostit/trypost

    TRIGGER when working with ai-sdk which is Laravel official first-party AI SDK.

    692 GitHub starsUsed in 1 repo~3.5k tokens
    AI & LLM EngineeringAuto-check passed
  • Foundation Models App Builder

    rryam/FoundationModelsKit

    Build or modify Apple Foundation Models features in Swift, SwiftUI, iOS, and macOS apps.

    162 GitHub stars~1.1k tokensUpdated 10 days ago
    AI & LLM EngineeringAuto-check passed
  • Paperkit

    dpearson2699/swift-ios-skills

    Add drawings, shapes, and a consistent markup experience using PaperKit.

    1.2k GitHub stars~4.2k tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed
  • Pdfkit

    dpearson2699/swift-ios-skills

    Display and manipulate PDF documents using PDFKit. An agent skill from dpearson2699/swift-ios-skills.

    1.2k GitHub stars~3.5k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • LLM Integration

    yonatangross/orchestkit

    LLM integration patterns for function calling, streaming responses, local inference with Ollama, and fine-tuning customization.

    292 GitHub stars~2.7k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check passed
  • Webkit Integration

    gustavscirulis/snapgrid

    WebKit integration in SwiftUI using WebView and WebPage for embedding web content, navigation, JavaScript interop, and customization.

    116 GitHub starsUsed in 1 repo~1.5k tokens
    MobileAuto-check passed

More from kellyvv/PhoneClaw

  • Swift Mlx

    kellyvv/PhoneClaw

    MLX Swift - High-performance ML framework for Apple Silicon with lazy evaluation, automatic differentiation, and unified memory

    1.3k GitHub stars~2.8k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Swift Mlx Lm

What does Swift Mlx Lm do?

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.

When should I use Swift Mlx Lm?

Swift Mlx Lm fits situations like: tasks that involve iOS development; tasks that involve Fine-tuning; tasks that involve Structured output and tool calling.

How do I install Swift Mlx Lm in Claude Code?

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.

How do I install Swift Mlx Lm in Codex?

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.

Can I use Swift Mlx Lm in Cursor, Gemini CLI or GitHub Copilot?

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.

What does Swift Mlx Lm need to run?

SKILL.md names no scripts, command-line tools or credentials: Swift Mlx Lm is instructions for the agent only. Our summary lists: Python 3.

Does Swift Mlx Lm access the network?

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.

Is Swift Mlx Lm safe to install?

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.

What licence does Swift Mlx Lm use?

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.

How many tokens does Swift Mlx Lm use?

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.

What are the alternatives to Swift Mlx Lm?

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.

Who maintains Swift Mlx Lm?

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.