Integrates, ports, configures, and debugs embedded ring buffers, circular buffers, FIFO queues, Ring-Buffer, and QueueForMcu libraries. Covers ownership, concurrency, overflow, and DMA handoff.
Ships in aix-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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:
Define ownership. Specify exactly who writes, who reads, and whether there can be multiple producers or consumers.
Define full/empty semantics. Do not leave overwrite/drop/block behavior implicit.
Check capacity math.
Many ring buffers hold N-1 items to distinguish full from empty.
Protect concurrent access. Use interrupt masking, atomics, mutexes, or single-producer/single-consumer rules as appropriate.
Verify wraparound. Test writes and reads across the end of the buffer.
Add telemetry. Track high-water mark, overflow count, drop count, or queue full events.
Before claiming buffer/queue works:
User:
UART 中断收数据用 ring buffer,偶尔丢字节。
Agent:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ring-buffer, circular-buffer, fifo, embedded-queue, queue-formcu
/aix-skills:embedded-buffer-queue-libsfrom aix-skills
npx claudepluginhub easyzoom/aix-skills --plugin aix-skills76 skills in this plugin
/8051-mcu-debugUse when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers, UART, or startup failures/avem-integrationUse when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers, middleware, or application architecture/battery-charger-fuel-gauge-integrationUse when integrating or debugging Li-ion charger/fuel gauge ICs (BQ24295, BQ27441, MAX17048) over I2C, covering charge start, watchdog host mode, NTC/JEITA faults, and SOC jumpsOther plugins' skills for the same job