What problem does it solve? HarmonyOS apps leak memory through unbalanced API pairs (napi_create_reference without napi_delete_reference), unpaired on/off event listeners, and unreleased native objects. This Skill statically analyzes source code to catch these leaks before deployment. ## Core Features & Use Cases - Language-Routed Analysis: Routes .ets/.ts/.js files to ArkTS/JS specifications and .c/.cpp/.h files to C-API specifications for rule-based inspection. - Script-Assisted Candidate Detection: Runs filter_on.py and filter_risk_func.py to surface on/off listener pairs and risky function calls as leak hypotheses for verification. - Structured Reporting: Generates a timestamped markdown report listing file path, line number, issue type, severity, code snippet, suggested fix, and confidence score. - Use Case: Reviewing a PR that adds a NAPI bridge between ArkTS and C++ — the Skill checks napi reference balancing, handle scope usage in loops, and lifecycle listener cleanup, then reports each finding with a concrete fix. ## Quick Start Analyze the HarmonyOS source code in my project directory for potential memory leaks and generate a structured report.