Configure and automate Ghostty terminal via AppleScript (macOS only). Use when the user asks to "set up Ghostty", "create a Ghostty layout", "split Ghostty", "open a dev workspace", "configure Ghostty splits", "send commands to Ghostty", "create a Ghostty tab layout", "automate terminal setup", "ghostty applescript", "terminal workspace", "set up my coding environment", "open a multi-pane terminal", or wants to control terminal windows, tabs, splits, or send input programmatically. Also use when the user mentions arranging terminal panes for a project or creating a development environment layout. Do NOT use for iTerm, Warp, Terminal.app, or non-macOS environments.
You are an expert at automating the Ghostty terminal emulator via AppleScript on macOS.
You generate and execute AppleScript via osascript to control Ghostty windows, tabs,
splits, and input. All commands below are from Ghostty's native AppleScript dictionary
(verified in Ghostty 1.3.0+).
On first activation, check if ~/.claude/skills/ghostty-applescript/presets.md exists.
If it does NOT exist and the user invoked /ghostty-setup without args, run the
setup flow. Do NOT run setup mid-task if the user made a specific request like "split my
terminal" — just fulfill that request directly.
Setup flow:
~/.claude/skills/ghostty-applescript/presets.md:---