maclocal-api: Skill for Claude Code

.claude/skills/test-macafm/SKILL.md

test-macafm is a skill for Claude Code from scouzi1966/maclocal-api. It costs 54 tokens per session (7,497 once invoked), scanned A, original, MIT.

A test tool for maclocal-api, a server for running models with Apple machine-learning hardware. It runs automated checks and can optionally use an AI judge for deeper analysis.

In plain words
What is it for?
Use it to test or validate the server, check regressions, onboard a new model, or benchmark and profile model performance.
Why use it?
It provides repeatable checks for whether the server and a model work correctly after changes or before release. It also supports different test levels for quick checks, regular validation, or more complete testing.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the AskUserQuestion tool; mentions Codex; built for openclaw.

This is scouzi1966/maclocal-api's own configuration. It tells Claude Code how to work on maclocal-api itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything maclocal-api configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./Scripts/test-assertions.sh --tier TIER --model MODEL --port 9998.

Reuse

Borrowing it

Nothing to install: this file belongs to scouzi1966/maclocal-api. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/scouzi1966/maclocal-api/main/.claude/skills/test-macafm/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/scouzi1966/maclocal-api

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for test-macafm

README.md
[![agentmods](https://agentmods.dev/badge/skills/scouzi1966/maclocal-api/test-macafm/github.svg)](https://agentmods.dev/skills/scouzi1966/maclocal-api/test-macafm)
Your own site
<a href="https://agentmods.dev/skills/scouzi1966/maclocal-api/test-macafm"><img src="https://agentmods.dev/badge/skills/scouzi1966/maclocal-api/test-macafm/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for test-macafm

Your own site · 80×15
<a href="https://agentmods.dev/skills/scouzi1966/maclocal-api/test-macafm"><img src="https://agentmods.dev/badge/skills/scouzi1966/maclocal-api/test-macafm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,497 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 60
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.07497
Opus 5.5 $0.00022 $0.02999
Sonnet 5.5 $0.00011 $0.01499
Haiku 4.5 $0.00005 $0.00750

Measured 1mo ago against content hash d6c62d9ea3c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-macafm scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

until curl -sf http://127.0.0.1:9998/v1/models >/dev/null 2>&1; do sleep 1; done
.claude/skills/test-macafm/SKILL.md · 503 lines

How it starts

The opening of the file, as written. The whole thing — 503 lines — stays where its author put it; the contents beside it link to each section on GitHub.

test-macafm

Run the maclocal-api test suite: automated pass/fail assertions and smart analysis (the smart suite's AI judge is opt-in — default off; ask the user before enabling it).

Triggers

Use this skill when the user asks to:

  • Test or validate the server (e.g., "run the tests", "test AFM", "validate the build")
  • Regression check after code changes
  • Onboard a new model (verify it works correctly with the server)
  • Release check before tagging or pushing
  • Benchmark or profile model performance

First Questions to Ask

  1. Model — Which model to test? (Ask if not specified. Default: whatever's loaded.)
  2. Tier — smoke / standard / full? (Suggest based on context.)
  3. Binary path — Default .build/release/afm. Ask if user has a custom build location.
  4. Port — Default 9998. Ask if user's server is on a different port.
  5. Server running? — Is the server already running, or should tests start it?

Tier Decision Tree

Tier Time When to use What runs
smoke ~2 min Quick sanity check, any small model, CI test-assertions.sh --tier smoke
standard ~15 min After feature changes, mid-size model test-assertions.sh --tier standard
full ~60 min Release validation, production model test-assertions.sh --tier full + mlx-model-test.sh (smart suite; AI judge opt-in — ask the user) with test-llm-comprehensive.txt + promptfoo agentic evals

Quick guide:

  • "Just run a quick test" → smoke
  • "Test before merging" → standard
  • "Full release validation" or "onboard new model" → full
  • User doesn't specify → suggest standard

Execution Workflow

1. Build Check

# Ensure release build is current
swift build -c release

2. Start Server (if not running)

MACAFM_MLX_MODEL_CACHE=/Volumes/edata/models/vesta-test-cache \
  .build/release/afm mlx -m MODEL --port 9998 \
  --tool-call-parser afm_adaptive_xml \
  --enable-prefix-caching \
  --enable-grammar-constraints &
# Wait for server to be ready
until curl -sf http://127.0.0.1:9998/v1/models >/dev/null 2>&1; do sleep 1; done

Read the full file on GitHub · 503 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 503 lines · 54 tokens per session scan A d6c62d9ea3c7

Subscribe to this mod's changes

test-macafm is a skill published in the GitHub repository scouzi1966/maclocal-api (348 stars, last pushed 12d ago), licensed MIT. It adds 54 tokens to every session and 7,497 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

triage-ticket

Triage an Acme support ticket - set priority, area and next step using Acme's priority matrix.

osaurus-ai/osaurus · 26 tokens

code-review

Review diffs and change sets for bugs, regressions, risks, and missing tests.

HybridAIOne/hybridclaw · 21 tokens

dotty-av-test

Run local black-box voice tests against the physical Dotty robot by playing a TTS prompt through the workstation speakers while the C920 records video and room audio. Use when testing Dotty's wake word, ASR, spoken response, expressions, or end-to-end voice behavior on this bench.

BrettKinny/dotty-stackchan · 64 tokens

load-testing

Use when designing and executing load testing, stress testing, endurance testing, spike testing, and performance testing. Includes test planning, test script creation, result analysis, and performance optimization. Based on CPE certification and performance testing best practices.

Omar-Obando/qwen-orchestrator · 50 tokens

test-automation-architecture

Use when designing test automation frameworks, implementing page object patterns, creating test reporting systems, and managing parallel test execution. Includes test strategy, test data management, and test infrastructure setup. Based on CTFL-TA and ISTQB Advanced Level certifications.

Omar-Obando/qwen-orchestrator · 55 tokens

testing-strategy

Use when designing comprehensive testing strategies, implementing test coverage, setting up CI/CD quality gates, and defining unit, integration, and E2E test approaches. Includes testing pyramid, coverage thresholds, and test automation best practices. Based on software testing certification standards and industry…

Omar-Obando/qwen-orchestrator · 59 tokens