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★ 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 withdebugger-status. - Android: a physical device, a TV emulator, or a dev client that loads from
localhostneedsadb -s <serial> reverse tcp:<port> tcp:<port>(default 8081). Iflist-devicesreturns 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 uses10.0.2.2and doesn't need it;react-native run-androidandexpo run:androidset 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-metroand thereact-profiler-*/profiler-*tools are unavailable there; seereferences/vega.mdof theargent-tv-interactskill. - Chromium (CDP): an Electron app booted with
boot-deviceelectronAppPath, or a Chromium browser exposing a CDP port (list-devicesfinds it). Pass itschromium-cdp-<port>id asdevice_id. Onlydebugger-connect,debugger-status,debugger-evaluate,debugger-log-registry,view-network-logsandview-network-request-detailswork 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
- 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-devicerefuses 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. - Keep
macos-app-<bundle id>asdevice_id, even on shared Metro. If a call returnsdevice_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
Установить 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic