agentleFS
easyzoomeasyzoom/aix-skills/skills/esp-idf-integration/SKILL.md

esp-idf-integration

Skill36 starsChanged 5 months agoMITView on GitHub

Use when integrating, configuring, or debugging ESP-IDF projects, components, sdkconfig, partition tables, bootloader, NVS, Wi-Fi, BLE, FreeRTOS, flash, or peripherals

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill to debug ESP-IDF by separating project configuration, components, partition table, bootloader, flash settings, FreeRTOS …

    line 10
  2. Distinctive:

    Use this skill when:

    line 16
  3. Very specific:

    Do not use this skill for generic FreeRTOS kernel bugs with no ESP-IDF surface.

    line 24
  4. Distinctive:

    Read reset reason, bootloader version, flash parameters, partition table, and app image selection.

    line 44
  5. Very specific:

    Check sdkconfig, Kconfig options, component dependencies, and CMake target ownership.

    line 48
  6. Distinctive:

    Use ESP-IDF logs, error names, event loops, heap tracing, and task snapshots.

    line 56
  7. Distinctive:

    Treat secure boot, flash encryption, eFuse state, and OTA rollback as one-way or high-risk changes.

    line 59
  8. Distinctive:

    Before claiming ESP-IDF behavior works:

    line 73

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ESP-IDF Integration

Overview

Use this skill to debug ESP-IDF by separating project configuration, components, partition table, bootloader, flash settings, FreeRTOS behavior, and subsystem logs. ESP-IDF failures are often visible in sdkconfig or boot logs.

When To Use

Use this skill when:

  • The user is working with ESP-IDF, idf.py, ESP32-family SoCs, components, or managed components.
  • The issue involves sdkconfig, partition tables, NVS, Wi-Fi, BLE, OTA, flash mode/size, bootloader logs, heap, tasks, or peripheral drivers.
  • The project differs between menuconfig, CMake components, and runtime logs.

Do not use this skill for generic FreeRTOS kernel bugs with no ESP-IDF surface. Use freertos-kernel-debug instead.

First Questions

Ask for:

  • ESP-IDF version, target chip, module/board, toolchain, and idf.py command.
  • sdkconfig, partition table, component layout, and dependency manifest.
  • Boot log from reset through app start, including flash mode/size and reset reason.
  • Subsystem involved: Wi-Fi, BLE, NVS, OTA, filesystem, peripheral, or power.
  • Current error code, log tag, panic dump, heap info, or task snapshot.

Debug Workflow

  1. Reproduce the build and target. Confirm IDF_TARGET, idf.py set-target, clean build, flash, and monitor.
  2. Inspect boot evidence. Read reset reason, bootloader version, flash parameters, partition table, and app image selection.
  3. Verify configuration. Check sdkconfig, Kconfig options, component dependencies, and CMake target ownership.
  4. Prove storage and partitions. For NVS, OTA, SPIFFS, FAT, or custom data, confirm partition labels, sizes, erase state, and encryption settings.
  5. Debug subsystem state. Use ESP-IDF logs, error names, event loops, heap tracing, and task snapshots.
  6. Handle production constraints. Treat secure boot, flash encryption, eFuse state, and OTA rollback as one-way or high-risk changes.

Common Failures

  • Built for one IDF_TARGET and flashed to another chip.
  • Partition table label or size does not match application assumptions.
  • NVS is full, version-incompatible, encrypted unexpectedly, or not erased.
  • Wi-Fi/BLE event handling is missing or races initialization.
  • Flash mode/frequency is unstable for the module.
  • Secure boot or flash encryption is enabled before the recovery path is proven.

Verification

Before claiming ESP-IDF behavior works:

  • State ESP-IDF version, target, build/flash command, and partition table.
  • Confirm boot log, reset reason, flash settings, and app start.
  • Confirm subsystem logs and return codes for the exercised path.
  • Confirm erase/reflash, OTA, or security implications when relevant.

Example

User:

ESP32 OTA 后启动到旧固件。

Agent:

  1. Reads bootloader log, partition table, selected app, and OTA state.
  2. Checks image validation, rollback flags, and app confirmation.
  3. Fixes OTA state handling before touching Wi-Fi download code.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.