Capture a screenshot from the iOS Simulator and attach it to the conversation. Type /ss, ask Claude to take a screenshot, or just let it trigger automatically when a screenshot is needed — no permission prompts either way.
- macOS with Xcode installed
- iOS Simulator running
- Claude Code CLI
mkdir -p ~/.claude/skills/ss/scripts
cp skills/ss/SKILL.md ~/.claude/skills/ss/SKILL.md
cp skills/ss/scripts/screenshot.sh ~/.claude/skills/ss/scripts/screenshot.sh
chmod +x ~/.claude/skills/ss/scripts/screenshot.shOpen ~/.claude/settings.json and merge these entries:
{
"permissions": {
"allow": [
"Bash(bash ~/.claude/skills/ss/scripts/screenshot.sh)",
"Read(/tmp/claude-screenshots/*)"
],
"additionalDirectories": [
"/tmp/claude-screenshots"
]
}
}If you already have existing entries in
alloworadditionalDirectories, just append the new values to the arrays.
In any Claude Code session with an iOS Simulator running:
/ss
The screenshot is captured and attached to the conversation. You can then ask Claude to analyze the UI, find bugs, compare with a design, etc.
/sstriggers the skill- A bash script runs
xcrun simctl io booted screenshotto capture the screen - The screenshot is saved to
/tmp/claude-screenshots/latest.png - Claude reads the image and attaches it to the conversation