What problem does it solve?
Writing and reviewing Python code for CircuitPython and MicroPython constrained runtimes often runs into tight performance budgets, memory allocations, and portability concerns. This skill helps you write, review, and optimize embedded Python to maximize readability while minimizing runtime costs on microcontroller hardware.
Core Features & Use Cases
- Guidance on hot-path optimization, memory management, and safe patterns for embedded loops and constrained runtimes.
- Project-specific rules awareness: check for an AGENTS.md in the project root and apply any "Embedded Runtime Constraints" sections to extend or override general guidance.
- Promotes minimal allocations, plain loops, guarded typing imports, and compatibility across CircuitPython and MicroPython.
- Useful for per-frame update logic, animation loops, or any code where GC pauses or allocations could cause stutter or jitter.
Quick Start
Provide a CircuitPython or MicroPython snippet and ask for a targeted code review and optimization.