Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

hardware-tdd

/hardware-tdd

Planuje testy firmware'u Arduino, ESP32, Pico i Pico W: co uruchomić poza urządzeniem, użycie Wokwi i symulacji, atrapy hosta oraz rozróżnienie dowodu kompilacji od dowodu działania na sprzęcie.

Licencja
MIT
Ostatnia zmiana repozytorium
15.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 15.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Planuje testy firmware'u Arduino, ESP32, Pico i Pico W: co uruchomić poza urządzeniem, użycie Wokwi i symulacji, atrapy hosta oraz rozróżnienie dowodu kompilacji od dowodu działania na sprzęcie.

Oryginalny opis (EN)

Use when planning tests for Arduino, ESP32, ESP32-S3, Pico, or Pico W firmware; deciding what can run off-target; using Wokwi or simulation; writing host fakes; or accepting a physical hardware feature without confusing compile proof with system proof.

Jak działa

  1. Intake
  2. Process
  3. Test matrix
  4. Anti-rationalization
  5. Verification
  6. Shared output contract
Sekcje z nagłówków SKILL.md, w oryginale · 61 linii, 417 słów
Podgląd SKILL.md
---
name: hardware-tdd
description: Use when planning tests for Arduino, ESP32, ESP32-S3, Pico, or Pico W firmware; deciding what can run off-target; using Wokwi or simulation; writing host fakes; or accepting a physical hardware feature without confusing compile proof with system proof.
metadata:
  triggers: "hardware test, embedded TDD, Wokwi, simulation, host test, acceptance test, hardware regression"
  attribution: "Adapted from Agent Skills eval integrity guidance and the shared Arduino evidence-stage contract."
---

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

## Verification

- Every requirement maps to a test, proof stage, and artifact path.
- Host/simulation/build/target/system results are labeled separately.
- Physical-only steps emit the concrete `Physical gate` format from
  `embedded-project-loop`.
- Failed and unverified cases remain visible in the report.

## Shared output contract

Use [the shared Arduino skill contract](../../docs/arduino-skill-contract.md):
state assumptions, required tools and versions, implementation steps,
tests/evidence by proof stage, known limitations, and recovery/security notes.

Wersje

W bazie nie ma innych skilli o nazwie hardware-tdd.

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 13.11.2026 · wersja paczki 12a31f87050e (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 95wokwi-builder
    Buduje i uruchamia w symulatorze Wokwi układy ESP32, Arduino i Raspberry Pi Pico na podstawie opisu w języku naturalnym.
  • 100arduino-project-builder
    Buduje kompletne projekty Arduino i wbudowane w Arduino IDE, Arduino CLI, PlatformIO i narzędziach producentów, łącząc firmware, czujniki, aktuatory, sieć, zasilanie i wdrożenie, ze scaffoldem dla UNO, ESP32 i Raspberry Pi Pico.
  • 90wiring-safety-check
    Sprawdza połączenia Arduino, ESP32 lub Pico z czujnikami i zasilaniem pod kątem poziomów 5 V i 3,3 V oraz limitów prądu.
  • 100rp2040-pico
    Pomaga w firmware na Raspberry Pi Pico z RP2040: piny GPIO, ADC, PWM, state machine PIO, USB oraz konfiguracja PlatformIO z arduino-pico.
  • 100rp2350a-weact
    Pomaga w firmware płytki WeAct RP2350A w obu rewizjach: nagłówek 40-pin, ADC, PWM, PIO, zasilanie i PlatformIO z arduino-pico.
  • 95deploy
    Buduje, testuje i wdraża oprogramowanie robota: wgrywa firmware Arduino i buduje workspace ROS 2 lub uruchamia symulację.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.