Registry / puritysb

puritysb/agentdeck/esp32-heap-discipline

Memory-allocation discipline for AgentDeck ESP32 firmware (esp32/). Use whenever writing or reviewing firmware code that allocates — new / malloc / ps_malloc / heap_caps_alloc / std::vector / std::string / String / a buffer / a cache / anything held across a render loop. Covers the PSRAM-vs-no-PSRAM board split, the allocation decision order, fragmentation avoidance, the makeUniqueNoThrow / ScopedCleanup helpers, the PROTOCOL_MAX_MSG_BYTES JSON guard, and the heap diagnostics (logHeap / [PERF] f

Agent skill · version 0.0.0-master.1794524275.gd8b530a · from puritysb/AgentDeck

Install

npx yarkr-cli add skill:puritysb/agentdeck/esp32-heap-discipline

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:puritysb/agentdeck/esp32-heap-discipline
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:puritysb/agentdeck/esp32-heap-discipline

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:puritysb/agentdeck/esp32-heap-discipline

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.