Skip to content

Reference

Best Practices

The plugin ships a library of React Native best-practice rules that are checked automatically during Phase 4 (Architecture) and Phase 6 (Code Review) of /rn-feature-dev. Most rules are integrated from Vercel’s agent-skills (composition patterns, list performance, animations, state management) — see that repository for the full rule text. The rules live inside the plugin package and need no setup.

LevelMeaningWhen checked
CRITICALCan cause crashes or data lossAlways checked
HIGHSignificant performance or UX impactAlways checked
MEDIUMNoticeable improvementChecked when relevant patterns present
LOWMinor optimizationChecked on 3+ occurrences

Four rules were written for this plugin (not part of the Vercel set), covering failure modes discovered while verifying features on device:

RuleCovers
navigation-transparent-modalTransparent modal screens that break navigation introspection
query-cache-reactiveReact Query cache reads that silently go stale
reanimated-in-listsReanimated shared values inside virtualized list items
theme-memoization-listsTheme-object identity churn re-rendering whole lists

During architecture design the agent filters rules by trigger keywords and file globs, then checks the CRITICAL and HIGH rules against the proposed design. During code review the same filter runs against the diff. Findings cite the rule id so you can look up the reasoning.