nav-graph
Map the navigation topology of a React Native app. Supports scanning the live navigation tree, reading cached graphs, finding specific screens, and programmatic navigation.
/rn-dev-agent:nav-graph [subcommand] [screen-name]Subcommands
Section titled “Subcommands”scan (default)
Section titled “scan (default)”Scan the live app to build or update the navigation graph.
/rn-dev-agent:nav-graph/rn-dev-agent:nav-graph scanDisplays navigator count, screen count, coverage percentage, and a list of navigators with their active screens.
Display the full cached navigation tree.
/rn-dev-agent:nav-graph readOutputs a tree view like:
root (tab) — 3 screens [active: Home] ├── Home (stack) — 4 screens [active: ProductList] │ ProductList, ProductDetail, Search, Categories ├── Cart (native-stack) — 3 screens │ CartList, Checkout, OrderConfirmation └── Profile (stack) — 2 screens ProfileView, EditProfileLocate a specific screen in the graph and get navigation suggestions.
/rn-dev-agent:nav-graph find ProductDetailShows the screen’s navigator, path from root, params, and suggests navigation approach (tab switch, stack push, or deep link).
navigate
Section titled “navigate”Plan and execute navigation to a specific screen.
/rn-dev-agent:nav-graph navigate CheckoutShows a multi-step plan with estimated reliability, then executes it step-by-step with verification.
When to Use
Section titled “When to Use”- Understanding the app’s screen structure before implementing a feature
- Finding the correct route to a screen for testing
- Programmatic navigation to deep screens during verification