Przejdź do treści
Biblioteka skilli
AI i agenci · Automatyzacja

iphone-mirroring

/iphone-mirroring

Steruje aplikacją iPhone Mirroring na Macu z poziomu agenta: robi zrzuty ekranu, dotyka, przewija i sprawdza każdy krok na świeżym obrazie.

Licencja
MIT
Ostatnia zmiana repozytorium
10.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
6
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 10.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/iphone-mirror.swift

Co robi i kiedy

Steruje aplikacją iPhone Mirroring na Macu z poziomu agenta: robi zrzuty ekranu, dotyka, przewija i sprawdza każdy krok na świeżym obrazie.

Wyzwalacze z opisu

iPhone MirroringEspelhamento do iPhone
Oryginalny opis (EN)

Drive the macOS iPhone Mirroring app from a coding agent. Screenshot the phone, tap, scroll, swipe, open Home / App Switcher / Spotlight, and check every step against a fresh screenshot. Use when the user wants you to read or operate an iPhone app through iPhone Mirroring on a Mac, such as app-only stats (Instagram Reel insights, creator dashboards), settings, or a quick check of a mobile UI. Also use when they mention "iPhone Mirroring", "Espelhamento do iPhone", or controlling their phone from the Mac.

Jak działa

  1. The tool
  2. Setup (once per machine)
  3. Core loop: one action, then verify
  4. Rules
  5. Status
  6. References
Sekcje z nagłówków SKILL.md, w oryginale · 84 linii, 826 słów
Podgląd SKILL.md
---
name: iphone-mirroring
description: Drive the macOS iPhone Mirroring app from a coding agent. Screenshot the phone, tap, scroll, swipe, open Home / App Switcher / Spotlight, and check every step against a fresh screenshot. Use when the user wants you to read or operate an iPhone app through iPhone Mirroring on a Mac, such as app-only stats (Instagram Reel insights, creator dashboards), settings, or a quick check of a mobile UI. Also use when they mention "iPhone Mirroring", "Espelhamento do iPhone", or controlling their phone from the Mac.
license: MIT
compatibility: macOS 15+ with the iPhone Mirroring app and Xcode Command Line Tools (swiftc). The app running the agent's shell needs Accessibility and Screen & System Audio Recording permissions.
metadata:
  version: "1.0.0"
---

# iPhone Mirroring

You control the user's real iPhone through the iPhone Mirroring window on their Mac. You see the phone only
through screenshots and act only through synthetic mouse events. Be slow, verify everything, and change
nothing the user did not ask you to change.

## The tool

`scripts/iphone-mirror` lives in this skill's folder. It is a wrapper that compiles `scripts/iphone-mirror.swift`
with `swiftc` on first run (about 10 s) and caches the binary. Use its absolute path:

```bash
IM="<this skill's folder>/scripts/iphone-mirror"   # if the exec bit is lost: IM="bash <folder>/scripts/iphone-mirror"
$IM help
```

| Command | Use |
|---|---|
| `$IM doctor` | Check permissions, host app, window and scale. Run first. |
| `$IM shot <png>` | Screenshot of the phone. 1 px = 1 window point, so coordinates read off it go straight to `tap`. |
| `$IM tap <x> <y> [--shot <png>]` | Tap. `--shot` takes a screenshot 1 s later. |
| `$IM scroll -60 [--at x y] [--times 8]` | Negative = further down the page. Waits 2.5 s for momentum by default. |
| `$IM menu home\|app-switcher\|spotlight` | iPhone Mirroring menu actions (localized names handled). `menu --list` shows all. |
| `$IM wait-settle` | Wait until the screen stops changing. Playing videos never settle: use `--region`. |
| `$IM has-color <png> x1 y1 x2 y2 '#RRGGBB'` | Cheap check of which screen you are on (exit 0 = found). |
| `$IM join <out> a.png b.png --trim-bars` | Several screenshots side by side, to read long pages with fewer tokens. |

All actions take `--dry-run`, which prints the target point and sends nothing. Exit codes: 2 = app or window
missing, 3 = permission or capture failure, 4 = timeout or not found.

## Setup (once per machine)

1. Run `$IM doctor`, then fix each `[FAIL]` by asking the user. You cannot grant permissions yourself.
   - The **host app** that doctor names (Terminal, iTerm, Warp, Ghostty, VS Code, Cursor...) needs
     **Accessibility** and **Screen & System Audio Recording** (System Settings > Privacy & Security).
   - Screen Recording only applies after the host app is **fully quit (cmd+Q) and reopened**, which ends
     this session. Tell the user to do that and resume afterwards.
   - `$IM doctor --prompt` asks macOS to show the permission dialogs.
2. iPhone Mirroring must be open (`open -b com.apple.ScreenContinuity`), connected, and visible on a display.
   Other windows may cover it; every action raises it first.
3. **If taps do nothing at the start of a session, ask the user to click once inside the iPhone
   Mirroring window**, then retry. Synthetic events can be ignored until the first physical click.

## Core loop: one action, then verify

1. `$IM shot /tmp/im/00.png` and look at the image (read it with your image or file tool).
2. Pick **one** action and read its coordinates off **that** image.
3. Act and capture in one step: `$IM tap 177 391 --shot /tmp/im/01.png`.
4. Look at the new screenshot. Check that the screen is the one you expected (title, selected tab, a known
   button). If it is not, back out (top-left back chevron, or `$IM menu home`) and try again.
5. Repeat. Never chain several blind actions, and never reuse coordinates from an older screenshot after
   anything moved.

## Rules

- **Read-only by default.** Never tap anything that posts, likes, follows, comments, sends, shares, buys,
  subscribes, boosts/promotes, deletes, or changes settings unless the user explicitly asked for that exact
  action. Do not double-tap on media: many apps treat a double tap as a like. If a dialog asks for a payment,
  a permission or a confirmation, stop and ask the user.
- **After scrolling, wait** (built in: 2.5 s). A tap during scroll momentum only stops the scroll.
- **The same tap can open different screens** (in Instagram, a grid item sometimes opens the Reels viewer and
  sometimes the Posts list). Verify, then retry or back out. In scripts, use `has-color` as the check.
- **Coordinates come from the latest `shot`.** If you captured with `--native` on a Retina display, add
  `--ref <that.png>` to the action.
- Keep screenshots in a temporary folder and **delete them when done**. They show private data.

## Status

The tap and scroll event sequences were proven live with prototype scripts. In this CLI, live tests have
covered `doctor`, `info` and window detection so far. Successful `shot`, `tap`, `scroll` and `menu` still need
a live run on a machine with both permissions. `swipe`, long press, `menu paste` and keyboard typing are
**experimental**: confirm each with a screenshot and fall back to taps.

## References

- [references/pitfalls.md](references/pitfalls.md): every failure seen so far and its fix (permissions,
  taps that land in the wrong place, scroll, menus, coordinates, multiple displays). Read it when something
  does not behave.
- [references/scripting.md](references/scripting.md): turning a manual flow into a script that retries
  (verify-by-pixel loops, joining pages).
- [references/instagram-insights.md](references/instagram-insights.md): worked recipe for reading Instagram
  Reel insights in the iOS app (data the web does not show).
Pliki w paczce (6)
  • SKILL.md 6 KB
  • references/instagram-insights.md 3 KB
  • references/pitfalls.md 7 KB
  • references/scripting.md 3 KB
  • scripts/iphone-mirror 2 KB
  • scripts/iphone-mirror.swift 42 KB

Wersje

W bazie nie ma innych skilli o nazwie iphone-mirroring.

Migawka bazy z 13.11.2026 · wersja paczki bb17597e0dfb (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 95iphone-mirror
    Podgląda iPhone'a przez okno iPhone Mirroring na Macu, czyta ekran, klika w elementy i instaluje aplikacje oraz czyta logi z wersji deweloperskiej.
  • 85computercub
    Steruje aplikacjami na Macu i stronami, do których przeglądarka nie sięga, oraz sprawdza iPhone przez lustrzane odbicie, gdy zadanie tego wymaga.
  • 100terminal-phone
    Obsługuje symulator iOS lub podłączony iPhone: instaluje, uruchamia, klika i weryfikuje aplikację z terminala.
  • 82app-review-video
    Nagrywa wideo demonstracyjne do przeglądu App Store dla lpm Link: aplikację na Macu obok iPhone'a sterowanego przez komputer.
  • 95seeu
    Obsługuje aplikacje na Macu w tle: patrzy na ekran, klika, pisze i przewija, bez przejmowania myszy i zmiany aktywnej aplikacji.
  • 100ghosthand
    Steruje podłączonym do Maca iPhone'em: zrzuty ekranu, OCR, dotyk, przewijanie, wpisywanie, pliki i zdjęcia przez USB i Bluetooth.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.