What problem does it solve?
Embedded developers often need to iterate on firmware by manually configuring toolchains, running CMake builds, locating ELF artifacts, and measuring firmware size, which breaks automation and slows down validation cycles. This skill centralizes those steps so an AI or developer can discover projects, run configure/build workflows, and obtain build artifacts and size metrics without manual shell choreography.
Core Features & Use Cases
- Project discovery: Scan a workspace for CMake-based embedded projects and detect CMakePresets or toolchain files.
- Preset enumeration: List configure and build presets from CMakePresets.json (and merged user presets).
- Configure/build lifecycle: Run cmake --preset configure, cmake --build incremental builds, rebuilds, and clean operations with logs and error extraction.
- Artifact and metrics reporting: Locate ELF/debug/flash artifacts, parse build output for errors/warnings/flash/ram hints, and analyze ELF sizes and sections with optional linker script parsing.
- Use case: Automatically configure and build a CMake-based ARM firmware, then produce an ELF and a JSON summary of text/data/bss sizes for downstream flashing or CI gating.
Quick Start
Run the gcc skill to scan the workspace for a CMake embedded project, choose a preset, then configure and build to produce the ELF and a size report.