What problem does it solve? Embedded firmware on Nordic nRF devices often ships with oversized thread stacks and heaps, or worse, suffers stack overflows, heap exhaustion, and Flash overflow build failures. This Skill provides a measure-first workflow to size memory correctly in NCS/Zephyr applications. ## Core Features & Use Cases - Measured stack and heap sizing: Captures thread stack watermarks via Thread Analyzer, ZView over SWD, or the zego memonitor brick, then applies headroom formulas (e.g. floor(peak / 0.8)) to update prj.conf with documented rationale. - Flash and RAM reduction: Applies Kconfig optimizations such as CONFIG_SIZE_OPTIMIZATIONS, CONFIG_LTO, and logging/shell removal, verified with rom_report, ram_report, and puncover. - Structured reporting: Updates docs/dev-specs/3-memopt.md using a report template, consuming validation report watermarks when available. - Use Case: After a validation run captures worst-case memory peaks on nRF7002DK and nRF54LM20DK boards, use this Skill to compute new stack and heap sizes, apply them to prj.conf, and document the changes. ## Quick Start Ask Claude to analyze memory usage on your nRF board build and optimize the thread stack and heap sizes in prj.conf.