一键导入
embedded-memory
Use when hardware config detected, problem solved with evidence, or verification passed - writes to AGENTS.md for persistent project memory
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when hardware config detected, problem solved with evidence, or verification passed - writes to AGENTS.md for persistent project memory
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when working on embedded systems, firmware, MCU, sensors, displays, hardware drivers, or IoT applications on ESP32, STM32, RP2040, nRF52 - enforces TDD-first workflow with HAL Mock tests and build-flash-monitor verification before any completion claims
Embedded SP - Superpowers-integrated embedded development skill. Use for ESP32, STM32, RP2040, nRF52. Enforces TDD-first, Build-Flash-Monitor verification.
Use when working on embedded systems, firmware, MCU, sensors, displays, hardware drivers, or IoT applications on ESP32, STM32, RP2040, nRF52 - enforces TDD-first workflow with HAL Mock tests and build-flash-monitor verification before any completion claims
Use when working on embedded systems, firmware, MCU, sensors, displays, hardware drivers, or IoT applications on ESP32, STM32, RP2040, nRF52 - enforces TDD-first workflow with HAL Mock tests and build-flash-monitor verification before any completion claims
Use BEFORE any embedded firmware development - clarifies hardware requirements, pin assignments, interface timing, and architecture through structured questions and design approval gate
Use when implementing any driver, sensor handler, or firmware component - requires HAL Mock test first, then hardware verification test
| name | embedded-memory |
| description | Use when hardware config detected, problem solved with evidence, or verification passed - writes to AGENTS.md for persistent project memory |
| license | MIT |
| version | 1.0.0-sp |
v1.0.0-sp | 2026-04-13
| Type | AGENTS.md Section | Trigger |
|---|---|---|
hardware_config | hardware: | New hardware component detected |
solution_record | solutions: | Problem fixed + root cause + evidence |
verification_evidence | verifications: | Build-Flash-Monitor success |
Memory Trigger → Extract Info → Update AGENTS.md → Verify
read AGENTS.md
Extract:
project: → Chip, framework, porthardware: → LCD, IMU, pinssolutions: → Past fixesverifications: → Passed testsTrigger: User mentions hardware component (LCD, IMU, sensor, etc.)
read AGENTS.md
# Extract from conversation:
# - controller: ST7789
# - interface: SPI
# - resolution: 240x240
# - pins: MOSI=GPIO11, CLK=GPIO10
edit AGENTS.md
add/update hardware section:
hardware:
lcd:
controller: ST7789
interface: SPI
resolution: 240x240
dma_limit: 4092
pins:
spi_mosi: GPIO11
spi_clk: GPIO10
spi_cs: GPIO9
Template: See templates/hardware_config.md
Trigger: Problem fixed with evidence (after embedded-verification)
# Pattern detection:
# - "Problem: LCD shows nothing"
# - "Root cause: DMA overflow at >4092 bytes"
# - "Fix: Chunked transfer"
# - "Evidence: [idf.py monitor] Transfer complete"
read AGENTS.md
edit AGENTS.md
add solutions entry:
- date: 2026-04-13
problem: "LCD DMA overflow at >4092 bytes"
root_cause: "ESP32-S3 SPI DMA hardware limit"
fix: "Chunked transfer, 4092 bytes per chunk, loop until done"
evidence: "[idf.py monitor] Transfer complete, 240x240 full frame displayed"
tags: [dma, lcd, esp32-s3, chunked]
Template: See templates/solution_record.md
Trigger: Build-Flash-Monitor all passed
# Pattern detection:
# - build: "SUCCESS" or "Compiling complete"
# - flash: "DONE" or "Hash of data verified"
# - monitor: "OK" or expected output
read AGENTS.md
edit AGENTS.md
add verifications entry:
- date: 2026-04-13
task: "ST7789 LCD driver initialization"
build: "idf.py build → SUCCESS (0 errors, 0 warnings)"
flash: "idf.py -p COM3 flash → DONE (Hash verified)"
monitor: "LCD init OK, SPI configured, display ON"
status: PASSED
Template: See templates/verification_evidence.md
## 项目信息
project:
chip: ESP32-S3
framework: ESP-IDF v5.4
port: COM3
## 硬件配置 (hardware_config)
hardware:
lcd:
controller: ST7789
interface: SPI
resolution: 240x240
dma_limit: 4092
imu:
model: MPU6050
interface: I2C
address: 0x68
pins:
spi_mosi: GPIO11
spi_miso: GPIO12
spi_clk: GPIO10
spi_cs: GPIO9
## 问题解决记录 (solution_record)
solutions:
- date: 2026-04-13
problem: "LCD DMA overflow"
root_cause: "ESP32-S3 SPI DMA limit"
fix: "Chunked transfer"
evidence: "[monitor] Transfer complete"
tags: [dma, lcd]
## 验证证据 (verification_evidence)
verifications:
- date: 2026-04-13
task: "LCD driver init"
build: "SUCCESS"
flash: "DONE"
monitor: "OK"
status: PASSED
| Keyword | Extract |
|---|---|
| ESP32, S3, C3 | chip: ESP32-S3 |
| ST7789, ILI9341 | lcd.controller: ST7789 |
| SPI, I2C, UART | lcd.interface: SPI |
| 240x240, 320x240 | lcd.resolution: 240x240 |
| MPU6050, BMI270 | imu.model: MPU6050 |
| GPIO11, PIN_X | pins.spi_mosi: GPIO11 |
| Keyword | Extract |
|---|---|
| "Problem:", "Bug:", "Error:" | problem: ... |
| "Root cause:", "Caused by:" | root_cause: ... |
| "Fix:", "Solution:", "Changed:" | fix: ... |
| "[monitor]", "[log]", "Evidence:" | evidence: ... |
| Keyword | Extract |
|---|---|
| "SUCCESS", "Compiling complete" | build: SUCCESS |
| "DONE", "Hash verified" | flash: DONE |
| "OK", "init complete" | monitor: OK |
Memory skill invoked by:
embedded-brainstorming → Writes hardware_configembedded-verification → Writes verification_evidencesolution_recordFlow:
embedded-brainstorming → hardware detected → write hardware_config
embedded-verification → build/flash/monitor pass → write verification_evidence
Problem fixed → root cause found → write solution_record
Automated AGENTS.md updater with YAML parsing.
python scripts/agents_updater.py --type hardware_config --data '{"lcd": {"controller": "ST7789"}}'
python scripts/agents_updater.py --type solution_record --data '{"problem": "DMA overflow"}'
python scripts/agents_updater.py --type verification_evidence --data '{"task": "LCD init"}'
v1.0.0-sp | Based on NeuralMemory principles, adapted for embedded development