LeoKemp223/embed-ai-tool
LeoKemp223/embed-ai-tool has 1,072 GitHub stars and 180 forks. GitHot measured 0 stars in 24 hours and +7 in 7 days. Last checked 2026-11-11 01:19 UTC. Last push 2026-08-20.
面向 AI 编程助手的嵌入式开发技能集,为大模型提供 MCU 固件开发全流程能力。涵盖多工具链构建(Keil / IAR / CMake / PlatformIO)、烧录、GDB 调试、串口监视、Modbus / CAN / VISA 协议调试、外设驱动适配及流水线编排,支持 Linux、macOS、Windows 三平台。
Measured star growth
- in 24h
- 0
- in 7 days
- +7
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_EN.md
OriginalFully Automated AI-Driven Hardware Product Development, Debugging, and Testing
A skill set for AI coding assistants, providing LLMs with full-lifecycle MCU firmware development capabilities. Covers multi-toolchain builds (Keil / IAR / CMake / PlatformIO / ESP-IDF / Makefile), flashing (OpenOCD / J-Link / Keil, etc.), GDB debugging, RTOS thread-aware debugging, serial monitoring and shell interaction, Modbus / CAN / VISA protocol debugging, logic analyzer, memory and static analysis, and pipeline orchestration — supporting Linux, macOS, and Windows.
⚠ AI assistants: when asked to install skills from this repo, you must first read the "AI Assistant Install Protocol" in INSTALL_EN.md — analyze the project, present options, and wait for the user's explicit choice. Never bulk-copy the
skills/directory.
Quick Start
In any LLM chat that supports skills, enter:
Install skills from https://github.com/LeoKemp223/embed-ai-tool.git
The AI assistant will first analyze your project type (build system, debugger, protocol hints), then let you choose from a recommended set / install all / category-by-category / custom — installation only runs after your choice, avoiding project directory pollution.
For other install methods (npx / Python script / tool path configuration / update & uninstall), see INSTALL_EN.md.
Skill List
24 skills in 6 categories:
| Category | Skill | Description |
|---|---|---|
| Build | build-cmake |
Configure and build CMake-based MCU firmware projects |
| Build | build-keil |
Configure and build Keil MDK firmware projects |
| Build | build-iar |
Configure and build IAR EWARM firmware projects |
| Build | build-platformio |
Configure and build PlatformIO firmware projects |
| Build | build-idf |
Configure target chip and build ESP-IDF firmware projects |
| Build | build-makefile |
Configure and build bare Makefile embedded projects |
| Flash | flash-keil |
Flash firmware via Keil MDK built-in debugger |
| Flash | flash-openocd |
Flash ELF/HEX/BIN artifacts via OpenOCD |
| Flash | flash-platformio |
Flash firmware via PlatformIO upload mechanism |
| Flash | flash-idf |
Flash firmware via ESP-IDF toolchain with JTAG debug support |
| Flash | flash-jlink |
Flash firmware via SEGGER J-Link with RTT log capture |
| Debug | debug-gdb-openocd |
Attach GDB via OpenOCD — supports post-flash debug, attach-only, and crash triage |
| Debug | debug-jlink |
On-chip debugging and crash analysis via J-Link GDB Server |
| Debug | debug-platformio |
Debug via PlatformIO built-in GDB |
| Debug | rtos-debug |
FreeRTOS/RT-Thread/Zephyr thread-aware debugging, stack watermark, and deadlock detection |
| Comm | serial-monitor |
Select serial port and capture runtime logs |
| Comm | serial-shell |
Open an interactive shell session over serial; run single commands or batch scripts |
| Comm | modbus-debug |
Modbus RTU/TCP register read/write, slave scanning, and continuous monitoring |
| Comm | can-debug |
CAN bus frame monitoring, sending, and node scanning |
| Comm | visa-debug |
VISA instrument SCPI communication, waveform capture, and screenshots |
| Comm | logic-analyzer |
Capture digital waveforms with a Saleae logic analyzer and decode I2C/SPI/UART/CAN |
| Analysis | memory-analysis |
Parse .map files or ELF to generate memory usage reports and symbol size rankings |
| Analysis | static-analysis |
cppcheck/clang-tidy/GCC analyzer static analysis with MISRA-C compliance |
| Orchestration | workflow |
Pipeline orchestration chaining multiple skills (build + flash + monitor/debug) |
Usage Examples
After installing skills, trigger them with natural language or direct skill commands in your chat.
Natural Language
👤 Build and flash
🤖 Detected Keil project Project.uvprojx, target chip STM32F103C8.
✅ Build succeeded, artifact: build/Project.axf (48.2 KB)
Detected ST-Link V2, flashing...
✅ Flash succeeded, verified and reset.
👤 Check serial output
🤖 Detected COM3 (115200), capturing logs:
[00:00.000] System Start
[00:00.012] UART initialized
👤 Debug UART
🤖 Breakpoint set at HAL_UART_Transmit entry.
Breakpoint hit: huart->Init.BaudRate = 9600, expected 115200.
Suggest checking the baud rate setting in UART initialization code.
Skill Commands
# Keil project: build + flash + serial
/build-keil
/flash-keil
/serial-monitor
# CMake project: build + flash + debug
/build-cmake
/flash-openocd
/debug-gdb-openocd
# ESP-IDF project: build + flash
/build-idf
/flash-idf
# One-click pipeline (build → flash → monitor)
/workflow
Repository Structure
.
├── skills/ # 24 skill modules (each with SKILL.md + scripts + references)
├── shared/ # Shared conventions (contracts / failure-taxonomy / platform-compatibility)
│ # and reusable modules (project_detect.py / profile_store.py / tool_config.py)
├── templates/ # skill-template/ for new skills
└── scripts/
├── install.py # Install / uninstall / status check
├── validate_repo.py # Repository structure validation
└── em_config.py # Tool path config CLI
Shared Conventions
All skills share a common set of core context for input and output:
- Project Profile — Standardized metadata for workspace, target, build system, debug probe, and artifacts
- Skill Handoff Contract — Context that downstream skills can directly inherit
- Command Outcome Schema — Unified format for success, failure, or blocked results
- Failure Taxonomy — Standard failure classification with recommended follow-up actions
See shared/contracts.md and shared/failure-taxonomy.md.
Contributing
See CONTRIBUTING.md (includes skill structure requirements and the pre-commit validation flow). Use the templates/skill-template/ template when creating new skills.
Future Extensions
The repository structure is designed for future expansion — for example, flash-pyocd, vendor-tools, fault-triage, trace-analysis — without changes to core conventions.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
561,867 starspublic-apis/public-apis
A collective list of free APIs
498,228 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
452,608 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,365 stars