Borrowing it
Nothing to install: this file belongs to wedsamuel1230/electronic-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/wedsamuel1230/electronic-mcp-server/main/.github/skills/arduino-code-generator/SKILL.mdgit clone --depth 1 https://github.com/wedsamuel1230/electronic-mcp-serverWrote 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/wedsamuel1230/electronic-mcp-server/arduino-code-generator)<a href="https://agentmods.dev/skills/wedsamuel1230/electronic-mcp-server/arduino-code-generator"><img src="https://agentmods.dev/badge/skills/wedsamuel1230/electronic-mcp-server/arduino-code-generator/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/wedsamuel1230/electronic-mcp-server/arduino-code-generator"><img src="https://agentmods.dev/badge/skills/wedsamuel1230/electronic-mcp-server/arduino-code-generator.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.00103 | $0.01511 |
| Opus 5.5 | $0.00041 | $0.00604 |
| Sonnet 5.5 | $0.00021 | $0.00302 |
| Haiku 4.5 | $0.00010 | $0.00151 |
Grade B, and why
arduino-code-generator scanned grade B with 1 finding 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 2mo 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.
Strips warnings and disclaimersmediumAnti-refusal
Omitting safety caveats hides risk from the user and is a common jailbreak preamble.
- ✅ Compile without warnings on Arduino IDE How it starts
The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Arduino Code Generator
Generate production-quality Arduino code snippets for sensors, actuators, communication, and embedded patterns.
Quick Start
Browse example sketches:
# See 9 production-ready examples in examples/ folder
ls examples/
# config-example.ino, filtering-example.ino, buttons-example.ino,
# i2c-example.ino, csv-example.ino, scheduler-example.ino,
# state-machine-example.ino, hardware-detection-example.ino,
# data-logging-example.ino
List available patterns:
uv run scripts/generate_snippet.py --list
Generate code for specific pattern and board:
uv run scripts/generate_snippet.py --pattern i2c --board esp32
uv run scripts/generate_snippet.py --pattern buttons --board uno --output button.ino
Interactive mode:
uv run scripts/generate_snippet.py --interactive
Resources
- examples/ - 9 production-ready example sketches (one per pattern category)
- examples/README.md - Detailed documentation for each example with wiring diagrams
- scripts/generate_snippet.py - CLI tool for code generation with 9 pattern templates
- assets/workflow.mmd - Mermaid diagram of code generation workflow
Supported Patterns
Hardware Abstraction
- Multi-board config.h with conditional compilation
- Pin definitions for UNO/ESP32/RP2040
- Memory budget tracking
See patterns-config.md | Example: config-example.ino
Sensor Reading & Filtering
- ADC noise reduction (moving average, median, Kalman)
- DHT22, BME280, analog sensors
- Data validation and calibration
See patterns-filtering.md | Example: filtering-example.ino
Input Handling
- Software button debouncing
- Edge detection (PRESSED/RELEASED/LONG_PRESS)
- Multi-button management
See patterns-buttons.md | Example: buttons-example.ino
What ships with it
22 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .claude-plugin/marketplace.json 880 B
- assets/workflow.mmd 961 B
- examples/buttons-example.ino 3.3 KB
- examples/config-example.ino 2.2 KB
- examples/csv-example.ino 2.6 KB
- examples/data-logging-example.ino 5.5 KB
- examples/filtering-example.ino 3.0 KB
- examples/hardware-detection-example.ino 4.5 KB
- examples/i2c-example.ino 3.7 KB
- examples/README.md 6.8 KB
- examples/scheduler-example.ino 4.0 KB
- examples/state-machine-example.ino 3.9 KB
- references/patterns-buttons.md 4.8 KB
- references/patterns-config.md 1.2 KB
- references/patterns-csv.md 1.1 KB
- references/patterns-data-logging.md 8.1 KB
- references/patterns-filtering.md 3.3 KB
- references/patterns-hardware-detection.md 5.4 KB
- references/patterns-i2c.md 1.3 KB
- references/patterns-scheduler.md 4.4 KB
- references/patterns-state-machine.md 5.1 KB
- scripts/generate_snippet.py 28 KB runs code
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.
- 2mo ago First seen · 182 lines · 103 tokens per session scan B 0e3909858605
arduino-code-generator is a skill published in the GitHub repository wedsamuel1230/electronic-mcp-server (1 stars, last pushed 10mo ago), licensed MIT. It adds 103 tokens to every session and 1,511 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
arduino-code-generator compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| arduino-code-generatorwedsamuel1230/electronic-mcp-server | Skill | 1 | 10mo ago | MIT | B | 103 | Claude Code, Codex |
| doca-argpNVIDIA/skills | Skill | 3.9k | yesterday | Apache-2.0 | A | 277 | Claude Code, Codex |
| holoscan-module-lifecycleNVIDIA/skills | Skill | 3.9k | yesterday | Apache-2.0 | A | 47 | Claude Code, Codex |
| embedded-stm32Mindrally/skills | Skill | 297 | 29d ago | Apache-2.0 | A | 87 | Claude Code |
| embedded-firmware-devAmethystLuna/embedded-workbench | Skill | 30 | yesterday | MIT | A | 59 | Claude Code |
| hls-c2rtlvibeic/vibe-ic | Skill | 32 | today | Apache-2.0 | A | 79 | Claude Code |
| hip-kernel-optimizationAMD-AGI/Apex | Skill | 78 | 1mo ago | MIT | A | 56 | Claude Code, Codex |