用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/scouzi1966/maclocal-api --skill build-afm命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | build-afm |
| description | Build and test maclocal-api/AFM reliably with Xcode 27 and MLX. |
Run commands from the maclocal-api repository root.
Never invoke raw swift build or swift test. Always use:
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.
Use Release binaries for inference benchmarks. Never report Debug throughput.