Macos Connectivity Restore
/install macos-connectivity-restore
MacOS Connectivity Restore
Purpose
This skill restores the two settings we previously repaired on this Mac:
- Universal Control /
Link to Mac or iPad - AirDrop availability plus AirDrop receiving mode
It is designed for managed Macs where these settings are forced by files under /Library/Managed Preferences.
What This Skill Changes
Root-level managed preferences:
com.apple.universalcontrol.plistDisable = false
com.apple.applicationaccess.plistallowUniversalControl = trueallowAirDrop = true
com.apple.NetworkBrowser.plistDisableAirDrop = false
User-level preferences:
com.apple.sharingdDiscoverableMode = "Contacts Only"
com.apple.NetworkBrowserDisableAirDrop = false
Scripts
scripts/restore-root.sh- Run as root. Fixes the managed preference files under
/Library/Managed Preferences.
- Run as root. Fixes the managed preference files under
scripts/restore-user.sh- Run as the logged-in user. Sets AirDrop receiving mode to
Contacts Only.
- Run as the logged-in user. Sets AirDrop receiving mode to
scripts/install-startup.sh- Installs a LaunchDaemon and LaunchAgent so these settings are restored automatically after reboot/login.
Default Workflow
When the user asks to reapply these settings:
- Run
scripts/restore-root.sh \x3Cusername>with admin privileges. - Run
scripts/restore-user.sh. - Read back the values to verify:
allowUniversalControl = 1allowAirDrop = 1DisableAirDrop = 0DiscoverableMode = "Contacts Only"
Persist Across Reboots
When the user asks to make the change stick after every reboot:
- Ensure this skill has been installed to a stable path under
~/.claude/skills/macos-connectivity-restore. - Run
scripts/install-startup.sh. - Confirm these startup items exist:
/Library/LaunchDaemons/com.joseph.macos-connectivity-restore.root.plist~/Library/LaunchAgents/com.joseph.macos-connectivity-restore.user.plist
Verification Commands
defaults read '/Library/Managed Preferences/com.apple.applicationaccess.plist' 2>/dev/null | rg 'allowAirDrop|allowUniversalControl'
defaults read '/Library/Managed Preferences/com.apple.NetworkBrowser.plist' 2>/dev/null
defaults read com.apple.sharingd 2>/dev/null | rg 'DiscoverableMode'
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install macos-connectivity-restore - 安装完成后,直接呼叫该 Skill 的名称或使用
/macos-connectivity-restore触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Macos Connectivity Restore 是什么?
Restores Universal Control and AirDrop settings on a managed Mac by resetting the relevant managed preference files and setting AirDrop discoverability to Co... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 47 次。
如何安装 Macos Connectivity Restore?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install macos-connectivity-restore」即可一键安装,无需额外配置。
Macos Connectivity Restore 是免费的吗?
是的,Macos Connectivity Restore 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Macos Connectivity Restore 支持哪些平台?
Macos Connectivity Restore 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Macos Connectivity Restore?
由 jinntrance(@jinntrance)开发并维护,当前版本 v0.1.0。