Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use macos-cli (binary `macli`) for any macOS-side automation — X/Twitter ops, WeChat send/read, native macOS apps + 492 KB AppleScript snippets, and 136 web-site adapters. Invoke whenever the user requests automation that runs on a Mac. The CLI is self-describing — query it for capabilities at runtime.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | -42% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -1% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -32% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 14% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -15% | 0% |
ALWAYS START HERE: macli is self-describing. Don't guess commands — query the CLI.
macli help --json # → namespaces + version + discovery index
macli <ns> --json # → subcommand list (ns ∈ x|wx|mac)
macli help <cmd-path> --json # → synopsis + behavior + samples (e.g. `macli help wx send --json`)
macli help errors --json # → full error-code inventory
macli help schema --json # → JSON envelope contract
macli mac kb-search "<intent>" --json # → find KB script by intent (492 indexed)
macli x help --json # → X subsystem matrix (twitter-cli / bird / opencli / 136 sites)
macli doctor --json # → vendor health + cookies + cacheIf macli help --json fails with command-not-found, instruct user to clone and install: git clone https://github.com/BuddhaYi/macos-cli && cd macos-cli && ./install.sh.
| User intent | Namespace | |---|---| | X/Twitter read/write/archive/download | macli x ... | | WeChat send/read/contacts | macli wx ... | | macOS dark-mode/volume/AppleScript/KB script | macli mac ... | | Any of 136 web sites (arxiv, HN, reddit, etc.) | macli <site> ... (auto-routed to X subsystem) |
wx send verifies by default. Polls WeChat AX tree for failure markers (重发/被对方拒收/拉黑/retry/send failed). --no-verify opts out. --retry N for transient failures.拒收/拉黑) are non-retriable. macli stops at attempt 1; do not loop the call yourself.wx send logs every call to ~/.tx/wx_send.log (NDJSON, append-only). Non-TTY failures fire desktop notification.~/.tx/cookies.env (mode 0600). Refresh with macli x cookies-save --from edge when macli x cookies-save --check-age --json reports stale/expired.wx send ≤ 20/session.All internal commands emit {ok, schema_version: "1", data, error} when called with --json. X passthrough commands (macli x search, etc.) return the upstream tool's native JSON. Compact envelope contract: macli help schema --json.
bash# Daily X bookmark sync, only if cookies are fresh macli x cookies-save --check-age --json | jq -e '.data.status=="fresh"' >/dev/null \ && macli x archive --json | jq '.data.new_count'
AGENTS.md — developer guide for modifying macli itselfSCHEMA.md — JSON envelope reference (also queryable: macli help schema --json)README.md — install + design overviewOther measured skills in the registry, with their headline benchmark lift.