Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

onesec-wda

БесплатноБез исполняемых скриптовНе проверен

Automate "one sec" app-blocking setup on iOS via Shortcuts automations using WebDriverAgent (WDA). Use when the user wants to bulk-configure one sec for…

plurigridот plurigrid★ 73 звезды на GitHub

Об этом скилле

one sec WDA Automation

Bulk-create iOS Shortcuts automations that trigger "one sec" when apps are opened, driven by WebDriverAgent.

Prerequisites

  1. iPhone connected via USB with developer mode enabled
  2. WebDriverAgent running via xcodebuild:
    xcodebuild test-without-building \
      -xctestrun <path-to>/WebDriverAgentRunner_iphoneos*.xctestrun \
      -destination id=<DEVICE_UDID> \
      -allowProvisioningUpdates
    
  3. WDA accessible at http://localhost:8100 (use pymobiledevice3 remote start-tunnel + port forward if needed)
  4. one sec app installed on the device with Shortcuts integration enabled

Usage

# Test with one app first
python3 /path/to/onesec_setup.py --test

# Run for all apps
python3 /path/to/onesec_setup.py

The script is at: <skill-dir>/scripts/onesec_setup.py

Workflow per App

  1. Tap "+" on Shortcuts Automation tab
  2. Select "App" trigger
  3. Search for and select the target app
  4. Confirm "Is Opened" trigger, tap Done
  5. Search for "one sec" action
  6. Select "Activate one sec (when app opens)"
  7. Tap Done to save

Screenshots are saved to /tmp/onesec_step* and /tmp/onesec_fail* for debugging.

Customization

Edit APPS_TO_PROTECT list in the script. Move completed apps to ALREADY_DONE to skip them on re-runs.

WDA Helpers

The script provides reusable WDA functions (no pip dependencies):

  • wda(method, path, data) — raw HTTP to WDA
  • find(using, value) / find_one(using, value) — element lookup
  • tap(element_id) / tap_name(name) / tap_label(label) — tap elements
  • type_text(text) — type into active element
  • swipe(x1, y1, x2, y2) — drag gesture
  • screenshot(path) — save screenshot as PNG

Troubleshooting

  • WDA connection refused: Ensure xcodebuild test is running and port 8100 is reachable
  • pymobiledevice3 tunnel timeout: Restart tunnel with sudo pymobiledevice3 remote start-tunnel
  • Element not found: Check screenshots in /tmp/onesec_fail_* to see actual UI state
  • App not in picker: App name must match exactly as shown on device home screen

Установить onesec-wda в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл onesec-wda?

Automate "one sec" app-blocking setup on iOS via Shortcuts automations using WebDriverAgent (WDA). Use when the user wants to bulk-configure one sec for multiple apps on a connected iPhone.

Как установить скилл onesec-wda?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл onesec-wda запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить onesec-wda с