What problem does it solve? HarmonyOS apps running across phones, tablets, foldables, and 2in1 devices face hardware capability differences that cause crashes, black screens, distorted previews, and wrong photo orientations. This Skill provides a declarative scene-and-resource index that routes hardware adaptation tasks to the correct constraints, code patterns, and verification matrices. ## Core Features & Use Cases - Capability Detection & Degradation (HW-01): Enforces canIUse() SysCap checks paired with module.json5 declarations, with correct SysCap granularity rules and fallback strategies (hide, disable, substitute, or prompt) for unsupported devices. - Camera Adaptation (HW-02): Covers camera enumeration with fallback, foldable state-change camera rebuild via foldStatusChange, stride/rowStride handling to prevent preview artifacts, and preview/photo/video rotation angle calculation using gravity sensors. - Structured Phase Outputs: Routes work through REQ, DEV, FIX, and VAL phases, producing deliverables like device_constraints, code_touchpoints, fix_plan, and verification_matrix. - Use Case: When a foldable device shows a black camera preview after folding, the Skill routes to HW-02-fold, loads the foldable adaptation reference, and prescribes the full rebuild chain: release session, re-enumerate cameras, recreate CameraInput/PreviewOutput/Session, commitConfig, and start. ## Quick Start Ask the assistant to adapt your HarmonyOS camera preview for foldable devices and fix the black screen that appears after folding the phone.