From embedded-dev — RIPER-5 嵌入式固件开发协议
Flashes firmware to target boards using PlatformIO's upload mechanism, supporting serial, JTAG, and DFU protocols. Useful when platformio.ini is present and the user wants to program a microcontroller.
How this skill is triggered — by the user, by Claude, or both
Slash command
/embedded-dev:flash-platformioThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- `Project Profile` 中标明 `build_system: platformio` 或工作区中存在 `platformio.ini`。
Project Profile 中标明 build_system: platformio 或工作区中存在 platformio.ini。platformio.ini 中的 upload_protocol 决定。platformio.ini)。pio CLI。platformio.ini 中的环境列表和 upload_protocol。default_envs 或第一个环境。python scripts/pio_flasher.py --flash --project-dir <工程目录> --env <环境名>
python scripts/pio_flasher.py --flash --project-dir <工程目录> --env <环境名> --upload-port COM3
Project Profile,推荐下一步 skill。connection-failure:设备未连接、串口被占用或权限不足。project-config-error:板卡配置无效或环境名不存在。upload-failure:上传过程中出错。示例输出格式:
烧录成功 ✅
工程: ESP32_DEV → 环境: esp32dev
板卡: esp32dev | 平台: espressif32
固件: firmware.bin (200.0 KB)
耗时: 15.3 秒
serial-monitor(查看串口输出)或 debug-platformio(在线调试)。build-platformio 接收编译成功的工程信息。serial-monitor(查看串口输出)或 debug-platformio(在线调试)。npx claudepluginhub duncanyoung-1/embedded-dev --plugin embedded-devBuilds embedded PlatformIO projects: parses platformio.ini, selects environments, runs pio build, and locates firmware artifacts (ELF/HEX/BIN). Use when a PlatformIO project needs compiling, cleaning, or uploading.
Firmware reconnaissance for takeover — inventory the MCU, peripherals, RTOS, protocols, OTA, power management, and assess code quality with risk flags. Use when asked to "understand this firmware", "device inventory", or "embedded assessment".