/palladius-public-goodies:create-cli-best-practicesfrom palladius-public-goodies
Provides rules and conventions for building high-quality CLIs in Rust or Go, covering flags, performance, determinism, and terminal UX.
Ships in palladius-public-goodies. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Implement the CLI in rust or go.
Document any carlessian CLI in $GIC/ under installables.
Recommended tools and libraries:
NO_COLOR environment variable (as per no-color.org).watch scenarios (e.g., handling rapid polling, disabling terminal clearing or color escape sequences if they break watch mode).watch <cli> and noisy diffs in structured output (JSON/YAML).Ensure all commands support the following flags:
--help / -h: Shows comprehensive usage and help.--version / -v: Shows the version. Ideally, check if the version is the latest at startup (if this can be done extremely fast, e.g., local version file or quick curl from public GitHub).--dry-run / -n: Allows users and agents to preview mutations without executing them. Output structured JSON detailing what would change.Since AI agents are prime consumers of command-line tools, design the CLI to be AI-friendly:
--format): Support structured output (json, yaml, csv). AIs parse JSON easily, while humans prefer YAML. Allow colors to be disabled via --no-color or NO_COLOR=1.--max-items 100 and --page 2 to retrieve the second batch (items 101-200).kubectl apply). If a conflict exists, return unique exit codes (like 5 for "already exists") to facilitate programmatic recovery.--quiet / -q): Output bare values (one per line, no decorative borders, no tables) for easy piping into other commands or shell scripts.--yes, --force, or --non-interactive): Allow bypassing human prompt queries. Always fail-fast or auto-bypass prompts when stdin is not a TTY (non-interactive terminals) to avoid hanging the agent. When a command requires interaction, explicitly document how to bypass it (e.g., "Warning: this part is interactive. To avoid interaction, ensure that ENV[PINCO] and ENV[PALLO] are set, or use --force").image_not_found in the JSON/stderr payload), output the failing input, and provide suggestions/remediation commands.--ai-help): Every CLI tool MUST have both a --help (for humans) and --ai-help (for AI). The --ai-help flag should output Markdown and provide:
--json, --format=json | jq, or --quiet).--help output MUST mention the availability of --ai-help so agents can easily discover it.Do not run LLM calls implicitly or block executions indefinitely on rogue AI completions. Adhere to the Principle of Least Astonishment (POLA). Signify any LLM usage explicitly:
--llm-classify or similar flags.--long-running-summarization to signal high execution latency to the user.NO_COLOR standardWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
66 skills in this plugin
/a2ui(💛) Build and render portable, declarative Generative UIs with Google A2UI (Agent-to-User Interface). Use whenever the user asks to generate, design, or wire interactive UI widgets, cards, forms, or dashboards using A2UI./add-to-portfolio-app(💛) Adds or syncs Talks, Keynotes, Workshops, Articles, Codelabs, Slides, and Videos in Riccardo's personal portfolio application (apps-portfolio) and companion bio repo (my-sessions-and-bio), including SQLite sync, TDD checks, default speaker images, and automated Cloud Run deployment./adk-python(💛) Create and manage AI agents using Google's Agent Development Kit (ADK) for Python. Use when the user wants to build single or multi-agent systems, evaluate agents, or deploy them. Includes instructions for fetching fresh ADK documentation and links for TypeScript and Go development.Other plugins' skills for the same job
palladius-public-goodies@palladius-skills is listed by palladius/skills — review the source before installing
npx claudepluginhub palladius/skills --plugin palladius-public-goodies