Esp32 Arch Review logo

Esp32 Arch Review

Community
agodianel
esp32-arch-review

Reviews ESP32 firmware architecture for FreeRTOS safety, memory and stack sizing, ISR rules, error handling, peripheral and pin safety, networking, storage, logging and build configuration, and returns a PASS / PASS WITH NOTES / FAIL report. Use when the user asks to "review the architecture", "code review this firmware", "is this RTOS-safe", "check for race conditions", "audit task stacks", "memory leak", "heap fragmentation", "stack overflow risk", "/arch-review", or before merging a significant ESP-IDF change or inheriting an existing ESP32 project.

Overview

Publisheragodianel
Repositoryesp32-claude-workbench
Skill nameesp32-arch-review
Stars
81
Forks
7
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by agodianel on GitHub. Read the source before you install it.

Installation

Install the Esp32 Arch Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/agodianel/esp32-claude-workbench/tree/main/skills/esp32-arch-review
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/agodianel/esp32-claude-workbench.git /tmp/esp32-claude-workbench
mkdir -p .claude/skills
cp -r /tmp/esp32-claude-workbench/skills/esp32-arch-review .claude/skills/esp32-arch-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Esp32 Arch Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Esp32 Arch Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Esp32 Arch Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

ESP32 Architecture Review

Structured, evidence-based review of embedded-specific correctness. Read-only unless the user asks for fixes (fixes then go through an implementation contract).

Tools

If the esp32-workbench MCP server is connected, call its tools; otherwise run the CLI. If esp32wb is not on PATH, use uvx --from git+https://github.com/agodianel/esp32-claude-workbench esp32wb <args>. Add --json for machine-readable output.

NeedMCP toolCLI
All static checks (pins, stacks, sdkconfig, partitions)project_doctoresp32wb doctor . [--target T]
Undersized task stacksstack_checkesp32wb stacks .
GPIO conflicts for the real chippin_auditesp32wb pins .
Risky / debug sdkconfig optionssdkconfig_reviewesp32wb sdkconfig sdkconfig
Partition table sanitypartition_checkesp32wb partitions partitions.csv --sdkconfig sdkconfig
API / peripheral behaviour questionssearch_esp_docsesp32wb docs search "<query>" --target T

Start with esp32wb doctor . and paste its summary into the report; then do the manual checklist below for what static tools cannot see.

Review checklist

Mark each item OK, ISSUE, or N/A, with file:line evidence for every ISSUE.

1. FreeRTOS safety

  • Every task has an explicit stack size. In ESP-IDF the stack argument is in bytes (not words). Guide: ≥2048 simple, ≥4096 with Wi-Fi/BLE/printf-heavy code, ≥8192 for TLS — verify with high-water marks, not guesses.
  • No blocking calls in ISRs; only *FromISR APIs; portYIELD_FROM_ISR used.
  • ISRs that run while flash cache is disabled are IRAM_ATTR and touch only DRAM data.
  • Shared state protected by mutexes (priority inheritance), not by disabling interrupts.
  • Spinlock critical sections (portENTER_CRITICAL) are very short (no logging, no allocation).
  • No busy loops without blocking; taskYIELD() not vTaskDelay(0).
  • Core affinity deliberate and valid for the target's core count (dual-core: classic ESP32, S3, P4; S2 and the C/H series are single-core) — pin only to cores that exist, or use tskNO_AFFINITY.
  • Bounded timeouts on queues/semaphores where a hang would be a bug.
  • Task watchdog: long operations feed it or are restructured.

2. Memory

  • No large stack buffers (> 512 bytes) — heap or static instead.
  • Every allocation checked for NULL; freed on all error paths.
  • DMA buffers from heap_caps_malloc(..., MALLOC_CAP_DMA) (PSRAM is generally not DMA-capable for all peripherals — check the peripheral docs for the target).
  • No allocation in ISRs.
  • Free heap and minimum free heap logged/monitored; fragmentation considered for long-running devices.
  • See the memory review playbook for diagnostics.

3. Error handling

  • Every esp_err_t checked; ESP_ERROR_CHECK() only for fatal init.
  • Runtime errors logged with esp_err_to_name() and handled (retry, degrade, reset state).
  • Network operations retry with exponential backoff.
  • Resources released on failure paths.

4. Peripherals and pins

  • esp32wb pins . has no errors for the configured target.
  • Pin map documented (pin_map.h or header comment) and matches code.
  • I2C/SPI bus recovery and timeouts exist.
  • ADC use respects the chip's ADC2/Wi-Fi behaviour (esp32wb chip <target>).
  • Drivers use the API generation matching the ESP-IDF version (e.g. new I2C master driver vs legacy driver/i2c.h — do not mix both in one bus).

5. Networking

  • Wi-Fi/IP event handlers registered before esp_wifi_start().
  • Reconnect with backoff; disconnect reason logged.
  • TLS server verification enabled (no skip-verify in production).
  • Socket/HTTP timeouts set; DNS failures handled.
  • Wi-Fi + BLE coexistence enabled when both radios are used.

6. Persistent storage

  • NVS namespaces per component; ESP_ERR_NVS_NO_FREE_PAGES / ESP_ERR_NVS_NEW_VERSION_FOUND handled at init.
  • First-boot defaults when keys are missing.
  • Partition table matches flash size and OTA scheme (esp32wb partitions).
  • Filesystem (SPIFFS/LittleFS/FAT) mount errors handled.

7. Logging

  • Correct levels; verbose output at D/V.
  • No secrets in logs.
  • Tags match component names; boot sequence traceable.

8. Build configuration

  • CONFIG_IDF_TARGET matches the hardware.
  • sdkconfig.defaults captures every non-default setting (not only a committed sdkconfig).
  • Component REQUIRES/PRIV_REQUIRES complete and minimal.
  • esp32wb sdkconfig shows no debug-only options in release configs.

Report

markdown
# Architecture Review — <project> (target: <chip>, ESP-IDF <ver>)
## Verdict: PASS | PASS WITH NOTES | FAIL
## Tool output
(esp32wb doctor summary)
## Critical issues (must fix before merge)
- [file:line] issue — why it matters — suggested fix
## Warnings
## Recommendations
## Checklist results
## Not reviewed / unknowns

FAIL if any critical issue exists (ISR misuse, unchecked allocation in a hot path, flash/PSRAM pin use, missing TLS verification, stack overflow evidence).

Rules

  • Evidence for every finding; no generic advice without a location.
  • Do not state chip limits from memory — cite esp32wb chip or Espressif docs.
  • Recommendations that change code require an implementation contract first.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Esp32 Arch Review AI skill do?

Reviews ESP32 firmware architecture for FreeRTOS safety, memory and stack sizing, ISR rules, error handling, peripheral and pin safety, networking, storage, logging and build configuration, and returns a PASS / PASS WITH NOTES / FAIL report. Use when the user asks to "review the architecture", "code review this firmware", "is this RTOS-safe", "check for race conditions", "audit task stacks", "memory leak", "heap fragmentation", "stack overflow risk", "/arch-review", or before merging a significant ESP-IDF change or inheriting an existing ESP32 project.

Why use Esp32 Arch Review on TypingMind?

Because you install it once and use it with any model. Esp32 Arch Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Esp32 Arch Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/agodianel/esp32-claude-workbench/tree/main/skills/esp32-arch-review. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Esp32 Arch Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Esp32 Arch Review?

As many as you like. As long as a model supports skills, you can use Esp32 Arch Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Esp32 Arch Review AI skill free?

Yes. It is published on GitHub by agodianel under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇