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 agentmods add skills/callstackincubator/agent-skills/react-native-best-practicesnpx skills add callstackincubator/agent-skills --skill react-native-best-practicesgit clone --depth 1 https://github.com/callstackincubator/agent-skillsWrote 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/callstackincubator/agent-skills/react-native-best-practices)<a href="https://agentmods.dev/skills/callstackincubator/agent-skills/react-native-best-practices"><img src="https://agentmods.dev/badge/skills/callstackincubator/agent-skills/react-native-best-practices.svg" alt="Measured on agentmods" 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 | $0.00060 | $0.02944 |
| Opus 5 | $0.00030 | $0.01472 |
| Sonnet 5 | $0.00012 | $0.00589 |
| Haiku 4.5 | $0.00006 | $0.00294 |
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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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.
Quick Reference
Optimization Workflow
Follow this cycle for any performance issue: Measure → Optimize → Re-measure → Validate
- Measure: Capture baseline metrics before changes. For runtime issues, prefer commit timeline, re-render counts, slow components, heaviest-commit breakdown, and startup/TTI when available. Component tree depth or count are optional context, not substitutes. Do not recommend memoization, atomic state, or compiler changes without a measured render or FPS problem.
- Optimize: Apply the targeted fix from the relevant reference
- Re-measure: Run the same measurement to get updated metrics
- Validate: Confirm improvement (e.g., FPS 45→60, TTI 3.2s→1.8s, bundle 2.1MB→1.6MB)
What ships with it
43 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.
- agents/openai.yaml 227 B
- POWER.md 8.1 KB
- references/bundle-analyze-app.md 5.3 KB
- references/bundle-analyze-js.md 6.9 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/images/bundle-treemap-source-map-explorer.png 652 KB
- references/images/controlled-textinput-pingpong.png 124 KB
- references/images/devtools-flamegraph.png 508 KB
- references/images/emerge-xray-ios.png 429 KB
- references/images/expo-atlas-treemap.png 604 KB
- references/images/flashlight-flatlist-vs-flashlist.png 306 KB
- references/images/fps-drop-graph.png 149 KB
- references/images/memory-heap-snapshot.png 301 KB
- references/images/tti-warm-start-diagram.png 124 KB
- references/images/view-hierarchy-flattening.png 2526 KB
- references/images/xcode-instruments-templates.png 399 KB
- references/images/xcode-thread-view.png 174 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.
- 4d ago First seen · 239 lines · 60 tokens per session scan A abdbb7fc34ad
react-native-best-practices is a skill published in the GitHub repository callstackincubator/agent-skills (1,634 stars, last pushed 26d ago), licensed MIT. It adds 60 tokens to every session and 2,944 once invoked, about $0.0003 per session on Opus 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.
Other skills, from other repositories
orca-emulator-android
Control an Android emulator / device from inside Orca using the orca CLI. Use for listing/booting AVDs, taps, swipes, typing, hardware buttons (incl. Back and Recents), rotation, app install/launch, runtime permissions, the accessibility tree, and logcat — driving a real adb-connected device or emulator.…
android-tombstone-symbolication
Symbolicate the .NET runtime frames in an Android tombstone file. Extracts BuildIds and PC offsets from the native backtrace, downloads debug symbols from the Microsoft symbol server, and runs llvm-symbolizer to produce function names with source file and line numbers. USE FOR triaging a .NET MAUI or Mono Android app…
dogfood
Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.
winapp-maui
Package and sign .NET MAUI Windows apps with winapp, resolving the resizetizer manifest dependency. Use when packaging or signing a .NET MAUI Windows app, building a MAUI MSIX or signed unpackaged build in CI, or fixing 'manifest contains unresolved placeholders ($placeholder$)' errors from winapp package.
android-pentest
安卓应用渗透测试 — APK分析、Hook、自动化测试、运行态驱动、签名恢复、抓包分析.
react-native-ease-refactor
Scan for Animated/Reanimated code and migrate to EaseView.