react-native-best-practices
Pass
Audited by Gen Agent Trust Hub on Aug 29, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill guides the agent to perform various shell-based operations, including generating JavaScript bundles using
npx react-native bundle, analyzing them withnpx source-map-explorer, and profiling app performance viaagent-device react-devtools. These are standard developer operations performed in a local or CI environment. - [INDIRECT_PROMPT_INJECTION]: The skill involves an attack surface for indirect prompt injection as it ingests and processes external data, such as profiler results, bundle metrics, and third-party library metadata. However, the risk is addressed through explicit security notes advising the user and agent to treat commands as local operations and to verify all third-party dependencies.
- Ingestion points: Performance metrics from
agent-device, bundle analysis reports fromsource-map-explorer, and native build logs fromgradlewandxcodebuild(referenced inreferences/bundle-analyze-app.mdandreferences/js-profile-react.md). - Boundary markers: The instructions use natural language and structured optimization workflows (Measure → Optimize → Re-measure → Validate) to maintain context and ensure metrics are verified.
- Capability inventory: Extensive capabilities including shell command execution (
npx,gradlew,xcodebuild), file system modifications for build configuration, and network operations for bundle analysis tools (referenced across allreferences/files). - Sanitization: The skill relies on standard tool outputs and does not include custom sanitization logic for ingested data.
Audit Metadata