Skip to content

lhbsaa/embedded-sp

Repository files navigation

Embedded SP Skill

License: MIT Pi Compatible OpenCode Compatible Version 中文

Superpowers-integrated embedded development skill — Iron Law, TDD, Build-Flash-Monitor verification, and 101+ files covering ESP32, STM32, RP2040, nRF52.

Also available as part of apex-unified — the unified AI coding agent.


Features

  • 4 Sub-Skills: brainstorming, TDD, verification, memory
  • Iron Law: NO firmware without failing HAL Mock test; NO completion without B-F-M output
  • 4 Chip Families: ESP32, STM32, RP2040, nRF52
  • 5 Hardware Interfaces: SPI, I2C, UART, GPIO, ADC/PWM
  • 5 Communication Protocols: Wi-Fi/TCP, MQTT/BLE, CAN, LoRa, USB
  • 14 Case Studies: from LCD ST7789 init to OTA HTTPS updates
  • 19 Reference Documents: debugging, memory, power, motors, displays, security
  • 10 Scripts: serial monitor, memory verification, camera capture, installer/uninstaller
  • Dual Platform: Pi Coding Agent + OpenCode

Quick Install

Pi Coding Agent

git clone https://github.com/lhbsaa/embedded-sp.git
cp -r embedded-sp ~/.pi/agent/skills/embedded-sp
pi /reload

OpenCode

git clone https://github.com/lhbsaa/embedded-sp.git
cp -r embedded-sp ~/.opencode/skills/embedded-sp

Structure

embedded-sp/
├── SKILL.md              Entry point (145 lines, Iron Law)
├── INDEX.md              Knowledge map (337 lines)
├── skills/               4 sub-skills
├── chips/                4 chip families
├── interfaces/           5 hardware interfaces
├── protocols/            Communication protocols
├── debugging/            Debugging guides
├── examples/             14 case studies
├── references/           19 reference docs
├── scripts/              10 automation scripts
├── hooks/                Session hooks
└── adapters/             Platform adapters (Pi / OpenCode)

Iron Laws

NO FIRMWARE CODE WITHOUT FAILING HAL MOCK TEST FIRST
NO COMPLETION CLAIM WITHOUT BUILD-FLASH-MONITOR OUTPUT
NO FIX WITHOUT ROOT CAUSE INVESTIGATION

Quick Commands

Platform Build Flash Monitor
ESP32 idf.py build idf.py -p COM3 flash idf.py monitor
STM32 make st-flash write st-util + nc localhost 4242
RP2040 cmake --build picotool load USB CDC

License

MIT License. See LICENSE.

About

Embedded SP - Superpowers-integrated embedded development skill for Pi Coding Agent & OpenCode. 101 files, 4 chip families, 4 sub-skills, 14 case studies, Iron Law, TDD, Build-Flash-Monitor verification.

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages