Skip to content
Development
Skill

/letter-shell-integration

Use when integrating, porting, configuring, or debugging letter-shell command shells, UART shell transport, command registration, RTOS shell tasks, or embedded debug consoles

From plugin
aix-skills
3976 skills

Claude Code

$ npx -y skills add easyzoom/aix-skills --skill letter-shell-integration --agent claude-code

SKILL.md

letter-shell-integration.SKILL.md
name: letter-shell-integration
description: Use when integrating, porting, configuring, or debugging letter-shell command shells, UART shell transport, command registration, RTOS shell tasks, or embedded debug consoles

letter-shell Integration

Overview

Use this skill to integrate letter-shell as an embedded debug console safely. Prove the transport, shell task or polling loop, command registration, and authorization policy before exposing commands that modify flash, reset devices, or change production state.

When To Use

Use this skill when:

  • The user wants to add or debug letter-shell in MCU firmware.
  • Shell input/output is missing, commands are not found, history/completion behaves wrong, or shell blocks the system.
  • The task involves UART shell, RTT shell, RTOS shell task, command export macros, login/password, or runtime debug commands.

Do not use this skill when the serial port itself is not trustworthy. Use `embedded-serial-log-debug` first.

First Questions

Ask for:

  • Target MCU/RTOS/compiler and letter-shell version or source.
  • Transport backend: UART, USB CDC, RTT, TCP, or custom.
  • Runtime model: polling loop, interrupt-driven RX, DMA RX, or RTOS task.
  • Existing shell config, command registration method, and linker section behavior.
  • Whether shell is allowed in production builds.
  • Commands that may be destructive, such as erase, reset, format, calibration, network write, or firmware update.

Integration Checklist

1. Prove transport first. Confirm raw RX/TX works before debugging shell parsing.

1. Create one shell instance. Bind it to explicit read/write functions and initialize it once.

1. Decide scheduling model. Use a polling loop for simple bare-metal demos or a dedicated task/event-driven model for RTOS projects.

1. Register one harmless command. Start with `version`, `help`, or `status` before adding state-changing commands.

1. Confirm linker retention. If commands are exported through sections/macros, ensure the linker script and optimization settings keep them.

1. Add access control for risky commands. Commands that erase flash, format filesystems, reset devices, change boot config, or modify calibration require explicit user/product approval.

Porting Checks

  • UART/CDC/RTT output is non-blocking enough for the product.
  • RX buffering handles backspace, line endings, paste bursts, and command length.
  • Shell task stack is large enough for formatting and command handlers.
  • Command handlers validate arguments and return useful errors.
  • Shell does not run in interrupt context unless the library explicitly supports it.
  • Production builds can disable or restrict debug commands.

Common Failures

  • Raw UART works but shell does not receive because RX callback is not connected to shell input.
  • Commands disappear because linker garbage collection removed command sections.
  • Shell blocks lower-priority tasks due to long output or blocking writes.
  • Command handler crashes from unchecked arguments.
  • Dangerous maintenance commands are exposed without authentication or build guards.

Verification

Before claiming letter-shell works:

  • State transport, scheduler model, shell instance, and command registration method.
  • Confirm `help` or an equivalent harmless command works.
  • Confirm one custom read-only command works.
  • Confirm line ending, backspace, and invalid command behavior.
  • Identify destructive commands and their guard policy.

Example

User:

想接 letter-shell,通过串口输入命令查看系统状态。

Agent:

1. Asks for UART backend, RTOS/bare-metal model, config, and command export method. 1. Verifies raw serial RX/TX first. 1. Registers a read-only `status` command and confirms `help` can list it. 1. Adds guardrails before exposing reset, erase, or format commands.

Read more
@easyzoom
Ships withaix-skills

AIX Skills is a public collection of Agent Skills, templates, and references for building repeatable AI workflows.

Stars on GitHub

Momentum

stars in total
39
Star history of easyzoom/aix-skills on GitHub, a chart by star-history.com

Other skills on aix-skills.

8051-mcu-debug

8051-mcu-debug

Use when debugging 8051-compatible microcontrollers, 51 MCU firmware, STC download issues, Keil C51 projects, interrupts, timers,…

@easyzoom@easyzoomInstall Skill
avem-integration

avem-integration

Use when integrating, evaluating, configuring, or debugging Avem embedded C framework modules, event-driven components, drivers,…

@easyzoom@easyzoomInstall Skill
ble-gatt-integration

ble-gatt-integration

Use when integrating, designing, or debugging BLE GATT services, characteristics, descriptors, MTU, notifications, indications,…

@easyzoom@easyzoomInstall Skill
bootloader-debug

bootloader-debug

Use when debugging embedded bootloaders, application jumps, vector table offsets, firmware upgrade flow, OTA state, image…

@easyzoom@easyzoomInstall Skill
canbus-integration

canbus-integration

Use when integrating, porting, configuring, or debugging CAN bus libraries, CANBus-Triple, MCP2515, CAN frames, bit timing,…

@easyzoom@easyzoomInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about letter-shell-integration.

Which coding agents can use letter-shell-integration?
letter-shell-integration installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.