Skip to content
Back to skills

Nr Micro Shell Integration

ASecurity

Use when integrating, porting, configuring, or debugging nr_micro_shell command consoles, UART shell input, command tables, or tiny embedded CLI behavior

  • 31 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 27, 2026
toolsshelldebugging

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add easyzoom/aix-skills --skill nr-micro-shell-integration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nr Micro Shell Integration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nr Micro Shell Integration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/easyzoom-nr-micro-shell-integration/badge)](https://www.skillsdirectory.com/skills/easyzoom-nr-micro-shell-integration)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nr-micro-shell-integration
description: Use when integrating, porting, configuring, or debugging nr_micro_shell command consoles, UART shell input, command tables, or tiny embedded CLI behavior
---

# 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.

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

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

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

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

1. 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:

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

Agent:

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.