skills/cli-guideline/SKILL.md
Implement CLI tools in Python, JS/TS, Bash, or Go following clig.dev standards. Use when writing or reviewing CLI code.
npx skillsauth add archibate/dotfiles-opencode cli-guidelineInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Modern CLI design principles based on clig.dev — human-first design while maintaining composability.
| Stream | Purpose | Example |
| --------- | -------------------------------------- | -------------------------- |
| stdout | Primary output, data, machine-readable | Results, JSON, piped data |
| stderr | Messages, logs, progress, errors | Status, warnings, spinners |
| Exit 0 | Success | |
| Exit ≠0 | Failure (map codes to failure modes) | |
-h and --help show full help (exit 0, ignore other flags)--plain for stable, line-based output (scripts, grep/awk)--json for structured outputNO_COLOR, TERM=dumb, --no-color--debug or DEBUG=1--help, not just -h)--help, --version, --dry-run, --verbose, --json, --force, --output, --quiet, --debug, --no-input--dry-run- for stdin/stdout when flag takes a file--password-file or stdin)--no-input to disable all prompts~/.config/...)UPPERCASE_WITH_UNDERSCORES (no leading digit)NO_COLOR, FORCE_COLOR, DEBUG, EDITOR, HTTP_PROXY, PAGER, HOME, TMPDIR.env for project context (not as full config)For detailed stress-testing checklist, see references/checklist.md.
For complete guidelines with examples, see references/full-guidelines.md.
argparse, click, or typermain(); use raise SystemExit(main())--debug for unexpectedcommander, yargs, oclif, or node:util parseArgs--debug for stack tracesprocess.exit(); prefer process.exitCode#!/usr/bin/env bash for Bash-only)trap for cleanup; mktemp for temp filesshellcheckshellckdevelopment
Color theme palettes for UI/UX design and personal configurations (i3wm, dunst, etc.). Use when user asks to apply color themes like Tokyo Night, needs color palettes for frontend development, or wants to customize terminal/desktop colors.
development
This skill should be used when the user asks about "code complexity", "cyclomatic complexity", "cognitive complexity", "code metrics", "maintainability index", "code coverage", or when measuring code quality quantitatively. Provides metrics thresholds and measurement techniques.
tools
Spec CLI surface area before implementation - command tree, flags, exit codes, I/O contract. Use when designing or planning a CLI interface.
development
Interact with local Chrome browser session (only on explicit user approval after being asked to inspect, debug, or interact with a page open in Chrome)