agentsclimarketplace

Nr micro shell integration

Skill easyzoom/aix-skills/skills/nr-micro-shell-integration

Use when integrating, porting, configuring, or debugging nr_micro_shell command consoles, UART shell input, command tables, or tiny embedded CLI behaviorFrom its SKILL.md

Install
npx -y skills add easyzoom/aix-skills --skill nr-micro-shell-integration

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 24 stars24 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.6 KB, 534 tokens by cl100k_base, as published. Nobody here has run it

nr_micro_shell Integration

Overview

Use this skill to integrate nr_micro_shell as a compact command console. Keep the first port minimal: verified character I/O, one read-only command, bounded buffers, and explicit handling for destructive commands.

When To Use

Use this skill when:

  • The user wants a tiny shell/CLI on an MCU and mentions nr_micro_shell.
  • Commands are not recognized, input is garbled, completion/history fails, or shell processing blocks firmware.
  • The target needs a lower-footprint alternative to larger embedded shells.

Do not use this skill when raw UART is not proven. Use embedded-serial-log-debug first.

First Questions

Ask for:

  • Target MCU/RTOS/compiler and nr_micro_shell version/source.
  • Transport: UART, USB CDC, RTT, TCP, or custom stream.
  • Polling, interrupt, DMA, or task-based input model.
  • Command table/registration approach.
  • Maximum command length, argument count, and stack/RAM budget.
  • Whether shell is enabled in production builds.

Integration Checklist

  1. Verify raw I/O. Confirm single-character RX/TX before attaching shell parsing.

  2. Configure buffers. Set command line, history, and output buffers within RAM limits.

  3. Register one safe command. Start with help, version, or status.

  4. Validate argument parsing. Commands must reject missing, too many, or invalid arguments.

  5. Bound output. Avoid long blocking output that starves watchdogs or RTOS tasks.

  6. Guard risky commands. Reset, erase, format, calibration, flash writes, or network writes need build guards or authentication.

Common Failures

  • RX callback stores characters but shell process function is never called.
  • Command table is not linked or is optimized out.
  • Backspace/newline behavior mismatches terminal settings.
  • Long command output blocks system timing.
  • Debug shell remains enabled in production without restrictions.

Verification

Before claiming nr_micro_shell works:

  • State transport, scheduling model, buffer sizes, and command registration method.
  • Confirm raw RX/TX, help, one custom read-only command, invalid command, and argument error behavior.
  • Confirm risky commands are absent, disabled, or guarded.

Example

User:

想用 nr_micro_shell 做一个串口调试命令行。

Agent:

  1. Asks for UART path, scheduler model, buffer size, and production policy.
  2. Verifies raw serial, then registers status.
  3. Tests command parsing and guards destructive commands.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.