arduino-code-generator

arduino-code-generator is a skill for Claude Code from wedsamuel1230/arduino-skills. It costs 86 tokens per session (1,495 once invoked), scanned A, original, MIT.

A code-generation guide for Arduino and embedded C++, the software used on small boards that control sensors and hardware.

In plain words
What is it for?
Creating code for sensors, actuators, communication buses, state machines, timing, data logging, and hardware abstraction on boards such as Arduino Uno and ESP32.
Why use it?
It helps produce board-specific examples while accounting for pins, libraries, memory, timing, and connected hardware.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the arduino-skills plugin — 33 skills shipped together

not rated 24repo 2mo ago A scan Socket: passSnyk: passSkillSpector: pass 86 tokens original MIT

Good fit Creating code for sensors, actuators, communication buses, state machines, timing, data logging, and hardware abstraction on boards such as Arduino Uno and ESP32.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wedsamuel1230/arduino-skills/arduino-code-generator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wedsamuel1230/arduino-skills --skill arduino-code-generator
Clone the repo
git clone --depth 1 https://github.com/wedsamuel1230/arduino-skills

Made for: Claude Code.

Or install arduino-skills, the plugin that ships this one along with the rest of its 33 skills.

Wrote 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.

agentmods badge for arduino-code-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/wedsamuel1230/arduino-skills/arduino-code-generator/github.svg)](https://agentmods.dev/skills/wedsamuel1230/arduino-skills/arduino-code-generator)
Your own site
<a href="https://agentmods.dev/skills/wedsamuel1230/arduino-skills/arduino-code-generator"><img src="https://agentmods.dev/badge/skills/wedsamuel1230/arduino-skills/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.

agentmods 80×15 button for arduino-code-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/wedsamuel1230/arduino-skills/arduino-code-generator"><img src="https://agentmods.dev/badge/skills/wedsamuel1230/arduino-skills/arduino-code-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,495 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk pass 15 Feb 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00086 $0.01495
Opus 5.5 $0.00034 $0.00598
Sonnet 5.5 $0.00017 $0.00299
Haiku 4.5 $0.00009 $0.00150

Measured 2mo ago against content hash d9960c004c10, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

arduino-code-generator scanned grade A with 0 findings 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.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/generate_snippet.py, scripts/verify_patterns.ps1, scripts/verify_patterns.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/arduino-code-generator/SKILL.md · 147 lines

How it starts

The opening of the file, as written. The whole thing — 147 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 --no-project scripts/generate_snippet.py --list

Generate code for specific pattern and board:

uv run --no-project scripts/generate_snippet.py --pattern i2c --board esp32
uv run --no-project scripts/generate_snippet.py --pattern buttons --board uno --output button.ino

Interactive mode:

uv run --no-project scripts/generate_snippet.py --interactive

Target Gate

Read the shared contract and the board profile before selecting pins, APIs, or libraries. Keep board-specific branches isolated, check memory and peripheral constraints, and state whether the result has build proof only or also has upload, hardware, and system proof. The generator's board flag is a template selector, not evidence that the generated code works on a similar-looking board.

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
  • scripts/verify_patterns.ps1 - Compile examples for UNO/ESP32/RP2040 (PowerShell)
  • scripts/verify_patterns.sh - Compile examples for UNO/ESP32/RP2040 (bash)
  • 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

Read the full file on GitHub · 147 lines

Changes

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.

  1. 2mo ago First seen · 147 lines · 86 tokens per session scan A d9960c004c10

Subscribe to this mod's changes

arduino-code-generator is a skill published in the GitHub repository wedsamuel1230/arduino-skills (24 stars, last pushed 2mo ago), licensed MIT. It adds 86 tokens to every session and 1,495 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

arduino-code-generator compared with skills from other repositories

arduino-code-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
arduino-code-generatorwedsamuel1230/arduino-skillsSkill242mo agoMITA86Claude Code
zephyr-jsonksachdeva/zephyr-rtos-aiSkill234mo agoApache-2.0A68Claude Code, Codex
c-proagent-skills-hub/agent-skills-hubSkill1281mo agoMITA47Claude Code, Codex
cardputer-buddyanthropics/claude-plugins-officialSkill46kyesterdayApache-2.0A109Claude Code
doca-argpNVIDIA/skillsSkill3.9kyesterdayApache-2.0A277Claude Code, Codex
holoscan-module-lifecycleNVIDIA/skillsSkill3.9kyesterdayApache-2.0A47Claude Code, Codex
embedded-stm32Mindrally/skillsSkill29729d agoApache-2.0A87Claude Code