Command Palette

Search for a command to run...

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

argent-metro-debugger

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

Debug JS with Argent in React Native (iOS, Android, Vega, macOS) or Chromium/Electron (CDP). Use when reading console logs, inspecting React trees, evaluating…

software-mansionот software-mansion★ 3 279 звёзд на GitHub

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

1. Prerequisites

Physical iPhone: not supported; every debugger-* tool rejects kind: "device".

  • React Native (iOS / Android): Metro running (default localhost:8081) and the app connected to it. Verify with debugger-status.
  • Android: a physical device, a TV emulator, or a dev client that loads from localhost needs adb -s <serial> reverse tcp:<port> tcp:<port> (default 8081). If list-devices returns a note about the adb server, prefix the command as the note shows. Run it again after a reboot or an adb restart; Argent doesn't restore it. A bare RN app on a phone emulator uses 10.0.2.2 and doesn't need it; react-native run-android and expo run:android set it up themselves.
  • Vega (Fire TV): a Debug .vpkg (a Release build never attaches) and Metro reachable from the device (vega device start-port-forwarding --port 8081 --forward false). debugger-component-tree, debugger-inspect-element, debugger-reload-metro and the react-profiler-* / profiler-* tools are unavailable there; see references/vega.md of the argent-tv-interact skill.
  • Chromium (CDP): an Electron app booted with boot-device electronAppPath, or a Chromium browser exposing a CDP port (list-devices finds it). Pass its chromium-cdp-<port> id as device_id. Only debugger-connect, debugger-status, debugger-evaluate, debugger-log-registry, view-network-logs and view-network-request-details work there; the other debugger and profiler tools are React Native only.

2. Tools

Use the device_id from list-devices and keep the same ID and Metro port across calls. On shared Metro, if debugger-connect cannot match an iOS simulator UDID or Android serial, it lists logical IDs. Choose the requested device's logicalDeviceId for subsequent debugger calls. If you later tear down this session, include that ID in stop-all-simulator-servers's devices.

Tool Use for
debugger-status Diagnosing the connection. Call it first when anything fails
debugger-connect Opening the session and starting console capture
debugger-reload-metro Reloading the JS bundle of an attached app
restart-app Relaunching the app when it lost its Metro connection
debugger-component-tree Component names and testIDs on screen. Find tap targets with describe
debugger-inspect-element Which component is at a point and where it is defined (source file:line). Takes logical pixels, not normalized 0–1
debugger-log-registry Console log summary, the newest entries inline, and the log file path (§4)
debugger-evaluate Running a JS expression in the app runtime

A component missing from debugger-component-tree? includeSkipped only adds counts of what was pruned. Use onScreenOnly: false for one off screen, or debugger-inspect-element at its point for one on screen.

React Native Mac apps

  1. Start Metro before launching a Debug Hermes build of react-native-macos 0.76+ or React Native for Mac Catalyst. Launch Mac Catalyst through Argent so it can identify its runtime. If boot-device refuses a hardened react-native-macos build, have the user start it from Xcode. JavaScript tools still work. UI inspection and gestures require a build Argent can control.
  2. Keep macos-app-<bundle id> as device_id, even on shared Metro. If a call returns device_mismatch, check that the Debug bundle loaded from the requested Metro port. The IDs in the error identify other targets.

Use describe for tap targets. The React tools use the root with the most components, which can be in a different window. Before using a point, verify that both tools are looking at the same window. To inspect a tap point from the React tree, multiply its fractions by the width and height in Screen: WxH. The resulting points include the title bar. On the old architecture (Paper), native views around the React root can shift those points. Check the returned component against the intended control.

For JavaScript capture in an app started from Xcode, use macos-app-<bundle id> as udid and select layer: "js" on start and stop. list-devices only lists Mac apps launched through Argent. Native capture needs a suppo

Полный SKILL.md на GitHub

Установить argent-metro-debugger в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл argent-metro-debugger?

Debug JS with Argent in React Native (iOS, Android, Vega, macOS) or Chromium/Electron (CDP). Use when reading console logs, inspecting React trees, evaluating JS, or checking HTTP requests.

Как установить скилл argent-metro-debugger?

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

Скилл argent-metro-debugger запускает скрипты?

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

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

Сравнить argent-metro-debugger с