system-prefs

Automate macOS system preferences using networksetup, pmset, defaults, and osascript.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/igot-ai/os-twin --skill system-prefs
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: system-prefs
Source: https://github.com/igot-ai/os-twin/tree/main/.agents/skills/roles/macos-automation-engineer/system-prefs
Command: npx skills add https://github.com/igot-ai/os-twin --skill system-prefs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manage macOS system preferences programmatically to automate daily tasks like adjusting volume, toggling Wi‑Fi, changing sleep settings, and applying defaults changes.

Core Features & Use Cases

  • Read and write macOS preferences using networksetup, pmset, defaults, and osascript.
  • Automate common tasks such as adjusting volume, toggling Wi‑Fi, enabling/disabling dark mode, and handling clipboard and notifications.
  • Use cases include setting up a workstation profile, applying accessibility tweaks, and scripting routine maintenance across user sessions.

Quick Start

Use ostwin mac system to set a preference, for example set volume to 50, enable dark mode, or toggle Wi‑Fi.

Frequently Asked Questions about system-prefs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate macOS system settings like Wi-Fi and sleep preferences?▼

Automate macOS system settings by executing commands like networksetup, pmset, and defaults to programmatically toggle Wi-Fi, adjust sleep timers, and manage user preferences across user sessions.

Can I use osascript to toggle dark mode and adjust volume on macOS?▼

Yes, osascript can automate common macOS tasks such as adjusting volume, toggling Wi-Fi, enabling or disabling dark mode, and handling clipboard and notifications within automated workstation setups.

What is the best way to script routine macOS maintenance across user sessions?▼

Scripting routine macOS maintenance is best handled by applying defaults changes and power settings programmatically, allowing you to establish a consistent workstation profile and automate daily tasks.

Does automating macOS preferences with pmset and networksetup require special permissions?▼

Automating macOS preferences with pmset and networksetup requires execution via the mac system interface and leverages appropriate permissions to modify system-level power and network configurations securely.

When should I not use defaults commands to change macOS system preferences?▼

You should avoid using defaults commands when a graphical user interface is required for validation, as automated preference management is designed for scripted routines rather than interactive system preference confirmation.