agentsclimarketplace

Cli design

Skill shinzoxD/knackbox/skills/coding/cli-design

Design developer CLIs with clear UX, exit codes, flags, and help text. Use whenever the user builds a command-line tool, debates flags vs subcommands, stdout vs stderr, or asks how to structure a CLI for engineers.From its SKILL.md

Install
npx -y skills add shinzoxD/knackbox --skill cli-design

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as Apache-2.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

1.4 KB, 235 tokens by cl100k_base, as published. Nobody here has run it

CLI Design

Great CLIs are boring: predictable flags, scriptable output, useful errors, and stable exit codes.

Principles

  1. Subcommands for verbs; flags for options.
  2. stdout for data; stderr for logs/progress.
  3. --help accurate; examples in help.
  4. Exit 0 success; non-zero for classes of failure.
  5. --json or stable machine output when automation matters.
  6. Sensible defaults; prompt only when interactive and needed.
  7. Never break scripts with decorative Unicode unless optional.

Output format

## CLI: <name>
### Commands
### Global flags
### Output contract
### Exit codes
### Examples

Rules

  1. Prefer composition over god flags.
  2. Document config file precedence.
  3. Color auto-detect; --no-color.
  4. Version with --version.
  5. Destructive commands need --force or confirm.

Edge cases

  • Pipes: behave well in CI.
  • Windows paths: accept both separators when reasonable.
  • Plugins: discovery and naming.

What ships with it: 1 file

1.0 KB alongside SKILL.md

benchmarks/

Keep looking

Skills are one crate of 326,422. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.