skills/macpilot-window-manager/SKILL.md
Manage macOS windows with MacPilot. List, move, resize, snap, minimize, fullscreen, and arrange application windows. Supports multi-display and Spaces.
npx skillsauth add adhikjoshi/macpilot-skills macpilot-window-managerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use MacPilot to control application windows on macOS - list, move, resize, snap to positions, minimize, fullscreen, and manage across Spaces and displays.
Use this skill when:
macpilot window list --json # All visible windows
macpilot window list --app "Safari" --json # Windows for specific app
macpilot window list --all-spaces --json # Include all Spaces
macpilot window focus "Safari" --json # Focus app's main window
macpilot window focus "Safari" --title "GitHub" --json # Focus by title substring
macpilot window new "Safari" --json # Open new window in app
macpilot window move "Safari" 100 50 --json # Move to x=100, y=50
macpilot window resize "Safari" 1200 800 --json # Set width=1200, height=800
macpilot window close --app "Safari" --json # Close frontmost window
macpilot window minimize "Safari" --json # Minimize to Dock
macpilot window fullscreen "Safari" --json # Toggle fullscreen
macpilot window snap "Safari" left --json # Left half of screen
macpilot window snap "Safari" right --json # Right half of screen
macpilot window snap "Safari" top-left --json # Top-left quarter
macpilot window snap "Safari" top-right --json # Top-right quarter
macpilot window snap "Safari" bottom-left --json # Bottom-left quarter
macpilot window snap "Safari" bottom-right --json # Bottom-right quarter
macpilot window snap "Safari" center --json # Center of screen
macpilot window snap "Safari" maximize --json # Fill entire screen
macpilot window restore --save --json # Save all window positions
macpilot window restore --json # Restore saved positions
macpilot window restore --save --app "Safari" # Save specific app only
macpilot space list --json # List all Spaces
macpilot space switch left --json # Switch to left Space
macpilot space switch right --json # Switch to right Space
macpilot space switch 2 --json # Switch to Space 2
macpilot space bring --app "Slack" --json # Bring app to current Space
macpilot window snap "Safari" left
macpilot window snap "VS Code" right
macpilot window snap "Safari" top-left
macpilot window snap "Terminal" top-right
macpilot window snap "Finder" bottom-left
macpilot window snap "Notes" bottom-right
# Maximize the presentation app
macpilot window snap "Keynote" maximize
# Or go fullscreen
macpilot window fullscreen "Keynote"
# Editor on left 60%, terminal on right 40%
macpilot window move "VS Code" 0 25
macpilot window resize "VS Code" 1152 775
macpilot window move "Terminal" 1152 25
macpilot window resize "Terminal" 768 775
# Bring scattered windows back to current Space
macpilot space bring --app "Safari"
macpilot space bring --app "Terminal"
macpilot space bring --app "Finder"
# Before a meeting - save your layout
macpilot window restore --save
# After the meeting - restore it
macpilot window restore
window list --json to see current positions/sizes before rearrangingsnap command uses the display where the window currently resideswindow focus is preferred over app focus when multiple windows existdisplay-info --json to get screen dimensions for precise positioningtools
Inspect and interact with macOS UI elements using MacPilot accessibility APIs. Find buttons, text fields, labels, and other elements by role, label, or position, then click, read, or modify them.
content-media
Capture screenshots and extract text via OCR using MacPilot. Take full-screen, region, or window screenshots, and recognize text in images or screen areas with multi-language support.
tools
Handle macOS file dialogs (Open, Save, Print) with MacPilot. Navigate folders, select files, set filenames, and dismiss dialogs programmatically in any application.
tools
Core macOS automation skill using MacPilot CLI. Enables Claude Code to control apps, type text, click elements, run shell commands, and automate workflows on macOS via the `macpilot` command.