Agent Skills: rust-cli-tui-developer

Expert guidance for building Rust CLI and TUI applications using clap, inquire, and ratatui. Use this skill when creating command-line tools, argument parsers, interactive terminal prompts, or rich terminal UIs in Rust — prefer it over generic Rust advice for any CLI/TUI task.

UncategorizedID: bahayonghang/my-claude-code-settings/rust-cli-tui-developer

Install this agent skill to your local

pnpm dlx add-skill https://github.com/bahayonghang/my-claude-code-settings/tree/HEAD/content/skills/tech-stack-skills/rust-cli-tui-developer

Skill Files

Browse the full folder contents for rust-cli-tui-developer.

Download Skill

Loading file tree…

content/skills/tech-stack-skills/rust-cli-tui-developer/SKILL.md

Skill Metadata

Name
rust-cli-tui-developer
Description
"Expert guidance for building Rust CLI and TUI applications using clap, inquire, and ratatui. Use this skill when creating command-line tools, argument parsers, interactive terminal prompts, or rich terminal UIs in Rust — prefer it over generic Rust advice for any CLI/TUI task."

Execute the Rust CLI/TUI development task described in $ARGUMENTS.

Steps

  1. If $ARGUMENTS is empty, report an error requesting a description of the desired terminal application.
  2. Read $SKILL_DIR/references/CLI_TUI_GUIDE.md for architectural patterns, library specifics (clap, inquire, ratatui), and common Cargo configurations.
  3. Generate or modify the required Rust code according to best practices.

Output

Generated Rust code implementing the requested CLI or TUI functionality.

Examples

User Request: "Create a basic CLI that accepts a config file path using clap." Response Strategy: Generate a main.rs using clap::Parser with a config argument, following the patterns in the guide.

Troubleshooting

  • If compilation fails due to missing features, refer to the guide to ensure proper cargo add commands were used (e.g., clap --features derive).