Agent skill

cli-developer

Expert in building Command Line Interfaces (CLIs), Terminal User Interfaces (TUIs), and shell automation tools. Use when creating CLI applications, building interactive terminal UIs, parsing command-line arguments, or developing shell scripts and automation tools.

Stars 66
Forks 6

Install this agent skill to your Project

npx add-skill https://github.com/404kidwiz/claude-supercode-skills/tree/main/cli-developer-skill

SKILL.md

CLI Developer

Purpose

Provides expertise in building robust, user-friendly command-line applications and terminal interfaces. Covers argument parsing, interactive prompts, TUI frameworks, and shell automation across multiple languages.

When to Use

  • Building CLI applications in any language
  • Creating interactive terminal user interfaces
  • Implementing command-line argument parsing
  • Building shell scripts and automation tools
  • Adding progress bars, spinners, and colors
  • Creating REPL-style applications
  • Distributing CLI tools as packages

Quick Start

Invoke this skill when:

  • Building CLI applications in any language
  • Creating interactive terminal user interfaces
  • Implementing command-line argument parsing
  • Building shell scripts and automation tools
  • Creating REPL-style applications

Do NOT invoke when:

  • Building GUI desktop applications (use windows-app-developer)
  • Creating web-based interfaces (use frontend skills)
  • Writing PowerShell-specific tools (use powershell skills)
  • Building mobile applications (use mobile-developer)

Decision Framework

CLI Framework Selection:
├── Node.js → Commander.js, Yargs, Oclif
├── Python → Click, Typer, argparse
├── Go → Cobra, urfave/cli
├── Rust → Clap, structopt
├── TUI needed
│   ├── Node.js → Ink, Blessed
│   ├── Python → Textual, Rich
│   ├── Go → Bubbletea, tview
│   └── Rust → Ratatui, crossterm
└── Simple script → Shell (bash/zsh)

Core Workflows

1. CLI Application Setup

  1. Choose framework based on language/needs
  2. Define command structure and subcommands
  3. Implement argument and option parsing
  4. Add input validation and help text
  5. Implement core command logic
  6. Add output formatting (JSON, table, etc.)
  7. Package for distribution

2. Interactive TUI Development

  1. Select TUI framework
  2. Design screen layout and components
  3. Implement input handling and navigation
  4. Add state management
  5. Handle terminal resize events
  6. Test across different terminal emulators

3. CLI Distribution

  1. Add proper versioning
  2. Create man pages or help docs
  3. Package for target platforms
  4. Set up installation via package managers
  5. Create shell completions
  6. Add update mechanism

Best Practices

  • Follow POSIX conventions for flags and arguments
  • Provide both short (-v) and long (--verbose) options
  • Include --help and --version flags
  • Use exit codes properly (0 for success)
  • Support piping and stdin input
  • Add shell completion scripts

Anti-Patterns

Anti-Pattern Problem Correct Approach
No help text Users can't discover commands Add comprehensive --help
Silent failures Users don't know what went wrong Clear error messages + exit codes
Hard-coded paths Breaks on other systems Use environment variables, XDG
No stdin support Can't pipe data Support reading from stdin
Colored output to pipes Breaks parsing Detect TTY, disable colors for pipes

Expand your agent's capabilities with these related and highly-rated skills.

404kidwiz/claude-supercode-skills

documentation-engineer

Technical documentation and knowledge management expert. Use when creating comprehensive documentation systems, improving developer knowledge sharing, or building documentation-driven development workflows.

66 6
Explore
404kidwiz/claude-supercode-skills

backend-developer

Comprehensive backend development for building production-ready server-side applications with multiple frameworks, databases, and deployment strategies. Use when building APIs, services, databases, or server infrastructure.

66 6
Explore
404kidwiz/claude-supercode-skills

powershell-5.1-expert

Expert in legacy Windows PowerShell 5.1. Specializes in WMI, ADSI, COM automation, and maintaining backward compatibility with Windows Server environments. Use for Windows-specific automation on legacy systems. Triggers include "PowerShell 5.1", "Windows PowerShell", "WMI", "ADSI", "COM object", "legacy PowerShell".

66 6
Explore
404kidwiz/claude-supercode-skills

qa-expert

Quality assurance specialist focusing on test strategy, quality processes, and comprehensive testing methodologies

66 6
Explore
404kidwiz/claude-supercode-skills

multi-agent-coordinator

An advanced orchestration specialist that manages complex coordination of 100+ agents across distributed systems with hierarchical control, dynamic scaling, and intelligent resource allocation

66 6
Explore
404kidwiz/claude-supercode-skills

tooling-engineer

Expert in building developer tools, CLI utilities, IDE extensions, and optimizing local development environments.

66 6
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results