cli-development

cli-development is a skill for Claude Code, Codex from saffron-health/libretto. It costs 54 tokens per session (669 once invoked), scanned A, original, MIT.

A set of guidelines for building command-line tools, which are programs operated through a text-based terminal.

In plain words
What is it for?
It guides subcommand help, argument errors, output formats, exit codes, JSON mode, and the separation of normal results from diagnostics.
Why use it?
It helps commands remain understandable when they succeed and useful when they fail. Errors include enough context and recovery advice to diagnose the problem.

Skill for Claude CodeCodex

Part of the libretto plugin — 24 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/saffron-health/libretto/cli-development
Any agent
npx skills add saffron-health/libretto --skill cli-development
Clone the repo
git clone --depth 1 https://github.com/saffron-health/libretto

Made for: Claude Code, Codex.

Or install libretto, the plugin that ships this one along with the rest of its 24 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cli-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/saffron-health/libretto/cli-development.svg)](https://agentmods.dev/skills/saffron-health/libretto/cli-development)
Your own site
<a href="https://agentmods.dev/skills/saffron-health/libretto/cli-development"><img src="https://agentmods.dev/badge/skills/saffron-health/libretto/cli-development.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 669 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00054 $0.00669
Opus 5 $0.00027 $0.00334
Sonnet 5 $0.00011 $0.00134
Haiku 4.5 $0.00005 $0.00067

Measured 4d ago against content hash ebb4f4096a34, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cli-development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/cli-development/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLI Development

Build CLIs that stay actionable in both success and failure paths.

Core Principles

  1. Avoid dead ends.
    • Print next steps when a reasonable next action exists.
    • On terminal completion, state that no further action is required.
  2. Make failures diagnosable.
    • Print known state, failed operation, and likely cause.
    • Include recovery commands and focused help text.
    • Include usage text for argument or syntax errors.
  3. Keep output minimal and context-efficient.
    • Use short defaults.
    • Show detail only when requested by flags or when needed to recover from failure.
  4. Scope help to subcommands.
    • Keep root help high-level.
    • Put detailed flags, examples, and edge cases in subcommand help.

Command Contract

  1. Keep output deterministic.
    • Use stable wording and field names.
    • Avoid random ordering in lists.
  2. Use conventional stream behavior.
    • Write primary result data to stdout.
    • Write diagnostics, warnings, and human-oriented guidance to stderr.
    • In machine mode (--json), print a complete structured success or error object to stdout.
    • Document that automation should capture both stdout and stderr for full logs.
  3. Return meaningful exit codes.
    • 0 for success.
    • Non-zero codes map to clear failure classes.
  4. Support automation.
    • Add machine-readable output mode such as --json.
    • Keep human-readable output as the default.
  5. Support safe execution.
    • Add --dry-run for mutating commands.
    • Make retry behavior explicit.

Help and Error Pattern

Use this pattern for each subcommand:

  1. One-line purpose.
  2. Usage line.
  3. Required arguments.
  4. Optional flags.
  5. Examples, including one failure-recovery example.

When returning an error, format output in this order:

  1. Error summary.
  2. Known state.
  3. Recovery options.
  4. Exact next command.
  5. Relevant subcommand help hint.

Output Templates

Success with next step:

Created release r123.
Next: mycli release publish r123

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 100 lines · 54 tokens per session scan A ebb4f4096a34

Subscribe to this mod's changes

cli-development is a skill published in the GitHub repository saffron-health/libretto (886 stars, last pushed 13d ago), licensed MIT. It adds 54 tokens to every session and 669 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

benchmark-discovery

Surface new benchmark result candidates for the Steel leaderboard at /Users/nikola/dev/steel/leaderboard by running the arxiv discovery pipeline, filtering out off-topic and unscorable papers (e.g. ESA Gaia space-telescope hits vs the GAIA agent benchmark), and producing a standardised review-ready markdown summary…

steel-dev/leaderboard · 246 tokens

fetch-weather-report

Fetch the current weather forecast for a specified location and return a structured summary.

prakhar1114/ai_mime · 19 tokens

uipath-core

Build UiPath Studio projects, REFramework scaffolds, XAML workflows, and VB/C# expressions via 104 deterministic Python generators (plus plugin generators). ALWAYS use this skill — never hand-write .xaml files. TRIGGER when the user mentions UiPath, REFramework, XAML, RPA, Orchestrator, UiPath Studio, dispatcher…

marcelocruzrpa/uipath-ai-skills · 143 tokens

uipath-tasks

Generates UiPath Tasks workflows — Form Tasks (CreateFormTask, WaitForFormTaskAndResume, GetFormTasks) with form.io schemas and FormData bindings, External Tasks (CreateExternalTask, WaitForExternalTaskAndResume) for system-in-the-loop patterns, and Task Management (CompleteTask, AssignTasks) for programmatic task…

marcelocruzrpa/uipath-ai-skills · 138 tokens

qirabot

Drive any GUI with AI vision on raw screenshots — no DOM, no CSS/XPath selectors — via the Qirabot Python SDK or the qirabot CLI. Hand it a whole goal to complete autonomously, or make single natural-language actions: click, type, extract, and verify on web browsers, Android, iOS, desktop apps, and games. Use this…

qirabot/qirabot · 228 tokens

screenclaw

用“截图 + 坐标网格”的方式操作任意桌面软件:截带网格的图,让任意多模态大模型读出目标的坐标数字,再调用点击/输入/按键等 API ,模拟人类视觉化操作软件。还能录制一次操作并沉淀成可复用的场景模板,下次直接复用。不依赖目标软件提供 API 或 CLI。 出现以下情况时使用: - 自动化操作 Windows 桌面软件(微信、风控严格的网页如小红书/抖音、手机模拟器、游戏、任意 Windows 程序),尤其是 Playwright/CDP/CLI/应用 API 无法覆盖的软件或元素(如隐藏按钮、游戏画面、验证码等) - 用户说“帮我操作/点/输入 XX”“自动操作…

GinSing1226/ScreenClaw · 298 tokens