skills/po4yka/rust-skills/rust-jni/Gen Agent Trust Hub

rust-jni

Pass

Audited by Gen Agent Trust Hub on Nov 7, 2026

Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill references standard command-line tools for development, auditing, and testing.
  • cargo tree and cargo update are used for managing and verifying the versions of the jni crate dependencies.
  • llvm-nm is recommended for inspecting exported symbols to debug linkage errors.
  • adb shell commands are used to enable CheckJNI on Android devices for runtime verification.
  • gradlew is used to run instrumentation tests for binding verification.
  • [EXTERNAL_DOWNLOADS]: The skill provides links to well-known, official documentation for Android development.
  • It references the official Android NDK guides on developer.android.com for JNI tips and class loading behaviors.
  • [DYNAMIC_EXECUTION]: The instructions cover the necessary use of unsafe Rust features for FFI (Foreign Function Interface) operations.
  • The skill promotes safe practices by requiring SAFETY comments and explicit invariant checks when using from_raw pointers or mapping direct buffers.
  • It provides correct templates for JNI_OnLoad and panic guards to prevent native aborts, which is a key stability and security best practice when crossing the language boundary.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 7, 2026, 06:29 AM