embedded-library-entry
Skill36 starsChanged 5 months agoMITView on GitHub
Use when integrating, porting, configuring, or debugging third-party MCU embedded C libraries in bare-metal or RTOS projects
In this repository75 other files it gives its agents.
- 8051-mcu-debugSkill
- avem-integrationSkill
- battery-charger-fuel-gauge-integrationSkill
- ble-gatt-integrationSkill
- bootloader-debugSkill
- canbus-integrationSkill
- canopen-integrationSkill
- cellular-at-modem-integrationSkill
- cmbacktrace-integrationSkill
- cmsis-dsp-integrationSkill
- cortex-m-debugSkill
- cortex-r5-debugSkill
- crc-checksum-integrationSkill
- easylogger-integrationSkill
- embedded-app-example-libsSkill
- embedded-buffer-queue-libsSkill
- embedded-data-parsing-libsSkill
- embedded-debug-entrySkill
- embedded-fault-debugSkill
- embedded-framework-libsSkill
- embedded-input-libsSkill
- embedded-linux-login-debugSkill
- embedded-peripheral-bringupSkill
- embedded-serial-log-debugSkill
- embedded-state-machine-libsSkill
- embedded-timing-libsSkill
- epd-integrationSkill
- esp-idf-integrationSkill
- fatfs-integrationSkill
- flashdb-integrationSkill
- freemodbus-integrationSkill
- freertos-kernel-debugSkill
- freertos-plus-tcp-integrationSkill
- gnss-gps-integrationSkill
- hardware-interface-debugSkill
- heatshrink-integrationSkill
- letter-shell-integrationSkill
- littlefs-integrationSkill
- low-power-debugSkill
- lvgl-integrationSkill
- lwip-integrationSkill
- mbedtls-integrationSkill
- mcuboot-integrationSkill
- mcu-flashing-debugSkill
- micro-ecc-integrationSkill
- miniz-integrationSkill
- mqtt-embedded-integrationSkill
- nanopb-integrationSkill
- nrf-connect-sdk-integrationSkill
- nr-micro-shell-integrationSkill
- openocd-jlink-stlink-debugSkill
- openthread-integrationSkill
- ota-update-integrationSkill
- plooc-integrationSkill
- power-management-integrationSkill
- qspi-xip-flash-debugSkill
- readme-writingSkill
- riscv-mcu-debugSkill
- rtos-debugSkill
- rt-thread-integrationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill as the entry point for MCU library integration work.
- Distinctive: line 14
Use this skill when:
- Distinctive: line 20
Do not use this skill when the problem is only board bring-up, flashing, serial logs, or architecture faults.
- Distinctive: line 24
Ask only what is needed to route:
- Distinctive: line 164
Ask for the porting hooks the library expects and the project already provides.
- Distinctive: line 172
Verify with a target-relevant scenario.
- Distinctive: line 177
Before moving to a specific library workflow:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Embedded Library Entry
Overview
Use this skill as the entry point for MCU library integration work. Classify the library type, target platform, runtime model, resource limits, and required porting layer before routing to a specific library skill.
When To Use
Use this skill when:
- The user wants to add, port, configure, or debug an embedded C library.
- The task involves MCU storage, logging, crash diagnosis, shell commands, filesystems, protocol stacks, UI, parsers, buttons, timers, queues, or state machines.
- The target may be bare metal, RTOS-based, or resource-constrained.
Do not use this skill when the problem is only board bring-up, flashing, serial logs, or architecture faults. Use the embedded debug skills first.
First Questions
Ask only what is needed to route:
- Library name and version or source repository.
- Target MCU/SoC, compiler, and build system.
- Runtime model: bare metal, FreeRTOS, RT-Thread, Zephyr, Linux, or unknown.
- Memory/storage resources: RAM, flash, block device, filesystem, heap, stack, and whether dynamic allocation is allowed.
- Existing porting layer: file I/O, flash driver, UART, timebase, mutex, malloc, display, network, or shell transport.
- Current task: first integration, compile error, link error, runtime failure, performance issue, or data corruption.
Routing Guide
Storage & Filesystem
| Library or task | Prefer |
| littlefs filesystem or block device | littlefs-integration |
| FatFs disk I/O, FAT/exFAT | fatfs-integration |
| FlashDB KV/time-series database | flashdb-integration |
Logging & Diagnosis
| Library or task | Prefer |
| EasyLogger output, filters, async logs | easylogger-integration |
| CmBacktrace Cortex-M crash backtrace | cmbacktrace-integration |
| SEGGER RTT logs, control block, J-Link I/O | segger-rtt-integration |
Shell & CLI
| Library or task | Prefer |
| letter-shell command shell | letter-shell-integration |
| nr_micro_shell tiny CLI | nr-micro-shell-integration |
| zoom-shell embedded console | zoom-shell-integration |
Networking & Protocols
| Library or task | Prefer |
| lwIP netif, DHCP, TCP, UDP | lwip-integration |
| FreeRTOS+TCP network driver, sockets | freertos-plus-tcp-integration |
| MQTT client, keepalive, QoS, TLS | mqtt-embedded-integration |
| FreeModbus RTU, ASCII, TCP | freemodbus-integration |
| OpenThread radio, mesh, commissioning | openthread-integration |
| CAN bus library, MCP2515, bit timing | canbus-integration |
| CANopen OD, NMT, SDO, PDO, heartbeat | canopen-integration |
| BLE GATT services, characteristics, MTU | ble-gatt-integration |
UI & Display
| Library or task | Prefer |
| LVGL display, input, tick, draw buffers | lvgl-integration |
| U8g2 monochrome display, fonts | u8g2-integration |
| E-paper EPD, busy timing, refresh modes | epd-integration |
| TJpgDec embedded JPEG decoding | tjpgd-integration |
Security & Crypto
| Library or task | Prefer |
| mbedTLS entropy, certificates, TLS handshake | mbedtls-integration |
| micro-ecc ECDH, ECDSA, keys, signatures | micro-ecc-integration |
| TinyCrypt AES, SHA, HMAC, ECC | tinycrypt-integration |
Data & Serialization
| Library or task | Prefer |
| cJSON, jsmn, inih parsers | embedded-data-parsing-libs |
| nanopb Protocol Buffers | nanopb-integration |
| CRC, checksum, integrity checks | crc-checksum-integration |
USB & Transfer
| Library or task | Prefer |
| TinyUSB device, host, CDC, MSC, HID | tinyusb-integration |
| XMODEM/YMODEM serial transfer, bootloader | ymodem-xmodem-integration |
Boot & OTA
| Library or task | Prefer |
| MCUboot secure boot, slots, signing | mcuboot-integration |
| OTA package, transport, rollback | ota-update-integration |
Compression
| Library or task | Prefer |
| miniz DEFLATE, zlib, ZIP | miniz-integration |
| heatshrink streaming compression | heatshrink-integration |
DSP & ML
| Library or task | Prefer |
| CMSIS-DSP math, FFT, filters | cmsis-dsp-integration |
| TinyMaix MCU inference, model loading | tinymaix-integration |
Input, Timers & State Machines
| Library or task | Prefer |
| MultiButton, FlexibleButton | embedded-input-libs |
| MultiTimer, software timers | embedded-timing-libs |
| Ring buffer, FIFO, MCU queues | embedded-buffer-queue-libs |
| State machine libraries | embedded-state-machine-libs |
Frameworks & Patterns
| Library or task | Prefer |
| PLOOC object-oriented C | plooc-integration |
| Avem event-driven components | avem-integration |
| Power management framework | power-management-integration |
| Embedded app examples adaptation | embedded-app-example-libs |
Testing
| Library or task | Prefer |
| Unity, Ceedling, CMock embedded C tests | unity-ceedling-integration |
Fallback (not a library issue)
| Symptom | Prefer |
| MCU flash, erase, verify failure | mcu-flashing-debug |
| UART transport or missing logs | embedded-serial-log-debug |
| RTOS task, mutex, queue, stack issue | rtos-debug |
| Board power, reset, pin, or signal issue | hardware-interface-debug |
Workflow
- Route by library responsibility. Identify whether the library depends on storage, UART, RTOS primitives, heap, timers, display, network, or flash erase/program operations.
- Confirm platform contracts. Ask for the porting hooks the library expects and the project already provides.
- Preserve data and flash. Formatting filesystems, erasing database partitions, wiping logs, or changing flash layout requires explicit user approval.
- Keep integration minimal. Bring up one smallest working path before enabling optional features such as async logging, wear leveling stress tests, shell authentication, or compression.
- Verify with a target-relevant scenario. A library compiles successfully only proves syntax. Require a read/write, log, shell command, or crash capture that exercises the port layer.
Verification
Before moving to a specific library workflow:
- State the selected library skill and why.
- State target MCU/RTOS/compiler/build system if known.
- Identify required porting hooks and missing inputs.
- Confirm no data-destructive action has been recommended without approval.
Common Failures
- Treating a library as portable because it compiles on desktop.
- Enabling all optional features before the minimal port works.
- Ignoring flash erase size, write alignment, and power-fail behavior.
- Debugging library logic before validating the porting layer.
- Assuming malloc, mutexes, time functions, or file APIs exist on bare metal.
Example
User:
我想在 STM32 项目里加 littlefs 保存配置。Agent:
- Routes to
littlefs-integration. - Asks for flash layout, erase/program sizes, bad block assumptions, RTOS locking, and whether formatting is allowed.
- Verifies mount, format-if-approved, file write, sync, reboot, and readback.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

