Build idf

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

Build idf is an AI agent skill from the GitHub repository LeoKemp223/embed-ai-tool. 当需要配置或构建基于 ESP-IDF 的固件工程,调用自带脚本执行 idf.py build 并定位固件产物时使用。

How to use this skill

Skill file

ESP-IDF 编译

适用场景

必要输入

首次参数确认

首次调用时,必须向用户确认以下参数,不得跳过或自动使用探测值:

当 Project Profile 中已记录过上述参数(即非首次),可直接复用,无需再次询问。

自动探测

执行步骤

  1. 先阅读 references/usage.md,确认本次是环境探测、设置目标、执行构建,还是仅扫描产物。
  2. 若不确定环境是否就绪,先运行自带脚本 scripts/idf_builder.py 的 --detect 模式确认。
  3. 若需要设置或切换目标芯片,使用 --set-target <chip> 执行。
  4. 使用 --build --project <path> 执行构建。
  5. 若用户需要修改 sdkconfig,提示手动运行 idf.py menuconfig(交互式命令,不可自动执行)。
  6. 读取脚本输出的构建结果和产物扫描报告。
  7. 将构建目录、产物路径、目标芯片信息写回 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.