IOS Screenshot
Testing & Qualityios-screenshotIOS Screenshot is an Agent Skill for testing & quality published in the keybase/client repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
This skill should be used when the user asks to "take an iOS screenshot", "screenshot the simulator", "show me the iOS app", "what does the screen look like", or mentions checking the iOS simulator UI visually.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/keybase/client/blob/HEAD/skill/ios-screenshot/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/ios-screenshot, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Take a screenshot of the booted iOS simulator and display it.
Steps
-
Capture the screenshot from the booted iOS simulator:
xcrun simctl io booted screenshot /tmp/ios-screenshot-full.png -
Resize to 800px max dimension for token efficiency (reduces ~90% of tokens vs full 2556px resolution while staying legible):
sips -Z 800 /tmp/ios-screenshot-full.png --out /tmp/ios-screenshot.png -
Use the Read tool to display
/tmp/ios-screenshot.pngto the user. -
Clean up the full-size temporary file:
rm /tmp/ios-screenshot-full.png
Error Handling
- If
xcrun simctl io booted screenshotfails, tell the user no iOS simulator is currently booted and suggest they launch one (e.g. via Xcode orxcrun simctl boot "iPhone 17 Pro"). - If
sipsfails, fall back to displaying the full-size screenshot directly.