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.
npx agentmods add skills/saffron-health/libretto/cli-developmentnpx skills add saffron-health/libretto --skill cli-developmentgit clone --depth 1 https://github.com/saffron-health/librettoWrote 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.
[](https://agentmods.dev/skills/saffron-health/libretto/cli-development)<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>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.
| Model | Per session | Once 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 |
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.
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
- Avoid dead ends.
- Print next steps when a reasonable next action exists.
- On terminal completion, state that no further action is required.
- 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.
- Keep output minimal and context-efficient.
- Use short defaults.
- Show detail only when requested by flags or when needed to recover from failure.
- Scope help to subcommands.
- Keep root help high-level.
- Put detailed flags, examples, and edge cases in subcommand help.
Command Contract
- Keep output deterministic.
- Use stable wording and field names.
- Avoid random ordering in lists.
- 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.
- Return meaningful exit codes.
0for success.- Non-zero codes map to clear failure classes.
- Support automation.
- Add machine-readable output mode such as
--json. - Keep human-readable output as the default.
- Add machine-readable output mode such as
- Support safe execution.
- Add
--dry-runfor mutating commands. - Make retry behavior explicit.
- Add
Help and Error Pattern
Use this pattern for each subcommand:
- One-line purpose.
- Usage line.
- Required arguments.
- Optional flags.
- Examples, including one failure-recovery example.
When returning an error, format output in this order:
- Error summary.
- Known state.
- Recovery options.
- Exact next command.
- Relevant subcommand help hint.
Output Templates
Success with next step:
Created release r123.
Next: mycli release publish r123
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.
- 4d ago First seen · 100 lines · 54 tokens per session scan A ebb4f4096a34
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.
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…
fetch-weather-report
Fetch the current weather forecast for a specified location and return a structured summary.
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…
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…
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…
screenclaw
用“截图 + 坐标网格”的方式操作任意桌面软件:截带网格的图,让任意多模态大模型读出目标的坐标数字,再调用点击/输入/按键等 API ,模拟人类视觉化操作软件。还能录制一次操作并沉淀成可复用的场景模板,下次直接复用。不依赖目标软件提供 API 或 CLI。 出现以下情况时使用: - 自动化操作 Windows 桌面软件(微信、风控严格的网页如小红书/抖音、手机模拟器、游戏、任意 Windows 程序),尤其是 Playwright/CDP/CLI/应用 API 无法覆盖的软件或元素(如隐藏按钮、游戏画面、验证码等) - 用户说“帮我操作/点/输入 XX”“自动操作…