Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add avanturer/claude-bestpractice --skill react-native-best-practicesgit clone --depth 1 https://github.com/avanturer/claude-bestpracticeWrote 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.
[](https://agentmods.dev/skills/avanturer/claude-bestpractice/react-native-best-practices)<a href="https://agentmods.dev/skills/avanturer/claude-bestpractice/react-native-best-practices"><img src="https://agentmods.dev/badge/skills/avanturer/claude-bestpractice/react-native-best-practices/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.
<a href="https://agentmods.dev/skills/avanturer/claude-bestpractice/react-native-best-practices"><img src="https://agentmods.dev/badge/skills/avanturer/claude-bestpractice/react-native-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.03073 |
| Opus 5.5 | $0.00019 | $0.01229 |
| Sonnet 5.5 | $0.00009 | $0.00615 |
| Haiku 4.5 | $0.00005 | $0.00307 |
Grade A, and why
react-native-best-practices 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 yesterday.
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.
This is a copy
94% identical to react-native-best-practices — 13 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Before following this here
Measure before changing anything. A dependency suggested below (FlashList, the React Compiler, a native module) can change the native runtime: in a project that ships over-the-air updates it goes out only in a store build. The project's own release and design rules win over anything below.
React Native Best Practices
Overview
Performance optimization guide for React Native applications, covering JavaScript/React, Native (iOS/Android), and bundling optimizations. Based on Callstack's "Ultimate Guide to React Native Optimization".
When to Apply
Reference these guidelines when:
- Debugging slow/janky UI or animations
- Investigating memory leaks (JS or native)
- Optimizing app startup time (TTI)
- Reducing bundle or app size
- Writing native modules (Turbo Modules)
- Profiling React Native performance
- Reviewing React Native code for performance
Security Notes
- Treat shell commands in these references as local developer operations. Review them before running, prefer version-pinned tooling, and avoid piping remote scripts directly to a shell.
- Treat third-party libraries and plugins as dependencies that still require normal supply-chain controls: pin versions, verify provenance, and update through your standard review process.
- Treat remote chunk loading as first-party artifact delivery only. Prefer app-bundled chunks or signed CI release manifests; hosted chunks must come from trusted HTTPS origins you control and be pinned to the current app release.
Priority-Ordered Guidelines
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | FPS & Re-renders | CRITICAL | js-* |
| 2 | Bundle Size | CRITICAL | bundle-* |
| 3 | TTI Optimization | HIGH | native-*, bundle-* |
| 4 | Native Performance | HIGH | native-* |
| 5 | Memory Management | MEDIUM-HIGH | js-*, native-* |
| 6 | Animations | MEDIUM | js-* |
Impact labels are triage hints: CRITICAL first, HIGH next, MEDIUM when evidence points there.
What ships with it
30 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- LICENSE 1.1 KB
- references/bundle-analyze-app.md 5.3 KB
- references/bundle-analyze-js.md 6.8 KB
- references/bundle-barrel-exports.md 5.3 KB
- references/bundle-code-splitting.md 7.4 KB
- references/bundle-hermes-mmap.md 4.0 KB
- references/bundle-library-size.md 4.1 KB
- references/bundle-native-assets.md 4.9 KB
- references/bundle-r8-android.md 5.2 KB
- references/bundle-tree-shaking.md 5.6 KB
- references/js-animations-reanimated.md 7.8 KB
- references/js-atomic-state.md 5.1 KB
- references/js-bottomsheet.md 12 KB
- references/js-concurrent-react.md 6.5 KB
- references/js-lists-flatlist-flashlist.md 5.9 KB
- references/js-measure-fps.md 5.2 KB
- references/js-memory-leaks.md 5.2 KB
- references/js-profile-react.md 5.7 KB
- references/js-react-compiler.md 7.2 KB
- references/js-uncontrolled-components.md 5.4 KB
- references/native-android-16kb-alignment.md 3.7 KB
- references/native-measure-tti.md 6.4 KB
- references/native-memory-leaks.md 5.5 KB
- references/native-memory-patterns.md 5.8 KB
- references/native-platform-setup.md 3.7 KB
- references/native-profiling.md 4.3 KB
- references/native-sdks-over-polyfills.md 6.1 KB
- references/native-threading-model.md 6.7 KB
- references/native-turbo-modules.md 5.5 KB
- references/native-view-flattening.md 5.1 KB
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.
- yesterday Changed · +47 tokens per session a1f5a0e54763
- 15d ago First seen · 248 lines · 0 tokens per session scan A 4114ec3b7b74
react-native-best-practices is a skill published in the GitHub repository avanturer/claude-bestpractice (2 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 3,073 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 94% identical to react-native-best-practices, differing in 13 lines, and is treated as a copy.
react-native-best-practices compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| react-native-best-practicesavanturer/claude-bestpractice | Skill | 2 | yesterday | MIT | A | 47 | Claude Code |
| mobile-ios-designHigorAlves/orc | Skill | 7 | 2d ago | MIT | A | 16 | Claude Code |
| orc-mobile-ios-designHigorAlves/orc | Skill | 7 | 2d ago | MIT | A | 17 | Codex |
| nativexiaobei930/cc-best | Skill | 50 | 5mo ago | MIT | A | 29 | Claude Code |
| swiftui-best-practicesHigorAlves/orc | Skill | 7 | 2d ago | MIT | A | 26 | Claude Code |
| weekly-digeststhedotmack/claude-mem | Skill | 121k | today | Apache-2.0 | A | 93 | Claude Code |
| releasethedotmack/claude-mem | Skill | 121k | today | Apache-2.0 | A | 13 | Claude Code |