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 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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "macos-connectivity-restore" with this command: npx skills add jinntrance/macos-connectivity-restore

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 <username> 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'

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Eyes · 大眼看世界

全球热点事件监控与影响分析,含金融市场/股票行情分析。当用户说"大眼"、说"eyes"、说"查看热点"、"追踪事件"、"有什么大事"、"最近发生了什么"、"XX事件影响"、"帮我监控热点"、或用任何语言说类似含义时使用。也用于 Cron 定时推送热点摘要(早8点开盘前瞻/晚8点收盘复盘/整点扫描)。覆盖战争冲突、...

Registry SourceRecently Updated
General

短视频脚本创作助手

Use this skill when creating short-form video scripts for platforms like TikTok, Douyin, Instagram Reels, YouTube Shorts, or WeChat Channels. Activates on re...

Registry SourceRecently Updated
General

学习计划制定助手

Use this skill when creating personalized study plans, learning roadmaps, or skill acquisition schedules. Activates on requests like "make a study plan for X...

Registry SourceRecently Updated
General

Hit Preview EN

Analyzes English short video scripts for TikTok, YouTube Shorts, and Instagram Reels to predict hit potential and suggest improvements with AI or local fallb...

Registry SourceRecently Updated