wedsamuel1230/arduino-skills/memory-budgeting
Claude Code and agent skill by wedsamuel1230/arduino-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when Arduino or embedded projects hit SRAM, flash, heap, stack, partition, JSON-buffer, or performance limits, or when reviewing String use, F() placement, OTA slots, FreeRTOS stacks, or memory margin.
Install
npx vskill@latest install wedsamuel1230/arduino-skills/memory-budgetingSKILL.md
Memory Budgeting
Make memory a measured budget, not a nominal board label. The implementation is embedded C/C++; scripts may parse build or runtime logs when that is the useful deterministic tool.
Intake
Record exact board/module, flash/RAM/EEPROM/PSRAM, bootloader and partition layout, framework, compiler flags, libraries, static buffers, task stacks, filesystem/OTA needs, peak protocol sizes, and available measurement output.
Process
- Separate static data, code/flash, heap, task stacks, interrupt state,
filesystem, bootloader, and OTA/update slots.
- Establish a numeric budget and minimum margin for every category. Use board
references rather than copying a family-level number into a project claim.
- Capture compiler size output and map changes to a feature or dependency.
- Measure runtime free heap, largest block, stack high-water marks, and reset/
allocation failures under representative load where the framework exposes them.
- On AVR, keep literals in flash with
F()where appropriate, prefer bounded buffers and fixed-size storage, and avoid unbounded dynamicStringuse. On ESP32/RP2040,
still bound buffers and distinguish heap, stack, flash, and filesystem.
- Re-run the stress case after each memory-affecting change and record the
tradeoff.
Anti-rationalization
| Shortcut | Response | |
|---|---|---|
| "The datasheet says 520 KB, so memory is fine." | Separate usable heap, stacks, reserved regions, and radio/RTOS use. | |
| "It compiled." | Inspect size output and exercise runtime allocation paths. | |
| "Make the buffer bigger." | Bound the protocol and prove the required maximum. | |
| "Use String everywhere." | Check fragmentation and lifetime; use bounded alternatives where needed. | |
| "OTA only needs the application image." | Budget both update slots, bootloader, metadata, and rollback image. |
Verification
- Build-size output and runtime memory evidence name the exact target/version.
- Each budget has a margin and a failure response.
- Stress tests cover peak message, sensor, logging, radio, and task load as
applicable.
- Optimization does not remove bounds, safety checks, or recovery behavior.
Shared output contract
Use the shared Arduino skill contract: state assumptions, required tools and versions, implementation steps, tests/evidence by proof stage, known limitations, and recovery/security notes.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/memory-budgeting/SKILL.md
Popularity
- Repository stars
- 22
- 7-day trend score
- 16
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wedsamuel1230/arduino-skills/memory-budgeting)