cli

cli is a skill for Claude Code, Codex from vinnie357/claude-skills. It costs 48 tokens per session (273 once invoked), scanned A, original, MIT.

Guidance for building Rust command-line programs. It covers command-line arguments, progress and verbosity output, signals, exit codes, error messages, and testing the program as a separate process.

In plain words
What is it for?
Use it when adding argument parsing with clap, progress or verbosity flags, user-facing error context, signal handling, exit codes, or subprocess tests.
Why use it?
It helps command-line tools respond clearly and consistently to users, including when input is invalid or the process is interrupted.

Skill for Claude CodeCodex

Part of the rust plugin — 6 skills, 2 agents 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/vinnie357/claude-skills/cli
Any agent
npx skills add vinnie357/claude-skills --skill cli
Clone the repo
git clone --depth 1 https://github.com/vinnie357/claude-skills

Made for: Claude Code, Codex.

Or install rust, the plugin that ships this one along with the rest of its 6 skills, 2 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/vinnie357/claude-skills/cli.svg)](https://agentmods.dev/skills/vinnie357/claude-skills/cli)
Your own site
<a href="https://agentmods.dev/skills/vinnie357/claude-skills/cli"><img src="https://agentmods.dev/badge/skills/vinnie357/claude-skills/cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 273 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.00048 $0.00273
Opus 5 $0.00024 $0.00137
Sonnet 5 $0.00010 $0.00055
Haiku 4.5 $0.00005 $0.00027

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

Security

Grade A, and why

cli 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 5d 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.

plugins/languages/rust/skills/cli/SKILL.md · 33 lines

What it actually says

Rust CLI Applications

Argument parsing, user-facing output, exit codes, signal handling, and subprocess testing for command-line tools.

For argument parsing, error context, output, signals, exit codes, and testing patterns, see references/cli.md.

Example

use clap::Parser;

#[derive(Parser)]
struct Cli {
    pattern: String,
    path: std::path::PathBuf,
}

fn main() {
    let cli = Cli::parse(); // derives parsing, validation, and --help
}

The full argument-parsing, error-context, output, signals, exit-code, and testing patterns are in references/cli.md.

This skill covers CLI-specific ecosystem crates. For custom error enum design (thiserror) shared with non-CLI code, see rust:error-handling. For unit and integration test structure not specific to CLI binaries, see rust:testing.

See /core:anti-fabrication — crate versions and behavior claims in this skill are verified against crates.io and the upstream Rust CLI Book, not assumed.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 33 lines · 48 tokens per session scan A fa62e4c7b7cc

Subscribe to this mod's changes

cli is a skill published in the GitHub repository vinnie357/claude-skills (24 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 273 once invoked, about $0.0002 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.