Programmatic screenshot automation for macOS that actually works. Uses Swift's CoreGraphics to get real window IDs, AppleScript to control application state (zoom levels, scroll position, sheet selection in Excel), then screencapture to grab the pixels. The documentation is refreshingly honest about what fails: System Events can't get the right window format, PyObjC isn't worth the dependency hassle, and you need Screen Recording permissions or nothing works. If you're building documentation pipelines or need to capture specific states of Excel workbooks without clicking around manually, this gives you the three-step workflow that doesn't fight the OS. Just remember to add sleep delays between AppleScript commands and captures.
npx skills add https://github.com/daymade/claude-code-skills --skill capture-screen