← Back to Skills Marketplace
jinntrance

Macos Connectivity Restore

by jinntrance · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
47
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install macos-connectivity-restore
Description
Restores Universal Control and AirDrop settings on a managed Mac by resetting the relevant managed preference files and setting AirDrop discoverability to Co...
README (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'
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install macos-connectivity-restore
  3. After installation, invoke the skill by name or use /macos-connectivity-restore
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug macos-connectivity-restore
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 47 downloads so far.

How do I install Macos Connectivity Restore?

Run "/install macos-connectivity-restore" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Macos Connectivity Restore free?

Yes, Macos Connectivity Restore is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Macos Connectivity Restore support?

Macos Connectivity Restore is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Macos Connectivity Restore?

It is built and maintained by jinntrance (@jinntrance); the current version is v0.1.0.

💬 Comments