← 返回 Skills 市场
jinntrance

Macos Connectivity Restore

作者 jinntrance · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
47
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

MacOS Connectivity Restore

Purpose

This skill restores the two settings we previously repaired on this Mac:

  1. Universal Control / Link to Mac or iPad
  2. 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.plist
    • Disable = false
  • com.apple.applicationaccess.plist
    • allowUniversalControl = true
    • allowAirDrop = true
  • com.apple.NetworkBrowser.plist
    • DisableAirDrop = false

User-level preferences:

  • com.apple.sharingd
    • DiscoverableMode = "Contacts Only"
  • com.apple.NetworkBrowser
    • DisableAirDrop = false

Scripts

  • scripts/restore-root.sh
    • Run as root. Fixes the managed preference files under /Library/Managed Preferences.
  • scripts/restore-user.sh
    • Run as the logged-in user. Sets AirDrop receiving mode to Contacts Only.
  • 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:

  1. Run scripts/restore-root.sh \x3Cusername> with admin privileges.
  2. Run scripts/restore-user.sh.
  3. Read back the values to verify:
    • allowUniversalControl = 1
    • allowAirDrop = 1
    • DisableAirDrop = 0
    • DiscoverableMode = "Contacts Only"

Persist Across Reboots

When the user asks to make the change stick after every reboot:

  1. Ensure this skill has been installed to a stable path under ~/.claude/skills/macos-connectivity-restore.
  2. Run scripts/install-startup.sh.
  3. 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'
安全使用建议
Treat this as a privileged Mac administration tool. Install or run it only if you are authorized to override managed AirDrop/Universal Control settings. Prefer one-time manual repair over persistent startup installation unless you truly need it, and if persistence is used, make sure the root LaunchDaemon points to a root-owned, non-user-writable script and that you know how to uninstall the launch jobs.
功能分析
Type: OpenClaw Skill Name: macos-connectivity-restore Version: 0.1.0 This skill is designed to bypass MDM (Mobile Device Management) policies on macOS by modifying system-level preference files in `/Library/Managed Preferences`. It establishes persistence by installing a LaunchDaemon and a LaunchAgent via `scripts/install-startup.sh`, using `osascript` to prompt the user for administrator privileges. While the stated intent is to restore AirDrop and Universal Control functionality, the methods used to override organizational security controls and maintain root-level persistence are high-risk behaviors.
能力评估
Purpose & Capability
The scripts are coherent with the stated purpose: they target Universal Control and AirDrop preference files and do not show network access or data exfiltration. The notable issue is that the purpose itself involves changing managed macOS policy settings.
Instruction Scope
The default workflow asks the agent to run root/admin scripts that mutate /Library/Managed Preferences. The persistence workflow is user-triggered, but it lacks uninstall/rollback instructions for the launch jobs.
Install Mechanism
There is no formal install spec, but the included installer writes LaunchDaemon/LaunchAgent plists and bootstraps them. The root LaunchDaemon points back to the skill’s script directory rather than to a protected root-owned copy.
Credentials
The skill is macOS-specific and depends on macOS tools such as launchctl, osascript, defaults, and PlistBuddy, but the metadata declares no OS restriction or required binaries. This is an under-declaration rather than hidden behavior.
Persistence & Privilege
The skill can install persistent jobs that run automatically at boot/login, including a system LaunchDaemon with root authority.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install macos-connectivity-restore
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /macos-connectivity-restore 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
- Initial release of macos-connectivity-restore. - Restores Universal Control and AirDrop settings on managed Macs by resetting relevant managed preference files. - Sets AirDrop discoverability to "Contacts Only." - Includes scripts to fix settings at both root and user levels. - Optionally installs startup items to persist fixes across reboots.
元数据
Slug macos-connectivity-restore
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论