IgStep

Stm32 Unit Sil Hil Testing Skill — Testing skill for Claude Code

Testing community

AI agent skill that builds a test pyramid for STM32 firmware in C/C++: unit tests, host system tests, SIL in Renode, HIL on a real board, and CI.

How to install Stm32 Unit Sil Hil Testing Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open IgStep/stm32-unit-sil-hil-testing-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Stm32 Unit Sil Hil Testing Skill does

AI agent skill that builds a test pyramid for STM32 firmware in C/C++: unit tests, host system tests, SIL in Renode, HIL on a real board, and CI. Works step by step and traces tests to requirements. For Claude Code, Codex, Cursor and other agents that read SKILL.md.

Alternatives in Testing

  • Crlf — Test for CRLF / HTTP response-splitting and host-header injection — Set-Cookie injection, cache poisoning, res 4.5k ★
  • Test Discovery — Discover and write missing tests for altimate-code 817 ★
  • Test After Change Diagnostics.V1 — If any program code changes, run unit-tests and follow up on the test-result (fix code if there is an error) 272 ★

README

stm32-unit-sil-hil-testing-skill

An agent skill that sets up a test pyramid for STM32 firmware written in C or C++. It guides your AI coding agent (Claude Code, Codex, Cursor and others that read `SKILL.md`) step by step through:

Level What runs Default tools
Unit firmware logic + fake hardware on your PC Unity (C), GoogleTest (C++), gcovr
Host system the logic as a PC program, black-box tests pytest
SIL the real .elf in an emulator Renode, Robot Framework (renode-test)
HIL the real binary on the real board Raspberry Pi (or any Linux test agent), pyserial, OpenOCD/st-flash
CI all of the above on every push, HIL on demand GitHub Actions

It starts by introducing a **seam** between logic and hardware, so the same code runs on the board, in unit tests and in a PC simulation. Each step ends with a clear "done" check, and every test is traced to a requirement.

**Chip not in Renode?** The skill includes a platform ladder: reuse the family platform, patch missing registers (e.g. RCC ready bits), add small models, or narrow SIL scope and record the gap.

Install

Claude Code (plugin marketplace)

/plugin marketplace add IgStep/stm32-unit-sil-hil-testing-skill
/plugin install stm32-unit-sil-hil-testing@igstep-skills

The skill is then available as `/stm32-unit-sil-hil-testing:stm32-unit-sil-hil-testing` and loads on its own when you ask for firmware tests.

Any agent (copy the folder)

Copy `plugins/stm32-unit-sil-hil-testing/skills/stm32-unit-sil-hil-testing/` into your agent's skills folder, e.g. `~/.claude/skills/` for Claude Code or `.claude/skills/` inside one project.

Usage

Open your STM32 project (CubeIDE, CMake or Make) and ask, for example:

Add unit tests to this firmware.

Set up SIL in Renode for this project.

Run with no argument, the skill surveys the project (hardware accesses, ISRs, clock, toolchain), drafts `docs/TEST_PLAN.md` with requirements and the level p