embedded-build-flash-ci
Installation
SKILL.md
Embedded Build, Flash, Serial Capture & CI
Use this workflow to build, analyze, flash, and verify embedded firmware reliably without hanging on interactive tools.
Workflow
-
Detect project ecosystem and available toolchains
- Run detect_project.py in the project root:
python scripts/detect_project.py --path . - Review the detected framework (
platformio,esp-idf,cmake-arm,pico-sdk,arduino-cli,makefile) and available CLI binaries before invoking any build command. - Consult Toolchains CLI Reference for exact build/flash flags per ecosystem.
- Run detect_project.py in the project root:
-
Build firmware cleanly
- Run the ecosystem build command (e.g.,
pio run,idf.py build,cmake --build build). - Treat compiler warnings seriously (
-Wall -Wextra). Fix all warnings in newly written code before flashing.
- Run the ecosystem build command (e.g.,