What problem does it solve? HarmonyOS apps often exceed memory budgets on low-end devices, causing OOM crashes and jank. This Skill runs a full closed-loop workflow: collect meminfo/UI tree/screenshots via hdc, analyze bottlenecks against 14 detection rules, propose tiered optimization schemes, modify and review ArkTS/C-API code, build and install the HAP, re-measure, and produce a patch plus comparison report. ## Core Features & Use Cases - End-to-end memory optimization loop: baseline collection, data-driven analysis, user-confirmed code changes, ArkTS rule-based code review, build/install, post-optimization re-measurement, and patch/report generation. - 12 built-in optimization schemes: cachedCount tiering, image memory optimization, resource leak fixes, Web preload/prerender/offline-reuse tiering, media degradation, Tabs cache, component detaching, QuickJS limits, plus Flutter VMA and RN-specific schemes, all built on a shared device tiering mechanism (low/medium/high). - Use Case: A developer reports their HarmonyOS app exceeds PSS limits on low-end phones. The Skill collects meminfo, detects a hardcoded cachedCount of 50 in a long list, applies device-tiered cachedCount values, verifies the build, and reports a before/after PSS reduction. ## Quick Start Ask the assistant to optimize this HarmonyOS app's memory for low-end devices and produce a before-and-after PSS comparison report.