argent-react-native-app-workflow
БесплатноБез исполняемых скриптовНе проверенDevelop and debug React Native apps on iOS simulator or Android emulator. Use when starting the app, debugging Metro, fixing builds, diagnosing runtime…
от software-mansion★ 3 279 звёзд на GitHubОб этом скилле
Physical iPhone (kind: "device"): Metro debugging and profiling tools reject it. Use a simulator. Exception: measure and profile app launch on the iPhone with native-profiler-launch-analysis (argent-native-profiler §4).
react-native-macos app: start Metro (§1.2), then follow argent-macos-app-interact instead of run-macos.
1. Starting the React Native App
1.1 Read the project's configuration first
Before running commands, read the project's build and run setup: every package.json script (custom scripts such as start:local, start:dev, ios, build:ios or flavors take priority over the defaults) and metro.config.js (a non-default port or watchFolders). Do NOT default to npx react-native … or npx expo … without checking. Before the first build, install dependencies if node_modules or ios/Pods is missing.
If the project structure is convoluted, ask the user before proceeding.
Once you know how the project starts Metro, builds and runs the app, and what environment setup it needs, reuse that for the rest of the session instead of rediscovering it.
1.2 Start Metro
- If Metro is already running on the project's port, do not start another (§2).
- Start it in the background with the project's start script (e.g.
npm run start:local,yarn start:dev). With none:npx expo startin an Expo project,npx react-native startotherwise. - Verify with
debugger-status:status: "connected"orreason: "no_app_connected"both mean Metro is up (the app just hasn't attached yet);reason: "metro_not_running"means Metro is not reachable.
1.3 Run the App
Start the app only once Metro is ready, from the project root. Use the project's build/run script if one exists (e.g. npm run ios, npm run android, yarn ios:debug); fall back to the defaults below only if there is none.
Pass the target device explicitly, taken from list-devices: use the platform the user named, and do not pick a cabled physical phone just because it is listed. If the device isn't booted yet, boot it with boot-device (see argent-ios-simulator-setup / argent-android-emulator-setup).
npx expo run:ios --device <UDID> # Expo
npx expo run:android --device <avdName from list-devices>
npx react-native run-ios --udid <UDID> # bare RN (needs @react-native-community/cli)
npx react-native run-android --deviceId=<adb-serial>
2. Metro Already on the Port?
The default port is 8081 unless the project configures another. Check it with lsof -i :<port>. If something is listening, debugger-status tells you whether it is Metro: status: "connected" or reason: "no_app_connected" means it is. reason: "metro_not_running" while lsof shows a listener means the port is held by something that is not Metro; the result's detail shows what answered (... (got: ...)). In that case ask the user whether you may kill the process.
To stop a Metro process, use the stop-metro tool.
3. Build, Reload, Reinstall
| Situation | Action |
|---|---|
| JS/React only changed | debugger-reload-metro, or restart-app. No rebuild. |
| Native code, pods or project config changed | Rebuild with the project's run command (Metro can stay running). |
App needs reinstalling from a .app / .apk |
reinstall-app. |
When a build fails (e.g. xcodebuild exit code 65), try the simplest fix first: clean the build folder and retry, then clear caches and reinstall dependencies and pods.
After 2-3 failed build or run attempts, STOP and ask the user for guidance. The user may know about required env vars, Xcode version requirements, custom build configurations, monorepo-specific setup, or required external services. If the correct build approach is not obvious, ask the user early rather than guessing.
4. Runtime Problems in the App
| Problem type | Where to look |
|---|---|
| JavaScript errors / logs | debugger-log-registry for a summary and the newest entries, then Grep its log file for more |
| React component hierarchy | debugger-component-tree, or debugger-inspect-element at logical pixel coordinates (not normalized 0-1) |
| App state | debugger-evaluate to run JavaScript in the app's runtime |
| Native crashes / native stack | iOS: `~/Library/Logs/Di |
Установить argent-react-native-app-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл argent-react-native-app-workflow?
Develop and debug React Native apps on iOS simulator or Android emulator. Use when starting the app, debugging Metro, fixing builds, diagnosing runtime errors, or running tests.
Как установить скилл argent-react-native-app-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл argent-react-native-app-workflow запускает скрипты?
Нет, скилл состоит только из инструкций (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