hardware-tdd

hardware-tdd is a skill for Claude Code from wedsamuel1230/arduino-skills. It costs 59 tokens per session (712 once invoked), scanned A, original, MIT.

A test-planning guide for firmware and connected hardware. TDD means test-driven development: checking expected behavior with tests before treating a feature as complete.

In plain words
What is it for?
Use it to write host tests with simulated inputs, test peripherals in Wokwi, compile for the exact board, and plan safe hardware checks with measurements and logs.
Why use it?
It separates what software tests, compilation, simulation, and physical measurements can each prove, avoiding false confidence from a passing test or build.

Skill for Claude Code

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

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

Good fit Use it to write host tests with simulated inputs, test peripherals in Wokwi, compile for the exact board, and plan safe hardware checks with measurements and logs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wedsamuel1230/arduino-skills/hardware-tdd
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 hardware-tdd
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 hardware-tdd

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/wedsamuel1230/arduino-skills/hardware-tdd"><img src="https://agentmods.dev/badge/skills/wedsamuel1230/arduino-skills/hardware-tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 712 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.00059 $0.00712
Opus 5 $0.00030 $0.00356
Sonnet 5 $0.00012 $0.00142
Haiku 4.5 $0.00006 $0.00071

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

Security

Grade A, and why

hardware-tdd 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 12d 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.

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/hardware-tdd/SKILL.md · 68 lines

How it starts

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

Hardware TDD

Build the test ladder before claiming a feature is complete. Pure behavior can often be tested off-target; voltage, pin mux, timing under load, and physical assembly still require target evidence.

Intake

Record exact board/revision, framework/toolchain, hardware invariants, safety inhibits, simulator model, available instruments, test fixtures, and the proof stage required by the user.

Process

  1. Turn requirements into observable behavior and safety invariants.
  2. Write host tests for pure C/C++ logic using fakes for time, serial, sensors, and actuators. Keep hardware adapters thin.
  3. Use Wokwi or another simulator only for peripherals and timing that its model actually represents; record model limitations.
  4. Run an exact-board compile and static checks with the selected toolchain.
  5. Create a one-change target checklist: power-off continuity, controlled power-up, input observation, output inhibit, reset/recovery, and logs.
  6. Ask a physical gate for measurements, photos, or serial output. Do not infer target success from a host test or compile log.
  7. Record failures as evidence and keep the next test bounded.

Test matrix

Layer Example Proves Does not prove
Host debounce/state/packet parser deterministic logic pin voltage or wiring
Simulation modeled sensor/LED/UART modeled interactions regulator, clone, EMI, thermal behavior
Build exact FQBN/environment source and dependency compile upload or behavior
Target serial, meter, scope, photo observed hardware behavior field reliability unless loaded
System integrated load/failure case requirement under scenario future deployment safety

Anti-rationalization

Shortcut Response
"The unit test passed." Keep all physical and system stages open.
"Wokwi matches the board." List what the model omits and verify those items on hardware.
"The sketch compiled." Require upload identity and target observations separately.
"The photo proves it works." Require board identity, measurement context, and observed result.
"Mark it done and test later." Keep the loop item blocked or needs-review until evidence exists.

Read the full file on GitHub · 68 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. 12d ago First seen · 68 lines · 59 tokens per session scan A 2509249477f4

Subscribe to this mod's changes

hardware-tdd is a skill published in the GitHub repository wedsamuel1230/arduino-skills (21 stars, last pushed 23d ago), licensed MIT. It adds 59 tokens to every session and 712 once invoked, about $0.0003 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

test-driven-development

Use when implementing any feature or bugfix, before writing implementation code.

obra/superpowers · 17 tokens

test-driven-development

Drives development with tests using the red-green-refactor loop. Use when implementing any logic, fixing any bug, or changing any behavior. Use when you need to prove that code works, when a bug report arrives, or when you're about to modify existing functionality.

addyosmani/agent-skills · 57 tokens

writing-skills

A guide for creating and testing reusable instructions for AI agents, called skills. It applies test-driven development, or TDD—the practice of writing tests before implementation—to instruction documents.

jnMetaCode/superpowers-zh · 23 tokens

test-generation

Use when the user asks for tests, mentions TDD, or when new code has been written and needs test coverage.

darrenhinde/OpenAgentsControl · 27 tokens

test-driven-development

Test-driven development, or TDD, is a way to build software by writing a test that fails, adding the smallest code that makes it pass, and then cleaning up the code. These instructions require that process for features, bug fixes, refactors, and behavior changes.

jnMetaCode/superpowers-zh · 20 tokens

skillshare-implement-feature

Implement a feature from a spec file or description using TDD workflow. Use this skill whenever the user asks to: add a new CLI command, implement a feature from a spec, build new functionality, add a flag, create a new internal package, or write Go code for skillshare. This skill enforces test-first development…

runkids/skillshare · 114 tokens