create-cli
Design command-line interface parameters and UX: arguments, flags, subcommands, help text, output formats, error messages, exit codes, prompts, config/env precedence, and safe/dry-run behavior. Use when you’re designing a CLI spec (before implementation) or refactoring an existing CLI’s surface area for consistency, composability, and discoverability.
Why use this skill?
Use the create-cli skill to design consistent, script-friendly, and human-first CLI architectures using industry-standard guidelines.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/steipete/create-cliWhat This Skill Does
The create-cli skill is a specialized architectural tool for OpenClaw agents, designed to formalize the design and documentation of command-line interfaces before a single line of implementation code is written. Following the rigorous standards set by the CLI Guidelines (clig.dev), this skill ensures that your tools are intuitive, predictable, and maintainable. By forcing a structured approach to UX, it addresses common pitfalls in developer tooling such as inconsistent flag naming, poorly handled error states, and clunky pipe-ability.
When invoked, the skill acts as a technical architect, gathering requirements for your CLI's target audience—whether they are power users chaining commands in bash scripts or casual developers needing a guided experience. It generates a comprehensive interface contract, covering complex requirements like configuration precedence (CLI flags vs. environment variables vs. config files), exit code strategies, and robust safety mechanisms like dry-run modes and non-interactive execution requirements.
Installation
- Install Command: clawhub install openclaw/skills/skills/steipete/create-cli
- Source Repo: openclaw/skills
- Author: steipete
Use Cases
- Prototyping New Tools: Before developing a new utility, use this skill to define the command tree and argument structures, ensuring your UX follows established industry patterns.
- Refactoring Legacy CLIs: If an existing tool is inconsistent or difficult to script, input its current surface area into the skill to receive a refactoring plan that aligns it with modern standards like JSON output, TTY detection, and predictable error handling.
- Cross-Platform Compatibility: Ensure your CLI design respects OS-specific conventions (e.g., config file paths, signal handling) across Linux, macOS, and Windows.
Example Prompts
- "I am building a cloud deployment tool. Design a CLI spec that supports subcommands like 'deploy' and 'list', requires authentication via env vars, and outputs machine-readable JSON by default when --json is passed."
- "Refactor this tool's CLI surface: current command 'mytool -f file' is ambiguous. Propose a better syntax that supports piping input via stdin, provides a dry-run flag for destructive actions, and follows the XDG base directory spec for config files."
- "Create a CLI spec for a local file watcher. Include requirements for a --no-input flag, proper handling of Ctrl-C for clean shutdown, and specific exit codes for permission errors vs. missing files."
Tips & Limitations
- Stay Human-Centric: While the skill defaults to high-performance machine-friendly output (JSON/plain), prioritize descriptive help text for human users.
- Safety First: Always explicitly define how the tool handles destructive operations. Use the 'Safety rules' section of the output to mandate interactive confirmation for critical actions.
- Limitations: This skill designs the interface and behavior; it does not generate the functional backend logic. It focuses on the communication layer between your code and the user's shell.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-steipete-create-cli": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Related Skills
swiftui-liquid-glass
Implement, review, or improve SwiftUI features using the iOS 26+ Liquid Glass API. Use when asked to adopt Liquid Glass in new SwiftUI UI, refactor an existing feature to Liquid Glass, or review Liquid Glass usage for correctness, performance, and design alignment.
qmd
Local search/indexing CLI (BM25 + vectors + rerank) with MCP mode.
songsee
Generate spectrograms and feature-panel visualizations from audio with the songsee CLI.
summarize
Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).
bird
X/Twitter CLI for reading, searching, and posting via cookies or Sweetistics.