kotlin-multiplatform-jni-pro
Pass
Audited by Gen Agent Trust Hub on Aug 1, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill documents best practices for JNI memory management, specifically emphasizing the correct usage of
GetStringUTFCharsandReleaseStringUTFCharsto prevent memory leaks. - [SAFE]: It enforces a 4-layer architectural pattern (Kotlin Engine -> JNI Bridge -> C Wrapper -> Native Library) that prevents native logic from being mixed with JNI marshalling code, significantly reducing the attack surface for memory corruption and logic errors.
- [SAFE]: The skill includes a 'HARD STOP' rule regarding 3rd party code, ensuring that external libraries are treated as read-only and preventing undocumented or accidental modifications to vendored dependencies.
- [SAFE]: The provided
header-compatibility-matrix.mdandarchitectural-feedback-schema.mdestablish a deterministic process for identifying C++ constructs that cannot safely cross the JNI boundary (e.g., templates, exceptions) and require a C-shim for safety. - [SAFE]: Detailed technical references for symbol conflict resolution (RTLD_GLOBAL), GPU synchronization, and audio DSP pitfalls are provided to prevent platform-dependent crashes and data corruption.
- [SAFE]: The skill references a legitimate external tool
jni-binding-generator(github.com/ronjunevaldoz/jni-binding-generator) which is a specialized utility for reducing boilerplate in JNI development, authored by the skill's creator.
Audit Metadata