Claude-skill-registry iphone-screen-capture
Start the iPhone screen capture app to mirror a connected iPhone's screen on macOS. Use when the user wants to view their iPhone screen, mirror their device, or start screen capture.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/iphone-screen-capture" ~/.claude/skills/majiayu000-claude-skill-registry-iphone-screen-capture && rm -rf "$T"
manifest:
skills/data/iphone-screen-capture/SKILL.mdsource content
iPhone Screen Capture
Overview
Native macOS app that mirrors a connected iPhone's screen on the Mac desktop using AVFoundation. Features an integrated console for live app logs via
pymobiledevice3.
When to Use
Invoke this skill when the user:
- Asks to "start screen capture"
- Wants to "see their iPhone screen"
- Wants to "mirror their iPhone"
- Mentions viewing or displaying their connected device
- Says "show me my phone"
Prerequisites
- iPhone connected via USB
- Device trusted (tap "Trust This Computer" on iPhone)
installed for console logs (pymobiledevice3
)pip3 install pymobiledevice3
Instructions
-
Navigate to the screen capture directory:
cd miso/platforms/ios/development/screen-capture/imp -
Run the screen capture script:
./iphone_screencap.sh
Features
- Borderless window (390x844) styled like an iPhone
- Console toggle: Click ">" button in top-right to open live log panel
- Click to resize: Click window to toggle between full and half size
- Draggable: Move window by clicking and dragging anywhere
- Live logs: Console shows
prefixed logs via[APP]pymobiledevice3 syslog
What to Tell the User
- A borderless window will appear showing their iPhone screen
- Click the ">" button to open the console panel with live logs
- Click anywhere on the window to toggle full/half size
- Close window or Cmd+Q to quit
Taking Screenshots
./screenshot.sh /tmp/screenshot.png
Reading Logs (for Claude)
When console is open, logs stream via pymobiledevice3. Claude can also read logs with:
pymobiledevice3 syslog live 2>/dev/null | grep "\[APP\]" | head -20
Troubleshooting
iPhone screen not showing:
- Check USB connection
- Ensure iPhone is unlocked
- Accept "Trust This Computer" prompt
- Disconnect and reconnect device
Console not working:
- Install pymobiledevice3:
pip3 install pymobiledevice3 - Check device is trusted
Files
- Native macOS app sourcemain.swift
- Compiles the Swift appbuild.sh
- Builds (if needed) and launchesiphone_screencap.sh
- Captures device screenshotscreenshot.sh