setup

setup is a command for Claude Code from Lykhoyda/rn-dev-agent. It costs 41 tokens per session (6,181 once invoked), scanned A, original, MIT.

A project onboarding command for a React Native development agent. It checks required software and then adds the project-side configuration the agent needs.

In plain words
What is it for?
Use it when setting up a new React Native project, checking iOS or Android prerequisites, and configuring device-control support.
Why use it?
It finds setup problems early and handles required wiring so the plugin can work without manually following its documentation.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the rn-dev-agent plugin — 28 skills, 17 commands, 6 agents, 6 hooks shipped together

Good fit Use it when setting up a new React Native project, checking iOS or Android prerequisites, and configuring device-control support.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Lykhoyda/rn-dev-agent
Claude Code
/plugin install rn-dev-agent

Made for: Claude Code.

Or install rn-dev-agent, the plugin that ships this one along with the rest of its 28 skills, 17 commands, 6 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/lykhoyda/rn-dev-agent/setup/github.svg)](https://agentmods.dev/commands/lykhoyda/rn-dev-agent/setup)
Your own site
<a href="https://agentmods.dev/commands/lykhoyda/rn-dev-agent/setup"><img src="https://agentmods.dev/badge/commands/lykhoyda/rn-dev-agent/setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/lykhoyda/rn-dev-agent/setup"><img src="https://agentmods.dev/badge/commands/lykhoyda/rn-dev-agent/setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,181 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.06181
Opus 5.5 $0.00016 $0.02472
Sonnet 5.5 $0.00008 $0.01236
Haiku 4.5 $0.00004 $0.00618

Measured 1mo ago against content hash 129c94bb6688, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/claude-plugin/commands/setup.md · 231 lines

How it starts

The opening of the file, as written. The whole thing — 231 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Run the rn-dev-agent onboarding flow. Two phases: diagnose what's installed, then inject the project-side wiring the plugin needs. Most users don't read the README — this command does the wiring for them.

Phase 1 — Diagnose

Invoke the rn-setup skill (same as /rn-dev-agent:doctor). Walk every prerequisite check, starting at check 0, and present the table.

Abort thresholds. Only the rows that block ALL plugin functionality count as critical for onboarding:

  • CRITICAL (abort if any fail): source declaration for a non-Git app root (check 0 — name missing RN_DEV_AGENT_DECLARED_ROOT or RN_DEV_AGENT_DECLARED_MANIFESTS declarations and point to the session-authority contract before aborting injection or build), Node.js version, CDP bridge dependencies. Platform-specific device-control row: rn-fast-runner build artifacts on macOS targeting iOS, OR rn-android-runner build/install when targeting Android. Both runners ship in-tree — there is no external CLI to install; they build/install on first use. iOS-only users don't need rn-android-runner; Android-only users don't need rn-fast-runner. Without the relevant device-control row green, the plugin can't drive the simulator/emulator. Show the one-time pre-build commands (if any) and ask the user to run them, then re-run /rn-dev-agent:setup.
  • DEFERRED (warn but continue): Metro dev server, iOS/Android simulator/emulator, CDP connection. A clean-clone user running /setup immediately after git clone typically hasn't started Metro or booted a simulator yet — that's a normal onboarding state, not a failure. The CLAUDE.md / nav-ref / Zustand / scaffold injection steps don't need Metro running. Phase 2 Step E verification (cdp_status) WILL skip with a note if Metro+simulator aren't up; the user can come back to it later.
  • OPTIONAL (note, continue): ffmpeg, physical-device prerequisites when no devices connected, the off-platform device row (e.g. rn-android-runner on an iOS-only macOS setup → N/A).

Read the full file on GitHub · 231 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 129c94bb6688
  2. 1mo ago Changed 6feb084ef96c
  3. 1mo ago First seen · 231 lines · 41 tokens per session scan A 41229e5ae89d

Subscribe to this mod's changes

setup is a command published in the GitHub repository Lykhoyda/rn-dev-agent (20 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 6,181 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.