Build platformio

From LeoKemp223/embed-ai-tool · View interactive version

Build platformio is an AI agent skill from the GitHub repository LeoKemp223/embed-ai-tool. 当需要通过 PlatformIO 命令行编译嵌入式工程,调用自带脚本解析环境配置、执行构建并定位固件产物时使用。

How to use this skill

Skill file

构建 PlatformIO 工程

适用场景

必要输入

自动探测

执行步骤

  1. 先阅读 references/usage.md,确认本次是环境探测、列出环境、执行构建,还是仅扫描产物。
  2. 若不确定环境是否就绪,先运行自带脚本 scripts/platformio_builder.py 的 --detect 模式确认。
  3. 使用 --list-envs --project-dir <dir> 确认可用环境,再用 --project-dir + --env 执行构建。
  4. 读取脚本输出的构建结果和产物扫描报告,重点关注首选产物(ELF > HEX > BIN)和失败分类。
  5. 将构建环境、产物路径和板卡信息写回 Project Profile,并在需要时交给下游 skill。

失败分流

平台说明

输出约定

交接关系

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.