Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add hamzabellouch/agent-skills --skill esp32-arduino-embedded-cgit clone --depth 1 https://github.com/hamzabellouch/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/hamzabellouch/agent-skills/esp32-arduino-embedded-c)<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/esp32-arduino-embedded-c"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/esp32-arduino-embedded-c/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/esp32-arduino-embedded-c"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/esp32-arduino-embedded-c.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00071 | $0.02432 |
| Opus 5 | $0.00036 | $0.01216 |
| Sonnet 5 | $0.00014 | $0.00486 |
| Haiku 4.5 | $0.00007 | $0.00243 |
Grade A, and why
esp32-arduino-embedded-c scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 230 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ESP32 Arduino & Embedded C/C++ Production Guidelines
This skill provides architecture patterns, memory management guidelines, hardware interrupt safety rules, and production code patterns for high-reliability ESP32 embedded applications using Arduino / ESP-IDF C++.
1. Core Architecture & Multi-Core Strategy
1.1 Dual-Core Pinning & Priority Allocation
ESP32 (dual-core Xtensa LX6/LX7) splits responsibilities across Core 0 (PRO_CPU) and Core 1 (APP_CPU):
- Core 0: Reserved primarily for Wi-Fi, Bluetooth, TCP/IP stack, and system tasks managed by ESP-IDF.
- Core 1: Dedicated to application logic, sensor polling, motor control, display UI, and real-time DSP.
Core 0 (PRO_CPU) Core 1 (APP_CPU)
+-----------------------+ +-----------------------+
| WiFi / Bluetooth Task | | App Logic / Sensor |
| TCP/IP Stack | | Data Processing Task |
| System Watchdog WDT | | Real-time Control Task|
+-----------------------+ +-----------------------+
^ ^
| FreeRTOS Queue / EventGroup |
+------------------------------------+
- Task Priorities: FreeRTOS priorities range from
0(lowest, idle) toconfigMAX_PRIORITIES - 1(highest, typically 24).- Real-time hard timing tasks: Priority 18 - 22
- I/O & Sensor Polling: Priority 10 - 15
- Network & Telemetry tasks: Priority 5 - 8
- Background/Idle tasks: Priority 1 - 3
1.2 Task Stack & Watchdog Timers (WDT)
- Task Watchdog Timer (TWDT): Monitors tasks for starvation or deadlocks. Any task pinned to a core executing a loop must either block (
vTaskDelay(),xQueueReceive()) or triggeresp_task_wdt_reset(). - Never use blocking
delay()from Arduino in FreeRTOS tasks — usevTaskDelay(pdMS_TO_TICKS(ms))orvTaskDelayUntil().
2. Real-Time Memory Management
2.1 Dynamic Allocation Hazards
In embedded real-time systems, heap allocation (malloc, new, std::string, std::vector, Arduino String) causes:
- Heap Fragmentation: Repeated allocations of varying sizes leave non-contiguous small gaps, leading to runtime
Out of Memory (OOM)crashes after days/weeks of continuous operation. - Nondeterministic Execution: Heap allocation time depends on current heap topology, violating hard real-time guarantees.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 230 lines · 71 tokens per session scan A 6a397428375a
esp32-arduino-embedded-c is a skill published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 71 tokens to every session and 2,432 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
cpp
C++ modern C++17/20/23 with STL, smart pointers, and performance optimization. Use for .cpp files.
assembly
Assembly language for low-level system and embedded programming. Use for .asm files.
c
C programming with memory management, pointers, structs, and system-level development. Use for .c files.
c-pro
Write efficient C code with proper memory management, pointer arithmetic, and system calls. Handles embedded systems, kernel modules, and performance-critical code. Use PROACTIVELY for C optimization, memory issues, or system programming.
doca-argp
Use this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring docaargpinit → register params → docaargpstart → docaargpdestroy in order; picking a parameter type from the full public enum (DOCAARGPTYPESTRING, INT, BOOLEAN, DEVICE, DEVICEREP…
embedded-stm32
Best practices for embedded C/C++ development on STM32 microcontrollers using the HAL, covering peripherals, DMA, interrupts, memory constraints, and hardware-focused testing. Use when writing STM32 HAL code, configuring peripherals generated by STM32CubeMX, working with interrupts or DMA, debugging with SWD/JTAG…