Agent skill

Build Afm

by scouzi1966 in scouzi1966/maclocal-api

Build and test maclocal-api/AFM reliably with Xcode 27 and MLX.

MITAuto-check passedMobile

Install Build Afm

skills CLI
$ npx skills add scouzi1966/maclocal-api --skill build-afm -a claude-code

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

GitHub CLI
$ gh skill install scouzi1966/maclocal-api build-afm --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/scouzi1966/maclocal-api.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/build-afm .claude/skills/build-afm && 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
build-afm
GitHub stars
346
Token cost
~321 tokens
SKILL.md length
136 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Build and test maclocal-api/AFM reliably with Xcode 27 and MLX.

  • Tasks that involve iOS development
  • SKILL.md covers SwiftPM and Performance
  • Calls swift

What it does

Build Afm is an agent skill from scouzi1966/maclocal-api. Build and test maclocal-api/AFM reliably with Xcode 27 and MLX.

Its SKILL.md is about 320 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile, covering iOS development. It works with Xcode and macOS. The repository describes itself as: 'afm' command cli: macOS server and single prompt mode that exposes Apple's Foundation and MLX Models and other APIs running on your Mac through a single aggregated…. The licence is MIT.

When your agent uses it

  • Tasks that involve iOS development

Example prompts

  • “/build-afm”

What it can do on your machine

Read from SKILL.md and the folder at commit 138ca5d. 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

    Shell commands in SKILL.md call:

    • 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

Build Afm loads about 321 tokens when it runs. Until then it costs about 18 tokens; SKILL.md has 136 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~18
When it runs · the whole SKILL.md, loaded when a task matches
~321

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 scouzi1966/maclocal-api at commit 138ca5d, republished under its MIT licence (© scouzi1966). 136 words, ~321 tokens.

Download SKILL.mdSave it as .claude/skills/build-afm/SKILL.md (or your agent's skills folder).
name
build-afm
description
Build and test maclocal-api/AFM reliably with Xcode 27 and MLX.

Build AFM

Run commands from the maclocal-api repository root.

SwiftPM

Never invoke raw swift build or swift test. Always use:

bash
Scripts/swiftpm-reliable.sh build -c release --product afm
Scripts/swiftpm-reliable.sh test -c release

The wrapper selects the known-good Xcode 27 SwiftPM driver, repairs stale explicit-module state, resolves AFMKit's committed default.metallib, and stages mlx.metallib for XCTest. Do not work around metallib failures with one-off environment values.

Normal builds consume the immutable AFMKit revision and exact AFM-compatible MLX tags. They do not compile or mutate vendor/mlx-swift-lm. Use Scripts/check-afmkit-consumer-boundary.sh after dependency or packaging changes. The legacy patch stack requires an explicit maintenance opt-in.

The comprehensive assertion harness must continue to delegate its Swift tests to this wrapper. Local copied XCTest binaries also have a source-checkout fallback in MLXMetalLibrary; packaged binaries must carry their resource bundle or loose default.metallib beside the executable.

Performance

Use Release binaries for inference benchmarks. Never report Debug throughput.

© scouzi1966, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/build-afm of scouzi1966/maclocal-api.

Open the folder on GitHubat commit 138ca5d

Compare with similar skills

Build Afm 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.

Build Afm compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Build Afm this skillscouzi1966/maclocal-api346—~321Automated safety check: PassMIT
macOS Spm App PackagingDimillian/Skills4k5 repos~1.2kAutomated safety check: PassMIT
Orca iOS Simulator Controlstablyai/orca89k1 repos~584Automated safety check: PassApache-2.0
Apple Crash Log .NET Symbolicationdotnet/skills5.6k1 repos~2.4kAutomated safety check: PassMIT
Macios Xcode Beta Updatedotnet/macios2.9k—~1.8kAutomated safety check: PassCustom licence
OdevioOdevio/Odevio-CLI423—~7.6kAutomated safety check: PassMIT

Similar skills

  • macOS Spm App Packaging

    Dimillian/Skills

    Scaffold, build, and package SwiftPM-based macOS apps without an Xcode project.

    4k GitHub starsUsed in 5 repos~1.2k tokens
    MobileAuto-check passed
  • iOS Simulator control from inside Orca, with the live device view in Orca's emulator pane. Use when driving a booted Apple Simulator on macOS: taps, gestures…

    89k GitHub starsUsed in 1 repo~584 tokens
    MobileAuto-check passed
  • Official

    Resolves .NET runtime frames in Apple .ips crash logs to function names, source files and line numbers using dSYM symbols, atos and the Microsoft symbol server.

    5.6k GitHub starsUsed in 1 repo~2.4k tokens
    MobileAuto-check passed
  • Official

    Update dotnet/macios to a new Xcode beta and validate it end-to-end.

    2.9k GitHub stars~1.8k tokensUpdated 2 days ago
    MobileAuto-check passed
  • Odevio

    Odevio/Odevio-CLI

    Take a Flutter project to an iPhone or the App Store with Odevio - build, sign and publish iOS apps from Windows, Linux or macOS with no Mac and no Xcode.

    423 GitHub stars~7.6k tokensUpdated 16 days ago
    MobileAuto-check passed
  • Setup

    Shpigford/chops

    Get a new developer up and running with the Chops codebase — prerequisites, build, architecture, and common tasks.

    1.9k GitHub stars~980 tokensUpdated 1 mo ago
    MobileAuto-check passed

More from scouzi1966/maclocal-api

All 12 skills in this repo
  • Afm

    scouzi1966/maclocal-api

    Maintain and extend AFM (maclocal-api), a Swift OpenAI-compatible local LLM server and CLI for Apple Foundation Models, MLX models, API gateway proxying, and Vision OCR.

    346 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Build Afm

    scouzi1966/maclocal-api

    Build AFM from scratch — submodules, patches, webui, and Swift build.

    346 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check: notes
  • Codex Promptfoo Agentic Eval

    scouzi1966/maclocal-api

    Run and review the Promptfoo-based AFM agentic evaluation suite.

    346 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Test Afm Binary

    scouzi1966/maclocal-api

    Test a pre-built afm binary at any path — runs pre-flight safety checks, then any combination of unit tests, assertions, smart analysis, promptfoo evals, batch validation, OpenAI compat, GPU…

    346 GitHub stars~3.8k tokensUpdated yesterday
    Auto-check passed
  • Afm Release Wheel

    scouzi1966/maclocal-api

    A skill your agent uses when user wants to build a PyPI wheel from an existing compiled afm binary and publish to PyPI.

    346 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check: warnings
  • Test Macafm

    scouzi1966/maclocal-api

    Run the maclocal-api (AFM/MLX) test suite — automated assertions and smart analysis.

    346 GitHub stars~7k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Build Afm

What does Build Afm do?

Build and test maclocal-api/AFM reliably with Xcode 27 and MLX. Build Afm is an agent skill from scouzi1966/maclocal-api. Build and test maclocal-api/AFM reliably with Xcode 27 and MLX.

When should I use Build Afm?

Build Afm fits situations like: tasks that involve iOS development.

How do I install Build Afm in Claude Code?

Run `npx skills add scouzi1966/maclocal-api --skill build-afm -a claude-code`. Or copy the skill folder (.agents/skills/build-afm in scouzi1966/maclocal-api) into .claude/skills/build-afm in your project. Claude Code loads it when a task matches its description.

How do I install Build Afm in Codex?

Run `npx skills add scouzi1966/maclocal-api --skill build-afm -a codex`. Or copy the skill folder (.agents/skills/build-afm in scouzi1966/maclocal-api) into .agents/skills/build-afm in your project. Codex loads it when a task matches its description.

Can I use Build Afm 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 scouzi1966/maclocal-api --skill build-afm -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/build-afm, .gemini/skills/build-afm, .github/skills/build-afm and .opencode/skills/build-afm in your project.

What does Build Afm need to run?

Going by SKILL.md and its folder, Build Afm needs the command-line tools its instructions call (swift).

Does Build Afm 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 Build Afm 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 Build Afm use?

Build Afm is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Build Afm use?

About 321 tokens (SKILL.md is roughly 1.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Build Afm?

Skills that share tags, products or a category with Build Afm: macOS Spm App Packaging (Dimillian/Skills, 4k stars), Orca iOS Simulator Control (stablyai/orca, 89k stars), Apple Crash Log .NET Symbolication (dotnet/skills, 5.6k stars) and Macios Xcode Beta Update (dotnet/macios, 2.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Build Afm?

scouzi1966 (a GitHub user) maintains it in scouzi1966/maclocal-api, which has 346 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 10, 2026.

Source: scouzi1966/maclocal-api on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.