<< All versions
Skill v1.0.1
currentAutomated scan100/100jl-codes/platformio-mcp/hardware-in-the-loop-test
chore: update Vitest past security advisory (#24)
──Details
PublishedSeptember 12, 2026 at 05:10 PM
Content Hashsha256:ee8aa377c16ea0c5...
Git SHA40e12ccb8e85
──Files
Files (1 file, 2.2 KB)
SKILL.md2.2 KBactive
SKILL.md · 50 lines · 2.2 KB
version: "1.0.1" name: hardware-in-the-loop-test description: Validate firmware behavior on real hardware rather than compilation-only checks. Use when running physical acceptance tests, confirming boot markers, validating sensor output, or checking runtime timing/telemetry.
Hardware-in-the-Loop Test
Reading results: a non-zero exit means look at BOTH streams. An operationthat ran but failed (a build with errors) putssuccess: falseon stdout;one that could not run (bad arguments, policy, a busy port) putserrorTypeonstderr with stdout empty. Capture both (--json 2>&1). See thepio-managerskill for the full contract.
Purpose
Use this skill to validate firmware behavior on a real device, not just through compilation.
Safety Rules
- Ask before flashing.
- Do not assume physical wiring is safe.
- Do not activate motors, heaters, lasers, relays, pumps, or high-power outputs without explicit user approval.
- Keep tests bounded by timeout.
- Save logs and artifacts.
Workflow
- Define finite expected markers, rejected patterns, timeout, stability window, and safe physical behavior.
- Resolve one project, environment, board, and stable device binding with
pio-agent target-resolve; stop on ambiguity or replacement. - Validate and build with
pio-agent agent-build-diagnose. - Ask for an approval scoped to the exact flash workflow and target binding.
- Run
pio-agent agent-flash-monitor-verifyafter approval. - Check bounded serial markers, timing, or telemetry and retain task/log/artifact references.
- Mark build, flash, monitor, and assertions independently as pass, fail, or inconclusive.
- Cancel runaway tracked tasks with
pio-agent task-cancel <id>; confirm cleanup withpio-agent task-history --project-dir <dir>,pio-agent monitor-status, andpio-agent lock status. - Save redacted evidence and summarize the result.
Scheduled HIL writes require a pre-existing, exact, expiring lab_runner policy. A saved prompt cannot create, approve, or broaden that policy, and default scheduled monitoring must remain read/build/monitor-only.
Example Test Definition
yaml
name: esp32_boot_markerboard: esp32devexpected:serial_contains: BOOT_OKtimeout_seconds: 15