원클릭으로
create-cli-best-practices
Rules to create and maintain a GOOD CLI. Do not use for GUI-only design rules, web apps, or backend REST APIs.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Rules to create and maintain a GOOD CLI. Do not use for GUI-only design rules, web apps, or backend REST APIs.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Resolves open GitHub Issues in parallel by fanning out independent subagents and then fanning in to aggregate lessons learned.
(🥑) Expert guide for authoring, building, testing, and publishing technical articles to ricc.rocks and Medium.
Hackathon security guide to prevent leaking secrets. Based on Romin Irani's article.
💛 Expert guide for interacting with Riccardo's Obsidian vault (The Carlessian Vault).
Record browser-based video demos from YAML storyboards using shot-scraper.
Installs a lightweight CPU and RAM monitoring cron job and visualization script for agents on the local machine.
| name | create-cli-best-practices |
| description | Rules to create and maintain a GOOD CLI. Do not use for GUI-only design rules, web apps, or backend REST APIs. |
| compatibility | Antigravity / Gemini CLI |
| metadata | {"version":"0.1.11"} |
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.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): 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.image_not_found in the JSON/stderr payload), output the failing input, and provide suggestions/remediation commands.--ai-help): Provide a dedicated help option designed specifically for AI agents (explaining API structures, schemas, integration constraints, and formatting rules). The standard --help output should 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 standard