{"skill":{"slug":"macos-connectivity-restore","displayName":"Macos Connectivity Restore","summary":"Restores Universal Control and AirDrop settings on a managed Mac by resetting the relevant managed preference files and setting AirDrop discoverability to Co...","description":"---\nname: macos-connectivity-restore\ndescription: Restores Universal Control and AirDrop settings on a managed Mac by resetting the relevant managed preference files and setting AirDrop discoverability to Contacts Only. Use when the user asks to reopen Link to Mac or iPad, re-enable Universal Control, unlock AirDrop, restore AirDrop receiving, or make these fixes persist after reboot.\n---\n\n# MacOS Connectivity Restore\n\n## Purpose\n\nThis skill restores the two settings we previously repaired on this Mac:\n\n1. Universal Control / `Link to Mac or iPad`\n2. AirDrop availability plus AirDrop receiving mode\n\nIt is designed for managed Macs where these settings are forced by files under `/Library/Managed Preferences`.\n\n## What This Skill Changes\n\nRoot-level managed preferences:\n\n- `com.apple.universalcontrol.plist`\n  - `Disable = false`\n- `com.apple.applicationaccess.plist`\n  - `allowUniversalControl = true`\n  - `allowAirDrop = true`\n- `com.apple.NetworkBrowser.plist`\n  - `DisableAirDrop = false`\n\nUser-level preferences:\n\n- `com.apple.sharingd`\n  - `DiscoverableMode = \"Contacts Only\"`\n- `com.apple.NetworkBrowser`\n  - `DisableAirDrop = false`\n\n## Scripts\n\n- `scripts/restore-root.sh`\n  - Run as root. Fixes the managed preference files under `/Library/Managed Preferences`.\n- `scripts/restore-user.sh`\n  - Run as the logged-in user. Sets AirDrop receiving mode to `Contacts Only`.\n- `scripts/install-startup.sh`\n  - Installs a LaunchDaemon and LaunchAgent so these settings are restored automatically after reboot/login.\n\n## Default Workflow\n\nWhen the user asks to reapply these settings:\n\n1. Run `scripts/restore-root.sh <username>` with admin privileges.\n2. Run `scripts/restore-user.sh`.\n3. Read back the values to verify:\n   - `allowUniversalControl = 1`\n   - `allowAirDrop = 1`\n   - `DisableAirDrop = 0`\n   - `DiscoverableMode = \"Contacts Only\"`\n\n## Persist Across Reboots\n\nWhen the user asks to make the change stick after every reboot:\n\n1. Ensure this skill has been installed to a stable path under `~/.claude/skills/macos-connectivity-restore`.\n2. Run `scripts/install-startup.sh`.\n3. Confirm these startup items exist:\n   - `/Library/LaunchDaemons/com.joseph.macos-connectivity-restore.root.plist`\n   - `~/Library/LaunchAgents/com.joseph.macos-connectivity-restore.user.plist`\n\n## Verification Commands\n\n```bash\ndefaults read '/Library/Managed Preferences/com.apple.applicationaccess.plist' 2>/dev/null | rg 'allowAirDrop|allowUniversalControl'\ndefaults read '/Library/Managed Preferences/com.apple.NetworkBrowser.plist' 2>/dev/null\ndefaults read com.apple.sharingd 2>/dev/null | rg 'DiscoverableMode'\n```\n","tags":{"latest":"0.1.0"},"stats":{"comments":0,"downloads":325,"installsAllTime":0,"installsCurrent":0,"stars":0,"versions":1},"createdAt":1777792760335,"updatedAt":1779076182026},"latestVersion":{"version":"0.1.0","createdAt":1777792760335,"changelog":"- Initial release of macos-connectivity-restore.\n- Restores Universal Control and AirDrop settings on managed Macs by resetting relevant managed preference files.\n- Sets AirDrop discoverability to \"Contacts Only.\"\n- Includes scripts to fix settings at both root and user levels.\n- Optionally installs startup items to persist fixes across reboots.","license":"MIT-0"},"metadata":null,"owner":{"handle":"jinntrance","userId":"s17e1wmadbdx8ccxwfheq13sc183fvb0","displayName":"jinntrance","image":"https://avatars.githubusercontent.com/u/2414660?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1780090734031}}