letter-shell-integration
Skill36 starsChanged 5 months agoMITView on GitHub
Use when integrating, porting, configuring, or debugging letter-shell command shells, UART shell transport, command registration, RTOS shell tasks, or embedded debug consoles
In this repository75 other files it gives its agents.
- 8051-mcu-debugSkill
- avem-integrationSkill
- battery-charger-fuel-gauge-integrationSkill
- ble-gatt-integrationSkill
- bootloader-debugSkill
- canbus-integrationSkill
- canopen-integrationSkill
- cellular-at-modem-integrationSkill
- cmbacktrace-integrationSkill
- cmsis-dsp-integrationSkill
- cortex-m-debugSkill
- cortex-r5-debugSkill
- crc-checksum-integrationSkill
- easylogger-integrationSkill
- embedded-app-example-libsSkill
- embedded-buffer-queue-libsSkill
- embedded-data-parsing-libsSkill
- embedded-debug-entrySkill
- embedded-fault-debugSkill
- embedded-framework-libsSkill
- embedded-input-libsSkill
- embedded-library-entrySkill
- embedded-linux-login-debugSkill
- embedded-peripheral-bringupSkill
- embedded-serial-log-debugSkill
- embedded-state-machine-libsSkill
- embedded-timing-libsSkill
- epd-integrationSkill
- esp-idf-integrationSkill
- fatfs-integrationSkill
- flashdb-integrationSkill
- freemodbus-integrationSkill
- freertos-kernel-debugSkill
- freertos-plus-tcp-integrationSkill
- gnss-gps-integrationSkill
- hardware-interface-debugSkill
- heatshrink-integrationSkill
- littlefs-integrationSkill
- low-power-debugSkill
- lvgl-integrationSkill
- lwip-integrationSkill
- mbedtls-integrationSkill
- mcuboot-integrationSkill
- mcu-flashing-debugSkill
- micro-ecc-integrationSkill
- miniz-integrationSkill
- mqtt-embedded-integrationSkill
- nanopb-integrationSkill
- nrf-connect-sdk-integrationSkill
- nr-micro-shell-integrationSkill
- openocd-jlink-stlink-debugSkill
- openthread-integrationSkill
- ota-update-integrationSkill
- plooc-integrationSkill
- power-management-integrationSkill
- qspi-xip-flash-debugSkill
- readme-writingSkill
- riscv-mcu-debugSkill
- rtos-debugSkill
- rt-thread-integrationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill to integrate letter-shell as an embedded debug console safely.
- Distinctive: line 14
Use this skill when:
- Very specific: line 20
Do not use this skill when the serial port itself is not trustworthy.
- Distinctive: line 38
Create one shell instance.
- Distinctive: line 42
Use a polling loop for simple bare-metal demos or a dedicated task/event-driven model for RTOS projects.
- Very specific: line 45
Start with version, help, or status before adding state-changing commands.
- Distinctive: line 48
If commands are exported through sections/macros, ensure the linker script and optimization settings keep them.
- Distinctive: line 50
Add access control for risky commands.
- Distinctive: line 72
Before claiming letter-shell works:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Prove transport first. Confirm raw RX/TX works before debugging shell parsing.
- Create one shell instance. Bind it to explicit read/write functions and initialize it once.
- Decide scheduling model. Use a polling loop for simple bare-metal demos or a dedicated task/event-driven model for RTOS projects.
- Register one harmless command.
Start with
version,help, orstatusbefore adding state-changing commands. - Confirm linker retention. If commands are exported through sections/macros, ensure the linker script and optimization settings keep them.
- 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
helpor 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:
- Asks for UART backend, RTOS/bare-metal model, config, and command export method.
- Verifies raw serial RX/TX first.
- Registers a read-only
statuscommand and confirmshelpcan list it. - Adds guardrails before exposing reset, erase, or format commands.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

