wedsamuel1230/arduino-skills
Overview
This skill provides automated, focused code review for Arduino, ESP32, and RP2040 projects with emphasis on best practices, memory safety, and common embedded pitfalls. It generates actionable, project-specific checklists and concrete suggestions to improve reliability, power usage, and maintainability. Use it to catch issues before publishing, deploying, or final testing.
How this skill works
The tool statically analyzes source files and scans for common embedded code smells: unsafe String usage, blocking delays, buffer and stack risks, hardcoded credentials, and missing error handling. It outputs categorized findings (Critical / Important / Nice to have), a remediation checklist, and specific code suggestions like replacing String with snprintf, using millis() patterns, and verifying sensor initialization. It can analyze single files, directories, or accept pasted code for interactive review.
When to use it
- When you say "review my code" or need an automated check
- Before publishing a sketch or pushing to GitHub
- After adding a feature but before final testing
- When the project "works but feels fragile"
- When preparing for battery-powered or production deployments
Best practices
- Avoid String in time-critical loops; use static char buffers and snprintf
- Replace delay() with millis() non-blocking scheduling for responsiveness
- Declare pin assignments and thresholds in a config header, not magic numbers
- Check and gracefully handle peripheral and network init failures
- Name constants and variables consistently; keep functions small and single-purpose
Example use cases
- Scan a sketch for memory fragmentation and get step-by-step fixes
- Generate a project-specific review checklist before a repo release
- Detect blocking code and refactor loops to use millis() scheduling
- Verify sensor initialization and add visual/serial error feedback
- Find hardcoded credentials and suggest secure config file patterns
FAQ
Targets Arduino, ESP32, and RP2040 C/C++ sketches with common Arduino-style APIs.
Can it run on a whole project?
Yes — it can analyze single files, entire directories, or accept pasted code interactively and will aggregate results.
8 skills
This skill provides automated code reviews for Arduino and ESP32 projects, delivering actionable feedback, improvement suggestions, and a structured checklist.
This skill helps you debug Arduino sketches by real-time serial monitoring, logging, filtering, and pattern detection across formats.
This skill helps you quickly design 3D-printable enclosures for Arduino and ESP32 projects with parametric OpenSCAD templates and print guidance.
This skill translates Arduino and ESP compiler errors into plain English, guiding beginners to understand causes and fixes.
This skill generates production-ready Arduino code snippets for sensors, actuators, and communication patterns across UNO, ESP32, and RP2040.
This skill guides you through systematic hardware debugging for Arduino projects, enabling power checks, signal tracing, and component isolation with
This skill helps you select the right battery type and charging method for Arduino/ESP32/RP2040 projects, considering safety and regulation.
This skill generates a complete BOM for Arduino/ESP32/RP2040 projects, including parts lists, pricing estimates, and supplier links.