8051-mcu-debug
Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers,…
Use when integrating, porting, configuring, or debugging embedded ring buffers, circular buffers, FIFO queues, Ring-Buffer, or QueueForMcu libraries
Claude Code
$ npx -y skills add easyzoom/aix-skills --skill embedded-buffer-queue-libs --agent claude-code
Codex
$ npx skills add easyzoom/aix-skills --skill embedded-buffer-queue-libs -a codex -y
Cursor
$ npx skills add easyzoom/aix-skills --skill embedded-buffer-queue-libs -a cursor -y
Gemini CLI
$ npx skills add easyzoom/aix-skills --skill embedded-buffer-queue-libs -a gemini-cli -y
GitHub Copilot
$ npx skills add easyzoom/aix-skills --skill embedded-buffer-queue-libs -a github-copilot -y
OpenCode
$ npx skills add easyzoom/aix-skills --skill embedded-buffer-queue-libs -a opencode -y
Windsurf
$ npx skills add easyzoom/aix-skills --skill embedded-buffer-queue-libs -a windsurf -y
name: embedded-buffer-queue-libs description: Use when integrating, porting, configuring, or debugging embedded ring buffers, circular buffers, FIFO queues, Ring-Buffer, or QueueForMcu libraries
Use this skill for embedded ring buffers and lightweight queues. The core decision is ownership and concurrency: single producer/consumer, ISR-to-task, task-to-task, DMA-to-task, or multi-producer use.
Use this skill when:
Do not use this skill for RTOS-native queues unless the issue is about wrapping a custom buffer around them.
Ask for:
1. Define ownership. Specify exactly who writes, who reads, and whether there can be multiple producers or consumers.
1. Define full/empty semantics. Do not leave overwrite/drop/block behavior implicit.
1. Check capacity math. Many ring buffers hold `N-1` items to distinguish full from empty.
1. Protect concurrent access. Use interrupt masking, atomics, mutexes, or single-producer/single-consumer rules as appropriate.
1. Verify wraparound. Test writes and reads across the end of the buffer.
1. Add telemetry. Track high-water mark, overflow count, drop count, or queue full events.
Before claiming buffer/queue works:
User:
UART 中断收数据用 ring buffer,偶尔丢字节。
Agent:
1. Asks for producer/consumer contexts, baud, buffer size, overflow policy, and critical sections. 1. Checks N versus N-1 capacity and ISR/task race. 1. Adds overflow counters and tests burst input across wraparound.
AIX Skills is a public collection of Agent Skills, templates, and references for building repeatable AI workflows.
Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers,…
Use when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers,…
Use when integrating or debugging Li-ion charger/fuel gauge ICs (BQ24295, BQ27441, MAX17048) over I2C, covering charge start,…
Use when integrating, designing, or debugging BLE GATT services, characteristics, descriptors, MTU, notifications, indications,…
Use when debugging embedded bootloaders, application jumps, vector table offsets, firmware upgrade flow, OTA state, image…
Use when integrating, porting, configuring, or debugging CAN bus libraries, CANBus-Triple, MCP2515, CAN frames, bit timing,…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.