gpio-config

gpio-config is a skill for Claude Code from claudius-ars/embedded-agent-skills. It costs 229 tokens per session (4,037 once invoked), scanned A, original, MIT.

A configuration helper for assigning and checking GPIO pins, the physical input and output connections on Raspberry Pi and ESP32 boards.

In plain words
What is it for?
Use it to plan wiring and generate GPIO configurations involving I2C, SPI, UART, PWM, 1-Wire, CAN, ADC, boot pins, or device settings on supported Raspberry Pi and ESP32 variants.
Why use it?
It helps detect pin conflicts and account for board-specific limits and features when setting up connected hardware.

Skill for Claude Code

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

Part of the gpio-config plugin — 1 skill shipped together

Good fit Use it to plan wiring and generate GPIO configurations involving I2C, SPI, UART, PWM, 1-Wire, CAN, ADC, boot pins, or device settings on supported Raspberry Pi and ESP32 variants.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/claudius-ars/embedded-agent-skills/gpio-config
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 claudius-ars/embedded-agent-skills --skill gpio-config
Clone the repo
git clone --depth 1 https://github.com/claudius-ars/embedded-agent-skills

Made for: Claude Code.

Or install gpio-config, the plugin that ships this one along with the rest of its 1 skill.

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 gpio-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/claudius-ars/embedded-agent-skills/gpio-config/github.svg)](https://agentmods.dev/skills/claudius-ars/embedded-agent-skills/gpio-config)
Your own site
<a href="https://agentmods.dev/skills/claudius-ars/embedded-agent-skills/gpio-config"><img src="https://agentmods.dev/badge/skills/claudius-ars/embedded-agent-skills/gpio-config/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 gpio-config

Your own site · 80×15
<a href="https://agentmods.dev/skills/claudius-ars/embedded-agent-skills/gpio-config"><img src="https://agentmods.dev/badge/skills/claudius-ars/embedded-agent-skills/gpio-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 229 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,037 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.
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.00229 $0.04037
Opus 5 $0.00114 $0.02018
Sonnet 5 $0.00046 $0.00807
Haiku 4.5 $0.00023 $0.00404

Measured 10d ago against content hash a66672d6cd3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

gpio-config 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 10d ago.

The scan reads SKILL.md. This mod also ships 13 executable files (scripts/generate_config.py, scripts/platforms/__init__.py, scripts/platforms/base.py, …), 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.

embedded-agent-skills/gpio-config/SKILL.md · 357 lines

How it starts

The opening of the file, as written. The whole thing — 357 lines — stays where its author put it; the contents beside it link to each section on GitHub.

1 · Platform Detection

Explicit Detection

Keywords/Patterns Platform
Raspberry Pi, RPi, BCM2835, BCM2711, BCM2712, config.txt, dtoverlay, gpiozero, RPi.GPIO, pigpio, /boot/firmware/ RPi
ESP32, ESP-IDF, WROOM, WROVER, menuconfig, sdkconfig, Arduino (with ESP context), esp_err_t, gpio_config(), ESP32-S2, S3, C3, C6 ESP32

Model/Variant Detection

RPi Variants:

Identifier Models Covered Key Differences
rpi3 Pi 3B/3B+ UART/BT conflict on mini-UART, 2× PWM channels, config at /boot/config.txt
rpi4 Pi 4B 4× PWM channels, dual SPI, config at /boot/firmware/config.txt
rpi5 Pi 5 RP1 southbridge (different peripheral base), 4× PWM, config at /boot/firmware/config.txt
rpi_zero2w Zero 2W Same SoC as Pi 3, UART/BT conflict, limited current budget

ESP32 Variants:

Identifier Key Differences
esp32 34 GPIO, dual-core, ADC2 conflicts with WiFi, Hall sensor on GPIO36/39
esp32s2 43 GPIO, single-core, no Bluetooth, native USB, no ADC2/WiFi conflict
esp32s3 45 GPIO, dual-core, BLE5, native USB, no ADC2/WiFi conflict
esp32c3 22 GPIO, single-core RISC-V, BLE5 only, no ADC2/WiFi conflict
esp32c6 30 GPIO, RISC-V, WiFi 6, 802.15.4, no ADC2/WiFi conflict

ESP32 Modules:

Module Additional Reserved Pins
WROOM GPIO6–11 (flash SPI)
WROVER GPIO6–11 (flash SPI) + GPIO16–17 (PSRAM)

Ambiguity Rules

  1. If platform cannot be determined from context: ask the user. NEVER silently default to a platform.
  2. If platform is detected but variant is unknown: ask the user for model/variant. Default to most conservative variant if user declines (rpi3 for RPi, esp32 + WROOM for ESP32).
  3. Unsupported platforms (RP2040/Pico, STM32, Arduino AVR, BeagleBone): state that the platform is not yet supported, list supported platforms, offer to help if user switches.

2 · Reference Loading

ALWAYS load the platform pin database. Load other files only when their trigger condition is met.

Read the full file on GitHub · 357 lines

Files

What ships with it

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

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. 10d ago First seen · 357 lines · 229 tokens per session scan A a66672d6cd3b

Subscribe to this mod's changes

gpio-config is a skill published in the GitHub repository claudius-ars/embedded-agent-skills (19 stars, last pushed 7mo ago), licensed MIT. It adds 229 tokens to every session and 4,037 once invoked, about $0.0011 per session on Opus 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

Other skills, from other repositories

m5stack-cap-lora-1262

Hardware reference and firmware helper for the M5Stack Cap LoRa-1262 (SKU U214) — a snap-on cap for the Cardputer Adv (K132-Adv) and CardputerZero that carries a Semtech SX1262 sub-GHz LoRa radio (868–923 MHz, +22 dBm TX, external RP-SMA antenna) and an ATGM336H-6N GNSS receiver (GPS/QZSS/BeiDou/Galileo/GLONASS, UART…

iot-forge/m5stack-skills · 254 tokens

new-device-skill

Build or update an M5Stack hardware skill in this marketplace — a Controller (a board that runs firmware, like Core2 or AtomS3), a Unit (a peripheral you drive from a Controller, like a ToF sensor or a relay), or a Chip (an Espressif SoC capability layer, like esp32-c6). Use whenever adding a new board/unit/chip to…

iot-forge/m5stack-skills · 171 tokens

m5stack-tab5

Hardware reference and development helper for the M5Stack Tab5 (product code C145) — an ESP32-P4-based 5" touchscreen IoT/industrial terminal with an ESP32-C6 wireless co-processor, MIPI-DSI display, MIPI-CSI camera, ES8388 audio codec, BMI270 IMU, RX8130CE RTC, RS485, and a removable NP-F550 battery. Use this skill…

iot-forge/m5stack-skills · 236 tokens

m5stack-core2

Hardware reference and development helper for the M5Stack Core2 family — a 2.0" touchscreen ESP32 (classic, Xtensa LX6) Controller built around an AXP192 power management IC, ILI9342C display, FT6336U capacitive touch, BM8563 RTC, and (on original/1.1/1.3 revisions) an MPU6886 or BMI270 IMU. Covers the plain Core2…

iot-forge/m5stack-skills · 328 tokens

esp32-c6

Chip-level ESP-IDF capability reference for the ESP32-C6 SoC (single-core RISC-V HP core + RISC-V LP core, WiFi 6 + BLE 5.3 + Thread/Zigbee) — what the chip can do, distinct from any board's wiring. Use when a user wants to exploit ESP32-C6 hardware — WiFi 6/BLE/802.15.4 radio coexistence (Thread Border Router, Zigbee…

iot-forge/m5stack-skills · 307 tokens

esp32-p4

Chip-level ESP-IDF capability reference for the ESP32-P4 SoC (dual-core RISC-V HP cores + a RISC-V LP core) — what the chip can do, distinct from any board's wiring. Use when a user wants to exploit ESP32-P4 hardware — MIPI-CSI/DSI with the on-chip ISP, hardware JPEG encode/decode, hardware H.264 encode, PPA/2D-DMA…

iot-forge/m5stack-skills · 270 tokens