Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add tobemaster56/liam-skills --skill switch-appleidgit clone --depth 1 https://github.com/tobemaster56/liam-skillsWrote 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.
[](https://agentmods.dev/skills/tobemaster56/liam-skills/switch-appleid)<a href="https://agentmods.dev/skills/tobemaster56/liam-skills/switch-appleid"><img src="https://agentmods.dev/badge/skills/tobemaster56/liam-skills/switch-appleid/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.
<a href="https://agentmods.dev/skills/tobemaster56/liam-skills/switch-appleid"><img src="https://agentmods.dev/badge/skills/tobemaster56/liam-skills/switch-appleid.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00111 | $0.01551 |
| Opus 5.5 | $0.00044 | $0.00620 |
| Sonnet 5.5 | $0.00022 | $0.00310 |
| Haiku 4.5 | $0.00011 | $0.00155 |
Grade A, and why
switch-appleid scanned grade A with 0 findings 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 2mo 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Switch Apple ID Region (macOS App Store)
帮助用户在 macOS App Store 里一键切换不同区域的 Apple ID。整体流程:
- 凭据存到钥匙串 —— 每个区域一条 generic password 条目
- 运行 AppleScript —— 从钥匙串读账号密码,驱动 App Store 退出登录并重新登录
资产文件:switch-appleid-zone.applescript(同目录下的模板脚本)。
Step 1:把账号存入钥匙串
约定 service 名为 AppleId_<REGION>。脚本内置三个映射:AppleId_CN、AppleId_US、AppleId_TU(即 cn / us / tu 参数)。新增区域时先在脚本 keychainItemFor 里加一行 if region is "xx" then return "AppleId_XX",再在钥匙串里加同名条目。
为每个区域执行一次(-U 表示若已存在则更新):
security add-generic-password -a "<[email protected]>" -s "AppleId_CN" -w "<password>" -U
security add-generic-password -a "<[email protected]>" -s "AppleId_US" -w "<password>" -U
security add-generic-password -a "<[email protected]>" -s "AppleId_TU" -w "<password>" -U
含特殊字符(双引号、反斜杠、
$、!等)的密码用单引号包裹,钥匙串里存的是原文,AppleScript 不需要再转义。
验证:
security find-generic-password -s "AppleId_CN" | awk -F'"' '/acct/{print $4}' # 看账号
security find-generic-password -s "AppleId_CN" -w # 看密码
第一次读取时系统会弹钥匙串授权框,可以选 "Always Allow",之后 osascript 静默读取。
Step 2:运行 AppleScript
脚本接受一个参数 cn / us / tu,自动映射到 AppleId_CN/US/TU。直接对 skill 目录下的脚本文件 osascript 即可,无需移动或安装:
osascript /path/to/switch-appleid-zone.applescript cn
Agent 调用时会自己解析到 skill 目录的绝对路径。手动跑时,把
/path/to/换成 skill 实际所在目录(plugin 安装通常落在~/.claude/plugins/...下)。
新增区域只需在脚本 keychainItemFor 里加一行 if 映射,并在钥匙串里加对应条目。
脚本会:
- 把 App Store 提到最前,并清理上一次可能残留的登录对话框
- 打开"商店 / Store"菜单:已登录 → 先退出登录,然后点登录
- 通过 accessibility 元素(而非屏幕坐标)定位登录对话框:先填 Apple ID 回车,待密码框出现后再填密码回车
- 等对话框关闭以确认登录成功(放宽到约 20 秒,容忍慢网络验证)
- 如果开启了两步验证,需要用户手动输入验证码
提交用「在字段内按回车」而非点 Sign In 按钮——实测点按钮会提交未 commit 的旧值导致卡住,回车会先 commit 再提交,可靠得多。
注意事项
- 本地化:脚本读取
AppleLocale(失败回退user locale)选择菜单文案。简体中文 (zh*) 用「商店 / 登录 / 退出登录」,其他语言(含英文及未识别语言)默认按英文界面处理,并对带省略号的菜单项做了兜底。如需精确支持其他语言,在localeMenuNames里加一个分支即可。 - 辅助功能权限:第一次运行时 macOS 会要求触发 osascript 的终端(Terminal / iTerm 等)获得 Accessibility 权限。系统设置 → 隐私与安全性 → 辅助功能 里勾上。
- UI 元素定位:脚本不写死字段序号,而是动态遍历登录 sheet 的
text fields,按description(secure text field= 密码框)区分账号框与密码框,对 App Store 版本升级更鲁棒。若大版本改版后仍失效,可用tell process "App Store" to get entire contents重新核对结构。 - iCloud 不受影响:只切换 App Store 的 Apple ID,不会动 iCloud 登录。
What ships with it
1 file 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.
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.
- 2mo ago First seen · 92 lines · 111 tokens per session scan A 3cd022558be8
switch-appleid is a skill published in the GitHub repository tobemaster56/liam-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 111 tokens to every session and 1,551 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
switch-appleid compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| switch-appleidtobemaster56/liam-skills | Skill | 5 | 4mo ago | MIT | A | 111 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 135k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 100k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 394k | today | MIT | A | 36 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 80k | 6d ago | MIT | A | 200 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 95 | Claude Code |
| chat-pet-sprite-creationmicrosoft/vscode | Skill | 195k | today | MIT | A | 53 | Claude Code, Codex |